text
stringlengths
27
775k
import java.io.*; import java.util.*; /** * * @author Christine Peterson * @version 2018 */ public class FFB_2018_R_Peterson_HowMany { public static void main(String[] args) throws FileNotFoundException { Scanner scan = new Scanner(new File("R2.txt")); int attackers = scan.nextInt()...
namespace Dgt.Minesweeper.Engine { public static class AssemblyMarker { } }
// // Product.h // MyTableViewSamples // // Created by Alireza Davoodi on 2017-03-16. // Copyright © 2017 CICCC. All rights reserved. // #import <Foundation/Foundation.h> @interface Product : NSObject @property (strong, nonatomic) NSString* imageName; @property (strong, nonatomic) NSString* desc; -(id) initWit...
# toast-archive Python web-scraper to create an archive of website The-Toast.net. Outputs a tsv file.
from PyQt5.QtWebEngine import * #from PyQt5.QtGui import * #from PyQt5.QtDesigner import * from PyQt5.QtCore import * from PyQt5.QtWebEngineWidgets import * from PyQt5.QtWidgets import * class TethysBrowser(QMainWindow): def __init__(self, *args, **kwargs): super(TethysBrowser, self).__init__(*ar...
package excel.decoder import com.typesafe.scalalogging.LazyLogging import java.util.Date import org.apache.poi.ss.usermodel.Cell import org.apache.poi.xssf.usermodel.XSSFWorkbook import org.scalatest.{ FlatSpec, GivenWhenThen, Matchers } import scala.collection.mutable class CellImplicitsSpec extends FlatSpec with Gi...
package org.directwebremoting; import javax.servlet.ServletContext; import org.directwebremoting.extend.Builder; import org.directwebremoting.extend.Factory; /** * Accessor for the current ServerContext. * @author Joe Walker [joe at getahead dot ltd dot uk] */ public class ServerContextFactory { /** * Ac...
export default function objectAssign(target, ...agrvs) { for (let i = 0, j = agrvs.length; i < j; i++) { const source = agrvs[i] || {} for (const prop in source) { if (source.hasOwnProperty(prop)) { const value = source[prop] if (value !== undefined) { target[prop] = value ...
Run: ```sh git checkout mfig-localnet-3.1 make localnet-start cp build.linux/ag0{,-agoric-3.1} ``` Propose software upgrade governance: ```sh voting_period_s=240 latest_height=$(./ag0.sh status | jq -r .SyncInfo.latest_block_height) height=$(( $latest_height + $voting_period_s / 3 )) chainid=$( ./ag0.sh status | jq ...
package config import "fmt" // ManagerConfig is config object that will hold everything todo with the endpoints itself, including // the datamodels, as well as the generic endpoints that will be set. Things like healthcheck and eventually, // the login endpoint type ManagerConfig struct { Generics []string `js...
template<typename T, class Sub> State<T,Sub>::State(T v) : value(v) {} template<typename T, class Sub> State<T,Sub>::State(){} template<typename T, class Sub> T State<T,Sub>::get() const { return value; } template<typename T, class Sub> void State<T,Sub>::set(T v) { value=v; } template<typename T, class Sub>...
/* * * Headwind MDM: Open Source Android MDM Software * https://h-mdm.com * * Copyright (C) 2019 Headwind Solutions LLC (http://h-sms.com) * * 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 Licens...
# frozen_string_literal: true require 'spec_helper' RSpec.describe Sidekiq::Prometheus::Exporter::Cron do describe '#to_s' do let(:exporter) { described_class.new } let(:metrics_text) do # rubocop:disable Layout/IndentHeredoc <<-TEXT.chomp # HELP sidekiq_cron_jobs The number of cron jobs. # TYPE...
package typingsSlinky.maximMazurokGapiClientSheets.gapi.client.sheets import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait DimensionRange extends StObject { /*...
#! /usr/bin/ruby1.8 # # read/berkeley_read_ruby.rb # # Mar/22/2013 # require 'bdb' require 'json' # db_file="/var/tmp/berkeley/cities.db" # ee = BDB::Btree::open(db_file,"table1","r",0777) ww=ee.to_hash; ee.close # puts "Content-type: text/json\n\n" # str_out="{" ww.sort.each {|key,value| # print (key,value) llx=v...
#!/bin/sh if ! which puppet > /dev/null; then wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb sudo dpkg -i puppetlabs-release-trusty.deb sudo apt-get --assume-yes update sudo apt-get --assume-yes upgrade sudo apt-get --assume-yes install puppet fi;
--- layout: post title: '20110425' date: '2011-04-25 18:44:00' --- <p>追求重要的东西,哪怕失败了,这个世界也会因为你的尝试而更加精彩。—Tim O’Reilly</p>
package azweather import ( "net/url" "strconv" ) const DefaultApiVersion = "1.0" const DefaultFormat = "json" type Optionable interface { Options() Options } type Options struct { Format string ApiVersion string Details string Duration *int Language string Unit ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import React from 'react'; class Cat extends React.Component { render() { const mouse = this.props.mouse; return ( <img src='./cat.jpg' alt='猫咪' style={{ position: 'absolute', left: mouse.x, top: mouse.y }} /> ); } } class MouseWithCat extends React.Component { con...
/* (c) Copyright 2012 Felipe Magno de Almeida * * Distributed under the Boost Software License, Version 1.0. (See * accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ #ifndef MORBID_IIOP_OUTPUT_ITERATOR_HPP #define MORBID_IIOP_OUTPUT_ITERATOR_HPP #include <boost/spirit/home/k...
package au.com.tilbrook.android.rxkotlin.fragments import android.support.v4.app.Fragment import au.com.tilbrook.android.rxkotlin.MyApp open class BaseFragment : Fragment() { override fun onDestroy() { super.onDestroy() MyApp.instance.refWatcher.watch(this) } }
<?php defined('BASEPATH') or exit('No direct script access allowed'); /** * Базовая модель * * Общие методы для работы в пользовательской части * * @author Sergey Nizhnik <kroloburet@gmail.com> */ class Front_basic_model extends CI_Model { function __construct() { parent::__construct(); } ...
# tMind-Ui --- ## [规范(Rule)](./Rule/index.md) ## 基础(Base) ### 字体(tFont) ### 颜色(tColor) ### 图标(tIcon) ## 布局容器 (LayerWrapper) ### 栅格(tGrid) ### 单元(tUnit) ### 表单(tForm) ### tab页(tTab) ### 步骤条(Steps) ## 数据容器(DataWrapper) ### 卡片(tCard) ### 列表(tList) ### 折叠面板(tCollapseableList) ### 选择卡(tSelectCard) ### 表格(t...
CREATE OR REPLACE FUNCTION test_excep (arg INTEGER) RETURNS INTEGER AS $$ DECLARE res INTEGER; BEGIN res := 100 / arg; RETURN res; EXCEPTION WHEN division_by_zero THEN RETURN 999; END; $$ LANGUAGE plpgsql;
exports.acssFilesList = (pathToProp = '') => [ `${pathToProp}acss/acss-color.json`, `${pathToProp}acss/acss-margin.json`, `${pathToProp}acss/acss-padding.json`, `${pathToProp}acss/acss-width.json`, `${pathToProp}acss/acss-height.json`, `${pathToProp}acss/acss-top-right-bottom-left.json`, `${pathToProp}acs...
/* * main.c */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "list.h" #include "token.h" #include "common.h" #include "parse.h" #include "error.h" #include "reduce.h" #include "defopcode.h" #include "uniquestring.h" static void usage (const char *progname); static void unrecognized (const ...
# Embroidery This program is created to generate embroidery patterns been given only the input image and the size of the embroidery picture. It uses special algorithms to find the most appropriate DMC thread for a particular color represented as RGB tuple. Involves using Floyd Steinberg's algorithm for better effect a...
#!/bin/bash # # Copyright 2015 The Bazel Authors. 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...
<?php namespace Alcaeus\MongoDbAdapter\Tests\Mongo; use Alcaeus\MongoDbAdapter\Tests\TestCase; /** * @author alcaeus <alcaeus@alcaeus.org> */ class MongoClientTest extends TestCase { public function testSerialize() { $this->assertInternalType('string', serialize($this->getClient())); } pub...
# frozen_string_literal: true require "rails_helper" RSpec.describe HomeController, type: :controller do let!(:proposed_event) { create :event, :proposed } let!(:past_event) { create :event, :scheduled, starts_at: 1.month.ago } let!(:future_event) { create :event, :scheduled, starts_at: 1.month.from_no...
module Days.Day09 where import qualified AoC import Data.Bifunctor (Bifunctor (first)) import Data.List (tails) windows :: Int -> [a] -> [[a]] windows m = foldr (zipWith (:)) (repeat []) . take m . tails validNum :: (Eq a, Num a) => a -> [a] -> Bool validNum n xs = or [True | x <- xs, y <- xs, x + y == n] partA :: ...
#! /bin/bash # # Run the docker container. Stop any previously running copies. # ./stop.sh relex-plain docker run --rm --name="relex-plain" -p 3333:3333 \ -w /home/Downloads/relex-master opencog/relex /bin/sh plain-text-server.sh clear
package com.ricardomiranda.shop import org.scalatest.{Matchers, WordSpec} class BillingSpec extends WordSpec with Matchers { "Regular Billing constructor" should { "Create a Regular Billing given correct parameters" in { val actual: Regular = Regular(code = "PEN") assert(actual.isInstanceOf[Regular...
package eu.supersede.integration.api.pubsub.evolution; import javax.jms.MessageListener; import eu.supersede.integration.api.pubsub.iTopicSubscriber; public interface iEvolutionSubscriber extends iTopicSubscriber{ //Adaptation Alert Subscriptor void createEvolutionAlertSubscriptionAndKeepListening(MessageListener ...
#![allow(dead_code)] #![warn(clippy::unused_io_amount)] use std::io::{self, Read}; fn question_mark<T: io::Read + io::Write>(s: &mut T) -> io::Result<()> { s.write(b"test")?; let mut buf = [0u8; 4]; s.read(&mut buf)?; Ok(()) } fn unwrap<T: io::Read + io::Write>(s: &mut T) { s.write(b"test").unwra...
<?php class dbc{ protected $host; protected $username; protected $password; protected $dbname; protected $conn; function __construct($config){ dbc::filtering(extract($config)); $this->host = $host; $this->username = $username; $this->password = $password; $this->dbname = $dbname; } protected f...
using NotaFiscalNet.Core.Interfaces; using NotaFiscalNet.Core.Validacao; namespace NotaFiscalNet.Core { /// <summary> /// Contém as informações de Totalização da Nota Fiscal Eletrônica. /// </summary> public sealed class TotalNFe : ISerializavel { /// <summary> /// Retorna o Total de...
<?php /** * @copyright 2006-2013, Miles Johnson - http://milesj.me * @license https://github.com/milesj/utility/blob/master/license.md * @link http://milesj.me/code/cakephp/utility */ Configure::write('debug', 2); Configure::write('Cache.disable', true); App::uses('BaseInstallShell', 'Utility.Console...
echo "Installing Oracle JDK..." sudo apt-get install -y python-software-properties sudo add-apt-repository -y ppa:webupd8team/java sudo apt-get update echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections sudo apt-get install -y oracle-java8-installer # java -versi...
* [AllFiles.html](AllFiles.html) * [FromInClassDiscussionOfRoutes.html](FromInClassDiscussionOfRoutes.html) * [GoogleSiteAssignment.html](GoogleSiteAssignment.html) * [Ideas.html](Ideas.html) * [Prog270-2016-Student-Sites.html](Prog270-2016-Student-Sites.html) * [Prog270-Resources-2016-Fall.html](Prog270-Resources-2016...
/* * Dedekind Reals - Java Library for computing with Dedekind Reals * Copyright (c) 2019 Ivo List * * This software is distributed under the terms found * in file LICENSE.txt that is included with this distribution. */ package com.github.comius.reals.newton import org.junit.Test import com.github.comius.Round...
package com.farmerworking.db.rabbitDb.impl.file; import com.farmerworking.db.rabbitDb.api.DBComparator; import com.farmerworking.db.rabbitDb.impl.memtable.InternalEntryComparator; import com.farmerworking.db.rabbitDb.impl.memtable.InternalKey; import java.util.ArrayList; import java.util.List; public class FileManag...
import tensorflow as tf def root_mean_sqrt_error(labels=None, predictions=None): rmse = tf.sqrt(tf.reduce_mean(tf.square(tf.subtract(labels, predictions))), name="rmse") return rmse
package main; public class ErrorResponse { private String type; private String title; private String detail; private int status; private String instance; public ErrorResponse(String detail, String instance) { this.type = "http://cs.iit.edu/~virgil/cs445/project/api/problems/data-validation"; this.title =...
class Term < ActiveRecord::Base attr_accessible :doc_freq, :word set_primary_key :word has_many :freq_term_in_doc, :foreign_key => "word" end
#!/bin/bash cp README.md docs/source/README.md cp Scripts.md docs/source/Scripts.md cp GUI.md docs/source/GUI.md cp Contributing.md docs/source/Contributing.md cp CODE_OF_CONDUCT.md docs/source/CODE_OF_CONDUCT.md cp _static/*.png docs/source/_static/ cd docs if [ -d build ]; then rm -r build fi make html cd ..
# Playing with Eleventy ## Reference <https://www.11ty.dev/> ## Prerequisites Eleventy v0.11.1 requires Node 8 or newer. ```text $ node --version v12.16.3 ``` ## Getting Started Let's first install eleventy using `npm`: ```text $ npm install -g @11ty/eleventy ... + @11ty/eleventy@0.11.1 added 393 packages from ...
""" pmc ~~~ Simple package metadata compiler. You can use it with package.meta to describe your composer, npm, etc. packages. :copyright: (c) 2013-2016 OctoLab, https://www.octolab.org/ <feedback@octolab.org> :license: MIT """ from .filesystem import File, Watcher from .parser import Parser, Yaml...
-- | Utility functions for providing random elements to the game. module Shuffle where import System.Random -- | Select an element from a non-empty list with uniform distribution. randomElement :: [a] -> IO a randomElement xs | n == 0 = fail "randomElement: no elements" | otherwise = do r <- randomRIO (0,n-1) ...
/* * Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. */ package dev.icerock.tools.shaper.core import kotlin.test.Test import kotlin.test.assertEquals class StringExtTest { @Test fun `camel to snake case cases`() { assertEquals( expected = ...
package util import ( "github.com/winhtaikaung/Rabbit-Go/rabbit" ) // search keyword: golang zawgyi to unicode // https://github.com/winhtaikaung/Rabbit-Go func Zg2uni(str string) string { return rabbit.Zg2uni(str) }
<?php namespace App\File\Saver; /** * Interface SaverInterface */ interface SaverInterface { /** * @param string $filename * @param string $content * @return string $path */ public function saveToFile($filename, $content); }
import { Request } from '../request'; import { Response } from '../response'; export interface TransportInterface { execute(request: Request): Promise<Response>; }
using Newtonsoft.Json; namespace Kentico.Kontent.Management.Models.Types; /// <summary> /// Represents the limitation for the number of items. /// </summary> public class LimitModel { /// <summary> /// Specifies the image size or how many times something can be used within the element. /// </summary> ...
package service import ( "fmt" "io" "net/http" "net/url" "strconv" "strings" "github.com/gorilla/websocket" "github.com/livekit/protocol/livekit" "github.com/livekit/protocol/logger" "github.com/livekit/livekit-server/pkg/config" "github.com/livekit/livekit-server/pkg/routing" "github.com/livekit/livekit...
--- layout: agenda2 date: March 5th - 7th, 2012 permalink: meetings/2012/03/agenda year: "2012" month: "03" ---
package src var () type ArgsNewConnection struct { Cid string Uid string Hostid string } type ResponseNewConnection struct { Connected bool RemoteHostId string } type ArgsNewConnectionPacket struct { Cid string Uid string Hostid string Packet []byte }
using System; using System.IO; namespace CIEID { public enum LogLevel { NONE = 0, DEBUG = 1, INFO = 2, ERROR = 3, }; public class Logger { public static LogLevel DefaultLogLevel = LogLevel.NONE; private LogLevel _level; public LogLevel Level...
// IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS, NATIVE class A1 : MutableCollection<String> { override val size: Int get() = 56 override fun isEmpty(): Boolean { throw UnsupportedOperationException() } override f...
import 'dart:io'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; class OurPost { String uid; List<TextEditingController> descriptions; TextEditingController coverDescription; int imageCount; List<File> images; File coverImage; Timestamp time; int likeCoun...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\item; class Requisition extends Model { //Asignacion masiva, Para protejer id y el status protected $guarded = ['id', 'created_at', 'update_at']; //protected $fillabl...
const menuIcon = document.querySelector(".menu-icon"); const mobileMenu = document.querySelector(".navbar-mobile"); const remoteWorkshopBtn = document.querySelector(".tab-item.remote"); const inPersonWorkshopBtn = document.querySelector(".tab-item.in-person"); const remoteGuidelines = document.querySelector(".remote.wo...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distr...
class HierarchyEntriesController < ApplicationController # GET /pages/:taxon_id/entries/:id/ def show hierarchy_entry_id = params[:id] redirect_to taxon_entry_overview_path(params[:taxon_id], hierarchy_entry_id) end # POST /pages/:taxon_id/entries/:id/switch def switch hierarchy_entry_id = param...
@BussFacade public interface MyInterface { String doA(int lo); String doB(int lolo); }
# [DEPRECATED] hugo-learn-doc **Deprecated** documentation for Hugo Learn Theme (v1). Learn theme is not deprecated though. It's is now in v2 and is available here : - Live Demo/Documentation : https://learn.netlify.com/ - Theme : https://github.com/matcornic/hugo-theme-learn - Documentation: https://github.com...
WookieController ================ Tiny project to play around with Chibios on a STM32F4 Discovery board
package ru.tetraquark.pathfinderlib.core.map data class MapCell( val x: Int, val y: Int, val cellType: CellType )
(in-package #:simple-prog) (defvar *environment-type* :small) (defvar *use-complex-environment* nil) (defvar *environment* nil) (defvar *program* #'simple-robot-prog) (defvar *exploration-strategy* :random) (defparameter *algorithm-names* (list ;; 'smdpq ...
<?php /** * Available variables * * $products an array of "themed" api product elements * $num_products total number of products * $raw_products - PHP array of products, each of which is an associative array */ ?> <div class="api-product-listing-wrapper"> <div class="apiproduct_filtered_list" id="apiproduct_fil...
using System.Threading.Tasks; namespace JPenny.Tasks.Resolvers { public interface ITaskResolver { Task Resolve(); } }
#!/usr/bin/env python3 import subprocess import json import yaml from yaml import SafeDumper from pathlib import Path def get_multipass_instances(): try: # pipe multipass json list into dictionary result = subprocess.run( ['multipass', 'list', '--format', 'json'], stdout=subprocess.PIP...
from django.urls import path from grocery_store.product.views import AddProduct, product_details, edit_product, delete_products, AddDiscountProduct urlpatterns = [ path('add/', AddProduct.as_view(), name='add product'), path('details/<int:pk>', product_details, name='product details'), path('edit/<int:pk>'...
package sandbox import sandbox.monads.EvalFold import sandbox.monads.WriteLogMonad._ //import functors.Printers.booleanPrintable._ //import functors.Printers.stringPrintable._ //import functors.Printers.boxPrintable._ import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent._ import scala.conc...
<?php namespace Obos\Bundle\CoreBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller, Sensio\Bundle\FrameworkExtraBundle\Configuration\Route, Sensio\Bundle\FrameworkExtraBundle\Configuration\Template, Obos\Bundle\CoreBundle\Entity\Consultant, Symfony\Component\HttpFoundation\Req...
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Game; use App\GameSet; class GameSetsController extends Controller { public function __construct(Game $game, GameSet $game_set) { $this->middleware('auth'); $this->game = $g...
//------------------------------------------------------------------------------ // // Copyright 2018 Fetch.AI Limited // // 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 // // ...
const Discord = require('discord.js'); const client = new Discord.Client(); function cEmbed(channel, role) { let str = `Le role **${role.name}** à bien été ajouté !`; let embed = new Discord.RichEmbed() .setColor(0x42f44b) .setDescription(str.replace('♦', '\♦')); channel.send(embed); }; fu...
<?php namespace PHPFUI; /** * Simple wrapper for DropDown links */ class DropDown extends \PHPFUI\Base { private \PHPFUI\HTML5Element $dropDown; private bool $hover = false; /** * Construct a DropDown * * @param HTML5Element $dropTarget what to click on to initite drop down * @param H...
-- @author bwcx_jzy ALTER TABLE USEROPERATELOGV1 ALTER COLUMN nodeId VARCHAR(50) COMMENT '节点ID'; ALTER TABLE MONITORNOTIFYLOG ALTER COLUMN nodeId VARCHAR(50) COMMENT '节点ID'; ALTER TABLE OUTGIVINGLOG ADD IF NOT EXISTS modifyUser VARCHAR(50) comment '操作人'; ALTER TABLE SSHTERMINALEXECUTELOG ADD IF NOT EXISTS modif...
#!/bin/bash rm *.pem rm *.csr rm *.key rm *.srl
(defun list< (N L) (if (null L) () (if (< (first L) N) (cons (first L) (list< N (rest L)) ) (list< N (rest L)) ) ) ) (defun list>= (N L) (if (null L) () (if (>= (first L) N) (cons (first L) (list>= N (rest L)) ) (list>= N (rest L)) ) ) ) (defun qsort (L) (if (null L) () (append ...
package com.cesarla.persistence import java.time.Instant import com.cesarla.models.{Column, Key, Operation} import scala.concurrent.ExecutionContext trait KeyValueEngine { type KeyCodec[A] = Codec[Key[A]] type KeyDecoder[A] = Decoder[Key[A]] type KeyEncoder[A] = Encoder[Key[A]] type ColumnCodec[A] = Codec...
use crate::{types::Accept, Error, CONSENSUS_VERSION_HEADER}; use reqwest::{header::ACCEPT, RequestBuilder, Response, StatusCode}; use std::str::FromStr; use types::ForkName; /// Trait for converting a 404 error into an `Option<Response>`. pub trait ResponseOptional { fn optional(self) -> Result<Option<Response>, E...
package com.example.feature_toggle_impl.domain import com.example.feature_toggle_api.LocalTogglesChecker import com.example.feature_toggle_api.LocalTogglesLoader import com.example.feature_toggle_api.LocalTogglesUpdater import com.example.feature_toggle_api.model.LocalToggle import com.example.feature_toggle_impl.data...
module DefaultTypes where import Type import TyCon import DataCon iBoxT :: TyCon iBoxT = AlgTyCon { tyConUnique = 1, tyConName = "I#", tyConBinders = [], tyConTyVars = [], tyConResKind = tInt, tyConKind = tInt `TArr` tIntU, tyConArity = 1, tcRepName = "Int", algTcRhs = DataTyCon {d...
/* * Copyright (c) 2020 Nguyen Trung Tin. All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file. */ package connect import ( "fmt" "google.golang.org/grpc" ) type Connector map[string]*Connection // Add add connection to connector func (c C...
import { __extends } from "tslib"; import { Event as GraphEvent } from '@antv/g-base'; var G6GraphEvent = /** @class */ function (_super) { __extends(G6GraphEvent, _super); function G6GraphEvent(type, event) { var _this = _super.call(this, type, event) || this; _this.item = event.item; _this.canvasX ...
/* A module that implements defrag callback mechanisms. */ #define REDISMODULE_EXPERIMENTAL_API #include "redismodule.h" #include <stdlib.h> static RedisModuleType *FragType; struct FragObject { unsigned long len; void **values; int maxstep; }; /* Make sure we get the expected cursor */ unsigned long i...
package delta import java.util.Arrays final case class Snapshot[+S]( state: S, revision: Revision, tick: Tick) { def map[That](f: S => That): Snapshot[That] = new Snapshot(f(state), revision, tick) def transpose[That](implicit ev: S <:< Option[That]): Option[Snapshot[That]] = state.map(state => th...
//! TextFormat and types for building new ones. use crate::descriptions::Trimming; use crate::enums::*; use crate::factory::Factory; use crate::font_collection::FontCollection; use crate::inline_object::InlineObject; use std::ffi::OsString; use std::ptr; use checked_enum::UncheckedEnum; use com_wrapper::ComWrapper; ...
// Copyright(c) 2019-2020 Vertical Software - All rights reserved // // This code file has been made available under the terms of the // MIT license. Please refer to LICENSE.txt in the root directory // or refer to https://opensource.org/licenses/MIT namespace Vertical.Tools.TemplateCopy.IO { /// <summary> ///...
use v6.c; role Bailador::Command { method run(:$app) { ... } }
package codec var RewardDestination = []string{"Staked", "Stash", "Controller"} var VoteThreshold = []string{"SuperMajorityApprove", "SuperMajorityAgainst", "SimpleMajority"} var StorageHasher = []string{"Blake2_128", "Blake2_256", "Twox128", "Twox256", "Twox128Concat"} var WithdrawReasons = []string{"TransactionPayme...
### Example 1: List the metadata of service instance. ```powershell PS C:\> Get-AzHealthcareApisService Location Name Kind ResourceGroupName -------- ---- ---- ----------------- eastus2 azpsapiservice fhir azps_test_group ``` List the metadata of service instance. ### Example 2: List the metada...
use macroquad::prelude::*; #[macroquad::main("BasicShapes")] async fn main() { loop { clear_background(Color::LIGHTGRAY); draw_line(40.0, 40.0, 100.0, 200.0, 15.0, Color::BLUE); draw_rectangle(screen_width() / 2.0 - 60.0, 100.0, 120.0, 60.0, Color::GREEN); draw_circle(screen_width(...
#! /bin/sh # docker-tag.sh - Create a new tag for a set of Agoric Docker images set -xe SRCTAG=$1 DSTTAG=$2 DOCKERUSER=${3-agoric} if [ -z "$DSTTAG" ]; then echo 1>&2 "Usage: $0 SRCTAG DSTTAG" exit 1 fi for img in agoric-sdk cosmic-swingset-setup cosmic-swingset-solo deployment; do docker pull $DOCKERUSER/$img...
# frozen_string_literal: true module I18n::Processes::Scanners::Files # Reads the files in 'rb' mode and UTF-8 encoding. # # @since 0.9.0 class FileReader # Return the contents of the file at the given path. # The file is read in the 'rb' mode and UTF-8 encoding. # # @param path [String] Path t...
functionalchaos.net ===================== Static content to build functionalchaos.net website. Powered by [Sculpin](http://sculpin.io)