text
stringlengths
27
775k
/** * (c) 2009 Lehrstuhl fuer Softwaretechnik und Programmiersprachen, * Heinrich Heine Universitaet Duesseldorf * This software is licenced under EPL 1.0 (http://www.eclipse.org/org/documents/epl-v10.html) * */ package de.bmotionstudio.gef.editor.command; import de.bmotionstudio.gef.editor.model.BCont...
import styled from 'styled-components' import { th, grid } from '@pubsweet/ui-toolkit' export { Container, Content, Heading } from '../../shared' export const Heading1 = styled.h1` margin: 0 0 calc(${th('gridUnit')} * 3); font-size: ${th('fontSizeHeading3')}; line-height: ${th('lineHeightHeading3')}; ` export ...
using XamEntityManager.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Xamarin.Forms.Internals; using Xamarin.Forms; [assembly: Xamarin.Forms.Dependency(typeof(XamEntityManager.Service.EntityManager))] namespace X...
package com.github.chenharryhua.nanjin.spark import com.github.chenharryhua.nanjin.common.database.TableName import com.github.chenharryhua.nanjin.common.kafka.TopicName import com.github.chenharryhua.nanjin.database.DatabaseSettings import com.github.chenharryhua.nanjin.kafka.{KafkaContext, KafkaTopic, TopicDef} impo...
<img src="/assets/cosmos.png"> &nbsp;&nbsp; #### Codemods for Auth0 Design System &nbsp;&nbsp; #### [👉 Start here 👈](https://auth0-cosmos.now.sh/docs) &nbsp;&nbsp;
package src.main.scala.sample.infra.broker trait Event { var version: Long }
package main import ( "flag" "fmt" "net" "strconv" "strings" "sync" "time" "golang.org/x/net/ipv4" "golang.org/x/net/ipv6" ) type batchConn interface { WriteBatch(ms []ipv4.Message, flags int) (int, error) ReadBatch(ms []ipv4.Message, flags int) (int, error) } var listenAddr = flag.String("listenAddr", "...
if [ -n "$SETUP_DEBUG" ] then set -ex fi echo "Installing vbox guest additions..." if [ ! -e /dev/sr0 ] then echo "ERROR: Insert VBoxGuestAdditions.iso before running this script" exit 1 fi case $SETUP_TARGET in arch) if ! which paru >/dev/null 2>&1 then curl -fsSL $SETUP_BASEURL/scripts/paru.a...
-- -- File generated with SQLiteStudio v3.3.3 on qui. dez. 9 21:51:58 2021 -- -- Text encoding used: UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: app CREATE TABLE app ( appid INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT UNIQUE, uploader_id INTEGER REFERENCES user (userid...
exports.user = function(req, res, next) { res.render('user',{ title: 'Users', name: 'Student' }); } exports.sohyeon = function(req, res, next) { res.render('user',{ title: 'User', name: 'Sohyeon' }); }
package org.apache.hadoop.hbase.index.client; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.index.IndexType; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ColumnFamilySchema; import org.apache.hadoop.hbase.util.Bytes; import org.apache.hadoop.io.DataInputBuffer; impor...
use structmeta::Parse; use syn::LitStr; #[derive(Parse)] struct TestType(#[to_tokens("(")] syn::token::Bracket, LitStr); fn main() {}
package embedded import ( "log" "os" "sync" "testing" "time" "github.com/lytics/metafora" ) func init() { metafora.SetLogger(log.New(os.Stderr, "", log.Lmicroseconds|log.Lshortfile)) } func TestEmbedded(t *testing.T) { tc := newTestCounter() adds := make(chan string, 4) thfunc := metafora.SimpleHandler(...
/* * 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 may ...
[![Build Status](https://secure.travis-ci.org/mdp/MachinePoker.png)](http://travis-ci.org/mdp/MachinePoker) ![Machine Poker](https://s3.amazonaws.com/img.mdp.im/MachinePokerLogo.png) # Machine Poker Machine Poker is a libray which allows you go build poker bots and have them compete against each other in tournaments....
class Rack::SelectorScrambler::Hasher def initialize(*salts) @salt = salts.join end def djb2(str) _djb2(@salt + str) end def _djb2(str) hash = 5381 str.unpack('c*').map do |c| hash = ((hash << 5) + hash) + c end hash end def djb3(str) _djb3(@salt + str) end def ...
<!-- User Enumeration PHP Pages Ted R (github: actuaTed) timing.php - v1.2 - 9/9/2017 --> <?php $user = $_POST['username']; $pass = $_POST['password']; if(($user == "demo")| ($user == "admin")|| ($user == "asmith")| ($user == "csmith")| ($user == "esmith")) { $usergood = 1; } else { $usergood = 0; } ?> <html> ...
require 'ruby-dictionary' class AnagramAntigram def initialize(phrase) @dictionary = Dictionary.from_file("words.txt") @phrase = phrase end def anagram(phrase2) @phrase.gsub!(/[^0-9A-Za-z\s]/, '') phrase2.gsub!(/[^0-9A-Za-z\s]/, '') if(!is_word?(@phrase) || !is_word?(phrase2)) return "P...
import 'dart:isolate'; import 'package:analyzer/file_system/physical_file_system.dart'; import 'package:analyzer_plugin/starter.dart'; import 'package:getx_assist_analyzer_plugin/plugin.dart'; void main(List<String> args, SendPort sendPort) { ServerPluginStarter(GetxAssistPlugin(PhysicalResourceProvider.INSTANCE)) ...
--Quantidade de alocações em 2018 select CA.Nome, SUM(LO.Alocados) as 'Quantidade alocações em 2018' from Locacoes LO inner join Carros CA on LO.Carro = CA.Id where YEAR(LO.DataAloc) = 2018 group by CA.Nome order by 'Quantidade alocações em 2018' desc --Quantidade de alocações em 2019 select CA.Nome, SU...
# Data Parent Directory All data will go in this parent directory, and a final data set will be added to this directory later.
import { Args, Resolver, Query, Mutation } from '@nestjs/graphql'; import { QueryOptionsArgs } from '../../common/dtos'; import { CreateOrganizationDto, UpdateOrganizationDto } from './dtos'; import { OrganizationsService } from './organizations.service'; import { Organization } from './schemas/organization.schema'; ...
# Water Boiler Example Simple simulation of a water boiler which can heat up water and where the heat dissipates slowly over time. ## Installation Just upload `water_boiler_pid.py` and `PID.py` to the board running MicroPython and then run `water_boiler_pid.py`.
using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing; using Scintilla; using Scintilla.Forms; using Scintilla.Configuration; using Scintilla.Configuration.SciTE; namespace MyGeneration { public interface IScintillaNet { void AddStyledText...
#!/bin/bash set -e BASE_DEPENDENCIES="build-essential \\ cmake \\ cppcheck \\ xsltproc \\ python \\ mercurial" BASE_DEPENDENCIES=$(sed 's:\\ ::g' <<< $BASE_DEPENDENCIES) apt-get update apt-...
using System; using System.IO; using System.Collections.Generic; using QuickGraph.Algorithms.Condensation; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.Pex.Framework; using QuickGraph.Serialization; namespace QuickGraph.Algorithms.Condensation { [TestClass] [PexClass] public class We...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using VirtoCommerce.Platform.Core.Common; namespace VirtoCommerce.Mobile.SyncModule.Web.Models { /// <summary> /// Represents a price of a Product in depends on batch quantity. /// </summary> public class Price : Audi...
#ifndef INCLUDED_ALI_LUA_TEST_EXEC #define INCLUDED_ALI_LUA_TEST_EXEC #include "gtest/gtest.h" #include <aliLuaCore.hpp> #include <aliSystem.hpp> namespace aliLuaTest { struct Exec : testing::Test { aliLuaCore::Exec::Ptr exec; aliSystem::Threading::Pool::Ptr pool; void SetUp(); void TearD...
""" There is a double ended queue implementation. """ from typing import Any from abc import ABC, abstractmethod class DequeException(Exception): """ The module base exception """ class DequeAbstract(ABC): @abstractmethod def push_back(self, value: Any): pass @abstractmethod de...
#!/bin/bash #Activate python source ~/virtualPython/what-to-cook-backend/bin/activate cd ~/Code/what-to-cook-backend uvicorn main:app --host 0.0.0.0 --port 8000
class Admin::GroupMeetingsController < ApplicationController only_allow_access_to :index, :index, :new, :create, :edit, :update, :destroy, :when => [:admin,:staff,:leader], :denied_url => {:controller => 'admin/users', :action => :preferences} def index @group = Group.find(params[:group_id]) @group...
import server def speak(text: str): server.send_message("TTS_SPEAK", {'text': text})
module IGMarkets module CLI module Tables # Helper class that prints out an array of {IGMarkets::Activity} instances in a table. class ActivitiesTable < Table private def default_title 'Activities' end def headings %w[Date Channel Type Status EPIC ...
package vn.edu.uit.owleditor.view.panel; import com.vaadin.server.FontAwesome; import com.vaadin.server.Responsive; import com.vaadin.ui.*; import com.vaadin.ui.themes.ValoTheme; import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.model.OWLDataFactory; import vn.edu.uit.owleditor.OWLEdit...
--- title: Slick taxonomy: category: docs --- | Requirejs alias | File location | File name | | --- | --- | --- | | slick | WeltPixel_OwlCarouselSlider/js/ | slick.min.js | The last carousel you'll ever need. Responsive, scalable, includes lazy loading. Slick is used as dependancy in rwSlider component and power...
<?php /** * This file is part of the WebDav package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace mrgswift\WebDav\Header; /** * @covers Tgi\WebDav\Header\TimeoutHeader */ class TimeoutHeaderTest extends \PHPUnit_Fram...
package com.swang.keycloaksamlservletfilter; import org.keycloak.adapters.saml.SamlConfigResolver; import org.keycloak.adapters.saml.SamlDeployment; import org.keycloak.adapters.saml.config.parsers.DeploymentBuilder; import org.keycloak.adapters.saml.config.parsers.ResourceLoader; import org.keycloak.adapters.spi.Http...
// Copyright © 2018 Banzai Cloud // // 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 ...
""" $(TYPEDSIGNATURES) Create Grid from TetGen data. See [`default_options`](@ref) for available `kwargs`. """ function ExtendableGrids.simplexgrid(::Type{TetGenType}, TetGen, input; kwargs...) opts=blendoptions!(default_options();kwargs...) flags=makeflags(opts,:tetgen) if opts[:verbose] ...
/*! # Adbyss: Block List Errors */ use crate::Source; use argyle::ArgyleError; use std::{ error::Error, fmt, path::Path, }; #[derive(Debug, Clone)] /// # Error. pub enum AdbyssError { /// # Aborted. Aborted, /// # Menu error. Argue(ArgyleError), /// # Backup write. BackupWrite(Box<Path>), /// # Invalid c...
package uz.smartgeo.lifemap.telegram.utils; import io.vertx.core.json.JsonObject; public class AddressUtils { public static JsonObject getAddressFormatted(JsonObject addressRes) { JsonObject addressGeoJson = new JsonObject(); String addressDisplayName = addressRes.getString("display_name"); ...
import 'package:flutter/material.dart'; import 'package:mymovieapp/bloc/get_persons_bloc.dart'; import 'package:mymovieapp/model/person_response.dart'; import 'package:mymovieapp/style/theme.dart'; import 'BuildPersonList.dart'; import 'ErrorDisplayWidget.dart'; import 'ProgressIndicator.dart'; class TrendingPersons ...
import { Gulpclass, Task } from 'gulpclass/Decorators'; let gulp = require('gulp'); let ts = require('gulp-typescript'); let exec = require('child_process').exec; @Gulpclass() export class Gulpfile { private _modulesPath = ['dal', 'models']; @Task() buildIndex() { return gulp.src(['./index.ts']) .pipe(ts()) ...
// Copyright (C) 2019 - present Instructure, Inc. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, version 3 of the License. // // This program is distributed in the hope that it will be us...
-- -- Schema for our application -- sqlite3 tmp/onramp_sqlite.db -- CREATE TABLE user ( user_id integer primary key autoincrement not null, -- Data username text not null, password text not null, full_name text DEFAULT '', email text DEFAULT '', is_admin boolean DEFAULT ...
package edu.fiu.ffqr.models; import com.fasterxml.jackson.annotation.JsonProperty; public abstract class User { @JsonProperty("userpassword") protected String userpassword; public void setUserpassword(String userpassword){ this.userpassword = userpassword; } public String getUserpasswor...
require 'ecm/version' module Ecm module Rbac VERSION = ::Ecm::VERSION end end
import React from 'react' import { renderToString } from 'react-dom/server' import Div100vh, { use100vh } from '.' describe('in NodeJS environment', () => { it('passes sanity check', () => { expect(typeof window).toBe('undefined') }) describe('Div100vh component', () => { it('does not throw while render...
function test_NfOrd_FracIdl() print("Testing NfOrd/FracIdl ... ") Qx, x = PolynomialRing(FlintQQ, "x") K1, a1 = NumberField(x^3 - 2, "a") O1 = Order(K1, Hecke.FakeFmpqMat(ZZ[1 0 0; 0 2 0; 0 0 4], one(ZZ))) i = ideal(O1, O1(2*a1)) # construction I = @inferred frac_ideal(O1, i) @test I.basis_mat == H...
--- title: "Lost Move" nav: "lost-move" code-example: "true" type: "property-option" description: "Source ordering. Shift elements left, right, up, or down, by their left or top position by passing a positive or negative fraction." rules: - rule: "fraction" description: "Fraction of the container to be shifted." ...
// This file is part of RAVL, Recognition And Vision Library // Copyright (C) 2001, University of Surrey // This code may be redistributed under the terms of the GNU Lesser // General Public License (LGPL). See the lgpl.licence file for details or // see http://www.gnu.org/copyleft/lesser.html // file-header-ends-here...
USE icxp3_7; /* ------------------ Ejercicio 1a ------------------- */ /* Creamos el usuario admin */ CREATE USER 'admin'@'localhost' IDENTIFIED BY '1234'; /* Concedemos los privilegios al usuario admin */ GRANT ALL PRIVILEGES ON icxp3_7.* TO 'admin'@'localhost' WITH GRANT OPTION; GRANT CREATE USER, ...
require File.dirname(__FILE__) + '/../spec_helper' describe Order do include Stubby, Matchers::ClassExtensions before :each do scenario :shop_orders @time_now = Time.zone.now Time.stub!(:now).and_return(@time_now) @order = Order.new :created_at => @time_now end describe '#recive...
--- title: "Higher-Order Probability Theory on Interval Domain" collection: talks type: "2nd Workshop on Probabilistic Interactive and Higher-Order Computation" permalink: /talks/2019-02-06-pihoc venue: "University of Bologna" date: 06-02-2019 location: "Italy" --- This talk presented a correct and adequate model for ...
--- title: 'Animation Not Exporting' redirect_to: - 'https://discuss.pencil2d.org/t/animation-not-exporting/1149' ---
<?php class MockUrlTest { use Validate; public function getRules() { return [ "website" => "url" ]; } } class UrlTest extends \PHPUnit\Framework\TestCase { public function testAcceptOnValidUrl() { $input = [ "website" => "http://fatfreeframewo...
export { concat as arrayConcat, copyWithin, fill, filter, flat, flatMap, map, pop, push, reverse, shift, slice as arraySlice, sort, splice, unshift, } from './array' export * from './core' export * from './lang' export * from './object' export { concat as stringConcat, padEnd, padSta...
<?php declare(strict_types=1); namespace Simtabi\Pheg\Toolbox\Media\File; use Simtabi\Pheg\Toolbox\Media\File\Exception\PathException; use Simtabi\Pheg\Toolbox\Media\File\Exception\ResourceException; use Simtabi\Pheg\Toolbox\Media\File\Exception\TempException; /** * Manages the file contents stored on the file syst...
package Paws::WAF::CreateSizeConstraintSetResponse; use Moose; has ChangeToken => (is => 'ro', isa => 'Str'); has SizeConstraintSet => (is => 'ro', isa => 'Paws::WAF::SizeConstraintSet'); has _request_id => (is => 'ro', isa => 'Str'); ### main pod documentation begin ### =head1 NAME Paws::WAF::CreateSizeCo...
#!/usr/bin/env sh expID=mpii/hg-prm-stack2 dataset=mpii gpuID=0 nGPU=1 batchSize=6 LR=2.5e-4 netType=hg-prm nStack=2 nResidual=1 nThreads=8 minusMean=true nClasses=16 nEpochs=250 snapshot=10 nFeats=256 baseWidth=9 cardinality=4 CUDA_VISIBLE_DEVICES=$gpuID th main.lua \ -dataset $dataset \ -expID $expID \ -batchSize...
require 'spec_helper' describe Jekyll::Gitlab::Letsencrypt::Process do let(:process) { described_class.new client } let(:client) { Jekyll::Gitlab::Letsencrypt::Acme.new } describe '#process!' do before do allow(process).to receive :commit_to_gitlab! allow(process).to receive :wait_until_challen...
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; using Enum = System.Linq.Enumerable; using Watch = System.Diagnostics.Stopwatch; using StringBuilder = System.Text.StringBuilder; public class TheKingsFactorization { public long[] getVector(long N, long[] primes) { v...
import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; import { MatDialog } from '@angular/material'; import { faEye, faPlayCircle } from '@fortawesome/free-regular-svg-icons'; import { faFileAlt, faHeadphonesAlt } from '@fortawesome/free-solid-svg-icons'; import { TableDialogComponent } from './tab...
-- file:json.sql ln:387 expect:true CREATE DOMAIN js_int_not_null AS int NOT NULL
#!/usr/bin/env bash #install Ansible on this node echo -e "Installing Ansible" if [[ $(cat /etc/*-release | grep PRETTY_NAME) == *"buntu"* ]] then echo "Install on Ubuntu" apt-add-repository ppa:ansible/ansible-2.6 -y > /dev/null 2>&1 apt-get -qq update && apt-get -qq install -y ansible > /dev/null 2>&...
# Deprecated require 'billy/capybara/cucumber' warn "[DEPRECATION] `require 'billy/cucumber'` is deprecated. Please use `require 'billy/capybara/cucumber'` instead."
/***************************************************************************** * Qwt Examples * Copyright (C) 1997 Josef Wilgen * Copyright (C) 2002 Uwe Rathmann * * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 *********************...
using UnityEngine; using System.Collections; public class OnTriggerTourch : MonoBehaviour { public GameObject gb; void OnTriggerEnter(Collider other) { gb.SetActive(true); } void OnTriggerExit(Collider other) { gb.SetActive(false); } }
package com.github.weiranyi.translation; import java.io.FileInputStream; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.util.Properties; public class App { public static void say() { Properties properties = new Properties(); ...
import type { ISizeCalculationResult, ToAsciiCallback, } from './types/interface.js'; import lookup from './lookup.js'; import detectImageType from './detectImageType.js'; /** * get image size and type from a DataView of buffer * * @param {DataView} view - view of buffer * @param {function} toAscii - function ...
package com.existing.boilerx.app.module.main.adapter.holder import android.view.ViewGroup import com.existing.boilerx.app.R import com.existing.boilerx.core.base.view.holder.base.BaseViewHolder /** * Created by「 The Khaeng 」on 16 Oct 2017 :) */ class LoadMoreHolder(viewGroup: ViewGroup) : BaseViewHolder(viewGr...
'use strict'; module.exports = { catchSessionOpen: error => { console.error('Failed to open session and/or retrieve the app list:', error); process.exit(1); }, genericCatch: error => { session.close(); console.error('Error occured:', error); }, dateFromQlik...
import 'package:firebase_auth/firebase_auth.dart'; class AuthService { final FirebaseAuth _auth = FirebaseAuth.instance; bool? _success; String _userEmail = ''; //sign in anonymously Future signInAnony() async { try { var result = await _auth.signInAnonymously(); User? user = result.user; ...
/**************************************************************** * 目的:上层Business层业务使用此方法获取对应的数据库帮助类 * * * **************************************************************/ using Smart.Core.DataAccess.Oracle; using Smart.Core.DataAccess.SqlServer; namespace Smart.Core.DataAccess { public class DbHelperFactor...
#include <iostream> #include "mpi.h" #include "ai.hh" #include "thermocrystal1D.hh" int main(int argc, char *argv[]){ bool standingWave = false; bool runningWave = false; bool saveVelocities = false; bool runningFromCLI = false; size_t id = 0; size_t length = 1000; double dispers...
package fi.reaktor.android.rx.jackson.deser; import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.databind.Module; public class TotallylazyModule extends Module { @Override public String getModuleName() { return "TotallylazyModule"; } @Override public Version version()...
#!/bin/bash echo "Checking for Node.js..." if ! command -v node > /dev/null; then echo "\"node\" not found." echo "Please install Node.js: http://nodejs.org/" exit 1 fi echo "Node.js found." echo "Checking for npm..." if ! command -v npm > /dev/null ; then echo "Please install npm." exit 1 fi echo "npm found." ...
<?php /** @license * Copyright 2009-2011 Rafael Gutierrez Martinez * Copyright 2012-2013 Welma WEB MKT LABS, S.L. * Copyright 2014-2016 Where Ideas Simply Come True, S.L. * Copyright 2017 nabu-3 Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in...
package org.humanizer.jvm.tests import io.kotlintest.shouldBe import io.kotlintest.specs.BehaviorSpec import org.humanizer.jvm.toWords import java.util.* class EnglishNumberToWordsTest : BehaviorSpec({ Given("an english locale") { val currentLocale = Locale.getDefault() Locale.setDefault(Locale("e...
const Conf = { // 域名 ApiUrl: 'https://LightBLE.i2kai.com', GitHubUrl: 'https://github.com/LuoYaoSheng/SimpleBLE', FeedbackUrl: 'https://github.com/LuoYaoSheng/SimpleBLE/issues', PrivacyPolicyUrl: 'https://github.com/LuoYaoSheng/SimpleBLE/wiki/privacy', EvaluateUrl: 'https://i2kai.com', // 默认值 FilterNa...
<?php namespace App\Http\Controllers; use App\Models\Post; use Illuminate\Http\Request; use App\Http\Controllers\PagesController; class PagesController extends Controller { public function index(){ $posts = Post::orderBy("id", "desc")->take(3)->get(); return view('pages.index')->with('posts', $p...
/* * Copyright 2021 Readium Foundation. All rights reserved. * Use of this source code is governed by the BSD-style license * available in the top-level LICENSE file of the project. */ package org.readium.r2.testapp.reader import android.os.Bundle import android.view.* import android.widget.* import androidx.frag...
<!--Please fill out all sections of the pull request template.--> ### Description <!--Describe the pull request in detail, telling why the changes are required and/or what problems they fix. Link or add the issue number for any existing issues that the pull request solves. Note that unsolicited pull requests will mos...
import React, {useEffect, useState} from 'react'; import {useAPI} from "../../hooks/useAPI"; const List: React.FC = () => { const api = useAPI(); const [codeTables, setCodeTables] = useState([]); useEffect(() => { const doAPIRequest = async () => { setCodeTables([]); const data = await api.getCodeTables...
-module(metric_queue). -export([ new/1, push/3, foldl/4 ]). -compile(inline). -compile(inline_list_funcs). -type value() :: float(). -type timestamp() :: integer(). -record(window, { buff = [] :: [{timestamp(), value()}], rev_buff = [] :: [{timestamp(), value()}], start_ts = 0 :: timestamp()...
pub mod descriptor_pool; pub mod dma_buffer; pub use self::dma_buffer::DMABuffer; pub use self::descriptor_pool::DescriptorPool;
import React from 'react' import Enzyme from 'enzyme' import EyeIcon from '../EyeIcon' describe('EyeIcon component test', function () { it('should render without crash without props', function () { const eyeIconMock = Enzyme.shallow(<EyeIcon />) expect(eyeIconMock).toMatchSnapshot() }) it('should rende...
-record(retry_policy, {max_retry :: pos_integer(), min_delay :: pos_integer(), max_delay :: pos_integer()}).
package typingsSlinky.highcharts.mod 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 PlotZigzagParamsOptions extends StObject { /** * (Highstock) The ...
# 1. ソースコード生成する code=$(cat << 'EOS' using System; class Hello { static void Main() { Console.WriteLine("Hello, World"); } } EOS ) echo "$code" > Hello.cs # 2. ビルドする csc Hello.cs # 3. 実行する chmod 755 Hello.exe ./Hello.exe
class StudentPreviousSubjectMark < ApplicationRecord belongs_to :student validates_presence_of :subject, :mark end
use std::collections::{VecDeque}; use rand::{thread_rng, Rng, Rand}; #[derive(Debug, PartialEq, Clone, Copy)] pub enum Tile { Blue, Red, Green, Yellow, Cyan, Purple, } const ALL_TILES: [Tile; 6] = [Tile::Blue, Tile::Red, Tile::Green, Tile::Yellow, Tile::Cyan, Tile::Purple]; impl Tile { p...
# nn-playground Neural Network Playground --- - Python - Jupyter Notebook
# Perl5 runtime loader # # © 2008 David Given. # Clue is licensed under the Revised BSD open source license. To get the # full license text, see the README file. # # $Id: run.pl 46 2008-09-07 12:23:03Z dtrg $ # $HeadURL: https://cluecc.svn.sourceforge.net/svnroot/cluecc/clue/src/perl5/run.pl $ # $LastChangedDate: 2008-...
# #57 Generate 2618646 orders in 20s. DROP PROCEDURE IF EXISTS generate_orders; DELIMITER $$ CREATE PROCEDURE generate_orders() BEGIN DECLARE i INT DEFAULT 0; DECLARE j INT DEFAULT 0; WHILE i < 10 DO INSERT INTO `order` (`status`, `customer_id`) VALUES('completed', i + 1); SET i = i + 1; END WHILE; ...
For running the code that is build on the ES6 module feature you either - have to run a local server like with `npx http-server -c-1` or - use a bundler like webpack, parcel, or [rollup](https://rollupjs.org), e.g. - install with `sudo npm install --global rollup` - run via `rollup -o allTestsSuiteBundle.js -f es ...
#!/usr/bin/ruby require 'vips8' $vips_debug = true #Vips::cache_set_max 0 if ARGV.length != 1 raise "usage: #{$PROGRAM_NAME}: input-file" end # we don't need random access to this image, we will just process # top to bottom im = Vips::Image.new_from_file ARGV[0] puts "" puts "** after new_from_file" GC.start...
def fdiff(xs: List[Int]) = (xs.tail, xs).zipped.map(_ - _) def fdiffn(i: Int, xs: List[Int]): List[Int] = if (i == 1) fdiff(xs) else fdiffn(i - 1, fdiff(xs))
<?php use yii\helpers\Html; use yii\grid\GridView; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $searchModel frontend\models\search\UserLogSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Log API'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-l...
# Script used to resort the current json file - will place it back into alphabetical order