text
stringlengths
27
775k
/* * Copyright (c) 2017-2019 TIBCO Software Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requir...
<?php function checkNonchangeAbleIdentifier($identifier){ $noChangeIdentifier = ['podcast', 'video', 'openwriting', 'openreading']; if(in_array($identifier, $noChangeIdentifier)){ return true; }else { return false; } } ?>
{% extends '//mix/template/c_std.sh' %} {% block fetch %} https://ftp.mozilla.org/pub/security/nss/releases/NSS_3_66_RTM/src/nss-3.66-with-nspr-4.30.tar.gz 4addeabd4aedc1d589cc836577938da6 {% endblock %} {% block lib_deps %} lib/c lib/z lib/c++ {% endblock %} {% block bld_tool %} bld/bash bin/gyp bin/make bin/ninja ...
# Product-Management A mini project on Product Management using php. [![Release][release-shield]][release-url] [![Forks][forks-shield]][forks-url] [![Downloads][downloads-shield]][downloads-url] [![Stargazers][stars-shield]][stars-url] [![MIT License][license-shield]][license-url] ## Features * Homepage * Regist...
# Contribution Guidelines ## Creating issues Feature requests and bug reports should be made by using the [issue tracker](https://github.com/cachethq/Docker/issues). This "Dockerized" version of Cachet is maintained by members the Cachet community, so support issues will be address on a best effort basis. **Always b...
from __future__ import annotations from dataclasses import dataclass from typing import Any, cast import httpx import networkx from intents.utils import OnosRoute from intent_deployer import config from intent_deployer.hosts import Hosts from intent_deployer.links import Links from intent_deployer.switches import Sw...
package com.kode.formscreatorlib.Model; import java.util.ArrayList; public class RepeatBlock { private String repeatField; private ArrayList<String> repeatValueFrom = new ArrayList<>(); private String repeatHeader; public String getRepeatField() { return repeatField; } public ArrayLi...
using NPOI.HSSF.Util; using System; using System.Collections.Generic; using System.Text; namespace NPOI.OOXML.XSSF.UserModel { public class DefaultIndexedColorMap:IIndexedColorMap { public byte[] GetRGB(int index) { return GetDefaultRGB(index); } public static byte[...
#!/usr/bin/env bash export GPC_CONSUMER_SERVER_PORT="8090" export GPC_CONSUMER_GPC_GET_URL="https://orange.testlab.nhs.uk" export GPC_CONSUMER_URL="http://localhost:8090" export GPC_CONSUMER_SDS_URL="https://sandbox.api.service.nhs.uk/spine-directory/"
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.XR.ARFoundation; using UnityEngine.XR.ARSubsystems; public class TrackedImage : MonoBehaviour { private List<ARTrackedImage> _arTrackedImages = new List<ARTrackedImage>(); private ARTrackedIm...
// // test_unit.h // // Created by Alberto Lerner, then edited by Jonathan Tompson on 4/26/12. // #pragma once #include <unordered_map> #include <iostream> #include <string> #include <vector> #include "test_unit/param_map.h" extern bool TESTS_exit_on_fatal; extern bool TESTS_has_fatal_message; namespace tests { ...
package at.aau.itec.esop18.lesson03; public class BooleanFun { public static void main(String[] args) { boolean p = false; boolean q = true; System.out.println(p && q); } }
package compose.icons.lineawesomeicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter ...
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use DB; use Mail; use App\Mail\Forms; use App\Mail\Welcome; use Validator; class ApiController extends Controller { public function ts(Request $req) { return response()->json(number_format($req->ts)); } ...
#compdef pyenv if [[ ! -o interactive ]]; then return fi local state line typeset -A opt_args _arguments -C \ {--help,-h}'[Show help]' \ {--version,-v}'[Show pyenv version]' \ '(-): :->command' \ '*:: :->option-or-argument' case "$state" in (command) local -a commands commands...
<?php return [ // Service Factories 'service_manager' => [ 'invokables' => [ 'auth_adapter' => 'Library\Service\AuthAdapter' ], 'abstract_factories' => [ 'Zend\Cache\Service\StorageCacheAbstractServiceFactory', 'Zend\Log\LoggerAbstractServiceFactory',...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2017-2020 Couchbase, 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 * * ...
import { isUnknownArray } from "../../helpers/is-unknown-array" import { isUnknownObject } from "../../helpers/is-unknown-object" import { modifyJsonFile, toArray, toObject } from "../../helpers/json-files" import { install, packages } from "../packages" import { Step } from "../step" export const setUpEmotionStep: St...
# AWS ## CloudFront https://stackoverflow.com/questions/38735306/aws-cloudfront-redirecting-to-s3-bucket https://serverfault.com/questions/145859/how-can-i-limit-cloudfront-downloads https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serving-outdated-content-s3/ ## Amplify https://aws.amazon.com/ge...
import { Manager, SearchQuery, SearchResult } from "./Manager"; import { Node } from "./Node"; import { Queue } from "./Queue"; import { Sizes, State, VoiceState } from "./Utils"; export declare class Player { options: PlayerOptions; /** The Queue for the Player. */ readonly queue: Queue; /** Whether th...
using System; using System.ComponentModel.Composition; namespace CarBMW { [Export(typeof(CarHost.ICarContract))] public class BMW : CarHost.ICarContract { private BMW() { Console.WriteLine("BMW constructor"); } [ImportingConstructor] private BMW([Import("...
package com.sin.java.plot.util; final public class XLog { public static void log(String log) { System.out.println(log); } public static void log(String format, Object ...args) { log(String.format(format, args)); } }
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
/// /// \file Crc16Ccitt1021.hpp /// \author Geoffrey Hunter <gbmhunter@gmail.com> (www.mbedded.ninja) /// \edited n/a /// \created 2017-06-10 /// \last-modified 2018-01-25 /// \brief Contains the Crc16Ccitt1021 class. /// \details /// See README.rst in root dir for more info. #ifndef MN_SER...
{-# LANGUAGE FlexibleContexts, FunctionalDependencies, MultiParamTypeClasses, OverloadedLabels, UndecidableInstances, OverloadedStrings, TemplateHaskell, TypeApplications, TypeFamilies, DataKinds, TypeOperators, FlexibleInstances #-} module Generated.Support where import Godot import GHC.TypeLits class SceneNode (s...
package ttt.cli; import java.util.*; import javax.xml.ws.*; import static javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTY; import pt.ulisboa.tecnico.sdis.ws.uddi.UDDINaming; import ttt.*; // classes generated from WSDL public class Game { public static void main(String[] args) throws Exception ...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE NegativeLiterals #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE InstanceSigs #-} module HulkanEngine3D.Render.RenderObject where import qualified Data.Text as ...
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'capybara/rails' require 'capybara/rspec' require 'capybara/poltergeist' #require 'factory_girl' Capybara.configure do |c| c.run_server = true c.javascript_driver = :poltergeist c...
#SassCompiler Compile sass/scss to css directly within Codiad. ##Installation - Download the zip file and unzip it to your plugin folder. ##Credits [Sass.js - Version 0.9.2](https://github.com/medialize/sass.js) - MIT License
(ns clojuresque.hiccup.util "Utility functions for Hiccup." (:require [clojure.string :as str]) (:import java.net.URI java.net.URLEncoder)) (def ^:dynamic *base-url* nil) (defmacro with-base-url "Sets a base URL that will be prepended onto relative URIs. Note that for this to work correctly, it n...
// <auto-generated> // This code was generated by the UnitCodeGenerator tool // // Changes to this file will be lost if the code is regenerated // </auto-generated> package com.putridparrot.units; import net.jqwik.api.constraints.DoubleRange; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter...
<?php /** * STI - Project Web * WeChat * Description: web site to send mails between users * Authors: Loan Lassalle, Wojciech Myszkorowski */ /** * Gère la communication avec la base de données * * @author Lassalle Loan, Wojciech Myszkorowski * @since 27.09.2017 */ class Database { private static $_ins...
module TwilioCapability def self.generate(agent_id) # To find TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN visit # https://www.twilio.com/user/account account_sid = ENV['TWILIO_ACCOUNT_SID'] auth_token = ENV['TWILIO_AUTH_TOKEN'] capability = Twilio::JWT::ClientCapability.new(account_sid, auth_token) ...
-- 627. 变更性别 https://leetcode-cn.com/problems/swap-salary/ DROP TABLE IF EXISTS `salary`; CREATE TABLE `salary` ( `id` int NULL DEFAULT NULL, `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, `sex` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, ...
import redis import os import sdk r = redis.StrictRedis(host=sdk.config.state.host, port=sdk.config.state.port, db=0) def load(appname, state): """Loads app state from Jarvis into |state|. Returns: Flag indicating whether or not a saved state was found. """ msg_str = r.g...
package io.github.ppdzm.utils.spark import io.github.ppdzm.utils.universal.base.Logging import org.apache.spark.sql.SparkSession import org.apache.spark.streaming.{Seconds, StreamingContext} import org.apache.spark.{SparkConf, SparkContext} /** * Created by Stuart Alex on 2016/5/26. */ object SparkUtils extends Log...
package main import ( "gopkg.in/yaml.v2" "io/ioutil" "os" "testing" ) func Test_mergeConfigs(t *testing.T) { t.Parallel() a := &Config{ ListenAddr: "localhost:8080", Verbose: false, Commands: []*Command{ {Cmd: "echo"}, }, } b := &Config{ ListenAddr: "localhost:8081", Verbose: true, Co...
use strict; use warnings; use lib 't/lib'; use TestHelper qw( doc ); use Test::More; my ($doc) = doc( filename => 'test-data/socket.pl', ); my $expected = <<'EOF'; use strict; use warnings; use IO::Socket::INET (); use Socket qw( SO_REUSEPORT SOL_SOCKET ); foo( SO_REUSEPORT, SOL_SOCKET ); sub foo { } EOF is(...
plugins { id("au.com.dius.pact") } pact { serviceProviders { "Activity Service" { port = 5050 } } publish { pactBrokerUrl = "http://localhost:80" } }
<?php return [ 'GESTAO' => 'GESTAO', 'apellido'=>'Apellido', 'codigoDeClaseRepetido' => 'Codigo o nombre de clase repetidos! clase no creada !', 'codigoDeAulaRepetido' => 'Codigo o nombre de aula repetidos! aula no creada !', 'estado'=>'Estado', 'aprobado'=>'Aprobado', 'profesores' => 'Prof...
# print-json-with-jekyll print JSON with Jekyll ## Setup install dependencies. ```sh $ rake install ``` start jekyll. ``` $ rake preview ``` open `http://localhost:4000/` with the browser. ## License The MIT license.
import argparse import json import os import time import unittest from selenium import webdriver driver = None def setUpModule(): """Create the test browser only once to avoid overhead.""" global driver parser = argparse.ArgumentParser() parser.add_argument('--chrome', action='store_true') parse...
#if NET5_0 || NET5_0_OR_GREATER using System.Numerics; using System.Runtime.CompilerServices; #endif namespace K4os.Data.TimSort.Internals { /// <summary> /// All the bit hacks needed for quick integer math. /// See: https://graphics.stanford.edu/~seander/bithacks.html#IntegerLogDeBruijn /// </summary> public...
<?php namespace think\middleware\throttle; use Psr\SimpleCache\CacheInterface; /** * 计数器滑动窗口算法 * Class CouterSlider * @package think\middleware\throttle */ class CounterSlider extends ThrottleAbstract { public function allowRequest(string $key, float $micronow, int $max_requests, int $duration, CacheInterfa...
<# .SYNOPSIS Restores Azure v2 ARM virtual machines from a backup VHD location. Does not work with VMs configured with managed disks because they allow snapshots. Requires AzureRM module version 4.2.1 or later. .DESCRIPTION Copies VHD files from a backup location - from using the associated scr...
<?php namespace Symfony\Cmf\Bundle\CoreBundle\Slugifier; /** * @deprecated Since 1.0, to be removed in 2.0. Use Symfony\Cmf\Api\Slugifier\SlugifierInterface instead. */ interface SlugifierInterface { /** * Return a slugified (or urlized) representation of a given string. * * @param string $strin...
import starkbank from unittest import TestCase, main from datetime import date, timedelta from tests.utils.user import exampleProject from tests.utils.taxPayment import generateExampleTaxPaymentsJson from tests.utils.boletoPayment import generateExampleBoletoPaymentsJson from tests.utils.brcodePayment import generateEx...
module Rx.Observable.DoTest where import Data.IORef (atomicModifyIORef', newIORef, readIORef) import qualified Rx.Observable as Rx import Test.HUnit import Test.Hspec tests :: Spec tests = do describe "Rx.Observable.doOnCompleted" $ it "does a side effect when observable is completed" $ do var <- newIORe...
package br.ufs.hiring.stone.domain.tests import br.ufs.architecture.core.errors.InfrastructureError.LocalDatabaseAccessError import br.ufs.architecture.core.errors.NetworkingIssue.InternetUnreachable import br.ufs.hiring.stone.domain.* import com.nhaarman.mockito_kotlin.* import io.reactivex.Observable import org.juni...
import reduce from 'lodash/reduce' import { load } from './load' import { UserFnMapInput, LoadingMapState } from '../../types' const loadMap = (map: UserFnMapInput): LoadingMapState => { const state: Omit<LoadingMapState, 'promise'> & { [name: string]: any } = { loading: true, loaded: {}, e...
/* * Copyright (c) 2019. * Neato Robotics Inc. */ package com.neatorobotics.sdk.android.robotservices.spotcleaning import com.neatorobotics.sdk.android.robotservices.RobotServices object SpotCleaningServiceFactory { fun get(serviceVersion: String): SpotCleaningService? { return when { Robo...
#![no_std] #![no_main] extern crate metro_m0 as hal; extern crate panic_rtt; use cortex_m_rt::{exception, ExceptionFrame}; use hal::clock::GenericClockController; use hal::hal::usb::usb_device::bus::UsbBusWrapper; use hal::hal::usb::usb_device::prelude::*; use hal::prelude::*; use hal::{dbgprint, entry}; use hal::{in...
# # Cookbook:: push-jobs # resource:: service_sysvinit # # Author:: Jennifer Davis <sigje@chef.io> # Copyright:: 2017, Chef Software, Inc. # resource_name :push_jobs_service_sysvinit provides :push_jobs_service, platform: 'debian' do |node| node['platform_version'].to_i == 7 end provides :push_jobs_service, platfor...
{-# language DataKinds #-} {-# language KindSignatures #-} {-# language GADTs #-} {-# language TypeFamilies #-} module Lib where -- A marking on the game board is either X, O, or empty data Mark = X | O | E deriving (Show) -- A row on the game board data Row = Row Mark Mark Mark deriving (Show) -- Coordinates ...
# hacky hacky hacky -- generated by src/spec_gen.rb, then hand-tweaked # this spec is only looking to check each ts_ call doesn't raise or crash and # returns the right type, given acceptable args describe "node_spec.rb" do before do end it "type() # => String" do ret = node_0.type() ret.should_not == ni...
#!/bin/bash archive_path=/opt/tools/sum_1.6.0_Linux_x86_64_20160128.tar.gz bin_path=/opt/tools/bin/sum if [[ -x $bin_path ]]; then echo "Supermicro Update Manager already installed" elif ! [[ -f $archive_path ]]; then echo "Missing $archive_path" echo "Will not try to install Supermicro Update Manager" else...
import * as api from '@app/api/_index'; import * as actionTypes from '@app/store-actions/action-types'; import * as types from '@app/types/_index'; const initialState: api.Mconfig[] = []; export function mconfigsReducer( state = initialState, action: types.MconfigsActions ): api.Mconfig[] { switch (action.type)...
// ============================================================================ // Instruction-Level Abstraction of LeWiz Communications Ethernet MAC // // This Instruction-Level Abstraction (ILA) description is derived based on the // LeWiz Communications Ethernet MAC (LMAC), which is licensed under GNU LGPL. // Check...
import {Component, Output, EventEmitter} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {HttpModule, Http} from '@angular/http'; @Component({ selector: 'header', templateUrl:'./app.header.component.html' }) export class HeaderComponent { searchText : string = "Search"; p...
package com.justai.jaicf.examples.viber import com.justai.jaicf.BotEngine import com.justai.jaicf.activator.regex.RegexActivator import com.justai.jaicf.builder.Scenario import com.justai.jaicf.channel.viber.api.CarouselElement import com.justai.jaicf.channel.viber.api.ViberEvent import com.justai.jaicf.channel.viber....
# -*- encoding: utf-8 -*- module Ackr # Format strings to be displayed on terminal. class Formatter # Public: # # search_term - The String or Regexp to look for. def initialize search_term @search_term = search_term end # Public: format a line with matched term(s). # # line...
package com.chipcerio.moovy.features.master_list import android.support.v7.util.DiffUtil class MoviesDiffCallback ( private val oldMovies: List<DisplayableMovie>, private val newMovies: List<DisplayableMovie> ) : DiffUtil.Callback() { override fun getOldListSize(): Int = oldMovies.size override fun ...
namespace Ateliex.Areas.Cadastro.Enums { public enum ModeloRecursoTipo { Material = 1, Transporte = 2, Humano = 3 } }
package ${package}.applicationmodel object ${pascalCaseTransformerId}ParametersConstants { object Mandatory { const val NAME = "mandatory" @JvmField val CLASS = String::class.java } object Optional { const val NAME = "optional" @JvmField val CLASS = String:...
--- title: "JS IIFE(즉시 호출 함수 표현식)" excerpt: "JS IIFE(즉시 호출 함수 표현식)" toc: true toc_sticky: true categories: - js tags: - js last_modified_at: 2020-03-14T08:06:00-05:00 --- ## IIFE란? IIFE(Immediately Invoked Function Expressions: "Iffy"라고 발음)는 **즉시 호출 함수 표현식**의 줄임말이다. 기본적인 형태 ```js (function(){ //Do fun stu...
<?php namespace DIServer\Interfaces; Interface IEvent { /** * 添加某个行为到指定标签 * * @param string $tag 标签名 * @param mixed $behavior 行为定义(is_callable为true即可),可以是'函数名'、[对象,'方法名’]、闭包方法 * * @throws \Exception */ function Add($tag, $behavior); /** * 添加一系列行为到指定标签 * * @param stri...
"use strict"; var Cylon = require("cylon"); Cylon.robot({ connections: { bluetooth: { adaptor: "central", uuid: "d03972a24e55", module: "cylon-ble" } }, devices: { playbulbcandle: { driver: "playbulb-candle" } }, work: function(my) { my.playbulbcandle.turnOff(); after((2).seconds(), functi...
package io.vertx.tp.ambient.uca.digital; import cn.vertxup.ambient.domain.tables.daos.XTabularDao; import io.vertx.core.Future; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObject; import io.vertx.up.eon.KName; import io.vertx.up.eon.Values; import io.vertx.up.unity.Ux; import io.vertx.up.util.Ut...
import styled from '@emotion/styled'; import React, { FunctionComponent } from 'react'; import { Aside, Header } from '@/components'; import { Main } from '@/styles/organisms/Main'; const Grid = styled.div` display: grid; grid-template-columns: 288px auto; grid-template-rows: 80px auto; grid-template-areas: ...
module FloodgateSpec where import Test.Hspec import Polysemy import Polysemy.Floodgate import Polysemy.Trace spec :: Spec spec = describe "Floodgate" $ do it "should delay held traces until release" $ do let (ts, n) = run . runTraceList . runFloodgate $ do hold $ trace "first1" hold $ trace ...
INSERT INTO country (name) VALUES ('India'); INSERT INTO country (name) VALUES ('Brazil'); INSERT INTO country (name) VALUES ('USA'); INSERT INTO country (name) VALUES ('Italy'); COMMIT;
#Dir[File.join(File.dirname(__FILE__), 'active_record', 'models', 'login_attack_report', '*.rb')].each do |file| # require "login_attack_report/frameworks/active_record/models/#{File.basename(file, '.rb')}" #end require "login_attack_report/frameworks/active_record/models/l_a_r_version.rb"
#include "stdafx.h" #include "keyManager.h" DEFINITION_SINGLE(KeyManager) KeyManager::KeyManager() { } KeyManager::~KeyManager() { } HRESULT KeyManager::init() { //키가 전부 눌려있지 않은 상태로 초기화하자 for (int i = 0; i < KEYMAX; i++) { _keyUp.set(i, false); _keyDown.set(i, false); } playerKey[P1_U...
--- id: developers title: Guide for Developers category: developers --- Thorium is built on a number of technologies and tools: * [React](https://facebook.github.io/react/) for the frontend * [Apollo Client](http://www.apollostack.com/) for the data layer * [GraphQL](http://graphql.org) for the transmission layer * ...
require_relative "../common" namespace :snapshot do @testname = "snapshot" desc "check terraform is installed" task :check => :environment do system("command -v terraform > /dev/null") or raise("install terraform to provision powervc vm") end desc "snapshot a vm" task :apply => :check do @testnam...
# Hooks for [logrus](https://github.com/Sirupsen/logrus) Example ```go package main import ( "net/http" "github.com/Decentr-net/logrus/filename" "github.com/Decentr-net/logrus/sentry" log "github.com/sirupsen/logrus" ) var ( dsn = "http://60a0257d7b5a429a8838e5f2ba873ec9@example.com/1" ) func main() { ...
/** * Generated by scripts/generate-emojis.js. * DO NOT EDIT! */ import * as Emojis from '../../people-body/person-role'; export const EMOJI_LIST = [ { emoji: Emojis.PersonRole1, name: 'PersonRole1' }, { emoji: Emojis.PersonRole10, name: 'PersonRole10' }, { emoji: Emojis.PersonRole100, name: 'PersonRole100' ...
package fr.unice.polytech.al.trafficlight.graph; import org.junit.Test; import static org.junit.Assert.*; /** * Created by user on 12/01/17. */ public class WeightedDirectedGraphTest { @Test public void testAddNode() throws Exception { WeightedDirectedGraph<String> graph = new WeightedDirectedGrap...
#This script is almost verbatim from https://github.com/tobania/VSTS.Extension.EntityFrameworkMigrations [CmdletBinding()] param( ) $PackagesConfig = Get-VstsInput -Name "PackagesConfig" -Require $PackagesFolder = Get-VstsInput -Name "PackagesFolder" -Require $EFPackageName = Get-VstsInput -Name "EFPackage...
__all__ = ( "object_property", "bool_property", "array_property", "set_property", "dict_property", ) from objc import ivar, selector, _C_ID, _C_NSBOOL, _C_BOOL, NULL, _C_NSUInteger from objc import lookUpClass from copy import copy as copy_func import sys if sys.version_info[0] == 2: import co...
package com.serebit.diskord import com.serebit.diskord.events.Event import com.serebit.diskord.events.MessageCreatedEvent object EventDispatcher { private val eventListeners: MutableSet<(Event) -> Unit> = mutableSetOf({ evt -> (evt as? MessageCreatedEvent)?.let { if (it.message.author.id != 45...
var a00456 = [ [ "KeyDesc", "a00456.html#a486dfb881bc360bbfbd36248bba80552", null ], [ "KeySize", "a00456.html#a510104dbda460e78eb8d323502594ef2", null ], [ "Root", "a00456.html#ab52e8a6004fc595de526dfa831c2e725", null ] ];
using System.Collections.Generic; using System.Linq; public class Kingdom : IKingdom { private King king; private List<IKingGuard> kingGuards; public Kingdom(King king) { this.KingGuards = new List<IKingGuard>(); this.King = king; } public List<IKingGuard> KingGuards { get =>...
using System; using System.Collections.Generic; namespace TriviaGame { class Program { static void Main() { Answers a = new Answers(); Game g = new Game(a); a.TextFileToDictionary(); g.GameFunc(); } } }
For kubernetes deployment we are using <b>ConfigMap</b> kubernetes entity to provide tb-nodes with logback configuration. So in order to update <b>logback.xml</b> you need to do the following: ```bash edit common/tb-node-configmap.yml kubectl apply -f common/tb-node-configmap.yml ``` After 10 seconds the changes sh...
@testset "tagmap" begin # Visit every entry in the map. @testset "tag $t" for t in keys(PNML.tagmap) @test haskey(PNML.tagmap,t) @test !isempty(methods(PNML.tagmap[t], (EzXML.Node,))) || !isempty(methods(PNML.tagmap[t], (EzXML.Node, PnmlType))) end #TODO: Add non-trivial te...
import { erpPostNew } from 'services/ajax'; export default { namespace: 'targetCharge', state: { pannes: [{ title: '目标管理', content: null, key: '1', closable: false }], activeKey: '1', dataSource: [ { key: '1', group: 'A小组', groupman: ['张大山', '刘晓吧', '黄校'], station:...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreatePcostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pcosts', function(Blueprint $table) { $tabl...
@include('Restaurante.recursos') <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <div class="container marg"> <div class="panel panel-default"> <div class="panel-heading"><h4>Agregar Alimento</h4></div> <div class="container"> {{Form::open(arr...
//unsigned int good; unsigned int good=12; int main () { int a=14; int b=21; while (a != b) { if (a > b) a-= b; else b -= a; } good = a; return 0; }
package common import "container/list" func MakeInfinite() (chan <-interface{}, <-chan interface{}) { in := make(chan interface{}) out := make(chan interface{}) go func() { inQueue := list.List{} outCh := func() chan interface{} { if inQueue.Len() == 0 { return nil } return out } curVal := ...
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System.Collections.Generic; namespace CTFcolab.Entity { [Table("User")] public class User : IEntity { public User() { this.Teams = new HashSet<Team>(); } ...
var dir_0416c842a0c2c99f7d945ea84c865809 = [ [ "DrawFluence.C", "d1/dc1/DrawFluence_8C.html", "d1/dc1/DrawFluence_8C" ] ];
# Release History ## 1.0.0-beta.3 (Unreleased) ### Features Added ### Breaking Changes ### Bugs Fixed ### Other Changes ## 1.0.0-beta.2 (2021-12-06) - Azure Resource Manager PolicyInsights client library for Java. This package contains Microsoft Azure SDK for PolicyInsights Management SDK. Package tag package-2...
using System; using System.Linq; using System.Management; namespace SessionWatch.Service { internal class Machine { public String GetUsername() { try { var scope = new ManagementScope("\\\\.\\root\\cimv2"); scope.Connect(); ...
# Space Rocks A simple space game made with Python and Pygame ## Installation Requires Python 3. ``` pip install -r requirements.txt python space_rocks ```
// Copyright (c) 2017, 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 'package:test/test.dart'; import 'package:stream_transform/stream_transfor...
package com.cheise_proj.local.model import androidx.room.Entity import androidx.room.PrimaryKey import com.cheise_proj.local.mapper.user.UserLocalDataMapper @Entity(tableName = "users") data class UserLocal( val email: String, val avatarUrl: String, @PrimaryKey(autoGenerate = false) val userId: String...
<?php ini_set("display_errors", true); ini_set("display_startup_errors", true); error_reporting(E_ALL); setlocale(LC_ALL, "", "pt_BR.utf8"); require_once __DIR__ . '/vendor/autoload.php'; $api = new Routes\Api(); $api->loadMap(); $api->setRequestAndDispatch();
#!/usr/bin/env bash set -e # -device ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 # -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on ./build.sh pushd ../efi-pcm-dxe ./build.sh popd pushd ../efi-pcm-test ./build.sh popd # pushd ../edk2-test # ./build.s...