text
stringlengths
27
775k
<?php namespace acceptancesupport\PSB\Core\Scenario; class RunContext { /** * @var string */ private $endpointConfigProxyFqcn; /** * @var PipeSynchronizer[] */ private $pipeSynchronizers; /** * @var ScenarioContextProxy */ private $scenarioContext; /** ...
simhash =========== This is a Python implementation of [Simhash](http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/33026.pdf). ## Getting Started <http://leons.im/posts/a-python-implementation-of-simhash-algorithm/> ## Build Status ![Build Status](https://github.com/1e0ng/simhash/actio...
import { ISchema } from '@formily/react'; import { cloneDeep } from 'lodash'; import { defaultProps, operators, recordPickerViewer } from './properties'; import { IField } from './types'; export const updatedBy: IField = { name: 'updatedBy', type: 'object', group: 'systemInfo', order: 4, title: '{{t("Last up...
package github.sachin2dehury.nitrmail.services import android.content.Context import androidx.lifecycle.asLiveData import androidx.work.Worker import androidx.work.WorkerParameters import github.sachin2dehury.nitrmail.others.Constants import github.sachin2dehury.nitrmail.others.InternetChecker import github.sachin2deh...
require 'pliny/commands/creator' require 'pliny/commands/generator' require 'pliny/commands/generator/schema' require 'spec_helper' describe Pliny::Commands::Generator::Schema do let(:stream) { StringIO.new } subject { Pliny::Commands::Generator::Schema.new('artist', {}, stream) } around do |example| Dir.mk...
/// 动作类型 enum LivenessType { // 眼睛 Eye, // 嘴巴 Mouth, // 右转头 HeadRight, // 左转头 HeadLeft, // 抬头 HeadUp, // 低头 HeadDown, // 左右转头 HeadLeftOrRight, }
use std::collections::HashMap; fn get_orbit<'a>(key: &'a str, rel: &HashMap<&'a str, &'a str>) -> Vec<&'a str> { let mut result = Vec::new(); let mut it = key; while rel.contains_key(it) { result.push(it); it = &rel[it]; } result.reverse(); result } fn main() { let contents...
import { Injectable } from '@angular/core'; import { of } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { environment } from '../../environments/environment'; const DUMMY_PAYMENT_TYPES = [ { default: true, type: 'Braintree', value: 'Braintree', logo: 'assets/images/braintree-...
/* ----------------------------- Non-Auth Pages ----------------------------- */ import Home from './pages/non-auth/Index.vue' /* ------------------------------ Custom Pages ------------------------------ */ import FourOFour from './pages/custom/404.vue' import OTPVerification from './pages/custom/OTPVerification.vu...
package com.korol.myweather.di import com.korol.myweather.ui.city.City import com.korol.myweather.ui.city.CityRepository import com.korol.myweather.ui.details.DetailDataBase import com.korol.myweather.ui.details.DetailsRepository import com.korol.myweather.ui.search.SearchCity import com.korol.myweather.ui.sear...
/* Copyright 2019 Parakram Majumdar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, ...
<?php namespace Acme\SecureBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\EntityRepository; use Helper\Helper; /** * @ORM\Entity * @ORM\Table(name="money_output") */ class MoneyOutput extends EntityRepository { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(...
module ActionClient class Engine < ::Rails::Engine config.action_client = ActiveSupport::OrderedOptions.new initializer "action_client.dependencies" do |app| ActionClient::Base.append_view_path app.paths["app/views"] end initializer "action_client.middleware" do config.action_client.requ...
### # This scripts assumes that the raw data is present in "../../data" folder # This script recasts the following 5 datasets into an NLI format: # 1. UDST_Durarion # 2. UDST_Relation # 3. TempEval3 # 4. TimeBank-Dense # 5. RED Corpus # ### #Download and create Unimorph Dictionariesi echo "Downloading English unimorph...
import attr import json import pickle import copy import logging try: import yaml except ModuleNotFoundError: yaml = None from pathlib import Path, PosixPath JSON_SUFFIXES = (".json", ".jsn") YAML_SUFFIXES = (".yaml", ".yml") PICKLE_SUFFIXES = (".pickle", ".pkl", ".pcl") logger = logging.getLogger(__name_...
import * as net from 'net'; import {promise as wdpromise, WebElement} from 'selenium-webdriver'; import * as util from 'util'; import {ProtractorBrowser} from './browser'; import {Locator} from './locators'; import {Logger} from './logger'; import {Ptor} from './ptor'; import * as helper from './util'; let breakpointH...
package main import ( "fmt" "strings" "github.com/derat/advent-of-code/lib" ) func main() { lns := lib.InputLines("2020/13") lib.AssertEq(len(lns), 2) est := lib.ExtractInt64s(lns[0])[0] var ids []int64 for _, s := range strings.Split(lns[1], ",") { if s == "x" { ids = append(ids, 0) } else { ids =...
using LanguageExt; namespace Docman.Domain.Extensions { public static class ErrorExtensions { public static Error Join(this Seq<Error> errors) => string.Join("; ", errors); } }
class Problem < ActiveRecord::Base serialize :values, JSON validates :values, presence: true, length: { is: Grid::SIZE } def grid Grid.new(cells: cells) end private def cells values.map do |value| Cell.new(value: value) end end end
<?php /** * Manages notifications * * @package frontend_models * @copyright Copyright (c) 2011, Morteza Milani */ class NotificationUser extends App_Model { /** * Column for the primary key * * @var string * @access protected */ protected $_primary = array('notification_id','user...
module.exports = { /* Return date string with has offset calculated from UTC, i.e. Thu Sep 24 2015 10:29:25 GMT-0700 (PDT) with offset -7 would give 2015-09-24T10:29 */ convertISOToLocalTruncatedMinutes: function (dateInMillis, hourOffset) { function pad(numbe...
package main import ( "encoding/json" "net/http" ) type jsonErr struct { Code bool `json:"auth"` Text string `json:"error"` } type jsonStatus struct { Status string `json:"status"` } func sendObject(w http.ResponseWriter, s int, o interface{}) { js, _ := json.Marshal(o) w.Header().Set("Content-Type", "appl...
#!/bin/ash dbus-daemon --session --fork Xvfb ${DISPLAY} -ac -screen 0 "${SCREEN_WIDTH}x${SCREEN_HEIGHT}x24" >/dev/null 2>&1 & fluxbox >/dev/null 2>&1 & /bin/sh -c "$@"
package com.jay.jackson.controller; import com.jay.jackson.model.ProductVo; import com.jay.jackson.model.UserVo; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframewo...
import 'package:flutter/material.dart'; import 'package:anonymous_chat/services/responsive.dart'; import 'package:anonymous_chat/screens/chat/components/message_input_field.dart'; // Chat screen's widget for building send-area class SendArea extends StatelessWidget { const SendArea( this.messageController, ...
describe DashboardController do describe '#start_page_allowed?' do let(:controller) { described_class.new } let(:subj) { ->(page) { controller.send(:start_page_allowed?, page) } } before do stub_user(:features => :all) end context 'cim_storage_extent_show_list' do subject { subj.call...
#!/bin/sh set -e if [ -z "$1" ]; then echo "The server argument must be set." exit 1 fi if [ -z "$2" ]; then echo "The concurrency argument must be set." exit 1 fi if [ $LOG_ADDRESS ]; then LOG=" log $LOG_ADDRESS local0 log-format \"${LOG_FORMAT:-"%b %ST %bq %Tw/%Tr"}\" " fi cat <<EOF > /conf/haproxy.cfg g...
using System.Collections.Generic; using JsonLD.Core; using Newtonsoft.Json.Linq; namespace JsonLD.Core { internal class UniqueNamer { private readonly string prefix; private int counter; private JObject existing; /// <summary>Creates a new UniqueNamer.</summary> /// <...
package com.inepex.translatorapp.server.entity.mapper; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.google.inject.Inject; import com.inepex.ineForm.shared.BaseMapper; import com.inepex.ineom.shared.IFConsts; import com.inepex.ineom.shared.IneList; impor...
package org.macrogl.util object TextResources { def get(resourcesName: String*) (callback: Array[TextFileContent] => Unit): Unit = { val size = resourcesName.length val filesReady: Array[Boolean] = new Array[Boolean](size) val filesData: Array[TextFileContent] = new Array[TextFileContent](size) ...
package com.linktera.linkteraquiz.service; import com.linktera.linkteraquiz.model.entity.BookEntity; import com.linktera.linkteraquiz.service.base.BaseService; public interface BookService extends BaseService<BookEntity> { }
package arrow.optics import arrow.core.Either import arrow.core.None import arrow.core.Option import arrow.core.Some import arrow.core.Tuple2 import arrow.core.compose import arrow.core.identity import arrow.core.toT import arrow.data.Reader import arrow.data.State import arrow.data.map import arrow.higherkind import ...
export interface Calc { gender: string; weightType: string; weight: number; heightType: string; height: number; age: number; gymActivity: string; workActivity: string; houseActivity: string; exerciseDurationHours: number; exerciseDurationMinutes: number; };
namespace Sequin.Integration.Fakes { using System; using System.Threading.Tasks; using Pipeline; public class ExceptionPipelineStage : CommandPipelineStage { protected override Task Process<TCommand>(TCommand command) { throw new InvalidOperationException(); } ...
import autobind from 'autobind-decorator'; import Chart, { DeepPartial } from '../../core'; import { User } from '../../../../models/entities/user'; import { Note } from '../../../../models/entities/note'; import { SchemaType } from '../../../../misc/schema'; import { Users } from '../../../../models'; import { name, s...
; _________________ ; // \\ ; || HOW TO COMPILE IT || ; \\_________________// ; ; ------ x86_64 ------ ; nasm -f elf64 params.asm ; ld -s -o params params.o ; ; _________________ ; // \\ ; || DESCRIPTION || ; \\_________________// ; ; Get the program name and ; the com...
FinicityAPILib ================= How To Configure: ================= The generated code might need to be configured with your API credentials. To do that, open the file "Configuration.php" and edit it's contents. How To Build: ============= The generated code has dependencies over external libraries. These dependen...
<?php namespace PhpStormPlugin\tests\units; use \atoum; class AnotherClassDefinedBeforeTheTest { } class TestMultipleClassNotFirst extends atoum { }
# Microsoft's (internal) quickbuild Nerdbank.GitVersioning supports the Microsoft-internal quickbuild/cloudbuild tool. It works out of the box, but each project will recompute the version, which may accumulate to a significant increase in overall build time. 🚧 A future version of Nerdbank.GitVersioning will cache v...
import 'package:frazilegradients/constants/frazile.dart'; class CreateTable { // Gradients Table static const String gradients = '''CREATE TABLE IF NOT EXISTS ''' + Frazile.gradientTB + ''' ( id int(100) PRIMARY KEY, name varchar(200) NOT NULL ) '''; }
// Utilities for querying tags belonging to a user use diesel::prelude::*; use crate::models; use crate::actions; use crate::db::Connection as Conn; use uuid::Uuid; pub fn user_tags_public( conn: &Conn ) -> Result<Vec<models::Tag>, diesel::result::Error> { diesel::sql_query(" SELECT DISTINCT x.* FROM ...
### Collaborative Drawing Tool This application allows users to chat and draw simultaneously with their friends.User can export or save their drawings. It is developed in Node.js using Socket.io and Paper.js framework.This application allows users to chat and draw simultaneously with their friends.User can export or s...
using System.Collections; using UnityEngine; public class ZombieWave : IWave { public ZombieWave(int nrEnemies, bool spawnObstacles, bool spawnDropLights, bool spawnPickups) : base(nrEnemies) { if (spawnObstacles) GameManager.Instance.StartCoroutine(SpawnObstacles()); if (spawnDrop...
/* ================================================================== * MockCentralSystemServiceFactory.java - 11/06/2015 9:07:28 am * * Copyright 2007-2015 SolarNetwork.net Dev Team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
<?php namespace App\Service\Queue; use App\Entity\Queue; use App\Repository\LeagueRepository; use App\Repository\PlayerRepository; use App\Repository\TeamRepository; use App\Service\Extractor\ExtractorInterface; use App\Service\Extractor\PlayersExtractor; use App\Service\Extractor\PlayerStatisticsExtractor; use App\S...
part of hive; /// Annotate all fields you want to persist with [HiveField]. class HiveField { /// The index of this field. final int index; /// The default value of this field for class hive types. /// /// In enum hive types set `true` to use this enum value as default value /// instead of null in null-sa...
# https://www.cs.rochester.edu/~brown/173/readings/05_grammars.txt # # "TINY" Grammar # # PGM --> STMT+ # STMT --> ASSIGN | "print" EXP # ASSIGN --> ID "=" EXP # EXP --> TERM ETAIL # ETAIL --> "+" TERM ETAIL | "-" TERM ETAIL | EPSILON # TERM --> FAC...
if(typeof(TRANS_MSGS) === "undefined") { TRANS_MSGS = {}; } TRANS_MSGS["Test,I have %1$ apples,%%1$"] = "测试,我有%1$个苹果,%%1$"; (function (){ this.Trans = { t: function (msg, arg1_null, arg2_null, argAndSoOn_null) { var transMsg = msg = msg + ""; var doubuleFlag = "doublueEeeeFlgGggg"; if(TRANS_MSGS && TRANS_...
// Scan beacons screen. ;(function(app) { app.startScanningBeacons = function() { function onScan(beaconInfo) { displayBeconInfo(beaconInfo); } function onError(errorMessage) { console.log('Scan error: ' + errorMessage); } function displayBeconInfo(beaconInfo) { // Clear beacon HTML items. ...
import { Component, ViewChild } from '@angular/core'; import { NavController, Slides } from 'ionic-angular'; import { ImageSearch } from '../../providers/image-search'; @Component({ selector: 'page-home', templateUrl: 'home.html', providers:[ImageSearch] }) export class HomePage { search:string; slides:any[...
using UnityEngine.UI; using UnityEngine; using LibNoise; using LibNoise.Generator; using System.Globalization; using TMPro; using System.Runtime.InteropServices; public enum MapType { Planar, Spherical, Cylindrical } public enum DisplayShape { Plane, Sphere, Cube, Cylinder } /// <summa...
// ----------------------------------------------------- // Code Activity returns a substring of the given string // ----------------------------------------------------- namespace Defra.Lp.Workflows { using System.Activities; using Microsoft.Xrm.Sdk.Workflow; using Core.Helpers.Extensions; /// <summa...
# Simple_REST_ESP8266 Tihs is a very simple implementation of a HTTP REST Server on ESP8266. It shows how to implement GET, POST and PUT method It should be considered just as a based for further development
//! Register access layer for imxrt1021 /// Number of priority bits implemented by the NVIC pub const NVIC_PRIO_BITS: u8 = 4; /// Interrupt-related magic for this device pub mod interrupts; pub use self::interrupts::Interrupt; pub use self::interrupts::Interrupt as interrupt; pub mod adc; pub mod adc_etc; pub mod ai...
--- title: AVENTURA TOTAL package: true destination: Bacalar description: >- Aventúrate en el pueblo mágico de Bacalar, explora lugares impresionantes y disfruta de muchísimas actividades. Un paquete con experiencias, tours, alimentos y bebidas. image: image: /img/paquete-aventura.jpg alt: Kayak duration: 4...
use std::io::Read; use serde::Deserialize; use serde::Serialize; use tracing::error; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Config { pub borders: Option<String>, #[serde(rename = "disable-title")] pub disable_title: Option<bool>, pub ta...
<?php class Controller_Site extends Controller_Assets { public function before() { parent::before(); if (! Input::is_ajax()) { $this->_init_nav(); } } private function _init_nav() { $this->template->nav = View::forge('template/nav'); } /** * Home page * * @access public */ public funct...
; FIXME: FastISel currently returns false if it hits code that uses VSX ; registers and with -fast-isel-abort=1 turned on the test case will then fail. ; When fastisel better supports VSX fix up this test case. ; ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr...
using DevHawk.Buffers; using NeoFx.Storage; using System.Collections.Immutable; using System.Diagnostics; namespace NeoFx.Models { public readonly struct Witness : IWritable<Witness> { const uint MAX_SCRIPT_LENGTH = 65536; public readonly ImmutableArray<byte> InvocationScript; public ...
TERMUX_SUBPKG_INCLUDE="lib/python*" TERMUX_SUBPKG_DESCRIPTION="Python bindings for OpenCV" TERMUX_SUBPKG_DEPENDS="python" termux_step_create_subpkg_debscripts() { echo "#!$TERMUX_PREFIX/bin/sh" > postinst echo "pip3 install numpy" >> postinst }
+++ title = "Shutting Down" chapter = false weight = 70 +++ After you have created these resources, you can remove them by following these steps. 1. Stop the Twitter stream reader (if you still have it running). * (While SSH'd into the server) CTRL-C or kill it if it’s in the background. 2. Delete the S3 bucket...
#!/bin/bash # a stands for the overall connections during the test. a=$1 ifconfig ens3f1 192.168.0.4 for i in {1..$a} do #perf record --call-graph lbr -- taskset 16 ./cli 192.168.0.1 4433 -p /output.dat -o #taskset 16 ./cli 192.168.0.1 4433 -p /output.dat -o myval=$(echo "2^$i"|bc) task...
package de.metas.inoutcandidate.api.impl; /* * #%L * de.metas.swat.base * %% * Copyright (C) 2015 metas GmbH * %% * 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, either version 2 of the...
#!/bin/bash echo ----- Abbreviated help output: ------------------------------------------- echo main/sorbet 2>&1 echo echo ----- Abbreviated help output with empty config file: -------------------- echo mkdir -p sorbet touch sorbet/config trap 'rm -rf sorbet/' EXIT main/sorbet 2>&1 echo echo ----- Full help outp...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/unexpire_flags.h" #include "base/no_destructor.h" #include "chrome/browser/expired_flags_list.h" #include "chrome/browser/unexpi...
module VagrantPlugins module Beaker module Provider module VSphereActions class EnsureConnection def initialize( app, env ) @app = app @logger = Log4r::Logger.new( 'vagrant_plugins::beaker::provider::vsphere_actions::ensure_connnection' ) end de...
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading.Tasks; using DotnetSpider.DataFlow; using DotnetSpider.DataFlow.Parser; using DotnetSpider.DataFlow.Parser.Attribute; using DotnetSpider.DataFlow.Storage.Model; using DotnetSpider.Downloader; using DotnetSpider.Se...
export PA_DEP=~/Library/Perfect/PerfectAssistant/dependencies export PA_HUB=/private/var/perfect function apply() { VEND=$1 REPO=$2 LOCAL=$3 REMOTE=https://github.com/$VEND/$REPO.git FILE=$(grep -l $REMOTE *.json) if [[ -z $LOCAL ]]; then LOCAL=$REPO fi if [[ -n $FILE ]]; then CONTENT=$(cat $FILE | sed "s/h...
import React from "react"; import { FormControl, FormLabel } from "@chakra-ui/core"; import * as S from "./styles"; import { Maybe, ShopifyProductOption } from "../../../../graphqlTypes"; interface Props { options: Maybe<ShopifyProductOption>[] | null | undefined; } const ProductOptions = ({ options }: Props) => ...
{-# LANGUAGE OverloadedStrings #-} module Main where import Test.Hspec import Exercises main :: IO () main = hspec $ do describe "member function" $ do it "should find correct ones" $ do member "a" tree `shouldBe` True member "b" tree `shouldBe` True member "c" tree `shouldBe` True it "sh...
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Threading.Tasks; using Newtonsoft.Json; namespace CloudStack.Net { public class PaloAltoFirewallResponse { /// <summary> /// device capacity /// </summary> public long Fwdevicecapa...
# EchoServer ## How to use Start the server with the following command start server with iex: ``` $iex -S mix freddie.server start ``` or start server without iex: ``` $mix freddie.server start ```
# First Lab #!/bin/bash # Accept two command line parms # parm 1 = virtual host configuration # parm 2 = which service directive we wanted to use CONFIG="$1" COMMAND="$2" # Get the valid sites available in the Apache2 folder VHOSTS_PATH=/etc/apache2/sites-available/*.conf BOLVALIDHOST="false" STRFULLNAME="/etc/...
#pragma once #include <afxstr.h> #include "UtilMacros.Namespace.h" #include "config.h" NAMESPACE_BEGIN( vlr ) NAMESPACE_BEGIN( util ) template< typename BaseType, class StringTraits > class CStringBufferAccess { public: using TStringAccessing = CStringT<BaseType, StringTraits>; protected: TStringAccessing& m_sV...
#!/bin/bash # Script to wrap docker command so that you can run: # dc thorntail mind case $1 in thorntail) docker run -it -p 8100:8080 -e stone=$2 -e quality=5 groundbreakerduke/dukes-stone-processor:$1 ;; tomee) docker run -it -p 8200:8080 -e stone=$2 -e quality=5 groundbreakerduke/dukes-stone-proces...
module Simple.Binds ( Multiset -- * Construction , fromList , cons -- * Tranformation , deleteAt , diff , disjoint , toOccList , dPart -- * Decomposition , uncons , Simple.Binds.head , Simple.Binds.tail -- * Folds , foldMapWithIndex ) where import qua...
import React from "react"; import { Text, Heading } from "@chakra-ui/core"; import { Layout, SEO } from "../components"; const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <Heading>Not Found</Heading> <Text>You just hit a route that doesn&#39;t exist... the sadness.</Text> </Layout> ...
package com.flagsmith; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOE...
namespace Wrido.Resources { public class EmbeddedResource { public byte[] Data { get; } public string ResourcePath { get; } public EmbeddedResource(string resourcePath, byte[] resourceData) { ResourcePath = resourcePath; Data = resourceData; } } }
import {Applicants} from '../types/people' import {Session, Persist} from '../types' import {Skills} from '../types/skills' import {secondsBetweenApplicants, applicantSeats} from '../game-math/applicant' import {createApplicant} from '../game-logic/applicant' export function before(session: Session, persist: Persist...
#! /usr/bin/env bash # Disable t.co urls defaults write com.tapbots.TweetbotMac OpenURLsDirectly -bool true
package whc import ( "fmt" "github.com/Mikubill/transfer/apis" "github.com/Mikubill/transfer/utils" "github.com/spf13/cobra" ) var ( Backend = new(whiteCats) ) type whiteCats struct { apis.Backend pwd string del string resp string Commands [][]string } func (b *whiteCats) SetArgs(cmd *cobr...
LIGHTNING-FUNDCHANNEL\_CANCEL(7) Manual Page ============================================ lightning-fundchannel\_cancel - Command for completing channel establishment SYNOPSIS -------- **fundchannel\_cancel** *id* DESCRIPTION ----------- `fundchannel_cancel` is a lower level RPC command. It allows a user to cancel ...
export interface DashboardProductsProps {} const DashboardProducts: React.FC<DashboardProductsProps> = () => { return <div>Dashboard Products</div>; }; export default DashboardProducts;
export class ShellCommandRunner { private readonly _childProcess: any; constructor(params) { this._childProcess = params.childProcess; } run(commandName, commandArgs, options) { const command = this._childProcess.spawn(commandName, commandArgs, options); return this._collectRe...
from lin import Duplicated, NotFound class BookNotFound(NotFound): message = "书籍不存在" _config = False class BookDuplicated(Duplicated): code = 419 message = "图书已存在" _config = False
use strict; use warnings; use Test::More; use Test::Requires 'Test::Output'; # skip all if not installed # this test script ensures that my idiom of: # role: sub BUILD, after BUILD # continues to work to run code after object initialization, whether the class # has a BUILD method or not my @CALLS; do { package...
package com.beetle.hanghuasso; import com.alibaba.nacos.api.config.listener.Listener; import com.beetle.hanghuacommon.util.JsonUtil; import com.beetle.hanghuasso.config.ScheduledTask; import com.beetle.hanghuasso.util.JWTUtil; import org.junit.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.junit....
time = `date +%H` if [ $time -lt 12 ]; then echo "Good Morning Neighbor !" else echo "It is not morning!!" fi echo "What is the meaning of life?" read meaning if [ "$meaning" -eq 42 ]; then echo "Yes!, That is the meaning of life!" else echo "Awww... You don't know the meaning of life" fi # here are ...
package services import ( "bytes" "fmt" "io" "log" "strings" "github.com/CityOfZion/neo-local/cli/logger" "github.com/CityOfZion/neo-local/cli/stack" "github.com/docker/docker/api/types" "github.com/docker/docker/client" "golang.org/x/net/context" ) // CheckDockerRunning pings the Docker client to check th...
@extends('layout/master') @section('body') <table class ="table"> view_scholarship <tr> <th>roll_no</th> <th>student_name</th> <th>scholarship_sem</th> <th>scholarship amount</th> </tr> @foreach ($data as $row) <tr> <td>{{$row->roll_no}}</td> {{-- <td>{{$row->semester...
<?php namespace App\Model; use Nette; use Nette\SmartObject; /** * Base */ abstract class Table // extends Nette\Object { /** @var Nette\Database\Context */ protected $db; public function __construct(Nette\Database\Context $db) { if (!isset($this->tableName)) { $class = get_called_class(); throw new \...
package network.piction.example.api.controllers import network.piction.example.api.entities.User import network.piction.example.api.entities.Wallet import network.piction.example.api.requests.CreateUserDto import network.piction.example.api.responses.UserDto import network.piction.example.api.serivces.UserService impo...
package com.microsoft.bingads.v13.campaignmanagement; /** * Enum class for ProductAudienceType. */ public enum ProductAudienceType { GENERAL_VISITORS("GeneralVisitors"), PRODUCT_SEARCHERS("ProductSearchers"), PRODUCT_VIEWERS("ProductViewers"), SHOPPING_CART_ABANDONERS("ShoppingCartAbandoners"), ...
package com.gmail.nuclearcat1337.snitch_master.locatableobjectlist; /** * Created by Mr_Little_Kitty on 7/27/2016. */ public abstract class LocatableObject<T> implements Comparable<T> { public abstract String getWorld(); public abstract int compareTo(Location location); public abstract Location getLocation(); }...
import 'package:flutter/material.dart'; import 'package:loan_app/core/core.dart'; import 'package:loan_app/features/home/home.dart'; import 'package:loan_app/features/home/presentation/analytics/analytics.dart'; import 'package:loan_app/features/loan_detail/loan_detail.dart'; import 'package:loan_app/features/loan_his...
OmniAuth.config.on_failure = Proc.new do |env| SessionsController.action(:auth_failure).call(env) end
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "broadcast_inst.h" #include "primitive_base.hpp" #include "impls/implementation_map.hpp" #include "kernel_selector_helper.h" #include "broadcast/broadcast_kernel_selector.h" #include "broadcast/broadcast_kernel_base.h" #in...
import discord import aiomojang from discord.ext import commands # This is a example cog using aiomojang. class Main(commands.Bot): def __init__(self): super(Main, self).__init__(command_prefix="!", case_insensitive = True) self.add_cog(Example(self)) async def on_ready(self): print...
import Component from "./Component"; import config from "./config"; import Data from "./Data"; import Mousetrap from "mousetrap"; import Point from "./tiling/Point"; import PolygonLayer from "./PolygonLayer"; import Rectangle from "./tiling/Rectangle"; import TilingPolygon from "./tiling/TilingPolygon"; import Trajecto...