text stringlengths 27 775k |
|---|
// Copyright (C) 2020 Authlete, Inc.
//
// 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... |
# __init__.py
# Author: Jacob Schreiber <jmschreiber91@gmail.com>
from kiwano import kiwano
__version__ = '0.1.1' |
DROP VIEW scheduler.events_attendees_view;
CREATE TYPE scheduler.accessRoleType AS ENUM
('freeBusyReader','reader', 'writer', 'owner');
ALTER TABLE scheduler.subscriptions ALTER COLUMN access_role DROP DEFAULT;
ALTER TABLE scheduler.subscriptions ALTER COLUMN access_role TYPE
scheduler.accessRoleType USING access_role... |
CREATE VIEW [dbo].[ViewDiscography]
AS
SELECT dbo.MusicTracks.ID, dbo.MusicTracks.ArtistID,
dbo.MusicTracks.Title, dbo.Artists.Name AS Artist
FROM dbo.MusicTracks INNER JOIN
dbo.Artists ON
dbo.MusicTracks.ArtistID = dbo.Artists.ID
WHERE (dbo.MusicTracks.Activ = 1)
|
package jspha.alder.raw.event
import org.scalajs.dom
import scala.scalajs.js
/**
* Created by tel on 5/31/16.
*/
@js.native
trait KeyboardEvent extends Event {
type NativeEvent = dom.KeyboardEvent
def getModifierState(key: String): Boolean
val altKey: Boolean
val ctrlKey: Boolean
val metaKey: Boolean
... |
<?php
namespace paulzi\cmyii\widgets;
use Yii;
use paulzi\cmyii\Cmyii;
use yii\base\Widget;
use paulzi\cmyii\models\Block;
use paulzi\cmyii\models\Page;
use paulzi\cmyii\models\Layout;
abstract class BlockWidget extends Widget
{
/**
* @var Block
*/
public $block;
/**
* @var Page
*/
... |
require 'formula'
class PysideTools < Formula
homepage 'http://www.pyside.org'
url 'https://github.com/PySide/Tools/archive/0.2.15.tar.gz'
sha1 'b668d15e8d67e25a653db5abf8f542802e2ee2dd'
head 'git://gitorious.org/pyside/pyside-tools.git'
depends_on 'cmake' => :build
depends_on 'pyside'
def install
... |
package metrics
import (
"sync"
"github.com/kiteco/kiteco/kite-golib/complete/data"
"github.com/kiteco/kiteco/kite-go/client/component"
)
type smartSelectedByEditor map[data.Editor]uint
func (p smartSelectedByEditor) flatten(out map[string]interface{}) map[string]interface{} {
for editor, val := range p {
//... |
(ns cc.models.grid
(:require [cc.models.crud :refer [db Query]]
[cc.models.util :refer [parse-int]]))
(defn convert-search-columns [fields]
(let [fields (map #(str "COALESCE(" % ",'')") fields)]
(into [] fields)))
(defn grid-sort [order-column order-dir]
"Creates sorting criteria (ORDER BY) for ... |
package com.skidis.wordle
package input
import TestFixtures.TestHintProps
import org.scalatest.funspec.AnyFunSpec
import org.scalatest.matchers.must.Matchers
class BasicResultAndGuessValidatorSpec extends AnyFunSpec with Matchers {
object ValidatorFixture extends BasicResultAndGuessValidator with TestHintProps {
... |
import { createMachine, assign, DoneInvokeEvent } from "xstate";
import { getBaseQuery, getPollQuery } from "../libs/utils";
import { DeparturesResponse, Search } from "../types";
import api from "../libs/api";
interface Context {
retries: number;
origin?: string;
destination?: string;
adult?: number;
date?:... |
import React, { useCallback, useEffect } from 'react';
import { Linking, StatusBar } from 'react-native';
import { useTheme, useTranslation } from '../hooks/';
import { Block, Button, Image, Text } from '../components/';
const Pro = () => {
const { t } = useTranslation();
const { assets, colors, gradients, sizes ... |
package com.tvd12.ezyhttp.core.test.codec;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Co... |
class OpengrmThrax < Formula
homepage "http://www.openfst.org/twiki/bin/view/GRM/Thrax"
url "http://www.openfst.org/twiki/pub/GRM/ThraxDownload/thrax-1.2.0.tar.gz"
sha256 "23112837b64634685e34681758b42b55d09b97b999c2f8a43c0002b870f98fc9"
bottle do
cellar :any
sha256 "f032fee5025fab68762f3deb51d685efcd6... |
import Control.Applicative
import Control.Monad
import System.IO
-- exp_series :: Double -> [Double]
-- exp_series a = scanl (*) 1.0 [ a/k | k <- [1..] ]
--
-- my_exp :: Double -> Int -> Double
-- my_exp a n = sum (take n (exp_series a))
--
solve :: Double -> Double
solve 0.0 = 1.0
solve x = pow 1.0 5
pow :: Double... |
namespace TodoTemplate.App.Components;
public partial class Header : IAsyncDisposable
{
[Parameter] public EventCallback OnToggleMenu { get; set; }
[Inject]
public IStateService StateService { get; set; } = default!;
[Inject]
public TodoTemplateAuthenticationStateProvider TodoTemplateAuthenticat... |
package link
import (
"unsafe"
"github.com/cilium/ebpf"
"github.com/cilium/ebpf/asm"
"github.com/cilium/ebpf/internal"
"github.com/cilium/ebpf/internal/unix"
"golang.org/x/xerrors"
)
var haveProgAttach = internal.FeatureTest("BPF_PROG_ATTACH", "4.10", func() (bool, error) {
prog, err := ebpf.NewProgram(&ebpf... |
import type { Command } from "../command.ts";
import type { IArgument, IOption } from "../types.ts";
interface ICompletionAction {
arg: IArgument;
label: string;
name: string;
cmd: string;
}
/** Generates zsh completions script. */
export class ZshCompletionsGenerator {
private actions: Map<string, IComplet... |
package com.cactusteam.money.data.io
import android.content.Context
/**
* @author vpotapenko
*/
object ExporterFactory {
val XLS_TYPE = 0
val CSV_TYPE = 1
fun create(context: Context, type: Int): IExporter {
if (type == XLS_TYPE) {
return XlsExporter(context)
} else if (typ... |
package pe.startapps.alerts
import android.content.Context
import android.os.Bundle
import android.view.View
import android.view.animation.AnimationUtils
import com.candyhouse.R
import com.candyhouse.utils.L
import kotlinx.android.synthetic.main.alert_check.*
import pe.startapps.alerts.ext.AlertType
class CheckAlert... |
{-# LANGUAGE DeriveFunctor #-}
module Comonads.RoseTree
( Tree (..)
, TreeZipper (..)
, Ancestor (..)
, next
, prev
) where
import Control.Comonad (Comonad (..))
data Tree a = Node a [Tree a]
deriving (Show, Functor)
instance Comonad Tree where
extract ... |
package ii_collections
fun example1(list: List<Int>) {
// If a lambda has exactly one parameter, that parameter can be accessed as 'it'
val positiveNumbers = list.filter { it > 0 }
val squares = list.map { it * it }
}
/**
Common task for working with collections.
Look through the Shop API, which all the... |
package config
// Loader 定义统一的配置加载接口
type Loader interface {
Load() (*Config, error)
Save(*Config) error
}
// Config config 数据结构体
type Config struct {
Main struct {
Sync bool `ini:"sync"`
ConcurrentNum int `ini:"concurrentNum"`
Timeout int64 `ini:"timeout"`
LoginShell string `ini:"l... |
# coding=utf-8
from django.db import models
from modules.project_manage.models import Project
SERVICE_COMPANY = (
('1', u'邦泰'),
('2', u'杰博'),
)
class SocialSecurityDetail(models.Model):
""" 社保明细 """
computer_number = models.CharField(u"社保电脑号", max_length=200, blank=True)
service_company = models.CharField(u"服务... |
## [0.0.1] - 2019/04/12
## [0.0.2] - 2019/04/12
## [0.0.3] - 2019/04/12
## [0.1.0] - 2019/04/12
## [0.1.1] - 2019/04/12
## [0.1.2] - 2019/04/13
## [0.1.3] - 2019/04/15
## [0.1.4] - 2019/04/29 |
package com.rslakra.testcases.dto;
/**
* Author: Rohtash Singh Lakra
* Created: 5/26/20 9:25 PM
* Version: 1.0.0
*/
public class AddressDTO {
private Long id;
private String line1;
private StateDTO state;
private String city;
private String zip;
public Long getId() {
return id;
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
session_start();
if($_SESSION!=null AND $_SESSION['privilegio']=='ADM' || $_SESSION['privilegio']=='SADM') {
class Usuario extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('form');
$th... |
/*
* Copyright 2010 Google Inc.
*
* 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 to in w... |
/// Trait for types that can be set back to an initial state.
pub trait Resettable {
fn reset(&mut self);
}
pub mod ball;
pub mod game;
pub mod net;
pub mod paddle;
pub mod score_card;
pub mod ui;
|
module Levelup
class Configuration
VERSION = '0.9.6'
DEFAULT_API_VERSION = :v15
class << self
attr_accessor :base_api_url
end
self.base_api_url = 'https://api.thelevelup.com/'
def self.api_url(version)
base_api_url + VERSIONS[version]
end
private
VERSIONS = {
... |
const fs = require('fs')
const lowerFirst = require('lodash/lowerFirst')
const routeTemplate = fs
.readFileSync('./src/router.remplate.js')
.toString('utf8')
const routes = fs.readdirSync('./src/views').map(
route => ` {
path: '/${route.split('.')[0]}',
name: '${route.split('.')[0]}',
componen... |
use crate::hub::{Mail, MailAgent, MailSource};
use lettre::builder::EmailBuilder;
pub struct TestSource {
name: String,
}
impl TestSource {
pub fn new(name: String) -> Self {
Self { name }
}
}
impl MailAgent for TestSource {
fn join(&mut self) {}
}
impl MailSource for TestSource {
fn start(... |
{-|
Copyright : Copyright (c) 2016, RISE SICS AB
License : BSD3 (see the LICENSE file)
Maintainer : rcas@acm.org
Operand Graph.
-}
{-
Main authors:
Roberto Castaneda Lozano <rcas@acm.org>
This file is part of Unison, see http://unison-code.github.io
-}
module Unison.Graphs.OG
(fromFunction, fromBl... |
# Copyright 2020 Google, Inc
#
# 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 to in writing, ... |
package com.hendraanggrian.openpss
import com.fatboyindustrial.gsonjodatime.Converters
import com.google.gson.GsonBuilder
@Suppress("SpellCheckingInspection")
fun GsonBuilder.registerJodaTime(): GsonBuilder = also {
Converters.registerLocalDate(it)
Converters.registerLocalTime(it)
Converters.registerLocal... |
package com.asapp.churros.rx
import io.reactivex.Completable
import io.reactivex.Single
import io.reactivex.schedulers.TestScheduler
import org.junit.Assert.*
import org.junit.Test
import java.util.concurrent.TimeUnit
class RxUnitTest {
@Test
fun testAndThenRun() {
var timesCalled = 0
val test... |
exports.up = (knex) => knex.schema.withSchema('main').alterTable('users', (table) => {
table.string('userName').nullable().alter();
table.string('phoneNumber', 24).nullable().alter();
});
exports.down = (knex) => knex.schema.withSchema('main').alterTable('users', (table) => {
table.string('userName').notNu... |
package lastik.quantities.dimensions
import lastik.quantities.UnitsOfMeasurement
trait InductanceUnits extends UnitsOfMeasurement
case object Henry extends InductanceUnits {
val aliases = List("H", "Henry", "henry")
val factor = 1.0
} |
/*
* Copyright (C) 2009, Ilya Yanok, Emcraft Systems, <yanok@emcraft.com>
*
* Configuration settings for the Dave/DENX QongEVB-LITE board.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation... |
import {
ApplicationRef,
ComponentRef,
EmbeddedViewRef
} from '@angular/core';
import {
inject,
TestBed
} from '@angular/core/testing';
import {
BrowserDynamicTestingModule
} from '@angular/platform-browser-dynamic/testing';
import {
expect
} from '@skyux-sdk/testing';
import {
DynamicComponentTestC... |
import React from "react";
import { useTranslation } from "react-i18next";
import ButtonTag from "components/Tag/ButtonTag";
import { Section } from "components/CreatePost/StyledModal";
import { WhiteSpace } from "antd-mobile";
import SubTitle from "./SubTitle";
import styled from "styled-components";
import { theme, m... |
package liquibase.statement.core;
import java.util.LinkedHashMap;
import java.util.Map;
import liquibase.change.ColumnConfig;
import liquibase.statement.AbstractSqlStatement;
public class InsertStatement extends AbstractSqlStatement {
private String catalogName;
private String schemaName;
private String ... |
using System;
namespace Colourful.Internals
{
/// <summary>
/// Keys for values in <see cref="IConversionMetadata" /> that are used by the built-in color spaces.
/// </summary>
public static class ConversionMetadataKeys
{
/// <summary>
/// White point of the color converted. The va... |
# frozen_string_literal: true
module RuboCop
module Formatter
# This formatter displays the report data in format that's
# easy to process in the Emacs text editor.
# The output is machine-parsable.
class EmacsStyleFormatter < BaseFormatter
def file_finished(file, offenses)
offenses.eac... |
from enum import Enum
import random
MAX_SCORES = 100
# Enum for identify types of players
class TypeOfPlayers (Enum):
PLAYER = 'Player'
COMPUTER = 'Computer'
def game_is_ended (scores):
"""
Check if the game is ended with the scores table.
@type scores: Dict
@param scores: The Dict of scores of pl... |
# coding: utf-8
require 'spec_helper.rb'
describe ONIX::Code, "instantiation" do
it "should raise an error for an invalid codelist number" do
expect { ONIX::Code.new(500, 1) }.to raise_error(LoadError)
end
it "should find the codelist from a valid number" do
expect(ONIX::Code.new(1,1).list).to be_a_ki... |
ts=$(export TZ="Asia/Singapore";date +%Y%m%d-%H%M)
python getBusyBusStops.py > busStopsWithLoads.cfg
cp busStopsWithLoads.cfg data/busStopsWithLoads-$ts.dat
|
# frozen_string_literal: true
require "spec_helper"
RSpec.describe "S3Helper", type: :rake do
context "#extract_cdn_uri" do
it "return a correct cdn url" do
input = "https://s3.amazonaws.com/assets-production.applicaster.com/path/to/file.zip"
output = "https://assets-production.applicaster... |
package pl.marcin.robolectricresearch
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import org.junit.Test
import org.junit.runner.RunWith
import pl.marcin.robolectricresearch.mvptest.FragmentMvp
import pl.marcin.robolectricresearc... |
> "You know, hope is a mistake. If you can't fix what's broken, you'll, uh... you'll go insane." - Max Rockatansky
# Magento 2 Cache Clean
A faster drop in replacement for `bin/magento cache:clean` with a file watcher.
The file watcher automatically cleans affected cache types in the Magento 2
cache during developme... |
#!/bin/bash
grep "el..*wo" || exit 0
exit 1
|
export './widget.dart';
export './story.dart';
export './decorator.dart';
|
<div>
<livewire:datatable
model="App\Models\User"
name="users"
searchable="name"
exclude="updated_at"
hidden="email_verified_at"
hideable="select"
permission="users-create"
/>
{{-- <livewire:tables.usertable
table="user"
earchable="name"
exclude="updated_at"
hidden="email... |
import fs from 'fs-extra';
import glob from 'glob';
import memoize from 'lodash.memoize';
export class SystemDetector {
private getSystem = memoize(() => {
if (
process.platform === System.Win32 &&
(/64/.test(process.arch) || process.env.PROCESSOR_ARCHITEW6432)
) {
return System.Win64;
... |
import Vue from 'vue'
import App from './App.vue'
import VueFlashMessage from 'vue-flash-message';
import VTooltip from 'v-tooltip'
import store from './store'
import router from './router'
require('vue-flash-message/dist/vue-flash-message.min.css');
Vue.use(VTooltip);
Vue.use(VueFlashMessage);
new Vue({
el: '#app'... |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package xyz.yhsj.khttp.extensions
import xyz.yhsj.khttp.structures.files.FileLike
import java.io.File
import j... |
module Interp
( runScript
) where
import Interp.Impl
( runScript
)
|
use std::{
cmp::Ordering,
iter::Sum,
ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign},
};
use bitcoinsuite_core::{BitcoinSuiteError, Result};
use crate::SlpError;
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct SlpAmount {
base_amount: i128,
}
impl Sl... |
package jp.juggler.fadownloader.table
import android.content.ContentResolver
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.graphics.Color
import android.net.Uri
import android.provider.BaseColumns... |
// General api to access data
import ApiConstants from './ApiConstants';
export default function api(path: any, params: any, method: any, token: any) {
let options;
options = {
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
...(token && { token: token }),
... |
/**
* CSV record parser implementation.
*/
package org.beanio.stream.csv; |
using System;
public static class StringModify {
/* returns given string with first char on upper case */
public static string FirstToUpper(string str) {
if(str == null)
return null;
return (Char.ToUpper(str[0]) + str.Substring(1));
}
}
|
# VimMarkdown::Syntax
Syntax is a VimMarkdown sub-plugin activated when
the markdown's metadata key `Plugins:` contains the string `"syntax"`.
It adds the following feature:
* Folds the markdown's metadata header
|
# nexmo-client
ruby client for nexmo api built on saddle
## License
nexmo-client is released under the [MIT License](http://www.opensource.org/licenses/MIT). |
/* eslint-disable @typescript-eslint/naming-convention */
import { MessageEmbed } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import axios from "axios";
import * as cheerio from "cheerio";
import styles from "ansi-styles";
import Command from "~/core/Command";
import Cooldown from "~/... |
2020年10月12日22时数据
Status: 200
1.唐艺昕产后身材
微博热度:4790571
2.青岛本次疫情已确诊71例系谣言
微博热度:2802886
3.雅诗兰黛双11居然限时
微博热度:2533709
4.鲁UT4923出租车
微博热度:2112687
5.胖虎叫易烊千玺易大爷
微博热度:2098549
6.娜扎生图
微博热度:1868618
7.台湾间谍以学者身份套取情报
微博热度:1248678
8.虎牙斗鱼宣布合并
微博热度:943568
9.瑞幸咖啡被罚200万元
微博热度:896009
10.当李雪琴听到有人喊王建国
微博热度:861031
11.使徒行者3
微... |
package com.zihler.products;
public interface ViewAllProducts {
void callWith(ProductsPresenter presenter);
}
|
<!DOCTYPE html>
<html>
<title>
<head>
Fetch data fromdatabse</head>
</title>
<body>
<table align="center" border="1px" style="width:600px; line-height:40px;">
<tr>
<th colspan="4"><h2>Student Record </h2></th>
</tr>
<tr>
<th>id</th>
<th>Title</th>
<th>Category</th>
<th>Brand</th>
<th>Avalibility</th>
<th>KeyFeatures</t... |
<#
.SYNOPSIS
This script selects local datastore based on the following rules:
- Name starts with ds-local-Datastore
- Datastore FreespaceGB > 400 Gb
- VM count on the datastore < 2
.PARAMETER VIServer
vCenter address (Example "10.0.1.16")
.PARAMETER VIUserName
vCenter username (Example "Administrator")
.PARAMETER... |
---
layout: doc_full
title: "WebHooks"
description: "Get notified about relevant events via web callbacks."
section: WebHooks
topic: true
---
When you create a [CrossBorder Request](/docs/cross_border/welcome) and you're
left waiting for it to reach destination, or when you create a
[Payment](/docs/payments/welcome/)
... |
#!/bin/sh
if [ $USER == "root" -o $UID -eq 0 ];then
find /etc -regextype posix-extended -regex ".+\.pac(new|save)" 2> /dev/null
DIFFPROG=kompare pacdiff
else
echo "Insufficient Permissions"
exit
fi |
{-# LANGUAGE NoStrict #-}
{-# LANGUAGE NoStrictData #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.Text.Span where
import qualified Control.Monad.State.Layered as State
import qualified Data.Generics.Traversable.Deriving as GTraversable
import qualified Foreign.Storable.Deriving as Storable
im... |
package application
import (
"encoding/json"
"fmt"
"github.com/hb0730/auto-sign/utils"
"github.com/hb0730/go-request"
"github.com/mritd/logger"
)
// Famijia Fa米家签到
type Famijia struct {
Headers map[string]string
}
func (f Famijia) Start() error {
logger.Info("[Famijia] sign start ...")
if len(f.Headers) == 0... |
DROP DATABASE IF EXISTS office_employeesDB;
CREATE database office_employeesDB;
USE office_employeesDB;
CREATE TABLE department (
id INT NOT NULL AUTO_INCREMENT,
name VARCHAR(30) NULL,
PRIMARY KEY (id)
);
INSERT INTO department (name)
VALUES("Sales");
INSERT INTO department (name)
VALUES("Engineering");
INS... |
module Marcxella
# A control field (00X). Control fields have a value but no subfields
# @since 0.1.0
# @attr_reader [String] tag the field tag
# @attr_reader [String] value the field value
# @attr_reader [Array] For compatability. Always an empty array
# @see https://www.loc.gov/marc/bibliographic/bd00x.h... |
/*
* Copyright (C) 2017 Klaus Reimer <k@ailis.de>
* See LICENSE.md for licensing information.
*/
import { quadgrams } from "../../utils/Quadgrams";
import { FastString } from "../../utils/FastString";
import { Alphabet } from "../../utils/Alphabet";
import { KeywordDecoder } from "../converters/KeywordDecoder";
imp... |
require 'rubygems'
require 'q1/reverse_words'
RSpec.describe Q1::ReverseWords, '#reverse' do
before(:example) do
@reverser = Q1::ReverseWords.new
end
context 'with a single word' do
it 'returns that word' do
result = @reverser.reverse('One')
expect(result).to eq 'One'
end
end
contex... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class Const : MonoBehaviour
{
// current game time
public static int year;
public static int month;
public static int day;
public static string dateString;
// controller that pressing decision ... |
CREATE PROCEDURE [IQ].[PurgeEmailDelivery]
@daysToKeep INT = 90
AS
BEGIN
DECLARE @trimDate AS DATETIME2 = DATEADD(day, (@daysToKeep * -1), CURRENT_TIMESTAMP);
-- This DECLARE assignment sets @@ROWCOUNT to 1
WHILE @@ROWCOUNT > 0
BEGIN
-- prevent lock escalation by deleting in batches
DELETE TOP(1000) FROM [IQ... |
<?php
namespace App\Controller\Admin;
use App\Entity\Hum;
use App\Entity\Institution;
use App\Form\InstitutionType;
use App\Repository\InstitutionRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\HttpFoundatio... |
-- Revert auth:custom-type/jwt-token from pg
BEGIN;
DROP TYPE IF EXISTS auth.jwt_token CASCADE;
COMMIT;
|
using SampleSite.ServiceReference1;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SampleSite
{
public partial class _Default : Page
{
protected void Page_Load(object sender, EventA... |
using NSubstitute;
using NUnit.Framework;
namespace CleverCrow.Fluid.Dialogues.Actions.GameObjects {
public class SetActiveTest {
public class SetValueMethod {
[Test]
public void It_should_set_the_GameObject_active_to_true () {
var go = Substitute.For<IGameObjectWrap... |
class CreateBusinesses < ActiveRecord::Migration[5.1]
def change
create_table :businesses do |t|
t.string :name_business
t.string :first_name_owner
t.string :last_name_owner
t.string :middle_name_owner
t.string :address_business
t.string :city_business
t.string :province_... |
#!/usr/bin/env bash
#
# Copyright (C) 2017 ScyllaDB
#
set -eu -o pipefail
echo "Swagger $(swagger version)"
rm -rf internal/client internal/models
swagger generate client -A mermaid -f mermaid.json -t ./internal
|
<?php
namespace Fousky\Component\iDoklad\Functions\ProformaInvoices;
use Fousky\Component\iDoklad\Model\Other\ZipBase64Model;
/**
* @see https://app.idoklad.cz/developer/Help/v2/cs/Api?apiId=GET-api-v2-ProformaInvoices-id-GetPdfCompressed
*
* @author Lukáš Brzák <brzak@fousky.cz>
*/
class GetProformaInvoicePdfCo... |
package delivery
import (
"fmt"
"net/http"
"testing"
"github.com/anytool/go-binance/v2/common"
"github.com/stretchr/testify/suite"
)
type serverServiceTestSuite struct {
baseTestSuite
}
func TestServerService(t *testing.T) {
suite.Run(t, new(serverServiceTestSuite))
}
func (s *serverServiceTestSuite) TestPi... |
package com.dounine.tractor.model.models
import com.dounine.tractor.model.types.currency.CoinSymbol.CoinSymbol
import com.dounine.tractor.model.types.currency.ContractType.ContractType
import com.dounine.tractor.model.types.currency.Direction.Direction
import com.dounine.tractor.model.types.currency.EntrustStatus.Entr... |
/**
* Created by ouyangshan09 on 2017/3/7.
*/
module.exports = {
NODE_ENV: '"development"'
}; |
<div class="row">
<div id="map">
<h1>Hello</h1>
</div>
<div id="trips">
</div>
</div>
<div id="floating">
+
</div> |
rsync() {
test "${1: -1}" = "/" && echo "Watch out for trailing slash!" >/dev/stderr
echo "Using 'rsync -vaLP (implies rlptgoD)':" >/dev/stderr
echo "--copy-links (-L) means to transform into dir/files, not keep synlinks" >/dev/stderr
#$(which rsync) --verbose --recursive --copy-links --perms --executabi... |
namespace SoftTeam.SoftBar.Core.Misc
{
public static class Constants
{
public const string ValidHotKeys = "abcdefghijklmnopqrstuvwxyzåäö0123456789";
// General constants
public const int SPACE = 0;
public const int LEFT_MARGIN = 3;
public const int TOP_MARGIN = 2;
... |
module Main where
import System.IO
import Types.Syntax
import System.Environment as Sys
import qualified Types.LazyBDD as BDD
import Types.Subtype
import Types.Metafunctions
import qualified Types.SyntacticOpTypes as Syn
import qualified Types.SemanticOpTypes as Sem
import Types.CompareOpTypes
import Types.BaseEnv
imp... |
#!/bin/sh
set -e
CONTAINER=martinez/alpine-meteor-example # <-- Name your container
TAG=latest # <-- Tag for your container
REGISTRY=false # <-- If you use other then github repo
BUILD_DIR=`pwd`/.build # <-- This is where meteor build your files.
# Folder will be created and after b... |
# frozen_string_literal: true
# @resource Tenants
#
# All resources in the system are relative to a particular tenant application.
PUNK.route("tenants") do
require_session!
# Retrieve the list of tenants visible to the authenticated user.
# @path [GET] /tenants
# @response [Array<Tenant>] 200 List of tenants
... |
---
id: 4731
full_name: "dongfang91/hpc-ml"
images:
- "dongfang91-hpc-ml-centos7-python3.7-transformers4.4.1"
---
|
// @flow
import { type ElementConfig } from 'react';
import { makeAsyncSelect } from './Async';
import { makeCreatableSelect } from './Creatable';
import manageState from './stateManager';
import Select from './Select';
const SelectCreatable = makeCreatableSelect<ElementConfig<typeof Select>>(
Select
);
const Selec... |
using System;
using System.Collections.Generic;
using System.Linq;
using EnemyComponent;
using Interface;
using JetBrains.Annotations;
using ScriptsLevels.Level;
using UnityEngine;
namespace Towers
{
[RequireComponent(typeof(ITargetsProvider<Enemy>))]
[RequireComponent(typeof(IAttackBehaviour))]
[RequireC... |
using System;
using System.ComponentModel.DataAnnotations;
namespace BellumGens.Api.Core.Models
{
public class Promo
{
[Key]
public string Code { get; set; }
public decimal Discount { get; set; }
public DateTimeOffset? Expiration { get; set; }
}
} |
///
/// Copyright © 2016-2021 The Thingsboard Authors
///
/// 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.