text
stringlengths
27
775k
require "./path" module Jabverwock using StringExtension using ArrayExtension using SymbolExtension html= HTML.new def self.itemList (item) arr = [] unless item.is_a? Array l = LI.new.contentIs item arr.append l return arr end if item.count > 0 item.each do |i...
[System.Diagnostics.CodeAnalysis.SuppressMessage('PSAvoidUsingConvertToSecureStringWithPlainText', '')] [CmdletBinding()] param () $projectPath = "$PSScriptRoot\..\..\.." | Convert-Path $projectName = ((Get-ChildItem -Path $projectPath\*\*.psd1).Where{ ($_.Directory.Name -match 'source|src' -or $_.Direct...
import { CheckERC20Safety } from "../src/index"; CheckERC20Safety("0x33f8ed7d9013f921de6f373608b1d3c21c82c92d") .then((res) => { console.log(res); }) .catch((e) => { console.log(e); });
using MongoDB.Bson; using MongoDB.Driver; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace App.Data.Infrastructure { public interface IRepository<T> :IDisposable where T:class { void Add(T obj); Task<T> GetById(Guid id); Task<T...
import {useMemo, useState} from "react"; import {useWeb3React} from "@web3-react/core"; import {getContract} from "../web3"; import {formatAmount} from "../utils/format"; import ERC20_ABI from '../web3/abi/ERC20.json' export const useBalance = ( blockHeight, address, abi = ERC20_ABI.abi, decimals = 18, owner ...
# KeyboardDistance Simple algorithm for measuring of distance-on-keyboard between two strings for various keyboard layouts. A diagonal distance between two keys equals the longer distance in a straight line to the appropriate row/column, e.g.: require 'keyboard_distance' keyboard = KeyboardDistance.new ...
# frozen_string_literal: true require "common-factory" require "core_by/seeds/dsl" using CoreBy::Seeds::DSL files_dir = File.expand_path("../spec/fixtures/files", __dir__) announce "Managers" do create( :admin, login: "admin", email: "admin@example.com", avatar: Rack::Test::UploadedFile.new(File.j...
namespace SimpleMvc.Framework { /// <summary> /// Lazy loading supported /// </summary> public class MvcContext { private static MvcContext _instance; private MvcContext() { this.ControllersFolder = "Controllers"; this.ControllersSuffix = "Controller...
using System; using System.Collections.Generic; using System.Text; namespace MineCase.Server.Game { /// <summary> /// 1 - Ops can bypass spawn protection. /// 2 - Ops can use all singleplayer cheats commands(except /publish, as it is not on servers; along with /debug) and use command blocks.Command blocks...
package javassist.bytecode; import java.util.*; import java.io.*; public final class FieldInfo { ConstPool constPool; int accessFlags; int name; String cachedName; String cachedType; int descriptor; ArrayList attribute; private FieldInfo(final ConstPool a1) { super(); ...
namespace MyFlight.Data { public enum ShaftFlex { Unknown, Regular, Medium, Stiff, ExtraStiff, Ladies } }
# Change Log All notable changes to this project will be documented in this file. `AlamofireGenome` adheres to [Semantic Versioning](http://semver.org/). --- ## [1.0.1](https://github.com/tablexi/AlamofireGenome/releases/tag/1.0.1) Released on 2016-02-26. #### Added - Added Swift Package Manager support. - Add mac ...
#!/bin/sh cd ./bin rm -R ./org/hy/common/cache/junit rm -R ./org/hy/common/thread/junit jar cvfm hy.common.tpool.jar MANIFEST.MF META-INF org cp hy.common.tpool.jar .. rm hy.common.tpool.jar cd .. cd ./src jar cvfm hy.common.tpool-sources.jar MANIFEST.MF META-INF org cp hy.common.tpool-sources.jar .. rm hy.c...
class Subscription < ActiveRecord::Base validates :email, presence: true, uniqueness: true validates_format_of :email, with: /@/ before_create :downcase_email private def downcase_email self.email = email.downcase end end
'''Parsing for SIP URIs.''' from collections import namedtuple from multidict import MultiDict import re URIParseResult = namedtuple('URIParseResult', ( 'scheme', 'userinfo', 'hostport', 'parameters', 'headers', )) uri_re = re.compile(r'(?P<scheme>[^:]+):' r'((?P<userinfo>[^@...
<?php namespace UEC\MediaBundle\Model; interface MediaProviderInterface extends MediaCommonInterface { /** * Set media * * @param MediaInterface $media * @return MediaProviderInterface */ public function setMedia(MediaInterface $media); /** * Get media * * @return ...
OUTFILE="test.csv" echo "type,trial,measure" for tputtype in "dl" "ul"; do for file in tmp/"$tputtype"rate-*; do lines=$(cat "$file" | grep "SUM" | head -12 | tail -10 ) mBytes=$(echo -e "$lines" | grep "MBytes" | awk '{sum+=$4} END {print sum}') kBytes=$(echo -e "$lines" | grep "KBytes" | awk '{sum+=...
<?php /** * Locale Controllers * All route names are prefixed with 'locale.'. */
package archknife.context import android.app.Activity import android.content.Context interface ContextProviderCommunicator { var activityContext: Context? val activity: Activity? var applicationContext: Context? }
# MultiMiner-Config Configuration for MultiMiner #### Go to settings #### Add Coin Script: Cryptonight Coin: Lonero (LNR) #### Use the getting started wizard or pool config #### Add a pool that has Lonero or the seed node stratum+tcp://142.93.171.115:34414 #### Workername: LNR Address #### Password: x ``` //...
import requests import pandas [[GitHubTracking]] @route(query="*") @templateArgs def do_search(self, query): response = requests.get( "https://api.github.com/search/repositories?q={}".format(query)) frames = [pandas.DataFrame(response.json()['items'])] while response.ok and "next" in response.links: ...
package ru.otus.kotlin.messaging.api.model.message.dto import kotlinx.serialization.Serializable @Serializable data class ChannelMessageDto( val profileIdFrom: String? = null, val profileIdTo: String? = null, val channelId: String? = null, val messageText: String? = "", val resourceLinks: List<Str...
class ApplicationController < ActionController::Base private def require_login redirect_to new_session_path, alert: t('sessions.login.alert') if not logged_in? end def logged_in? true if session[:user_id] end end
using Android.Support.V7.Widget; using Android.Views; using Android.Widget; using Toggl.Droid.Adapters; namespace Toggl.Droid.Fragments { public sealed partial class SelectUserCalendarsFragment { private TextView titleLabel; private TextView messageLabel; private Button cancelButton; ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; namespace CreateLoginUserLibrary { public class ActivtyBase : Activity { private static Type homeActi...
#/usr/bin/env bash mongo aaveInterestTest ./test/mongo.js >/dev/null exit $?
/* eslint-disable import/first */ /* eslint-disable no-undef */ /* eslint-disable max-len */ // disable logs console.log = () => null; import request from 'supertest'; import DatabaseAdapter from '../../src/Database/__mocks__/DatabaseAdapter'; import GoogleDriveApiClient from '../../src/__mocks__/GoogleDriveApiClient'...
// // ErizoClientIOS // // Copyright (c) 2015 Alvaro Gil (zevarito@gmail.com). // // MIT License, see LICENSE file for details. // @import WebRTC; #import <Foundation/Foundation.h> #import "Logger.h" #import "ECSignalingChannel.h" #import "ECClientDelegate.h" #import "ECClientState.h" typedef RTCSessionDescription...
#!/bin/bash -eux this_dir="$(dirname $0)" dest="${HOME}/Documents/Max 7/Library/eve-generics" mkdir -p "${dest}" rsync -avh ${this_dir}/ "${dest}"/
package io.github.jhoneagle.math; public class Vector implements Term { private Double[] values; public Vector(Double[] values) { this.values = values; } public Vector(int dimension) { values = new Double[dimension]; } public Double[] getVectorsValues() { return value...
package Mojolicious::Plugin::ClosedRedirect; use Mojo::Base 'Mojolicious::Plugin'; use Mojo::ByteStream 'b'; use Mojo::Util qw/secure_compare url_unescape quote/; our $VERSION = '0.15'; # TODO: Support domain whitelisting, like # https://github.com/sdsdkkk/safe_redirect # TODO: Accept same origin URLs. # TODO: ...
""" Author: Philip Ciunkiewicz """ import tkinter as tk from tkinter import ttk from ttkwidgets import Table class DisplayTable(ttk.Frame): """Frame for displaying a Pandas DataFrame as an interactive table with ttkwidgets. """ def __init__(self, parent, data): super().__init__(parent) ...
import { Action, ActionPanel, Clipboard, Icon, List, showToast, Toast } from "@raycast/api"; import { isEmpty } from "../utils/common-utils"; import { ActionOpenPreferences } from "./action-open-preferences"; import React, { Dispatch, SetStateAction } from "react"; import { WordOfTheDay } from "../utils/shanbei-utils";...
import axios from 'axios'; export interface MyProjectRecord { id: number; name: string; description: string; peopleNumber: number; contributors: { name: string; email: string; avatar: string; }[]; } export function queryMyProjectList() { return axios.post('/api/user/my-project/list'); } expo...
#include<stdio.h> #include<stdlib.h> #include<pthread.h> #include<semaphore.h> #include<unistd.h> #include<stdlib.h> #define NUM 128 #define PRODUCTSUM 3 #define CONSUMESUM 3 sem_t datasem;//数据信号量 sem_t blanksem;//空闲空间信号量 pthread_mutex_t mutex;//互斥锁 int ring[NUM];//循环队列 int index1 = 0;//生产者index int index2 = 0;//消费者...
pub(crate) mod csv; pub(crate) mod memory; pub(crate) mod sheet; pub(crate) mod sled;
<h1>{{ __('Reset Password Notification') }}</h1> <p>{{ __('You are receiving this email because we received a password reset request for your account.') }}</p> <div> <a href="{{ $resetPasswordUrl }}">{{ __('Reset Password') }}</a> </div> <p>{{ __('This password reset link will expire in :count minutes.', ['count' =...
#!/bin/bash base="/srv/shiny-server/" fname=$(date +%Y%m%d_%H%M%S) wget https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv -O "${base}/states_daily/${fname}.csv" -a "${base}/daily.log"; [ ! -s "${base}/states_daily/${fname}.csv" ] && rm -f "${base}/states_daily/${fname}.csv"
docker run -v "$(pwd)":/srv/data/ --env THREADS="2" -it --rm -p 8900:8900 bert-summarizer
import {Component, ViewChild} from '@angular/core' import {TestBed, ComponentFixture} from '@angular/core/testing' import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing' import {BrowserModule} from '@angular/platform-browser' import {CytoscapeComponent} fro...
package goPushSdk import ( "fmt" "testing" ) func TestRegister(t *testing.T) { message := Register("100999", "80355073480594a99470dcacccd8cf2c", "862891030007404") fmt.Print("response message ", message.message) if message.code != 200 { t.Error("Status Code not 200") } failmessage := Register("100999", "803...
module Cask module CaskLoader class FromContentLoader; end class FromPathLoader < FromContentLoader module Compat private def cask(header_token, **options, &block) if header_token.is_a?(Hash) && header_token.key?(:v1) odisabled %q("cask :v1 => 'token'"), %q("cask ...
{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} -- | Description: Rendering composable picture fragments -- The module was originally inspired by gloss Picture data type. -- -- It allows you to define simple pieces, combine and move\/rotate\/scale them -- to produce the final image. -- -- Exampl...
#!/usr/bin/env pwsh #==================================================================== # ウィンドウリサイズスクリプト #==================================================================== #==================================================================== # 引数を処理 #==============================================================...
module Game where import Data.Vector (empty, Vector, snoc, length, map, (!), (//)) import Ground import Player import Types import Data.Maybe baseStartMoney :: Amount baseStartMoney = 200 data Game = Game { players :: Vector Player , grounds :: Vector Ground , state :: State , interestRate :: Float , retu...
#!/bin/bash # autoshut secs=$(($1 * 60)) if [ $secs -ne 0 ]; then echo "HitLeap will terminate in $1 minutes" sleep $secs echo "HitLeap will terminate in 10 sec" sleep 10 pkill -f HitLeap-Viewer fi
import { Range } from 'vscode-languageserver/lib/main' import { Point, SyntaxNode } from 'web-tree-sitter' export function forEach(node: SyntaxNode, cb: (n: SyntaxNode) => void) { cb(node) if (node.children.length) { node.children.forEach(n => forEach(n, cb)) } } export function range(n: SyntaxNode): Range ...
using System; using System.Collections.Generic; using ElmSharp; namespace ReactNativeTizen.ElmSharp.Extension { /// <summary> /// A basic page which can hold a single view. /// </summary> public class ContentPage : Background, IContainable<EvasObject> { /// <summary> //...
# frozen_string_literal: true RSpec.shared_examples 'an audited model' do subject { create(factory).reload } let(:factory) { described_class.name.underscore.to_sym } # FactoryBot doesn't include associated objects in `attributes_for` let(:base_attrs) do build(factory).attributes.merge(audit_comment: 'test...
DROP TABLE IF EXISTS ROUTE; CREATE TABLE ROUTE ( ROUTEID VARCHAR PRIMARY KEY, ROUTENAME VARCHAR(250) NOT NULL, SOURCE VARCHAR(250) NOT NULL, DESTINATION VARCHAR(250) NOT NULL, STATIONS VARCHAR(500) NOT NULL ); DROP TABLE IF EXISTS METRO; CREATE TABLE METRO ( METROKEY VARCHAR PRIMARY KEY, ...
<?php declare(strict_types=1); namespace Typesetsh\PdfBundle\Controller; use Symfony\Bundle\FrameworkBundle; use Symfony\Component\HttpFoundation\HeaderUtils; use Typesetsh\PdfBundle; use Twig; abstract class AbstractController extends FrameworkBundle\Controller\AbstractController { /** * @param string|Twi...
package uploader import ( "context" "net/http" "github.com/cloudinary/cloudinary-go/api" ) const ( sprite api.EndPoint = "sprite" multi api.EndPoint = "multi" explode api.EndPoint = "explode" text api.EndPoint = "text" ) // GenerateSpriteParams are the parameters for GenerateSprite. type GenerateSprite...
/*---------------------------------------------------------------- * Copyright (c) ThoughtWorks, Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE in the project root for license information. *----------------------------------------------------------------*/ package runner import ( "os" "r...
'use strict'; var express = require('express'); var auth = require('../middleware/auth'); var router = express.Router(); var Feedback = require('../models').feedback; /** * @api {post} /feedback Send feedback * @apiGroup Feedback * * @apiParam {Boolean} [anonymous=false] false = include user's name & email * @ap...
/* * DeveloperName(): Jignesh Chudasama * GithubName(): https://github.com/Jignesh-81726 */ import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(Syst...
package io.casperlabs.node.configuration import java.nio.file.{Path, Paths} import io.casperlabs.comm.PeerNode import cats.syntax.either._ import toml._ import toml.Codecs._ import toml.Toml._ import cats.syntax.either._ import io.casperlabs.shared.StoreType import toml.util.RecordToMap import scala.concurrent.durat...
<?php namespace App\Services; use App\Models\Room; use App\Events\PublicMessageSent; use App\Events\PrivateMessageSent; use App\Repositories\RoomRepository; use App\Repositories\UserRepository; use Illuminate\Support\Facades\Gate; use App\Repositories\MessageRepository; use Illuminate\Broadcasting\PrivateChannel; cl...
import { Controller } from 'egg'; /** * 本站登录及第三方授权登录 */ export default class PassportController extends Controller{ /** * 用户注册 */ public async register() { const { ctx } = this const rules = { name: { required: true, type: 'string' }, password: { required: true, type: 'string' }, ...
This directory contains a copy of Mapbox GL JS (https://github.com/mapbox/mapbox-gl-js).
#ifndef _LIB_ARCH_ATOMIC_H #define _LIB_ARCH_ATOMIC_H #ifdef __cplusplus extern "C" { #endif #include <arch/config.h> #include "xchg.h" /* 原子变量结构体 */ typedef struct { int value; // 变量的值 } atomic_t; #define atomic_get(atomic) ((atomic)->value) #define atomic_set(atomic,val) (((atomic)->value) = (val)) #define ...
<?php namespace Fastwf\Form\Entity\Containers; use Fastwf\Api\Utils\ArrayUtil; use Fastwf\Form\Entity\Control; use Fastwf\Api\Exceptions\KeyError; use Fastwf\Constraint\Data\Violation; use Fastwf\Constraint\Constraints\Chain; use Fastwf\Form\Entity\Containers\Container; use Fastwf\Constraint\Constraints\Arrays\Items;...
import 'package:flutter/material.dart'; import 'package:konsuldok/ui/appDrawer/app_drawer.dart'; import 'package:konsuldok/ui/widget/user_hero_widget.dart'; class UserScreen extends StatelessWidget { UserScreen({ Key key, }) : super(key: key); @override Widget build(BuildContext context) { return Scaff...
<p>Thank you for signing up to the Adelaide IV website.</p> <p>To verify the account for {{ $data->username }} and to log in, please visit:</p> <p><a href="{{ $data->url }}">{{ $data->url }}</a></p> <p>using the same browser that you just used.</p> <p>This link expires in one hour and can’t be used more than once....
/// <reference path="../typedef/angular.d.ts" /> module WebEngineering { export interface PageScope extends angular.IScope { page_url: string; } export class PageController { constructor(private $scope: PageScope, private $routeParams: any){ $scope.page_url = "pages/" + $routeParams.id + ".html"; } } }
class CoursesController < ApplicationController expose(:current_course){ Course.find_by_id(params[:id]) } expose(:course, attributes: :course_params) before_filter :require_instructor!, except: [:show] def create if course.save redirect_to course_path(course), notice: "Course successfully created." ...
use strict; use warnings; use HON::Http::UrlChecker::Service qw/p_isUrlAllowed/; use Test::More tests => 4; ok(p_isUrlAllowed('http://www.example.com'), 'http://www.example.com'); ok(p_isUrlAllowed('file:////tmp/index.html'), 'file:////tmp/index.html'); ok(! p_isUrlAllowed('https://'), 'https://'); ok(! p_isUrlAllow...
package csr_generator import ( "bytes" "context" "strings" "github.com/google/wire" "github.com/rotisserie/eris" zephyr_core_types "github.com/solo-io/service-mesh-hub/pkg/api/core.zephyr.solo.io/v1alpha1/types" k8s_core "github.com/solo-io/service-mesh-hub/pkg/api/kubernetes/core/v1" zephyr_security "github....
import scala.reflect.macros.whitebox.Context import scala.language.experimental.macros import scala.annotation.StaticAnnotation object HelloMacro { def impl(c: Context)(annottees: c.Tree*): c.Tree = { import c.universe._ annottees match { case (classDecl: ClassDef) :: Nil => val q"$mods class ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class M_submenu extends CI_Model { function tampil_submenu(){ $query = $this->db->query("SELECT * FROM submenu ORDER BY id_sub DESC "); return $query; } function simpan_submenu(){ $submenu = $this->input->post('submenu'); $menu = $this->...
import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { Model } from 'mongoose'; import { InjectModel } from '@nestjs/mongoose'; import { NotificationModel } from './notification.model'; @Injectable() export class NotificationService { constructor( @InjectModel('Notification') priv...
abstract type AbstractServiceFormulation end mutable struct ServiceModel{D<:PSY.Service, B<:AbstractServiceFormulation} service::Type{D} formulation::Type{B} end function construct_service!(canonical::Canonical, service_model::ServiceModel, ...
# Module of TWiki Enterprise Collaboration Platform, http://TWiki.org/ # # Copyright (C) 2000-2018 Peter Thoeny, peter[at]thoeny.org # and TWiki Contributors. All Rights Reserved. TWiki Contributors # are listed in the AUTHORS file in the root of this distribution. # NOTE: Please extend that file, not this notice. # # ...
import Router from '@koa/router'; const router: Router = new Router(); router.get('/test', async (ctx, next) => { const resp = {code: 'OK', msg: '', data: '测试API调用成功'}; ctx.body = resp; }); export default router;
''' ''' import os import tarfile import json import csv from collections import OrderedDict from hedgepig_logger import log ## for file distributions prior to 5/12/20 SPLIT_FILES = [ 'comm_use_subset.tar.gz', 'noncomm_use_subset.tar.gz', 'custom_license.tar.gz', 'biorxiv_medrxiv.tar.gz' ] ## for file ...
//! A program which generates a linux-headers installation and runs bindgen //! over each public header, for each supported architecture, for a selection //! of Linux kernel versions. use bindgen::{builder, EnumVariation}; use std::collections::HashSet; use std::env; use std::fs; use std::fs::File; use std::io::{Read,...
import fs from "fs"; import path from "path"; export function writeResults(filePath: string[], data: string[]): void { const documentsDataPath = path.join(process.cwd(), ...filePath); const results = data.join("\n"); fs.writeFileSync(documentsDataPath, results); }
#pragma once #include "EnergyManager/Benchmarking/Operations.hpp" #include "EnergyManager/Benchmarking/Workloads.hpp"
package pw.mihou.rosedb.enums; /** * This is where you add more * methods to the list, you can add an enum here * and register it to your listener under type(). */ public enum Listening { /** * The listener is listening to requests * with the method GET. */ GET("GET"), /** * The l...
using System; using System.Collections.Generic; namespace ListaDePeliculas { class Program { static void Main(string[] args) { List <String> Lista = new List<String>(); Lista.Add("1-. Peppermint"); Lista.Add("2-. No manches frida 2"); Lista.Add("...
import 'package:path/path.dart'; import 'package:sqflite/sqflite.dart'; import 'Todo.dart'; class DBProvider { // singleton class DBProvider._(); static final DBProvider db = DBProvider._(); static Database _database; Future<Database> get database async { if (_database != null) return _database; _...
package util import ( "encoding" "encoding/binary" "errors" "net" "github.com/bradfitz/iter" "github.com/anacrolix/torrent/bencode" ) // Concatenated 6-byte peer addresses. type CompactIPv4Peers []CompactPeer var ( // This allows bencode.Unmarshal to do better than a string or []byte. _ bencode.Unmarshaler...
<?php declare(strict_types=1); namespace Netgen\BlockManager\Tests\Config\Stubs; use Netgen\BlockManager\Config\ConfigDefinitionHandlerInterface; use Netgen\BlockManager\Parameters\ParameterBuilderInterface; use Netgen\BlockManager\Parameters\ParameterDefinition; use Netgen\BlockManager\Parameters\ParameterType; fi...
<?php namespace App\Http\Controllers; use App\Models\Article; use App\Models\Comment; use App\Models\Like; use App\Models\Preview; use App\Models\Role; use App\Models\User; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; use Illuminate\Support\Fa...
#Define Plugin Information bl_info = { "name":"RAD GUI Panel Example", "description":"Panel generated from the RAD GUI Library", "author":"Ilobmirt", "version":(2021,3,6), "blender":(2,82,0), "location":"View3D > UI", "support":"COMMUNITY", "category":"Object" } #Import Libr...
require 'ostruct' module Awestruct class Site < OpenStruct attr_reader :dir attr_reader :output_dir attr_reader :tmp_dir attr_reader :layouts attr_accessor :pages def initialize(config) super({}) @dir = config.input_dir @output_dir = config.output_dir @tmp_dir = ...
CREATE TABLE `stickr_promolist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `email2` varchar(45) DEFAULT NULL, `email3` varchar(45) DEFAULT NULL, `venue` varchar(45) DEFAULT NULL, `genre` varchar(45) DEFAULT NULL, `category` varchar(45) DEFA...
import * as Caml_array from "../../../../../node_modules/bs-platform/lib/es6/caml_array.js"; import * as StateEngineService$WonderEditor from "../../../src/service/state/engine/StateEngineService.js"; function setChrome() { var state = StateEngineService$WonderEditor.unsafeGetState(/* () */0); var newrecord = Ca...
# 2.27.2 ## Bug Fix **Explore URL in Response Tab** command works for localhost URLs.
/** * Include file for the basic libraries - Arduino DUE with SAM3X8E * * - It defines __SAM3X8E__, MAIN_OSC_FREQ (main oscillator frequency), * MASTER_CLK_FREQ (the master clock frequency). * * - It includes the peripheral specific libsam and sam.h * * @file due_sam3x.h * @author stfwi */ #ifndef __AR...
#!/usr/bin/env python import os f = open("named.conf.options.in") c = f.read() f.close() data = { 'GOODCLIENTS': os.getenv('GOODCLIENTS') } w = open("/etc/bind/named.conf.options", "w") w.write(c % data) w.close()
(in-package #:containers) (defparameter +empty-initial-element+ (cons :nothing nil)) (defclass* abstract-container () () (:documentation "Inherited by all container classes, this is a good place to put those pesky superclasses you need everyone to inherit.") (:export-p t)) (defclass* concrete-container () ...
## Source https://github.com/probonopd/MakeHex/blob/master/EncodeIR.cpp ## Changes (notes) `Makefile` ```Makefile encodeir-wasm: emcc -c EncodeIR.cpp emcc -c IRP.cpp emcc EncodeIR.o IRP.o --bind -oEncodeIR.js ``` `EncodeIR.js` Manually added at top ```js let onRuntimeInitialized; const ready = new Promise((re...
use language::Language; use problem::Problem; pub struct Solution<'l, 'p> { file: Path, language: &'l Language, problem: &'p Problem, } impl<'l, 'p> Solution<'l, 'p> { pub fn new_opt(language: &'l Language, problem: &'p Problem) -> Option<Solution<'l, 'p>> { let file = problem.answ...
package domain import test.IzanamiSpec import zio._ trait Context extends AuthInfo trait AuthInfo { def user: User } trait User { def user[R]: RIO[R, String] def withUser[R, E, A](user: String)(zio: ZIO[R, E, A]): ZIO[R, E, A] } object User { def makeModule(user: String): UIO[AuthInfo] = FiberRef.make(u...
package slak.test.lexer import org.junit.jupiter.api.Test import org.junit.jupiter.params.ParameterizedTest import org.junit.jupiter.params.provider.ValueSource import slak.ckompiler.DiagnosticId import slak.ckompiler.lexer.Identifier import slak.ckompiler.lexer.Keywords import slak.ckompiler.lexer.Punctuators import ...
(in-package #:containers) ;;; generic tree classes ;;; tree-container (defclass* abstract-tree-container (abstract-container) ()) ;;; rooted-tree-container :: (defclass* rooted-tree-container (abstract-tree-container) ((root nil ia)) (:documentation "Base class of all trees with roots.")) (defclass* many-child...
#!/usr/bin/python3 -W all """ tokenCount.py: count the average number of chars, tokens and sents per label usage: tokenCount.py < file 20180516 erikt(at)xs4all.nl """ import re import sys def getLabel(line): tokens = line.split() label = tokens.pop(0) line = " ".join(tokens) return(label,l...
package main import ( "fmt" "regexp" "sort" "strconv" "strings" ) var tests = []struct { descr string list []string }{ {"Ignoring leading spaces", []string{ "ignore leading spaces: 2-2", " ignore leading spaces: 2-1", " ignore leading spaces: 2+0", " ignore leading spaces: 2+1", }}, {"Ignoring m...
package cbench import ( "testing" "github.com/teawithsand/uciph/rand" "github.com/teawithsand/uciph/sig" ) type HashBenchRunConfig struct { Name string Sizes []int FinalizeTo []byte // if nil then ignored } // HashBenchConfig configures how should encryptor and decryptor be benchmarked. type HashBe...
package org.lagonette.app.room.sql; public interface Sql { String CREATE_TABLE = "CREATE TABLE "; String CREATE_VIEW = "CREATE VIEW "; String DROP_TABLE_IF_EXISTS = "DROP TABLE IF EXISTS "; String DROP_VIEW_IF_EXISTS = "DROP VIEW IF EXISTS "; String BRACKET_OPEN = " ("; String BRACKET_CLOSE = ")"; String...