text
stringlengths
27
775k
package logging import ( "fmt" "log" "os" ) //A logging interface type Logger interface { Debug(v ...interface{}) Debugf(format string, v ...interface{}) Info(v ...interface{}) Infof(format string, v ...interface{}) Warn(v ...interface{}) Warnf(format string, v ...interface{}) Error(v ...interface{}) Er...
if(!window.Skyline) throw new Error("The skyline component 'image-capture' requires component Skyline."); export default window.Skyline;
#!/bin/bash set -eu -o pipefail if [ -e ./tmp ]; then echo "$dirname exists. Skipped."; exit 0; fi mkdir -p ./tmp/ssh-key set +e yes | ssh-keygen -N "" -f ./tmp/ssh-key/id_rsa set -e cp ./tmp/ssh-key/id_rsa.pub ./tmp/ssh-key/authorized_keys chmod 700 ./tmp/ssh-key chmod 600 ./tmp/ssh-key/*
๏ปฟusing OpenRasta.DI; using OpenRasta.Hosting.InMemory; using Shouldly; using Xunit; namespace Tests.Hosting.InMemory { public class custom_resolver { InMemoryHost _host; CustomResolver _customResolver; public custom_resolver() { _customResolver = new CustomResolver(); _host = new InMem...
# Webpack๊ณผ Gulp ๊ทธ๋ฆฌ๊ณ  Grunt ํ˜„์žฌ Build Tool์˜ ๋Œ€์„ธ๋Š” ๋‹น์—ฐ์ฝ” Webpack์ด๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ด ์ด์ „์—๋Š” Gulp์™€ Grunt๊ฐ€ ์žˆ์—ˆ๋‹ค. ๋‚˜๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๋นŒ๋“œ์˜ ๊ฐœ๋…์„ ๋ฐฐ์šธ ๋•Œ ์ด๋ฏธ ์›นํŒฉ์ด ๋Œ€์ค‘ํ™”๋˜๋Š” ์‹œ๊ธฐ์˜€๋‹ค. ๊ทธ๋ž˜์„œ ๊ทธ๋ƒฅ ์›นํŒฉ์„ ์‚ฌ์šฉํ–ˆ๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ๋ชจ๋“  ์ƒˆ๋กœ์šด ๊ธฐ์ˆ ์—๋Š” ๋“ฑ์žฅ์ด์œ ๊ฐ€ ์žˆ์œผ๋ฉฐ ์žฅ์ ๊ณผ ๋‹จ์ ์ด ์กด์žฌํ•œ๋‹ค. ์›นํŒฉ์ด ๋‹ค๋ฅธ ๊ธฐ์ˆ ๋“ค๊ณผ๋Š” ์–ด๋–ค ์ฐจ์ด์ ์„ ๊ฐ€์ง€๋Š”์ง€ ๊ฐ„๋‹จํ•˜๊ฒŒ ์•Œ์•„๋ณด์ž. ## Webpack๊ณผ Gulp&Grunt๋Š” ํƒœ์ƒ๋ถ€ํ„ฐ ๋‹ค๋ฅด๋‹ค ### Gulp์™€ Grunt --- webpack๊ณผ gulp, grunt๋Š” ์‚ฌ์‹ค ์•„์˜ˆ ๋‹ค๋ฅด๋‹ค. Gulp...
use super::pmio::{pmio_config_read_addr, pmio_config_write_addr}; use super::PciAddrSpace; use numeric_enum_macro::numeric_enum; #[derive(Debug)] pub struct PciConfig { pub addr_space: PciAddrSpace, pub base: usize, } #[allow(unsafe_code)] impl PciConfig { pub fn read8_offset(&self, offset: usize) -> u8 {...
package app import ( "github.com/nwpc-oper/nwpc-message-client/common/consumer" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" ) const productionLongDescription = ` Consume production message from rabbitmq and store them into elasticsearch. ` type productionCommand struct { BaseCommand consumerType ...
#include <iostream> #include <string> #include <vector> constexpr size_t alphabet_size = 128; using Table = std::vector<std::vector<size_t>>; // DFA - deterministic finite automata Table buildDFAfromPattern(const std::string& pattern) { Table dfa(alphabet_size, std::vector<size_t>(pattern.size())); dfa[pattern[0]]...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Reasoning extends CI_Controller { protected $page_header = 'Reasoning'; public function __construct() { parent::__construct(); $this->load->model(array('data_model' => 'data', 'centroid_model' => 'centroid')); ...
package com.eg.timeTrackingHelper.service.meeting import java.time.LocalDate import cats.effect.IO import cats.implicits._ import com.eg.timeTrackingHelper.configuration.model.KeywordMapping import com.eg.timeTrackingHelper.model.DatePeriod import com.eg.timeTrackingHelper.repository.jira.model.TicketId import com.eg...
#!/usr/bin/env perl package bin::pumper::upic_fetcher; use lib '/play/backend/lib'; use Moo; use MooX::Options; with 'Play::Pumper'; use Try::Tiny; use Log::Any '$log'; use Play::DB qw(db); use Play::Flux; has 'in' => ( is => 'lazy', default => sub { Play::Flux->upic->in('/data/storage/upic/pos') }, ); su...
<?php // Error reporting ini_set('display_errors', 1); error_reporting(E_ALL); // home page url $home_url="http://localhost/restful/api/"; ?>
use crate::base::Resource; #[derive(Resource)] #[uri_prefix = "/search/"] pub enum SearchSource { Anime, Manga, Person, Character, } pub enum SearchSourceType { Anime(AnimeType), Manga(MangaType), } #[derive(Resource)] #[uri_prefix = "type="] pub enum AnimeType { TV, OVA, Movie, ...
package latis.util import cats.effect.IO import cats.effect.unsafe.implicits.global import cats.syntax.all._ import fs2._ import org.scalatest.funsuite.AnyFunSuite import latis.catalog.Catalog import latis.dataset.Dataset import latis.dsl.DatasetGenerator import latis.util.Identifier.IdentifierStringContext class Da...
#include "e.h" #include "e_mod_main.h" #ifdef HAVE_WAYLAND_CLIENTS # include "e_mod_comp_wl.h" # include "e_mod_comp_wl_output.h" #endif # define WL_OUTPUT_FLIPPED 0x01 /* local function prototypes */ static void _e_mod_comp_wl_output_bind(struct wl_client *client, void *data, uint32_t version __UNUSED__, uint32_t id...
<?php namespace Arch\JWT\Encoder; /** * Interface EncoderInterface * @package Arch\JWT\Encoder */ interface EncoderInterface { /** * Returns an encoded string * * @param string $raw * @return string */ function encode(string $raw): string; /** * Returns the raw string * * @param str...
//! TCP socket connection to a validator use super::secret_connection::{PublicKey, SecretConnection}; use crate::{ error::{Error, ErrorKind::*}, prelude::*, }; use signatory::{ed25519, public_key::PublicKeyed}; use signatory_dalek::Ed25519Signer; use std::{net::TcpStream, time::Duration}; use subtle::ConstantT...
if ($loglvl) print("--> Mc.rb\n"); end $mc = Mc.new ack("$mc.instance_of?(Mc)", true) ack("$mc.kind_of?(Mc)", true) ack("$mc.class.to_s", "Mc") ack("$mc.debug = 1;", 1); ack("$mc.debug = 0;", 0); # ack('$mc.expand("%{_bindir}")', "/usr/bin"); # XXX noisy, adding pattern/index/level filters todo++ # nack('$mc.list(...
use std::sync::Arc; use crate::{ array::{Array, FixedSizeListArray}, bitmap::MutableBitmap, datatypes::DataType, }; use super::{ make_growable, utils::{build_extend_null_bits, ExtendNullBits}, Growable, }; /// Concrete [`Growable`] for the [`FixedSizeListArray`]. pub struct GrowableFixedSizeL...
package com.osacky.doctor import com.osacky.doctor.internal.Clock import com.osacky.doctor.internal.DirtyBeanCollector import com.osacky.doctor.internal.ScanApi import java.text.NumberFormat class GarbagePrinter( private val clock: Clock, private val collector: DirtyBeanCollector, private val extension: D...
# EvilNet Small serialization and network engine for Java. The goal of this engine is to show how to do serialization for network applications properly in Java. The engine can handle everything between taking objects and serialize them and send them on one end and receiving them as a byte-array on the other end and ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ItineraryDeparture extends Model { protected $table = 'itinerary_departures'; protected $primaryKey = 'itinerary_departure_id'; public function itinerary() { return $this->belongsTo('App\Models\Itinerary'); } }
package xurl.services import xurl.health.Health import cats.effect._ import cats.implicits._ import org.scalacheck.Gen import weaver.SimpleIOSuite import weaver.scalacheck.Checkers object HealthCheckSuite extends SimpleIOSuite with Checkers { private def dummyHealth(b: Boolean): Health[IO] = new Health[IO] { ...
class RenameLocationsToCommunities < ActiveRecord::Migration[6.0] def change rename_table :locations, :communities PaperTrail::Version.where(item_type: 'Location').update_all(item_type: 'Community') end end
class Candidate < ActiveRecord::Base has_many :vote_candidates, dependent: :destroy has_many :votes, through: :vote_candidates before_save :format_fields def format_fields self.name = self.name.strip.titleize end def score @score ||= calc_score end def presentation_filename(extension = "docx...
pub mod tick; pub mod time; pub mod format; pub mod sys; pub use self::tick::*; pub use self::time::*; pub use self::format::*;
exports.name = 'angel.co'; exports.login = login; exports.reset_password = reset_password; function login(casper, username, password, success_callback) { casper.thenOpen('https://angel.co/login'); casper.waitForUrl('https://angel.co/login'); casper.fillMagically("#new_user", { "user[email]": username, ...
# This is a script of example tests you can run in the command line rostest harmoni_tts polly.test # tts rostest harmoni_bot lex.test # bot rostest harmoni_face face.test rostest harmoni_web web.test rostest harmoni_speaker speaker.test rostest harmoni_stt w2l.test rostest harmoni_stt deepspeech.test rostest har...
1 17 2 7 17 19 3 15 19 22 4 5 2 25 6 1 7 15 8 13 23 9 19 10 11 9 12 11 13 5 6 16 14 8 12 15 9 18 21 16 2 20 24 17 7 24 18 21 19 4 20 24 20 3 19 21 6 22 13 23 24 25 25
# delete specified tag from local and remote # --- command line repo_folder=$1 tag_name=$2 branch_name=$3 cd $repo_folder # --- pull tag from remote git pull origin $branch_name --tag if [ "$?" != 0 ]; then echo "Fail to pull tag from remote." exit 1 fi # --- check whether tag exists res=$(git tag | grep $tag_name...
/* logika boolean and dan or and && T T T T F F F T F F F F or || F F F T */ import java.util.Scanner fun main(args: Array<String>) { var bilangan : Int? var bilangan2 : Int? var input = Scanner(System.`in`) println("Masukkan bilanga...
wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-ocaml.sh export OPAM_INIT=false bash -ex .travis-ocaml.sh
package mod type ( Log struct { Level int32 `json:"level" yaml:"level"` } // Configuration structure is here to describe the application configuration Configuration struct { Log Log `json:"log" yaml:"log"` } )
/* This file is part of the IrcA2A project, which is released under MIT License. * See LICENSE.md or visit: * https://github.com/michaelpduda/irca2a/blob/main/LICENSE.md */ using System; using System.Collections.Concurrent; using System.Threading; using NetIrc2; using NetIrc2.Events; namespace IrcA2A.Communication ...
$(document).ready(function() { getRedditJson(); }); function getRedditJson() { $.ajax({ method: "GET", url: "https://www.reddit.com/r/todayilearned/top.json", dataType: "json", success: returnData, error: onError }); } function returnData(data) { const listings ...
#include "TrackingTools/Producers/interface/AnalyticalPropagatorESProducer.h" #include "TrackingTools/Producers/interface/StraightLinePropagatorESProducer.h" #include "TrackingTools/Producers/interface/SmartPropagatorESProducer.h" #include "TrackingTools/Producers/interface/BeamHaloPropagatorESProducer.h" #include "Tra...
package stream import ( "context" "errors" "sync" ) var errClose = errors.New("closed") var errPingDisabled = errors.New("ping disabled") type mockConn struct { pingCh chan struct{} closeCh chan struct{} closeOnce sync.Once readCh chan []byte writeCh chan []byte pingDisabled bool } ...
package com.fangdd.traffic.common.mongo.reflection.dto; import com.google.common.collect.Maps; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * Created by ycoe on 17/1/6. */ public class ClassMate { /** * ็ฑป */ private Class clazz; /** * ่ฟ™ไธช็ฑป็›ธๅ…ณ่”็š„ๅ…ถๅฎƒ็ฑป */ ...
<?= $this->extend('templates/default'); ?> <?= $this->section('title') ?> <?= $page->name ?> <?= $this->endSection(); ?> <?= $this->section('body') ?> <?= $page->text ?> <?= $this->endSection() ?>
--- title: 'Bar Chart with Mean' path: '/documentation/examples/bar_chart_with_mean' order: 8 --- <bar-chart-with-mean></bar-chart-with-mean> `embed:charts/bar-chart-with-mean.tsx`
<?php namespace Kyranb\Footprints; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Kyranb\Footprints\Jobs\AssignPreviousVisits; /** * Class TrackRegistrationAttribution. * * @method static void created(callable $callback) */ trait TrackRegistrationAttribution { public static function...
<?php namespace SDF; /** * Model Boilerplate. * Add your custom model codes to this file */ class Model extends Core { }
package com.technicalassigments.moviewapp.data.model data class AuthorDetails( var avatar_path: String?, var name: String?, var rating: Any?, var username: String? )
unit AggGammaSpline; //////////////////////////////////////////////////////////////////////////////// // // // Anti-Grain Geometry (modernized Pascal fork, aka 'AggPasMod') // // Maintained by Christian-W. Budde (Christian@...
# -*- coding: utf-8 -*- require 'test_helper' class PageTrantitionTestTest < ActionDispatch::IntegrationTest test "ใƒญใ‚ฐใ‚คใƒณใ—ใฆใƒšใƒผใ‚ธใ‚’้ท็งปใ—ใŸใจใใซใ€ใƒญใ‚ฐใ‚คใƒณๆƒ…ๅ ฑใŒไฟๆŒใ•ใ‚Œใฆใ„ใ‚‹" do login get '/' #assert_select 'div[class="navbar-left"] li:nth-child(3)', 'ใƒญใ‚ฐใ‚ขใ‚ฆใƒˆ' #get '/demands/index' #assert_select 'div[class="navbar-left"] l...
import { useState } from "react"; import styled from "styled-components"; import { ImageModal, Price, PriceSmall } from "../../elements"; import { ConfigDetailsType, IStyled } from "../../types"; import { calculatePrice } from "../../utility/calculatePrice"; import useClickOutside from "../../utility/useClickOutside"; ...
package main import ( "github.com/aws/aws-lambda-go/lambda" teams "github.com/ericdaugherty/msteams-webhook-go" ) type webHook struct { } func (w webHook) OnMessage(req teams.Request) (teams.Response, error) { return teams.BuildResponse("Hi " + req.FromUser.Name), nil } func main() { lambda.Start(teams.NewHandl...
/// <reference path="../abstract-builder.ts" /> class SVGBuilder extends AbstractTagBuilder<SVGElement> { constructor(viewBox?: string, id?: string, xmlns = 'http://www.w3.org/2000/svg') { super('svg', id, xmlns); if (Objects.isEmptyOrWhitespace(xmlns)) Objects.requireNonNull(null, 'xml...
#!/bin/bash # # Functions to fetch languages. # LANGPACKSFOLDER='../../moodle-langpacks' BUCKET='moodle-lang-prod' MOODLEORG_URL='https://download.moodle.org/download.php/direct/langpack' DEFAULT_LASTVERSION='4.0' # Checks if AWS is available and configured. function check_aws { AWS_SERVICE=1 aws --version &...
import React from "react"; import { Dimensions, Image, Linking, StyleSheet, Text, TouchableOpacity, View } from "react-native"; import { Feather as Icon } from "@expo/vector-icons"; import { LinearGradient } from "expo-linear-gradient"; import { StyleGuide } from "../components"; const d = Dimensions.get...
import scala.concurrent.duration.Duration import scala.concurrent.{Await, Future} object DTOTest02 extends App with DTOHelper02 { object Foo { val name = Future.successful("name") val id = Right(1234) val age = Future.successful(Right(6789)) } case class Bar(id: Int, name: String, age: In...
package com.github.jmatsu.multipreference.processor.extension import com.google.common.base.CaseFormat fun String.toLowerCamel(): String { return when { isLowerCamel -> this isUpperCamel -> toLowerCamel(CaseFormat.UPPER_CAMEL) isLowerUnderscore -> toLowerCamel(CaseFormat.LOWER_UNDERSCORE) ...
import { Component, OnInit, OnDestroy } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { Variable, Extensions, ILogger, ConsoleLogger, PromiseService } from '../../../../utils/index'; import { SiteEntity } from '../../../../entities/index'; import { ISiteApiService, SiteApiService } from...
<h1>Mapping App</h1> <h2>Flow Specification</h2> Flow consumes a single Question object, and a global-context object and interacts with the user. ```js module.exports = { flow: { ``` It has the following phases: 1. pre: for loading pre-fill options, etc. 1. question: the UI for the question object (ie., t...
import 'package:flutter_architecture_template/core/usecases/usecase.dart'; import 'package:flutter_architecture_template/domain/entities/firebase_auth/app_user.dart'; import 'package:flutter_architecture_template/domain/repositories/firebase_auth/app_user_repository.dart'; import 'package:injectable/injectable.dart'...
/* * Copyright (C) 2017 Ricky.yao https://github.com/vihuela * * 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 * */ package com.github.k...
require 'spec_helper' RSpec.describe Furs::Models::SalesBookIdentifier do it 'inherits from Furs::Models::BaseRequest' do expect(Furs::Models::SalesBookIdentifier).to be < Furs::Models::BaseRequest end it 'is valid if all parameters are valid' do expect(build :sales_book_identifier).to be_valid end it 'is ...
;; Copyright ยฉ 2016 Dynamic Object Language Labs Inc. ;; ;; This software is licensed under the terms of the ;; Apache License, Version 2.0 which can be found in ;; the file LICENSE at the root of this distribution. (ns planviz.tplan "temporal planning layout algorithm" (:require [cljs.pprint :refer [pprint]] ...
# Cubic Chunks Minecraft Mod This MinecraftForge mod extends Minecraft height and depth. The only limitation is size of 32-bit integer. [![Build Status](https://travis-ci.org/OpenCubicChunks/CubicChunks.svg?branch=MC_1.12)](https://travis-ci.org/OpenCubicChunks/CubicChunks) * For the most up to date information abou...
<!-- id: 98020958 link: http://tumblr.atmos.org/post/98020958/network-advertising-initiative slug: network-advertising-initiative date: Sun Apr 19 2009 21:16:12 GMT-0700 (PDT) publish: 2009-04-019 tags: title: Network Advertising Initiative --> Network Advertising Initiative ============================== [http://w...
package cn.xigua366.sample.service; import cn.xigua366.sample.domain.dto.PageSchoolDTO; import cn.xigua366.sample.domain.dto.SchoolDTO; import cn.xigua366.sample.domain.query.PageSchoolQuery; import com.yangxi.cloud.framework.core.PageResult; /** * <p> * ๅญฆๆ กไฟกๆฏService็ป„ไปถ * <p/> * * @author yangxi * @version 1.0 ...
var jaffy = jaffy || {}; jaffy.maps = function(component,locations){ var $component = $(component); $component.foreach(function(){ map_instance($(this), locations); }); function map_instance($component, locations){ var map, marker, markers = Array(); bounds = new googl...
๏ปฟusing System; namespace OY.TotalCommander.TcPluginInterface.Content { [Serializable] public class ContentProgressEventArgs: PluginEventArgs { #region Properties public int NextBlockData { get; private set; } #endregion Properties public ContentProgressEventArgs(int nextBlock...
#!/bin/bash NF_LIST="nrf amf smf udr pcf udm nssf ausf n3iwf free5gc-upfd" for NF in ${NF_LIST}; do sudo killall -9 ${NF} done sudo killall tcpdump sudo ip link del upfgtp sudo ip link del ipsec0 sudo ip link del xfrmi-default sudo rm /dev/mqueue/* sudo rm -f /tmp/free5gc_unix_sock mongo --eval "db.NfProfile.dro...
require 'ddtrace/logger' module Datadog # A simple pub-sub event model for components to exchange messages through. class Event attr_reader \ :name, :subscriptions def initialize(name) @name = name @subscriptions = {} @mutex = Mutex.new end def subscribe(key, &block)...
use std::fs::File; use std::io; use std::iter::Iterator; use std::collections::BTreeSet; use io::Read; fn read(path: &str) -> String { let mut file = File::open(path).unwrap(); let mut s = String::new(); file.read_to_string(&mut s).unwrap(); s } use nom::{ IResult, bytes::complete::tag, ch...
package spp import org.scalatest._ import java.io.File import spp.lexer.Lexer import spp.structure.Tokens.Token import spp.structure.Tokens.Token class LexerTests extends OutputComparisonSpec { val inputExtension: String = ".py" val outputExtension: String = ".txt" val pipeline = path => TokensToStri...
# frozen_string_literal: true RSpec.describe QuetzalDb::Cfn::Create do subject(:template) do Helpers::Template.new(File.join(__dir__, '..', '..', '..', 'quetzal-db-create-stack.yml')) end let(:expected_empty_resource) do { 'Type' => 'Custom::EmptyResource', 'Condition' => 'NotCreate' } ...
def caesar_cipher(str, int) fin = "" str.chars.each do |c| if ((65..90).to_a + (97..122).to_a).include? c.ord var = c.ord + int if ((90..97).to_a + (122..200).to_a).include? var var -= 26 end fin += var.chr else fin += c...
part of kcaa_controller; void handleFleetList( Assistant assistant, AssistantModel model, Map<String, dynamic> data) { var fleetsLength = data["fleets"].length; if (fleetsLength != model.fleets.length) { // Wait for the DOM to be updated. runLater(0, () => assistant.updateCollapsedSections()); } re...
/* Sniperkit-Bot - Status: analyzed */ package main import ( "strings" "testing" "github.com/PuerkitoBio/goquery" ) func TestGetFileAndPath(t *testing.T) { args := map[string]map[string]string{ "bin/file": { "file": "file*", "path": "*bin", }, "posix": { "file": "*posix*", "path": "", }, "...
import React from "react"; import {Switch, Route} from "react-router-dom"; import API from '../apis'; import TableTgRoleList from '../table_list'; import FormTgRoleAdd from '../form_add'; import FormTgRoleEdit from '../form_edit'; import ViewTgRoleInfo from '../view_info'; import TableTgUserRoleList from '../../tg_user...
(defpackage :aoc-20-utils (:use :cl) (:export :input-file-pathname) (:documentation "Common convenience utilities")) (in-package :aoc-20-utils) (defun expand-filename (n) (format nil "inputs/day~2,'0d.txt" n)) (defun input-file-pathname (n) (asdf:system-relative-pathname 'aoc-20 (expand-filename n)))
/* * 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 ...
๏ปฟusing System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Transition : MonoBehaviour { public bool IsFading { get; private set; } [SerializeField] private Image target = null; [SerializeField] private float speed = 1f; [S...
!======================================================================== ! ! S P E C F E M 2 D Version 7 . 0 ! -------------------------------- ! ! Main historical authors: Dimitri Komatitsch and Jeroen Tromp ! Princeton University, USA ! ...
# Creates the string variable with input variables formatter = "%{first} %{second} %{third} %{fourth}" # Prints the string variable formatter, and inserts the values in the %{} # Note that integers don't need to be "" puts formatter % {first: 1, second: 2, third: 3, fourth: 4} # Note that text strings require ""...
class VampPluginSdk < Formula desc "audio processing plugin system sdk" homepage "http://www.vamp-plugins.org" url "https://code.soundsoftware.ac.uk/attachments/download/1520/vamp-plugin-sdk-2.6.tar.gz" sha256 "d0d3578137ac0c1e63f31561081a8d61da526a81152bc1dc9383b629bc07f85f" head "https://code.soundsoftware....
using System; using Fuzzy; using Xunit; namespace Chronology { public class TimeSpanExtensionsTest: TestFixture { public class Days: TimeSpanExtensionsTest { [Fact] public void ReturnsTimeSpanFromDouble() { double value = fuzzy.TimeSpan().TotalDays; ...
๏ปฟ@using Microsoft.AspNetCore.Localization @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @{ var culture = Context.Features.Get<IRequestCultureFeature>().RequestCulture.Culture.Name; } <!DOCTYPE HTML> <html lang="@culture"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <ti...
class Orc480AddIndexToWorklog < ActiveRecord::Migration[5.1] def up remove_index :worklogs, %i[task_id user_id project_id date] add_index :worklogs, %i[task_id date], unique: true end def dowm remove_index :worklogs, %i[task_id date] add_index :worklogs, %i[task_id user_id project_id date], uniqu...
/* Generated by RuntimeBrowser Image: /System/Library/PrivateFrameworks/NeutrinoCore.framework/NeutrinoCore */ @interface NUVideoPropertiesJob : NURenderJob { <NUVideoProperties> * _videoProperties; } - (void).cxx_destruct; - (bool)prepare:(out id*)arg1; - (id)result; - (bool)wantsCompleteStage; - (bool)wants...
var o = {p1:1}; var prop = {value:2, writable:true, enumerable:false, configurable:true} var x = Object.defineProperty(o, "p2", prop); var __result1 = x.propertyIsEnumerable("p1"); var __expect1 = true; var __result2 = x.propertyIsEnumerable("p2"); var __expect2 = false;
/* * The Optimal Kick Hamiltonian split evaluates every interaction in the system * at the optimal split time step, thereby using the least amount of force * evaluations to evolve the system. */ #include <tgmath.h> #include <stdio.h> #include <stdlib.h> #include "evolve.h" #include "evolve_ok.h" struct forces zer...
#!/bin/sh # # bear.sh - shell wrapper for bear.php # # $Id: bear.sh 707 2009-07-06 18:31:29Z koriyama@users.sourceforge.jp $ # BEAR_HOME="@PEAR-DIR@/BEAR" if (test -z "$PHP_COMMAND"); then export PHP_COMMAND=php fi if (test -z "$PHP_CLASSPATH"); then PHP_CLASSPATH=BEAR_HOME/class export PHP_CLASSPATH...
<?php namespace App\Entities; class Post { private $fields = []; public function __construct($data) { $this->fields = $data; } public function getCreatedAt(string $format = 'Y-m-d H:i', string $timezome = 'Europe/Moscow') { $datetime = new \DateTime($this->fields['created_at'...
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_EDITOR /** * Autogenerated by Thrift Compiler () * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ namespace GetSocialSdk.Core { /// <summary> /// to determine which query to run. /// </summary> public enum Quer...
package untitled.goose.framework.model.entities.runtime import untitled.goose.framework.model.events.PlayerEvent trait Player extends Defined[PlayerDefinition] with History[PlayerEvent] { /** Compares two players. */ def ==(obj: Player): Boolean = definition == obj.definition && history == obj.history overrid...
/* Copyright 2020 Gravitational, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
package fr.anthonygodin.api.controller; import fr.anthonygodin.api.dto.entity.ToolDTO; import fr.anthonygodin.api.dto.entity.ToolToCreateDTO; import fr.anthonygodin.api.service.CrudService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import or...
/* * InputDialog.java * * Copyright (C) 1998-2003 Peter Graves * $Id: InputDialog.java,v 1.3 2003/07/23 16:13:51 piso Exp $ * * 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; either versi...
<?php /** * LitePubl CMS * * @copyright 2010 - 2017 Vladimir Yushko http://litepublisher.com/ http://litepublisher.ru/ * @license https://github.com/litepubl/cms/blob/master/LICENSE.txt MIT * @link https://github.com/litepubl\cms * @version 7.08 */ namespace litepubl\plugins\smushit; use litepubl\cor...
module Plotting using Plots using ..Structs export plot_rectangles rectangle(x, y, w, h) = Shape(x .+ [0, w, w, 0], y .+ [0, 0, h, h]) function plot_rectangles(rect_sizes, positions) p = Plots.plot(legend = false) for (dims, pos) in zip(rect_sizes, positions) Plots.plot!( p, ...
<?php namespace App\Domains\Deposits\Actions; use App\Domains\Deposits\DTOs\DepositDTO; use App\Domains\Deposits\Enums\DepositStatusEnum; use App\Domains\Deposits\Models\Deposit; use App\Domains\Images\Actions\CreateNewImageAction; use Illuminate\Support\Facades\DB; class CreateNewDepositAction { public functi...
/* * FBOTestApp.cpp * * Copyright (C) 2007 by Universitaet Stuttgart (VIS). Alle Rechte vorbehalten. */ #ifdef _WIN32 #include <windows.h> #else /* _WIN32 */ #endif /* _WIN32 */ #include <stdio.h> #include "vislib/graphics/gl/IncludeAllGL.h" #include <GL/glut.h> #include "GlutAppManager.h" #include "vislib/graphic...
describe 'wildfly::profile_path' do it { is_expected.to run.with_params('').and_return(nil) } it { is_expected.to run.with_params(nil).and_return(nil) } it { is_expected.to run.with_params('full-ha').and_return('/profile=full-ha') } end
package com.uploadcare.android.library.data import com.squareup.moshi.Json import com.uploadcare.android.library.api.UploadcareGroup import java.net.URI data class GroupPageData(val next: URI? = null, val previous: URI? = null, val total: Int, ...
// // Created by Zhen Peng on 8/4/19. // #include <stdio.h> #include <stdlib.h> #include <fstream> #include <time.h> #include "dglobals.h" #include "globals.h" using namespace PADO; /* * Create a binary file. The format is just sequence of pairs of Vertex IDs. */ void create(const char *filename, VertexID num_v,...
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. use zerocopy::{AsBytes, FromBytes}; use crate::types::*; /// Matches iovec_t. #[derive(Debug, Default, Clone, Copy, AsBytes, FromBytes)] #[repr(C)] pub s...
--- title: combinatorics icon: 'null' related: ["math"] emoji: โš–ย  ---