text
stringlengths
27
775k
#!/bin/bash HC=$1 set -ev if [ -f configure.ac ]; then autoreconf -i; fi rm -rf dist/ cabal sdist # test that a source-distribution can be generated cd dist/ SRCTAR=$(ls *.tar.gz) SRC_BASENAME="${SRCTAR/%.tar.gz}" tar -xvf "./$SRC_BASENAME.tar.gz" cd "$SRC_BASENAME/" ## from here on, CWD is inside the extracted sour...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Photo extends Model { public function getList() { return $this->get(); } public function getListByEID($id){ return $this->where('external_id', $id)->get(); } public function getByUID($uid){ ...
import 'package:flutter/material.dart'; const Color primaryColor = Color(0xFF2697FF); const Color secondaryDarkColor = Color(0xFF2A2D3E); const Color darkColor = Color(0xFF212332); const Color lightColor = Color(0xFFFFFFFF); const Color secondaryLightColor = Color(0xFFF6F5F3); const double defaultPadding = 16; const ...
// Action types export const EDIT_SEARCH = 'EDIT_SEARCH'; export const EDIT_CONTACT = 'EDIT_CONTACT'; export const ADD_CONTACT = 'ADD_CONTACT'; export const UPDATE_CONTACT = 'UPDATE_CONTACT'; export const DELETE_CONTACT = 'DELETE_CONTACT'; export const SET_CONTACT = 'SET_CONTACT'; export const SET_CLICKED_BUTTON = 'SET...
# react-native-simple-notification react-native-simple-notification 简单的实现了一个原生安卓的推送消息组件 ### usage: npm install react-native-simple-notification --save react-native link
require 'spec_helper' describe SaganCrafter::Backends::SQLite do it 'can return the size' do expect(SaganCrafter::Backends::SQLite.new(SaganCrafter::Factory::FQDNlogger.new, test_fqdn_db).size()).to eq(5) end end
package org.softlang.tests; import org.junit.Test; import static org.junit.Assert.assertTrue; import org.softlang.features.Mentoring; // See online documentation for detailed instructions public class Check extends Load { @Test public void test() { load(); assertTrue(Mentoring.check(sampleCompany...
package com.micheal.beanFactoryPostProcessor.importBeanDefinitionRegistrar; /** * @author wangting * @version 1.0 * @ClassName: MyImportBeanDefinitionRegistrar * Function: TODO ADD FUNCTION. <br/> * Reason: TODO ADD REASON. <br/> * Date: 2019/5/13 0013 下午 16:33 */ public class MyImportBeanDefinitionRegistr...
const errors = require('../errors'), sessionManager = require('../services/sessionManager'), User = require('../models').users, errorMessage = require('../../config').common.errorMessage, { regexWoloxEmail } = require('../../config').common.business; exports.validateCredentials = (request, response, next) => {...
@extends('layouts.admin.full') @section('template') <h1> <i class="fas fa-file-alt fa-fw"></i> {{ __('breadcrumbs.orphan.index', ['entity' => __('Free pages')]) }} </h1> <hr> <x-admin.forms.card title="{{ __('List') }}"> {{ $table }} </x-admin.forms.card> @endsection
require 'forwardable' module FleetCaptain class FleetClient class Cluster extend Forwardable attr_reader :connection, :cluster_name def_delegators :connection, :connect, :client, :connected? def initialize(cluster_name, connection) @cluster_name = cluster_name @connecti...
import LootTable from '../../../../structures/LootTable'; import SimpleMonster from '../../../../structures/SimpleMonster'; const CrocodileTable = new LootTable() .every('Babydragon bones') .tertiary(400, 'Long bone') .tertiary(5013, 'Curved bone'); export default new SimpleMonster({ id: 4184, name: 'Crocodile',...
# `partnermatcher` This is an app that is used to calculate the optimal pairings for students looking for project partners, based on their response to several partner-matching questions. ## Setup To use the partner matching script, first create a form for students to fill out with the following columns: - Email Ad...
package ui.cells.settingCell import android.content.Context import android.widget.FrameLayout import android.widget.LinearLayout open class SettingBaseCell(context: Context) : FrameLayout(context!!) { }
#!/bin/sh # SPDX-License-Identifier: LGPL-2.1 [ $# -eq 1 ] && header_dir=$1 || header_dir=tools/include/uapi/sound/ printf "static const char *sndrv_pcm_ioctl_cmds[] = {\n" grep "^#define[\t ]\+SNDRV_PCM_IOCTL_" $header_dir/asound.h | \ sed -r 's/^#define +SNDRV_PCM_IOCTL_([A-Z0-9_]+)[\t ]+_IO[RW]*\( *.A., *(0x[[:xd...
<?php namespace App\Models\Repositories; interface PetRequestRepositoryInterface extends AbstractRepositoryInterface { /** * @throws \Illuminate\Database\Eloquent\ModelNotFoundException * @return \Entities\User */ /** * @returns Validator */ /** * @throws \Illuminate\Database\Eloq...
#!/usr/bin/env node import { Server } from "./server"; const main = () => { new Server(); }; main();
using System.Collections.Generic; namespace Chat.Data { public interface IUserService { bool Exists(string login); IEnumerable<User> Get(int offset, int limit); void Create(User user); User Read(string login); void Update(User user); void Delete(string logi...
{-# LANGUAGE OverloadedStrings #-} module Hasmin.Types.BasicShapeSpec where import Data.Text (Text) import Data.Foldable (traverse_) import Data.Attoparsec.Text (Parser) import Test.Hspec.QuickCheck (modifyMaxSuccess) import Hasmin.Parser.Value import Hasmin.Types.Value import Hasmin.Types.BasicShape import Hasmin.T...
# Verzettler Verzettler turns key-value pairs provided in the JSON format into flash cards ready for duplex printing. ## Zettelserver Run it: $ go run server/zettelserver.go Then browse [localhost:3771/index.html](http://localhost:3771/index.html). Alternatively, use `curl` or the like: $ curl -X POST -F...
import { NamedNode } from '@rdfjs/types'; import { schema } from './namespace'; const values = { ReimbursementCap: schema.ReimbursementCap, Retail: schema.Retail, Wholesale: schema.Wholesale, }; export type DrugCostCategory = typeof values[keyof typeof values]; export default values;
import { Component, ViewChild, OnDestroy, ElementRef } from "@angular/core"; import { Grid as GridDHX } from "dhx-suite"; @Component({ selector: "app-grid", template: `<div #widget class="dhx-container--grid"></div>`, styleUrls: ["../app.component.scss"], }) export class GridComponent implements OnDestroy { @V...
package com.happyplaces.activities import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.OnMapReadyCallback import com.google.android.gms.maps.SupportMapFragment imp...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\comment; use App\reply; class repliesController extends Controller { //listing replies public function list(){ $list_replies = reply::all(); $data=[ 'list_replies' => $list_replies, ]; return view('dash...
import express, * as Express from 'express' import "reflect-metadata" import {ConnectionOptions, createConnection} from "typeorm" import bodyParser from 'body-parser' import cors from "cors" import * as ORMConfig from "../ormconfig.json" import {getDishes} from './seed' import menuApi from './api/menu/menuApi' import...
package com.cgkim.jobplanet.repo import com.cgkim.jobplanet.data.ItemsModel interface Repository { suspend fun getItems(): List<ItemsModel> }
import styled from 'styled-components' const H3 = styled.h3` font-size: 2.188rem; line-height: 1.1; font-weight: 300; ${p => p.theme.mediaQueries.ipadUp}{ font-size: 2.188rem; } ` export default H3
import {Injectable} from '@angular/core'; import {Observable} from 'rxjs'; import {FileEntry} from './types/file-entry'; import {UploadedFile} from './uploaded-file'; import {makeUploadPayload} from '../core/utils/make-upload-payload'; import {AppHttpClient} from '../core/http/app-http-client.service'; import {transfor...
<?php $gatewayType = "1"; //1 For Economy Gateway //2 For Premium Gateway $senderId = "economy"; //Your Sender ID //If you are using Economy Gateway, use "economy" as Sender Id //To test Premium Gateway, You can use "Demo" as Sender Id $counterCode = "94"; //Country Code $mobileNumber = "767XXXXXX"; //Mobile ...
--- layout: post title: The Bayesian infinitesimal jackknife date: 2020-08-09 02:00:00 -0800 categories: bayes --- I'm going to be speaking next week at [Stancon 2020](https://mc-stan.org/events/stancon2020/) about a project I've been trying to wrap up this summer: the Bayesian (first-order) infinitesimal jackknife...
create table sacc_frontend.competition_question ( id bigint auto_increment primary key, question_id bigint not null, competition_id bigint not null, remarks varchar(255) default '' not null, ...
#============================================================= -*-Perl-*- # # Pod::POM # # DESCRIPTION # Parses POD from a file or text string and builds a tree structure, # hereafter known as the POD Object Model (POM). # # AUTHOR # Andy Wardley <abw@wardley.org> # # Andrew Ford <A.Ford@ford-mason.co.uk> ...
module Effective module Snippets class DropCap < Snippet def snippet_attributes super + [:letter, :html_class] end end end end
# Does not require activesupport/etc, ensure you use this in an ActiveSupport # environment such as running rails app. module JsonTaggedLogging module Formatter # :nodoc: # This method is invoked when a log event occurs. def call(severity, timestamp, progname, msg) # ActiveSupport::TaggedLogging::Forma...
/** * @license * Copyright (c) 2019 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * b...
# Gamification-App This Project was made Anadolu Hayat Emeklilik Gamesurance Hackathon and won the 1st Prize. Microsoft Azure Database and Google Forms work integrated.
# !/usr/bin/env python # -*- coding: utf-8 -*- # vim: ts=2 sw=2 et ai ############################################################################### # Copyright (c) 2012...2017 Andreas Vogel andreas@wellenvogel.net # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software an...
<?php /** * Contains common functionality for CRUD Operation using Doctrine v2 * * @author Virendra Jadeja * @email <virendrajadeja84@gmail.com> */ class MY_Model extends CI_Model { /** * @var \Doctrine\ORM\EntityManager $em */ var $em; /** * * @var string $entity */ va...
require_relative 'node' require_relative 'linked_list' require_relative '../helper' example_of("creating nodes", Proc.new do node1 = Node.new(1) node2 = Node.new(2) node3 = Node.new(3) node1.next_node = node2 node2.next_node = node3 puts node1.describe end) example_of("push", Proc.new do list = Linked...
// Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 package com.daml.codegen.lf import java.io.File import com.daml.codegen.Util import com.daml.lf.data.Ref._ import scala.reflect.runtime.universe._ /** Record and variant source ...
use strict; use warnings; use Test::More; use Test::LeakTrace; require_ok("XSTest"); cmp_ok XSTest::test_new_sv_iv(42), "==", 42, "iv ok"; no_leaks_ok { XSTest::test_new_sv_iv(42) }; cmp_ok XSTest::test_new_sv_iv(0x7FFFFFFF), "==", 0x7FFFFFFF, "large iv ok"; cmp_ok XSTest::test_new_sv_iv(-0x80000000), "==", -0x80000...
# frozen_string_literal: true require 'test_helper' class NavigationTest < ActionDispatch::IntegrationTest include Deposit::Engine.routes.url_helpers test 'can see the main collection page' do get '/deposit' assert_response :success end end
#!/usr/bin/env python # encoding: utf-8 ''' @author: caroline @license: (C) Copyright 2019-2022, Node Supply Chain Manager Corporation Limited. @contact: caroline.fang.cc@gmail.com @software: pycharm @file: Utils.py @time: 2019/12/23 10:56 下午 @desc: ''' import xlrd import xlwt def get_real_value(value): """ ...
import { MComponent } from './component' export interface OptionProps { label?: any value?: any disabled?: boolean } export class Option extends MComponent { $props: OptionProps } export class _OptionComponent extends Option {}
# dtls_epoll_example * A DTLS server/client example with openssl-1.1.0 or above * Server support multi-client * A custom BIO with STL unordered_map and deque * Tested on CentOS 7.6 # Install * yum install -y readline-devel * Modify Makefile if needed * make all # Usage: * ./dtls_server 127.0.0.1:9000 * ./dtls_client...
action :create do script_name = ::File.basename(new_resource.name) bash_it_custom_dir = ::File.join(node['bash_it']['dir'], "custom") template ::File.expand_path(script_name, bash_it_custom_dir) do source new_resource.name owner WS_USER only_if { script_name =~ /\.bash$/ && ::File.directory?(bash_it_...
export const LOAD_USERS_LOADING = 'REDUX_SAGA_LOAD_USERS_LOADING'; export const LOAD_USERS_SUCCESS = 'REDUX_SAGA_LOAD_USERS_SUCCESS'; export const LOAD_USERS_ERROR = 'REDUX_SAGA_LOAD_USERS_ERROR'; export const loadUsers = () => dispatch => { dispatch({ type: LOAD_USERS_LOADING }); };
using Npe.UO.BulkOrderDeeds; using Npe.UO.BulkOrderDeeds.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; namespace UO_Bulk_Order_Deeds.ViewModels { public class VendorViewModel : ViewModelBase { public static VendorViewModel None = new VendorViewModel(Ve...
# frozen_string_literal: true class Constants INSIGHTSMETRICS_TAGS_ORIGIN = "container.azm.ms" INSIGHTSMETRICS_TAGS_CLUSTERID = "container.azm.ms/clusterId" INSIGHTSMETRICS_TAGS_CLUSTERNAME = "container.azm.ms/clusterName" INSIGHTSMETRICS_TAGS_GPU_VENDOR = "gpuVendor" INSIGHTSMETRICS_TAGS_GPU_NAMESPACE = "co...
module ExitCodes SUCCESS = 0 EXCEPTION = 1 MINIMUM_COVERAGE = 2 MAXIMUM_COVERAGE_DROP = 3 def stub_exit_code(code) `(exit #{code})` end end
require 'mime/types' module BPL::Derivatives module MimeTypeService # @param [String] file_path path to a file def self.mime_type(file_path) MIME::Types.type_for(file_path).first.to_s end def self.type_lookup(m_type) MIME::Types[m_type].first end end end
#!/usr/bin/ruby $: << File.dirname($0) + '/lib' require 'run_env' class Env < RunEnv def config super + <<EOD rows_per_wal=5 EOD end end Env.env_eval do |env| start 8.times do |i| snapshot if i == 4 connect.insert [1,2,3] end wait_for "snapshot" do File.open "00000000000000000005.snap" ...
package com.glitchcam.vepromei.photoalbum; public class PhotoAlbumData { public String photosAlbumName; public String photosAlbumTips; public String photosAlbumReplaceMax; public String photosAlbumReplaceMin; public String captionReplaceMax; public String getPhotosAlbumName() { return ...
-- script to load data into postgres -- remember to run a find on 0 and replace with 0 (number) -- remember to run a find . and replace with nothing! DROP TABLE IF EXISTS stats_2007_immigration; CREATE TABLE stats_2007_immigration ( iso_code text primary key, nationality text, political_region text, work ...
using OOPS.BLL.Abstract.StaticAbstract; using OOPS.Core.Data.UnitOfWork; using OOPS.DTO.Static; using OOPS.MapConfig.ConfigProfile; using OOPS.Model.StaticModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace OOPS.BLL.Concreate.StaticConcreate { public class Count...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | This file is where you may define all of the routes that are handled | by your application. Just tell Laravel the URIs it should respond | to...
let last_uuid = 0; export const uuid = () => last_uuid++;
/* * @Author: 时光弧线 * @Date: 2017-12-30 11:54:57 * @Last Modified by: 时光弧线 * @Last Modified time: 2017-12-30 13:11:34 */ package tcplibrary import ( "context" "crypto/tls" "errors" "net" "time" ) /* tcp golang客户端 */ // TCPClient tcp客户端 type TCPClient struct { *TCPLibrary pingData interface{} // ping时的包 c...
-- Copyright (c) Facebook, Inc. and its affiliates. -- -- This source code is licensed under the MIT license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} module Breakages where import Data.Aeson import ...
require "spec_helper" describe EM::Kannel::Validations do before do class Model include EM::Kannel::Validations attr_accessor :value validates :value, presence: true end end describe "#validate!" do context "invalid" do it "raises an ArgumentError" do expect { ...
package id.unikub.platFX.utils object Time: private var _deltaTime, _time = 0.0 private var _newTime = 0.0 private var _trueTime = System.nanoTime/1000000000.0 def deltaTime = _deltaTime def time = _time def update = _newTime = System.nanoTime/1000000000.0 _deltaTime = _newTime - _trueTime ...
# [Kong](https://github.com/Kong/kong) - nginx 기반의 오픈소스 API Gateway - 무료버전의 경우 REST API를 통한 설정 및 관리가 제공 - [konga](https://github.com/pantsel/konga)를 이용하여 GUI로 관리 가능 - Kong v1.3 기준 ## 구성요소 - Route - 외부에서 받은 request에 따라 라우팅 - Service - 라우팅 받은 서비스, 논리적 서비스 관리단위 - 하나 이상의 Route와 매핑가능 - Upstream - 모듈의 모음, 서비스에서 re...
package br.com.koruthos.cursoandroid.activities import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.view.View import android.widget.Toast import androidx.databinding.DataBindingUtil import br.com.koruthos.cursoandroid.R import br.com.koruthos.cursoandroid.dat...
#!perl package MY::TypeLib::MooXTypesMooseLike; use 5.006; use strict; use warnings; use Scalar::Util qw(looks_like_number); use MooX::Types::MooseLike; use MooX::Types::MooseLike::Base qw(Int); use base qw(Exporter); our @EXPORT = (); our @EXPORT_OK = (); our %EXPORT_TAGS; my $type_definitions = [ { nam...
import {bus, bus_event_names} from "@/bus"; import {RightMenuFuncTs} from "@/components/RightMenuFuncTs"; export namespace NoteListBarTs{ export const handle_mouse_down=(notelist_bar:any,event:MouseEvent)=>{ const _this = notelist_bar; if(event.button===0){ _this.click_detector.click((...
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} {-# OPTIONS_GHC -fno-warn-orphans #-} import Data.Void import GHC.Generics (Generic) import Test.Hspec import Cantor ...
- 原型中的``constructor``、``prototype``和``__proto__``之间的关系 - 闭包是指有权访问另一个作用域中的变量的函数
# frozen_string_literal: true module Drivers module Appserver class Base < Drivers::Base include Drivers::Dsl::Notifies include Drivers::Dsl::Output def configure super add_appserver_config add_appserver_service_script add_appserver_service_context end ...
Describe "Web Server" { It "Is Installed" { $Output = Get-WindowsFeature web-server $Output.InstallState | Should Be "Installed" } It "Includes ASP.NET 4.5" { $Output = Get-WindowsFeature Web-Asp-Net45 $Output.InstallState | Should Be "Installed" } } Describe "ActiveDir...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Category; use App\Models\Product; use App\Models\Signup; use App\Models\Cart; use App\Models\Contact; use DB; use Session; class IController extends Controller { public function index(){ $category = Category::all(); ...
package com.example.lwk.beans.WanActivity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example.lwk.beans.R; import com.example...
#!/bin/bash # No need of this # #java -p target -m com.andretc83.greetings java -jar target/com.andretc83.greetings.jar
package main import ( tea "github.com/charmbracelet/bubbletea" ) func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg := msg.(type) { case tea.KeyMsg: key := msg.String() if key == "ctrl+c" { return m, tea.Quit } return fetchModel(key), nil case tickMsg: return fetchModel(""), tick() ...
using System.Threading.Tasks; namespace CreativeCoders.GitTool.Commands.Releases.Commands.Create; public interface ICreateReleaseCommand { Task<int> ExecuteAsync(CreateReleaseOptions options); }
# winfax-sys # FFI bindings to winfax. [Documentation](https://retep998.github.io/doc/winfax-sys/)
# Copyright 2020 The KNIX 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 applicable law or agree...
<?php namespace App\DataFixtures; use App\Entity\TvShow; use App\Entity\User; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Persistence\ObjectManager; class TestFixtures extends Fixture { public function load(ObjectManager $manager) { $tvShow1 = new TvShow(); $tvShow1->setTitle("St...
import sbt.Keys.fork import DebianConstants._ publishTo in ThisBuild := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository"))) javacOptions in ThisBuild ++= Seq("-encoding", "UTF-8") lazy val copyAppProps = mappings in Universal ++= { ((sourceDirectory in Compile).value / "resources" ...
#if !WP7 && !WP8 using System; using System.Linq; using DigitalRune.Game; using DigitalRune.Graphics; using DigitalRune.Graphics.PostProcessing; using DigitalRune.Graphics.SceneGraph; using DigitalRune.Mathematics.Algebra; using Microsoft.Practices.ServiceLocation; namespace Samples { // Controls the GodRayFilter....
--- order: 1 title: zh-CN: 浏览器自动补全 en-US: Browser autocomplete --- ## zh-CN **Autocomplete** 让您可以启用浏览器预测用户输入的选项。 ## en-US The **Autocomplete** prop gives you the option to enable the browser to predict user input.
#!/usr/bin/env python """Conducts a series of operations to initialize the GameTime module, including the definition of a static class that allows a user to interact with GameTime through Python scripts. """ """See the LICENSE file, located in the root directory of the source distribution and at http://verifun.eecs.b...
import produce from 'immer'; import { APIError } from 'linode-js-sdk/lib/types'; import { useEffect, useState } from 'react'; interface UseAPIRequest<T> { data: T; loading: boolean; lastUpdated: number; update: () => void; transformData: (fn: (data: T) => void) => void; error?: Linode.ApiFieldError[]; } /...
--- title: Good Luck With That - Public License published: true tags: software --- When I wrote this, only God and I understood what I was doing Now, only God knows. [Github](https://github.com/me-shaon/GLWTPL)
require 'date' require 'yaml' require 'liquid' require_relative 'view_context' module Cucumber module Website class BasePage def initialize(front_matter) @front_matter = front_matter end def headers @front_matter.fetch('headers') { {} } end def cacheable? @front_matter.fetch('...
:- module(analXMLStructure,[compareXMLs/2,parseXMLStruct/1]). :- use_module(library(sgml)). parseXMLStruct(File1):- load_xml_file(File1,XML1), processXML(XML1), write("Parsing finished successfully"),nl. processXML([]). processXML([element(class:class,A,B)]):- processXML(A), processXML(B),!. p...
use oasis_core_keymanager_lib::keymanager::*; use oasis_core_runtime::{common::version::Version, config::Config}; mod api; pub fn main_with_version(version: Version) { let init = new_keymanager(api::trusted_policy_signers()); oasis_core_runtime::start_runtime( init, Config { versio...
# frozen_string_literal: true RSpec::Matchers.define :be_a_valid_vis do match { |vis| Vindetta::Validator.new(Vindetta::Standard::ISO3779).vis(vis) } end
/** * Copyright (c) 2020-present, Dash Core Group * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package org.dashj.platform.sdk.client class ClientApps(apps: Map<String, ClientAppDefinition>) { private val apps = hashMapOf<Stri...
<?php namespace Vispanlab\SiteBundle\Entity\Exercise; use Doctrine\ORM\Mapping as ORM; /** * @author Dimosthenis Nikoudis <dnna@dnna.gr> * @ORM\Entity */ class Solved extends BaseExercise { /** * @ORM\Column (name="goal", type="text") */ protected $goal; /** * @ORM\Column (name="question...
<?php class Issue2758TestListener extends PHPUnit_Framework_BaseTestListener { public function endTest(PHPUnit_Framework_Test $test, $time) { if (!$test instanceof PHPUnit_Framework_TestCase) { return; } $test->addToAssertionCount(1); } }
/* * Copyright (c) 2013 Functional Streams for Scala * * 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, modif...
package jp.zuikou.system.redditprojectsample1.domain.repository import io.reactivex.Completable import io.reactivex.Single import jp.zuikou.system.redditprojectsample1.data.datasource.Datasource import jp.zuikou.system.redditprojectsample1.domain.Pagination import jp.zuikou.system.redditprojectsample1.domain.model.Pos...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Events\ChatEvent; use App\Message; use Auth; use App\ChatRoom; use Log; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { ...
section.multiboot_h header_start: dd 0xe85250d6 ; multiboot 2 dd 0 ; architecture 0 dd header_end - header_start ; header length ;checksum dd 0x100000000 - (0xe8525 + 0 + (header_end - header_start)) ; multiboot tags are gonna go here ; end tag requires dw 0 ;type dw 0 ;flags dw 8 ;size header_en...
package com.drake.engine.sample import com.drake.engine.base.EngineActivity import com.drake.engine.sample.databinding.ActivityMain2Binding class MainActivity2 : EngineActivity<ActivityMain2Binding>(R.layout.activity_main2) { override fun initView() { } override fun initData() { } }
use crate::simple_players::*; use crate::traits::*; use std::fs::File; use std::io::prelude::*; /// Train a given player against itself pub fn train<S, A, P, E>( env: &mut E, player: &mut P, train_episodes: u32, eval_episodes: u32, cycles: u32, opponent_epsilon: f32, stats_file_name: &str, ...
package uk.gov.companieshouse.efs.api.submissions.validator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import uk.gov.companieshouse.efs.api.categorytemplates.service.CategoryTemplateService; import uk.gov.companieshouse.efs.api.formtemplates.reposit...
using System.Threading.Tasks; using Abp.Application.Services.Dto; using Abp.Webhooks; using Afonsoft.Ranking.WebHooks.Dto; namespace Afonsoft.Ranking.WebHooks { public interface IWebhookSubscriptionAppService { /// <summary> /// Returns all subscriptions of tenant /// </summary> ...
// 获取url中的参数 export const getUrlParams = (url = location.href) => { var reg = /(\w+)=([^&]+)/g, params = {}, result = []; url = url.split('?')[1] || ''; while ((result = reg.exec(url))) { params[result[1]] = result[2]; } return params; }; /** * 深拷贝 */ export const deepCl...
import CRUDMixins from '../crud/edit.js'; import Params from './Params.vue'; export default { data() { return { url: '/admin/components' } }, components: { Params }, methods: { getFormData() { this.form.params = this.$refs.params.params; ...