text
stringlengths
27
775k
package test import ( "github.com/small-ek/antgo/os/cron" "log" "os" "testing" ) type testTask struct { } func (t *testTask) Run() { log.Println("hello world2") } func TestCron(t *testing.T) { crontab := cron.Default() // 实现接口的方式添加定时任务 task := &testTask{} log.Println(111) if err := crontab.AddByID("1", "*...
--- layout: hackbar title: My First PR hacktober2020 author: Dhaval Maniyar --- Hi! I'am new to Open Source. Looking forward to contribute more, and learn a lot of new things. Excited to take part in Hacktober Fest!
{-# LANGUAGE QuasiQuotes, OverloadedStrings, TypeSynonymInstances, FlexibleInstances #-} module Y2018.M04.D06.Exercise where import Data.Aeson import Database.PostgreSQL.Simple import Database.PostgreSQL.Simple.SqlQQ -- below imports available via 1HaskellADay git repository import Data.LookupTable import Store.S...
package com.thetonrifles.material.cards; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import java.util.ArrayList; import java.util.List; /** * Adapter to be used for rendering cards in list */ public ...
<?hh // taking references class C2 { public function __invoke(&$a0) { var_dump($a0); return $a0++; } } $x = 0; $c = new C2; $c(&$x); var_dump($x); // $x = 1 call_user_func_array($c, array(&$x)); var_dump($x); // $x = 2
namespace DataAPI.Context { public partial class UniOpetDbContext : System.Data.Entity.DbContext { public UniOpetDbContext() : base("UniOpetConnection") { Configuration.LazyLoadingEnabled = false; Configuration.ProxyCreationEnabled = false; } p...
namespace Cronofy.Requests { using Newtonsoft.Json; /// <summary> /// Class for the serialization of an Smart Invite cancel request. /// </summary> public sealed class SmartInviteCancelRequest { /// <summary> /// Initializes a new instance of the <see cref="SmartInviteCancelReq...
--- pid: 30e47c98-ad79-4429-b718-227ffe4756f2 idno: TRL-6.4.1-R08 thumbnail: https://dlc.services/thumbs/7/4/30e47c98-ad79-4429-b718-227ffe4756f2/full/400,339/0/default.jpg manifest: https://dlc.services/iiif-resource/delft/string1string2string3/kaartenproject-2007/TRL-6.4.1-R08 order: '336' layout: map collection: kaa...
# # Function that writes the gmd3D to a pdb file # # If called already with the grid of the gmd3D computed function gmd3D_write(mysim :: Simulation, grid :: Vector{GMD3DGrid}, output :: String; scale=nothing) n = length(grid) if scale == nothing minrho = grid[1].rho maxrho = grid[1].rho for i in 2:n...
## 容器化技术的演变 > 参数说明: > Infrastructure:基础设施 > Opreation System:操作系统 > Hypervisor:虚拟机监控程序(将基础设施资源分成固定的多份:windows安装VMware,安装CentOS之后就会根据你对CentOS配置将电脑的资源分配出固定的部分) > Application:项目配置和项目代码等信息 > Image:docker中的image模版 > Container:docker中通过image模版创建出来的一个个实例 ### 物理机时代 ![物理机架构](../resource/docker/docker-物理机架构.png) * 部署非常慢 * 成本很高 ...
import { ImportDeclarationStructure } from "ts-morph"; import { DataModel } from "../data-model/DataModel"; type ImportContainerType = { qobjects: Set<string>; clientApi: Set<string>; service: Set<string>; genModel: Set<string>; genQObjects: Set<string>; genServices: { [key: string]: Set<string> }; }; exp...
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:async'; import 'dart:io'; import 'package:async/async.dart'; import 'package:test_api/sr...
select * from xafnfc.acvw_all_ac_entries c where c.BATCH_NO = 1010 and c.AC_BRANCH = '030' and c.TRN_DT = '31/08/2012'
# JDBC (Java DataBase Connectivity) - JDBC는 java.sql 패키지에 있다. - jdbc Oracle에서 복사해서 사용하는 방법을 한다. - path: `C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib` - ojdbc6을 복사하여 워크스페이스 디렉토리에 붙여넣는다. - character set encoding 설정: utf-8 - JDBC 사용객체 - DriverManager - Connection객체를 만들어준다. - <B>`Class.forName()...
import { closest, distance } from '../src/string/distance'; describe('string library', () => { it('should support calculate distance of strings', () => { expect(distance('', '')).toBe(0); expect(distance('abcd', 'abcd')).toBe(0); expect(distance('abcd', 'abc')).toBe(1); expect(distance('abcd', '12...
-- call account.check_if_account_name_exists (@err, 'Lacoste'); DROP PROCEDURE IF EXISTS account.check_if_account_name_exists; DELIMITER $$ CREATE PROCEDURE account.check_if_account_name_exists(OUT error_code INT ,IN in_account_name VARCHAR(45)) BEGIN SET er...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
# frozen_string_literal: true class Meme def i_can_has_cheezburger? "OHAI!" end def will_it_blend? "YES!" end end RSpec.describe Meme do subject { Meme.new } describe '#i_can_has_cheezburger?' do it 'returns "OHAI!"' do expect(subject.i_can_has_cheezburger?).to be_eql('OHAI!') end ...
"""our wsgi handler""" import os import sys tilecachepath, wsgi_file = os.path.split(__file__) sys.path.insert(0, '/opt/iem/include/python/') sys.path.insert(0, '/opt/iem/include/python/TileCache/') from TileCache.Service import Service, wsgiHandler cfgfiles = (os.path.join(tilecachepath, "tilecache.cfg")) theServic...
<?php /** * Contains Class TestProfileDeleteData. * * @package WP-Auth0 * * @since 3.8.0 */ use PHPUnit\Framework\TestCase; /** * Class TestProfileDeleteData. * Tests functionality of the WP_Auth0_Profile_Delete_Data class. */ class TestProfileDeleteData extends TestCase { use AjaxHelpers; use DomDocumen...
using Dynamitey; using Microsoft.VisualStudio.TestTools.UnitTesting; using MLOps.NET.Catalogs; using MLOps.NET.Docker.Interfaces; using MLOps.NET.Entities.Impl; using MLOps.NET.Exceptions; using MLOps.NET.Kubernetes.Interfaces; using MLOps.NET.Services.Interfaces; using MLOps.NET.Storage; using MLOps.NET.Storage.Inter...
/* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (almaslvl@gmail.com). * See LICENSE for details. */ package com.almasb.fxgl.gameplay /** * Represents game difficulty. Based on selected difficulty * a game may change its behavior to provide appropriate level of challenge. * * @au...
pub use capturing::captures_for; use core_model::EventId; use move_model::*; use log::info; mod capturing; pub enum Judgement { Accepted(MoveMade), Rejected, } pub fn judge(mm: &MakeMove, game_state: &GameState) -> Judgement { info!("Judge {:?}", mm); if validate_move(mm, game_state) { let ca...
// // This file contains a number of micro-free-monads that allow for creation of pure producers, consumers, and pipes. // They're used to facilitate the building of Proxy derived types without the need for typing the generic arguments endlessly // The Haskell original could auto-infer the generic parameter types, th...
#include "formatter.hh" using namespace std; void Formatter::parse(const string & format_string) { if (format_string.empty()) { throw runtime_error("format_string cannot be empty"); } /* reset before parsing a new format string */ reset(); size_t pos = 0; while (pos < format_string.size()) { si...
package dto import ( "github.com/isyscore/isc-gobase/isc" "github.com/isyscore/isc-gobase/server/rsp" ) type CommonCount struct { CardCount int `json:"cardCount"` KanaCount int `json:"kanaCount"` SetCount int `json:"setCount"` } type RespCommonCount struct { rsp.ResponseBase Data CommonCount `json:"data"` } ...
class WelcomeController < ApplicationController def welcome @test = "hello" end end
module TracksHelper def name_card(type) case type when 'unstarted' t('unstarted') when 'in_progress' t('in_progress') when 'finished' t('finished') end end def icon_header(type) case type when 'unstarted' content_tag(:i, nil, :class => "fas fa-c...
import { useEffect, useState } from 'react'; import ProductCard from '../components/product-card'; import Search from '../components/search'; import { useFetchProducts } from '../hooks/use-fetch-products'; import { useCartStore } from '../store/cart'; export default function Home() { const { error, products } = useF...
use core::any::Any; use core::pin::Pin; use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe}; use futures_core::future::Future; use futures_core::task::{Context, Poll}; use pin_project::pin_project; /// Future for the [`catch_unwind`](super::FutureExt::catch_unwind) method. #[pin_project] #[derive(Debug)] #[m...
import 'package:flutter/material.dart'; class Appointment { String id; String doctorName; String notes; String date; String time; Appointment({ @required this.doctorName, this.notes = '', this.date = '', this.time = '', this.id, }); // Constructor static Appointment fromJson(M...
<? $MESS["SALE_HANDLERS_DISCOUNTPRESET_DELIVERY_NAME"] = "Delivery discount"; $MESS["SALE_HANDLERS_DISCOUNTPRESET_DELIVERY_DELIVERY_DISCOUNT_VALUE"] = "Delivery discount"; $MESS["SALE_HANDLERS_DISCOUNTPRESET_SHIPMENT_DELIVERY_LABEL"] = "Delivery service"; $MESS["SALE_HANDLERS_DISCOUNTPRESET_SHIPMENT_DELIVERY_ORDER_AMOU...
package org.grejpfrut.wiki.extractor.cleaner; import junit.framework.TestCase; import org.grejpfrut.wiki.cleaners.MarkupCleaner; import org.grejpfrut.wiki.cleaners.XMLCommentsCleaner; public class XMLCommentsCleanerTest extends TestCase { public void test1(){ String testowa = "<!...
namespace Logic { public class ActiveSkillData { public string Message { get; set; } public int ActionsPerActionPoint { get; set; } public int MinimumRound { get; set; } } }
SUBROUTINE SCOND (A,B,C,KING) C TO OBTAIN PARABOLIC DERIVATIVE OF CURVE (UNEQUALLY SPACED POINTS) IMPLICIT REAL*8(A-H,O-Z) DIMENSION A(150), B(150), C(150) N=KING-1 DO 1 K=2,N S=A(K)-A(K-1) T=A(K+1)-A(K) 1 C(K)=((B(K+1)-B(K))*S*S+(B(K)-B(K-1))*T*T)/(S*S*T+S*T*T)...
Param( [string] $Version = "r15c" ) $ErrorActionPreference = 'Stop' Add-Type -AssemblyName System.IO.Compression.FileSystem if ($IsMacOS) { $platform = "darwin-x86_64" } elseif ($IsLinux) { $platform = "linux-x86_64" } else { $platform = "windows-x86_64" } $url = "https://dl.google.com/android/reposi...
/* * Copyright (c) 2018 Trail of Bits, 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 o...
package recipe abstract class Database extends FoodCategories { def allFoods: List[Food] def allRecipes: List[Recipe] def allCategories: List[FoodCategory] def findFood(name: String): Option[Food] = allFoods.find(_.name == name) }
<?php namespace App\Models\Chain\Tender; use App\Models\Chain\Tender\AddBorrowRecoverHandler; use App\Models\Chain\AbstractHandler; use App\Models\Factory\CommonFactory; //use App\Models\Orm\BorrowTender; //use App\Models\Orm\Linkages; //use App\Models\Orm\LinkagesType; //use App\Models\Orm\Account; //use App\Models\...
import json import math json_path = 'init_or_not.json' with open(json_path, 'r') as f: data = json.load(f) for key in data: arrs = data[key] avg = 0 sd = 0 for arr in arrs: sum_v = sum(arr) a = sum_v / len(arr) s = 0 for x in arr: s += (a - x) ** 2 ...
// // ChatKeyBoard.h // FaceKeyboard // // Company: SunEee // Blog: devcai.com // Communicate: 2581502433@qq.com // Created by ruofei on 16/3/29. // Copyright © 2016年 ruofei. All rights reserved. // #import <UIKit/UIKit.h> #import "ChatKeyBoardMacroDefine.h" #import "ChatToolBar.h" #import "FacePa...
{ Copyright (c) 2020, Vencejo Software Distributed under the terms of the Modified BSD License The full license is distributed with this software } unit DescendingSQLSort_test; interface uses SysUtils, SQLField, SQLSort, DescendingSQLSort, {$IFDEF FPC} fpcunit, testregistry {$ELSE} TestFramework {$E...
typedef u0 emitter(lips, FILE*, obj); emitter emhom, emvec, emtwo, emnum, emsym, emstr, emtbl, emit; u0 write_file(lips, const char*, const char*), ems(lips, FILE*, obj, char), emsep(lips, obj, FILE*, char);
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'package:lib.app.dart/app.dart'; import 'package:lib.app.fidl._service_provider/service_provider.fidl.dart'; import 'package:l...
import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; // global styles import './styles/global.scss'; // app container import App from './containers'; const Website = ( <React.StrictMode> <BrowserRouter> <App /> </BrowserRouter> </React.Str...
<?php // session_start(); include('autoloader.inc.php'); if(isset($_POST['newID'])){ $id = $_POST['newID']; $objNotif = new Notifications(); $objNotif->updateNotif($id); } ?>
part of 'main.dart'; // NOTE: adapter/bookmark.dart @HiveType(typeId: 2) class BookmarkType { @HiveField(0) String identify; @HiveField(1) DateTime? date; @HiveField(2) int bookId; @HiveField(3) int chapterId; BookmarkType({ this.identify = '', this.date, this.bookId = 1, this.chap...
import 'package:equatable/equatable.dart'; import 'package:meta/meta.dart'; import '../../../../../common/connection/lnd_rpc/lnd_rpc.dart'; @immutable abstract class SendPaymentState extends Equatable {} class InitialSendPaymentState extends SendPaymentState { @override List<Object> get props => const []; } cla...
#!/bin/bash # Script chce_domoticz.sh created by Andrzej "Ferex" Szczepaniak # Script syntax: ./chce_domoticz.sh port_http port_https #===== Checker ===== if [ -z "$1" ]; then echo "Poprawna składnia: ./chce_domoticz.sh port_http port_https" elif [ -z "$2" ]; then echo "Poprawna składnia: ./chce_domoticz.sh por...
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UIElements; using UnityEditor.UIElements; using UnityEditor; namespace Pinwheel.TextureGraph { [TCustomParametersDrawer(typeof(TSolidColorNode))] public class TSolidColorNodeParamsDrawer : TParametersDrawer { ...
import { combineReducers } from "redux" import ui from "./uiReducer" import chat from "./chatReducer" import study from "./studyReducer" import history from "./historyReducer" export default combineReducers({ ui, chat, study, history })
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "NativeModules.h" namespace winrt::react_native_print::implementation { class ReactPrinter { public: private: }; }
import random class Die: def __init__(self, num_sides): self._num_sides = num_sides self._last_side = -1 def roll(self): self._last_side = random.randint(1, self._num_sides) return self._last_side def current_roll(self): return self._last_side ...
CREATE DATABASE IF NOT EXISTS badmovies; USE badmovies; CREATE TABLE IF NOT EXISTS ratings ( id INT NOT NULL AUTO_INCREMENT, poster_path VARCHAR(100), title VARCHAR(50) NOT NULL, release_date VARCHAR(50), vote_average INT, PRIMARY KEY(id), UNIQUE KEY(poster_path) );
namespace Mors.Intervals.Operations.Test { internal readonly struct ClosedIntervals : IClosedIntervals<int, ClosedInterval>, Reference.IClosedIntervals<int, ClosedInterval>, IEmptyIntervals<ClosedInterval>, Reference.IEmptyIntervals<ClosedInterval>, Generation.IClosedInterva...
Rails.application.routes.draw do devise_for :users resources :welcome root to: 'welcome#index' get '/foursquare_coffee', to: 'searches#foursquare_coffee' post '/foursquare_coffee', to: 'searches#foursquare_coffee' get '/foursquare_restaurants', to: 'searches#foursquare_restaurants' post '/foursquare_res...
// Copyright 2022 Coinbase, 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...
{-# LANGUAGE FlexibleInstances #-} -- | -- Module : AutoProof.Internal.Utils.PrettyPrintable -- Copyright : (c) Artem Mavrin, 2021 -- License : BSD3 -- Maintainer : artemvmavrin@gmail.com -- Stability : experimental -- Portability : POSIX -- -- Defines the 'PrettyPrintable' class. module AutoProof.Intern...
package com.hashim.instagram.utils import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.TestCoroutineDispatcher @OptIn(ExperimentalCoroutinesApi::class) class TestCoroutineDispatcherProvider() : TestCoroutineDispatchers { override fun computation(): TestCoroutineDispatcher = TestCor...
/** * Function that returns an unique string. * @export * @returns an unique string */ export function generateUUID(): string { const s4: () => string = (): string => { // tslint:disable-next-line:no-magic-numbers return Math.floor((1 + Math.random()) * 0x10000) // tslint:disable-nex...
module LintTrappings # Contains a collection of formatters and their output destinations, exposing # them a single formatter. # # This quacks like a Formatter so that it can be used in place of a single # formatter, but fans out the calls to all formatters in the collection. class FormatterForwarder def...
#include <cmath> #include <gtest/gtest.h> #include <aml/aml.h> TEST(FunctorTest, Abs) { EXPECT_EQ(aml::Abs()(-3), 3); EXPECT_EQ(aml::Abs()(-0.5f), 0.5f); EXPECT_EQ(aml::Abs()(-0.5), 0.5); } TEST(FunctorTest, Divide) { EXPECT_EQ(aml::Divide()(-0.5f, 0.5f), -1.0f); EXPECT_EQ(aml::Divide()(12, 3), 4); } TES...
import { createVisitor, removeDeadCode } from "./remove-dead-code"; import { RefactoringWithActionProvider } from "../../types"; const config: RefactoringWithActionProvider = { command: { key: "removeDeadCode", operation: removeDeadCode, title: "Remove Dead Code" }, actionProvider: { message: "R...
<?php namespace Farola\ProfileBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Farola\ProfileBundle\Form\ReviewType; use Farola\ProfileBundle\Entity\Review; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpFoundation\J...
# prefix commands with sudo if user is not in docker group # pull docker image docker pull opensecurity/mobile-security-framework-mobfs # run docker container docker run -p 8888:5000 --name mobfs mobile-security-framework-mobfsdocker:latest
# Bash Completion for Atom Package Manager (apm) If you use [Atom](http://atom.io) editor, you'll like this completion helper. ## Installation You can install via [Homebrew](http://brew.sh) brew install homebrew/completions/apm-bash-completion ## Usage ```bash $ apm [TAB] clean featured ...
package de.vanmar.android.hoebapp.util; import org.junit.runners.model.InitializationError; import org.robolectric.RobolectricTestRunner; import org.robolectric.bytecode.ClassInfo; import org.robolectric.bytecode.Setup; /** * see https://github.com/robolectric/robolectric/issues/540 */ public class MyRobolectricTes...
package Catalyst::Plugin::Session::Store::File; use strict; use warnings; use base qw( Class::Data::Inheritable Catalyst::Plugin::Session::Store ); use MRO::Compat; use Cache::FileCache (); use Catalyst::Utils (); use Path::Class (); our $VERSION = '0.18'; __PACKAGE__->mk_classdata(qw/_session_file_storage/); =he...
import React, { Component } from "react"; import "./Profile.css"; import API from "../../utils/API"; export default class UpdateUser extends Component { constructor(props) { super(props); this.onChangeUserName = this.onChangeUserName.bind(this); this.onChangeUserEmail = this.onChangeUserEmail.bind(this);...
require 'sendgrid-ruby' # monkey patch class SendGrid::Response # about status code, see https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html def success? status_code && status_code.to_i < 300 end end module SendgridNotification class SendgridClient class Error < RuntimeError; end ...
# cqlsh Salving output cqlsh -e "SELECT * FROM mytable" > myoutput.txt Show informations SHOW version SHOW host DESCRIBE CLUSTER DESCRIBE KEYSPACES DESCRIBE KEYSPACE <keyspace_name> DESCRIBE [FULL] SCHEMA DESCRIBE TABLES DESCRIBE TABLE <table_name>
namespace LanguageServer.Parameters.Client { public class RegistrationParams { public Registration[] Registrations { get; set; } } }
Remtiski ======== Rendering [tiny-skia] output on a [reMarkable]. This is just a quick example on how to render something with tiny-skia on a ReMarkable via [libremarkable]. License ------- Copyright (c) Volker Mische This project is dual-licensed under Apache 2.0 and MIT terms: - Apache License, Version 2.0, ([...
(defun mirror (s) (let ((len (length s))) (and (evenp len) (let ((mid (/ len 2))) (equal (subseq s 0 mid) (reverse (subseq s mid))))))) (print (mirror '(a b c b a))) (defun nthmost (n lst) (nth (- n 1) (sort (copy-list lst) #'>)))
# -*- coding: utf-8 -*- # copyright: sktime developers, BSD-3-Clause License (see LICENSE file) """ScaledLogit transform unit tests.""" __author__ = ["ltsaprounis"] from warnings import warn import numpy as np import pytest from pandas.testing import assert_series_equal from sktime.datasets import load_airline from...
/* * Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
#!/bin/bash # gettext # A tool for multi-lingual messages set -e wget --no-clobber http://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz rm -rf gettext-0.19.8.1/ tar xf gettext-0.19.8.1.tar.xz cd gettext-0.19.8.1/ ./configure --prefix=/usr make make install
using UnityEngine; using UnityEditor; using System.Collections.Generic; namespace Devdog.SciFiDesign.Editors { public class SciFiDocumentationLinkEditor : EditorWindow { [MenuItem("Tools/Sci-Fi Design/Documentation", false, 99)] // Always at bottom public static void ShowWindow() { ...
import os import sys import numpy as np class OutputManager(object): def __init__(self, result_path, filename='log.txt'): self.result_folder = result_path self.log_file = open(os.path.join(result_path, filename), 'w') def say(self, s): self.log_file.write("{}\n".format(s)) self...
""" Basic host status checking for MKTME, TDX, SGX, SEAMRR etc. """ import logging import os.path import glob from pycloudstack import msr, dut __author__ = 'cpio' LOG = logging.getLogger(__name__) def test_tdx_enabled_in_bios(): """ Check whether the bit 11 for MSR 0x1401, 1 means TDX is enabled in BIOS. ...
select bei.email, bei.created_date::date, u_c.name created_by_name, u_c.email created_by_email, u_c.id created_by_id, bei.approved, bei.approved_date::date, u_a.name approved_by_name, u_a.email approved_by_email, u_a.id approved_by_id from beta_email_invites bei left join users u...
using FactFactory.TestsCommon; using FactFactory.TestsCommon.Helpers; using FactFactory.VersionedTests.Version.Env; using GetcuReone.FactFactory.Constants; using GetcuReone.GetcuTestAdapter; using GetcuReone.GwtTestFramework.Helpers; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FactFactory.VersionedT...
@test "agent binary exists" { [ -f /usr/bin/dd-agent ] } @test "agent is running" { run /etc/init.d/datadog-agent status [ "$status" -eq 0 ] } @test "info returns an OK" { run /etc/init.d/datadog-agent info [ "$status" -eq 0 ] [[ "$output" =~ "OK" ]] } @test "info returns no ERRORs" { run /etc/init.d/d...
import 'dart:io'; import 'package:dio/dio.dart'; import 'package:flutter_app/global/config.dart'; import 'package:flutter_app/service/api_url.dart'; import 'package:flutter_app/utils/log_util.dart'; class HttpUtils { static HttpUtils instance; Dio _dio; BaseOptions options; static const CONTENT_TYPE_JSON = "...
/* * Your rights to use code governed by this license http://o-s-a.net/doc/license_simple_engine.pdf * Ваши права на использование кода регулируются данной лицензией http://o-s-a.net/doc/license_simple_engine.pdf */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T...
// +build bench package jsonrpc_test import ( "bytes" "encoding/json" "testing" "github.com/journeymidnight/aws-sdk-go/aws" "github.com/journeymidnight/aws-sdk-go/aws/request" "github.com/journeymidnight/aws-sdk-go/awstesting" "github.com/journeymidnight/aws-sdk-go/private/protocol/json/jsonutil" "github.com...
-- Remove temp table BEGIN -- Product IF OBJECT_ID('tempdb..#Product') IS NOT NULL DROP TABLE #Product; IF OBJECT_ID('tempdb..#ProductVariation') IS NOT NULL DROP TABLE #ProductVariation; -- Refund IF OBJECT_ID('tempdb..#Refunds') IS NOT NULL DROP TABLE #Refunds; IF OBJECT_ID('tempdb..#RefundDet...
/* * Copyright 2012-present Facebook, 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...
Name "gmap2gff3" Keywords "scripts" Test do run "#{$scriptsdir}gmap2gff3 #{$testdata}gmap2gff3_prob.gmap" run "diff --strip-trailing-cr #{$last_stdout} #{$testdata}gmap2gff3_prob.out" end
require 'spec_helper' RSpec.describe Ringo::Environment do subject { Ringo::Environment.new } let(:token) { Ringo::Token.new(:identifier, 'x', nil, 1) } describe '#define' do it 'creates an entry in the environment' do subject.define(token, 22) expect(subject.get('x')).to eq(22) end ...
/* This program does a very simple I/O system and decomposition, and * writes a simple file. Ed Hartnett, 7/27/19 */ #include "config.h" #include <pio.h> #include <mpi.h> #include <pio_tests.h> #include <pio_internal.h> #define FILE_NAME "tst_c_pio.nc" #define VAR_NAME "data_var" #define DIM_NAME_UNLIMITED "dim_...
package com.vitor238.covid19brasil.data.repository import com.vitor238.covid19brasil.R import com.vitor238.covid19brasil.data.domain.UsefulLink class UsefulLinksRepository { fun getLinks() = listOf( UsefulLink( R.string.link_title_1, R.string.ministry_of_health, R.draw...
#!/usr/bin/ruby require 'io/console' if ARGV[0] == 'tilux' require_relative '../../tools/catch_exception' print `python3 -c "from tools.logos import Logo; Logo('FD');"` end print 'Path to directory: ' dir = $stdin.gets.chomp.to_s.strip empty_input?(dir) if ARGV[0] == 'tilux' if File.directory?(dir) == false ...
//! Postgres RDBC Driver //! //! This crate implements an RDBC Driver for the `postgres` crate. //! //! The RDBC (Rust DataBase Connectivity) API is loosely based on the ODBC and JDBC standards. //! //! ```rust,no_run //! use rdbc::*; //! use rdbc_postgres::PostgresDriver; //! //! let driver = PostgresDriver::new(); //...
# Customer Service Spring Boot application that exposes customer domain graphs. Application provides the federated Customer type. ## Getting Started ### Installation Start spring boot application ``` sh gradlew bootRun ``` ### Usage * Start service. * Open [GraphiQL](http://localhost:8080/graphiql). * Write t...
using System; using System.Collections.Generic; using System.Linq; using TableDTOGenerater.Common.Interfaces; using static TableDTOGenerater.Common.DatabaseData; namespace TableDTOGenerater.Templates { partial class TableDTO : ITransformText { /// <summary> /// テーブル情報 /// </summary> public TableDa...
plugins { id("com.android.library") kotlin("android") kotlin("kapt") } android { compileSdk = Versions.COMPILE_SDK defaultConfig { minSdk = Versions.MIN_SDK targetSdk = Versions.TARGET_SDK testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vector...
/* * Copyright (c) 2022-present Intel Corporation All Rights Reserved * Copyright 2020-present Open Networking Foundation * * SPDX-License-Identifier: Apache-2.0 * */ package helpUsage func AddNextHopUsage() { usage := ` Usage: p4rt-client -addNextHop \ -server=$P4RUNTIME_ENDPOINT \ -r...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class MenuController : MonoBehaviour { int index = 0; public GameObject cam; // Use this for initialization void Start () { } // Update is called once per frame void Update () { if(...
module ConsoleLog class << self def method_missing(method, *args) return instance.send(method, *args) if instance.respond_to?(method) super end def instance ConsoleLog::Base.instance end end end require 'console_log/base' require 'console_log/helpers' require 'console_log/engine'