text
stringlengths
27
775k
CREATE TABLE "user" ( id serial NOT NULL, first_name text NOT NULL, last_name text NOT NULL, email text NOT NULL, password_hash text, activation_key text, reset_key text, reset_time timestamptz, created_at timestamptz DEFAULT now(), updated_at timestamptz DEFAULT now(), CONSTRAINT user_pkey PRIMAR...
import { render, screen, fireEvent, cleanup, userEvent, waitFor, clearMocks, } from 'test/testUtils' import axios from 'axios' import SymptomsRegistry from 'pages/registro-sintomas' jest.mock('axios') const mockPush = jest.fn().mockResolvedValue(null) const mockQuery: { 'nivel-dolor': string | undefined...
using System; using System.Collections; public class BuildUpLogic : CardLogic { public override void Init() { base.Init(); this.displayName = "蓄能"; this.Desc = "回合开始时获得1层充能。消耗4层充能使本回合+" + this.CardData.ATK.ToString() + "[100%攻击力]点攻击力。"; } public override IEnumerator OnTurnStart() { base.ShowMe(); base...
<?php use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Auth; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. Th...
package org.backuity.ansi object AnsiCodes { val BOLD = "\u001b[1m" val BOLD_OFF = "\u001b[22m" val ITALIC = "\u001b[3m" val ITALIC_OFF = "\u001b[23m" val UNDERLINE = "\u001b[4m" val UNDERLINE_OFF = "\u001b[24m" val BLINK = "\u001b[5m" val BLINK_OFF = "\u001b...
package trembita import cats.Applicative import cats.effect.Sync import trembita.logging.commons.LoggingF import org.slf4j.Logger import scala.language.higherKinds package object slf4j { def mkLogging[F[_]](logger: Logger)(implicit F: Sync[F]): LoggingF[F] = new LoggingF[F] { override def info(msg: String): F[U...
package modbus import ( "context" "encoding/binary" "fmt" "io" "math/rand" "time" "github.com/goburrow/modbus" "github.com/pkg/errors" "github.com/rancher/octopus-simulator/pkg/critical" "github.com/rancher/octopus-simulator/pkg/log" ) func mockThermometer(handler modbus.ClientHandler, stop <-chan struct{...
/* Copyright (C) 2012-2014 Xiongfa Li, <damao1222@live.com> All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ...
package main import ( "fmt" "github.com/jojomi/interview" ) func main() { appleChoice := interview.Choice{ "apple", "", } question := &interview.ChoiceQuestion{ Choices: []interview.Choice{ appleChoice, interview.Choice{ "raspberry", "", }, }, DefaultChoice: appleChoice, PromptChoi...
# Node Auth Server Built with Express.js / MongoDB > This project built for simple demonstration of session management and JWT authorization. > [Live Preview(Client) ->](https://react-msn-messenger.netlify.app/) > [Live Preview(Server) ->](https://node-auth-server-2.herokuapp.com/auth/login) - Routes - Auth ...
namespace Rug.Domain.Championship { public class TeamShuffle { } }
package backoff import ( "context" "fmt" "time" "github.com/giantswarm/micrologger" ) func NewNotifier(l micrologger.Logger, ctx context.Context) func(error, time.Duration) { return func(err error, d time.Duration) { l.LogCtx(ctx, "level", "warning", "message", fmt.Sprintf("retrying backoff in '%s' due to err...
using System; using System.Collections.Generic; using Wanderer.Actors; namespace Wanderer.Systems { /// <summary> /// A system for applying a range of possibly cumulative effects on an /// <see cref="IActor"/> e.g. injuries /// </summary> public interface ISystem { /// <summary> ...
# frozen_string_literal: true # encoding: UTF-8 require 'test_helper' class PriorityInputTest < ActionView::TestCase test 'input generates a country select field' do with_input_for @user, :country, :country assert_select 'select#user_country' if ActionPack::VERSION::STRING >= '5' assert_select 'sel...
<?php return [ 'Names' => [ 'America/Miquelon' => 'Saint-Pierre-et-Miquelon Time', 'America/St_Barthelemy' => 'Atlantic Time (Saint-Barthélemy)', 'America/St_Johns' => 'Newfoundland Time (Saint John’s)', 'America/St_Kitts' => 'Atlantic Time (Saint Kitts)', 'America/St_Lucia'...
/* * Copyright 2020 Peter Kenji Yamanaka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
# sla-vault Retain high resolution perf data from appdynamics Configure: create InfluxDB database and configure one or more data sources in config.json Get: *one minute* Business Transaction(BT) *scorecard* data from one or several data sources Save: one minute *scorecard* into InfluxDB with possibility ...
package de.rki.coronawarnapp.ui.settings.notifications import android.os.Bundle import android.view.View import android.view.accessibility.AccessibilityEvent import androidx.fragment.app.Fragment import de.rki.coronawarnapp.R import de.rki.coronawarnapp.databinding.FragmentSettingsNotificationsBinding import de.rki.co...
import { gql } from 'mercurius-codegen'; export const Palette = gql` type Palette { darkMuted: String darkVibrant: String lightMuted: String lightVibrant: String muted: String vibrant: String createdAt: BigInt! updatedAt: BigInt! } `;
// DO NOT EDIT. Autogenerated by Perfetto cppgen_plugin #ifndef PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_CHROME_CHROME_BENCHMARK_METADATA_PROTO_CPP_H_ #define PERFETTO_PROTOS_PROTOS_PERFETTO_TRACE_CHROME_CHROME_BENCHMARK_METADATA_PROTO_CPP_H_ #include <stdint.h> #include <bitset> #include <vector> #include <string> #incl...
@using BDTest.NetCore.Razor.ReportMiddleware.Models.ViewModels @model BDTest.Maps.BDTestOutputModel @{ ViewBag.Title = "Summary"; Layout = "_Layout"; } @await Html.PartialAsync("_TestPageHeaderHero", new TestPageHeaderHeroViewModel { Title = "Welcome to your report by BDTest!", Description = "Here is a...
import { useNavigation } from '@react-navigation/native'; import React from 'react'; import { Platform, Pressable, StyleSheet, View } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; const styles = StyleSheet.create({ wrapper: { position: 'absolute', bottom: 16, right: 16,...
<?php /** * The template part for displaying an Author biography * * @since Simplent 1.0 */ ?> <div class="entry-author-info clearfix"> <div class="author-avatar"> <?php /** * Filter the Simplent author bio avatar size. * * @since Simplent 1.0 * * @param int $size The avatar height and width size in...
package me.invkrh.raft.core import scala.concurrent.duration._ import scala.language.postfixOps import akka.actor.PoisonPill import akka.testkit.TestProbe import me.invkrh.raft.exception._ import me.invkrh.raft.kit.{Tell, _} import me.invkrh.raft.message.AdminMessage._ import me.invkrh.raft.message.ClientMessage._ i...
package su.svn.hiload.socialnetwork.services.security; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.core.Authentication; import org.springframework.security.web.server.DefaultServerRedirectStrategy; import org.springframework.security.web.server.ServerRedirectStrategy; i...
/** * Tidory Configuration * https://tidory.com/docs/configuration/ */ module.exports = { ts_session: null, url: null, /** * Preview */ preview: { /** * homeType * * NONE * COVER */ homeType: 'NONE', /** * Preview Mode * * index * entry * categor...
//! This examples plots what FixedPartition does with a fixed sample. //! //! # Remarks //! //! Needs `gnuplot` installed. use approx_entropy::{ count_dup, DirectEstimator, Estimator, FixedPartition, NaiveEstimator, SamplingMethod, }; use preexplorer::errors::PreexplorerError; use preexplorer::prelude::*; use rand...
<?php include"includes/web_header.php" ?> <div id="wrapper"> <!-- Sidebar --> <div id="content-wrapper"> <div class="container-fluid"> <form method="post"> <input type="submit" value="subbbb" name="go" placeholder="go"> </form> <?php $python='/usr/bin/python3'; $pyscript1='test.py'; if(isset...
import { DefaultTheme } from "styled-components" const theme: DefaultTheme = { colors: { primary: "#0EDEFF", rgbPrimary: "14, 222, 255", background: "#00080A", rgbBackground: "0, 8, 10", text: "#F3F3F3", darkText: "#EEE", cardBackground: "#091619", }, } export default theme
package com.barisatalay.yorkiewallet.ui.base import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.databinding.ViewDataBinding import androidx.fragment.app.Fragment import com.barisatalay.yorkiewall...
#!/bin/bash case $1 in start) echo $$ > /home/deploy/datadog/.datadog-agent/run/datadog_wrapper.pid /bin/bash /home/deploy/datadog/.datadog-agent/bin/agent start ;; stop) kill `cat /home/deploy/datadog/.datadog-agent/run/datadog_wrapper.pid` kill `cat /home/deploy/datadog/.datadog-agent/r...
<div class="col-md-4 col-sm-6"> <a href="<?php echo e($url); ?>"> <img class="img-responsive img-portfolio img-hover" src="<?php echo e($image); ?>" alt="<?php echo e($name); ?>"> </a> </div>
package repolizer.adapter.network.retrofit.api import okhttp3.RequestBody import repolizer.repository.util.QueryHashMap import retrofit2.Call import retrofit2.http.* interface NetworkInterface { @GET("{url}") fun get( @HeaderMap headerMap: Map<String, String>, @Path(value = "url", enc...
using UnityEngine; using UnityEngine.AI; [System.Obsolete] public class Bot : MonoBehaviour { private RaycastHit _hitInfo = default(RaycastHit); private NavMeshAgent _navMeshAgent = null; private Camera _mainCam = null; private void Awake() { _navMeshAgent = GetComponent<NavMeshAgent>(); ...
// Observable Library // Copyright (c) 2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #include "obs/signal.h" #include "test.h" obs::signal<void()> sig; obs::scoped_connection conn; void func() { conn = sig.connect(func); // This seco...
import unittest import unittest.mock from nssift.grind.netstats.bundler import Bundler from nssift.grind.netstats import gauge class TestBundler(unittest.TestCase): """Validate the bunlded updates of the statics counters.""" def _makemock(self, value): m = unittest.mock.Mock() m.normalize = ...
import 'package:shared_preferences/shared_preferences.dart'; class PrefUtils { static Future<bool> setBool(String key, {bool value, SharedPreferences prefs}) async { return (prefs ?? await SharedPreferences.getInstance()).setBool(key, value); } static Future<bool> getBool( String key, { Shared...
<? $MESS["SALE_EBAY_HLP_FLAG_CANCELED"] = "Флаг отмены"; $MESS["SALE_EBAY_HLP_FLAG_DELIVERY"] = "Флаг доставки"; $MESS["SALE_EBAY_HLP_FLAG_PAYED"] = "Флаг оплаты"; $MESS["SALE_EBAY_HLP_FLAG_DEDUCTED"] = "Флаг отгрузки"; $MESS["SALE_EBAY_HLP_STATUS"] = "Статус"; $MESS["SALE_EBAY_HLP_CATEGORY_PROPS"] = "Свойства категори...
# frozen_string_literal: true # PieceHead Label class PhLabel < ActiveRecord::Base belongs_to :company belongs_to :piece_head end
#if !DISABLE_DHT using System; using System.Collections.Generic; using System.Text; using Xunit; using System.Net.BitTorrent.Dht.Listeners; using System.Net.BitTorrent.Dht.Messages; using System.Net; namespace System.Net.BitTorrent.Dht { internal class TestListener : DhtListener { private bool started;...
package com.zihler.wiki.domain.values; import java.util.regex.Pattern; public enum Patterns { NON_CHARACTER_TOKEN_REGEX("[^a-zA-Z0-9#]"), REFERENCE_TAG_MATCHING_REGEX("(.*(?<!.)#[A-Z0-9]+[a-z0-9][^ ]*)+"), UPPER_CASE_LETTERS_REGEX("[A-Z]"), NUMBERS("[0-9]"); private String regexPattern; Patt...
import 'package:cloud_firestore/cloud_firestore.dart'; class FirestoreServiceGetaway { FirebaseFirestore _firebaseFirestore = FirebaseFirestore.instance; Future<Map<String, dynamic>> _mergeData( DocumentSnapshot documentSnapshot) async { if (!documentSnapshot.exists) { return null; } Quer...
/// ReflectorDispatcher. It does the Dispatcher thing using reflector library reflector_dispatcher; export 'src/reflector_dispatcher_base.dart';
package com.yashlan.aplikasigithubuser.util import android.app.Activity import android.content.Context import android.content.Intent import android.os.Handler import android.os.Looper import android.widget.Toast import com.yashlan.aplikasigithubuser.R import com.yashlan.aplikasigithubuser.ui.activity.ListUserActivity ...
import * as fs from 'fs-extra'; import * as tmp from 'tmp'; import chai from 'chai'; import chaiAsPromised from 'chai-as-promised'; import { EditorView, InputBox, VSBrowser, WebDriver, WebView, By } from 'vscode-extension-tester'; import { dismissNotifications, CommonUICreator, notificationExists } from '../../util/com...
import Vue from 'vue' // 뷰 코어 import Axios from 'axios' //AJAX 통신모듈 import VueAxios from 'vue-axios' //vue wrapper for axios import VueRouter from 'vue-router' //라우팅모듈 import layout from './layout.vue' //메인 페이지 프레임 //로드 확인 // console.log("Vue :",Vue) // console.log("Axios :",Axios) // console.log("VueRouter :",VueRou...
#!/bin/sh set -e input_dir="$1" if [ -z "$input_dir" ]; then echo "Usage: $0 INPUT_DIR" exit 1; fi name=$(echo $input_dir | sed -e 's|/$||' -e 's|.*/\(.*\)|\1|') template_file=$name.hsfiles test -f $template_file && rm $template_file find "$input_dir" -type f | sed -e '/\/stack.yaml/d' \ -e '/\.cabal/...
# Clase 2022-03-15 # Listas rm(list = ls()) A <- matrix(1:6, 3, 2) m1 <- rowMeans(A) m2 <- colMeans(A) minA <- min(A) maxA <- max(A) nomb <- c("col1", "col2", "col3") cond <- A > mean(A) + sd(A) cond A lista <- list(A, m1, m2, minA, maxA, nomb, cond) lista lista <- list( matriz = A, med_fil = m1, med_col = m2, min...
namespace CSharpWin32GenEx { class CSharpWin32GenEx { public static void Main(string[] args) { } } }
To install... please put ONLY THE gmgram-addon inside your gmod server! DO NOT UPLOAD THE FILTERS FILE! After that please follow the read me inside the addon folder!
// Type definitions for ds18b20 0.1 // Project: https://github.com/chamerling/ds18b20 // Definitions by: Peter Müller <https://github.com/crycode-de> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 /// <reference types="node" /> /** * Options for a `temperature` call *...
class Video < ActiveRecord::Base has_attached_file :clip, :styles => { :medium => { :geometry => "640x480", :format => 'flv', :convert_options => {:output => {:ar => 44100}} }, :large => { :geometry => "1024x576", :format => 'flv', :convert_options => {:output => {:ar => 44100}} } }, :processors => [:ffmpeg...
# typed: true module Datadog module Tracing module Contrib module SuckerPunch # SuckerPunch integration constants # @public_api Changing resource names, tag names, or environment variables creates breaking changes. module Ext ENV_ENABLED = 'DD_TRACE_SUCKER_PUNCH_ENABLED'.f...
FactoryGirl.define do factory :flyer do company_id 1 language_id 1 flyer "MyString" end end
package com.mathewsachin.fategrandautomata.ui import android.content.SharedPreferences import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.Menu import android.view.MenuItem import androidx.appcompat.app.AlertDialog import androidx.core.content.edit import androidx.preference.Pr...
import React, {CSSProperties, PropsWithChildren} from 'react'; import {variationName, classNames} from '@shopify/css-utilities'; import {TilesProps} from '@shopify/post-purchase-ui-extensions'; import {View} from '../View'; import {rem} from '../../utilities/units'; import styles from './Tiles.css'; interface Extend...
/** * Copyright 2019 The Pennsylvania State University * @license Apache-2.0, see License.md for full text. */ import { LitElement, html, css } from "lit-element/lit-element.js"; import { store } from "@lrnwebcomponents/haxcms-elements/lib/core/haxcms-site-store.js"; import { autorun, toJS } from "mobx"; /** * `sit...
CREATE TABLE ABSENCEDATA ( AD_ID INTEGER NOT NULL, SUBMITTER_NAME VARCHAR(40), SUBMITTER_EMAIL VARCHAR(40), STATE INTEGER, REASON VARCHAR(40), FROM_DATE DATE, TO_DATE DATE, PRIMARY KEY (PCP_ID) );
<?php // application/views/pics/search.php $this->load->view($this->config->item('theme') . 'header'); ?> <h2><?php echo $title; ?></h2> <?=validation_errors(); ?> <?=form_open('pics/search'); ?> <input type="input" name="title" placeholder="Search Title"/><br /> <input type="input" name="tag" placeholder="...
package com.spothero.employmentTest.service import com.spothero.employmentTest.domain.error_handling.CustomException import com.spothero.employmentTest.domain.error_handling.CustomExceptionHandler import com.spothero.employmentTest.entity.RateEntity import com.spothero.employmentTest.repository.RatesRepository import ...
using System; using SpotifyAPI.Web; namespace SpotifyProject.SpotifyPlaybackModifier { public class SpotifyConfiguration : ISpotifyConfigurationContainer { public SpotifyClient Spotify { get; set; } public string Market { get; set; } SpotifyConfiguration ISpotifyConfigurationContainer.SpotifyConfiguration =>...
#!/bin/zsh go build -o app cmd/web/*.go && ./app
package com.guilla.lab.mvp.interactors /** * Created by dino on 20/03/15. */ interface BaseInteractor { fun cancel() fun reset() }
import 'package:etherwallet/service/configuration_service.dart'; // ignore_for_file: flutter_style_todos class ConfigServiceMock implements IConfigurationService { @override bool didSetupWallet() { // TODO: implement didSetupWallet throw UnimplementedError(); } @override String? getMnemonic() { ...
// scalac: -unchecked -Xfatal-warnings class A { def f: Boolean = { val xs = Nil map (_ => return false) true } }
import 'package:fluent_ui/fluent_ui.dart'; import 'package:win32_gamepad/win32_gamepad.dart'; class ABXYButtons extends StatelessWidget { const ABXYButtons({ Key? key, required this.gamepad, }) : super(key: key); final Gamepad gamepad; @override Widget build(BuildContext context) { return Paddi...
using Microsoft.ML.Transforms; using System; namespace Unearth.Demo.MLCustomTransform.CustomTransforms { // The input columns we want to be passed to our transformer public class FlightCodeCMInput { public string FlightCode { get; set; } } // The output columns we want our transformer to...
import 'package:dio/dio.dart'; import 'package:maby_dio/codable.dart'; import 'package:maby_dio/response_data.dart'; abstract class ResponseSerializer<T extends Codable> { RawResponseData serialize(Response response, T? model); } class DefaultResponseSerializer<T extends Codable> extends ResponseSerializer<T> { ...
/* * Copyright (c) 2017-2019 TIBCO Software Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
# frozen_string_literal: true module Identity # This class represents the Openstack Group class Group < Core::ServiceLayer::Model validates :name, presence: { message: 'Please provide a name for this group.' } end end
// Copyright 2019 WHTCORPS INC Project Authors. Licensed under Apache-2.0. use crate::errors::Result; use crate::properties::DecodeProperties; use crate::cone::Cone; use crate::CausetHandleExt; use std::ops::Deref; pub trait BlockPropertiesExt: CausetHandleExt { type BlockPropertiesCollection: BlockPropertiesColl...
package amisync.memory import amisync._ import com.amazonaws.services.s3.AbstractAmazonS3 import com.amazonaws.services.s3.model.{ListObjectsRequest, ObjectListing, S3ObjectSummary} case class MemoryS3( bucket: Bucket, var keys: Set[Key] = Set.empty ) extends AbstractAmazonS3 { override def listObjects(req: Lis...
import 'package:flutter/material.dart'; import 'package:shared/shared.dart'; class AnimatedRotation extends StatelessWidget { final double angle; final Widget child; final AlignmentGeometry alignment; final Offset? origin; final Duration duration; final Curve? curve; const AnimatedRotation({ Key? ke...
#!/bin/bash # some code i wrote to add to revamp that turned out to be unsuitable. # but it corrects a problem in cakelampvm v002 release that i find annoying, # so here it is as its own file. # clean out some old files that were not checked in in mapsdemo. echo Doing some git repository maintenance in fred account. ...
#pragma once /* Copyright © 2018-2019 N. Van Bossuyt. */ /* This code is licensed under the MIT License. */ /* See: LICENSE.md */ #include <libdevice/keys.h> #define KEYBOARD_DEVICE "/dev/kbd...
import type { Option } from './option'; import { some, none } from './option'; export const head = <A>(as: Array<A>): Option<A> => { return as.length === 0 ? none : some(as[0]); };
#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' ) package ${package}; import org.apache.camel.builder.RouteBuilder; public class WelcomeRoute extends RouteBuilder { public static final String ROUTE_ID = "processGreeting"; public static final String FROM = "direct:welcome-r...
'use strict' const webpack = require('./helpers/compiler') const { loader } = require('./helpers/compilation') const { copyFile, deleteFile } = require('./helpers/fs'); describe('Loader', () => { test('Default', () => { const config = { loader: { options: { plugins: [] } } ...
class AddMorePartsAttrib < ActiveRecord::Migration[6.1] def change add_column :parts, :part_num, :string add_column :parts, :revision, :int add_column :parts, :qty_per, :int add_column :parts, :order_qty, :int add_column :parts, :design_eng_comments, :string add_column :parts, :stock, :int e...
package io.opentargets.etl.backend.target import io.opentargets.etl.backend.EtlSparkUnitTest import io.opentargets.etl.backend.target.GeneWithLocationTest.getHpaDataframe import org.apache.spark.sql.{DataFrame, Dataset, SparkSession} import org.scalatest.matchers.should.Matchers.convertToAnyShouldWrapper object GeneW...
package ru.luckycactus.steamroulette.presentation.features.game_details.model import ru.luckycactus.steamroulette.domain.games.entity.GameHeader import ru.luckycactus.steamroulette.domain.games.entity.MetacriticInfo import ru.luckycactus.steamroulette.domain.games.entity.PlatformsAvailability import ru.luckycactus.ste...
using System.Collections.Generic; namespace Uskr.IR { public class IRAssembly : IntermediateRepresentation { public List<IRMethod> Methods { get; set; } = new List<IRMethod>(); public List<IRMember> Members { get; set; } = new List<IRMember>(); public List<IREmbedded> EmbeddedResources ...
package evbadger import ( "encoding/binary" "sort" "sync" "time" "github.com/alxarch/evdb/blob" "github.com/dgraph-io/badger/v2" ) // Compaction merges event snapshot compacting data to hourly batches func (db *DB) Compaction(now time.Time) error { var ( wg sync.WaitGroup errc = make(chan error, len(db....
require 'test_helper' class ConferencesControllerTest < ActionController::TestCase fixtures :conferences, :speakers, :presentations setup do @conference = conferences(:ruby) end test "should get index" do get :index assert_response :success assert_not_nil assigns(:conferences) end test "...
# retro-snaker 一个简单的贪吃蛇程序,Win32. 基于EasyWindow库 A Simple retro-snaker Win32 program, based on EasyWindow
using System; using System.Windows.Forms; namespace OpenSkieScheduler3.Controls.Buttons { public class SaveSchedule: Button { public SaveSchedule() { InitializeComponent(); } void InitializeComponent() { Click += new EventHandler( SaveSchedule_Click ); } [STAThread] void Sa...
import React from "react"; import { renderWithRedux } from "../../services/TestHelper"; import NearbyScreen from "../NearbyScreen"; import "../../common/String.extension"; test(`NearbyScreen`, async () => { renderWithRedux(<NearbyScreen />); });
/* * Copyright 2018 Kaidan Gustave * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
import { Shaders, Node, GLSL } from 'gl-react'; import React from 'react'; import mixArrays from '../utils/mixArrays'; const shaders = Shaders.create({ sepia: { frag: GLSL` precision highp float; varying vec2 uv; uniform sampler2D t; uniform mat4 sepia; void main () { gl_F...
import { EmmetConfiguration, getEmmetCompletionParticipants } from 'vscode-emmet-helper'; import { getLanguageService, HTMLDocument } from 'vscode-html-languageservice'; import { CompletionList, Hover, Position, SymbolInformation, CompletionItem, CompletionItemKind } from 'vscode-languageserver'...
PARAMETERS ( PARENT_RECORD_ID VARCHAR ) SELECT po.date, po.outcome, po.infantid, po.rejected, po.protected, po.project, po.remark, po.performedby FROM pregnancy_outcomes po WHERE po.pregnancyid = (SELECT p.lsid FROM pregnancies p WHERE p.objectid = PARENT_...
# Aprendendo Python Resoluções de exercícios básicos, meus primeiros passos com Python
package tracing import ( "context" "time" "github.com/asim/nitro/v3/metadata" ) const ( UniqueIDKey = "unique_id" ) // NewContextWithOld 为请求生成不依赖于父一级服务超时设置的请求 func NewContextWithOld(ctx context.Context) context.Context { // nil if ctx == nil { return nil } md, ok := metadata.FromContext(ctx) if !ok { ...
<!-- <navbar-left></navbar-left> --> <div class="row heading"> <a href="/"> <div class="col-sm-6 col-xs-3 heading-avatar"> <img src="/image/logo.png" style="width:161px;height:96px;margin-top:-26px;"> </div> </a> <div class="col-sm-1 col-xs-1 heading-dot pull-right"> <i class="fa fa-ellipsis-v fa-2...
set echo off set feedback off set linesize 512 prompt prompt Primary Keys for Connected User prompt select table_name, constraint_name, constraint_type, status from user_constraints where constraint_type = 'P' order by table_name, constraint_name;
/* * Copyright 2019 IIT Software GmbH * * IIT Software GmbH licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
module.exports = async function (context, message) { // If JSON parsing fails when a message is sent to the fews-eventcode queue the message // will remain on the dead letter queue. It seems that some core forecasting engine messages // can contain invalid JSON, causing this scenario. To workaround this temporari...
library streamy.generator.template_loader; import 'dart:async'; import 'dart:io' as io; import 'package:mustache/mustache.dart' as mustache; /// The location of templates bundled with Streamy. It assumes Streamy is run /// from the root of the project. This value is used by default if no specific /// value is provide...
import 'package:aves/model/source/section_keys.dart'; import 'package:aves/utils/time_utils.dart'; import 'package:aves/widgets/common/extensions/build_context.dart'; import 'package:aves/widgets/common/grid/header.dart'; import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; class DaySectionHeader<T...
// roomList export const INIT_ROOM_LIST = 'ROOM_INIT_LIST'; export const ADD_ROOM_ITEM = 'ROOM_ADD_ITEM'; export const REMOVE_ROOM_ITEM = 'REMOVE_ROOM_ITEM'; export const PUSH_HISTORY = 'ROOM_PUSH_HISTORY'; export const UNSHIFT_HISTORY = 'ROOM_UNSHIFT_HISTORY'; export const MERGE_ROOM_INFO = 'MERGE_ROOM_INFO'; export c...