text
stringlengths
27
775k
package com.github.dynamo.core.services; import java.util.Collection; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import com.github.dynamo.backlog.BackL...
<?php namespace Inventory\Controller; use Laminas\ServiceManager\Factory\FactoryInterface; use Interop\Container\ContainerInterface; class RoleControllerFactory implements FactoryInterface { public function __invoke(ContainerInterface $container, $requestedName, array $options = null) { $roleTable = ...
#pragma once #include <array> #include <iostream> using u128 = std::array<std::uint8_t, 16>; u128 xor128(const u128& f1, const u128& f2); std::ostream& operator<<(std::ostream& out, const u128& f);
package com.social.image.socialimage.controller; import com.social.image.socialimage.service.ImageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.InputStreamResource; import org.springframework.core.io.Resource; import org.springframework.http.HttpRequest; im...
export { default as CriteriasCreate } from "./Create"; export { default as CriteriasEdit } from "./Edit"; export { default as CriteriasShow } from "./Show"; export { default as CriteriasList } from "./List";
package dotty package tools package vulpix import java.io.{ File => JFile, InputStreamReader, BufferedReader, PrintStream } import java.nio.file.Paths; import java.util.concurrent.atomic.AtomicBoolean import java.util.concurrent.TimeoutException import scala.concurrent.duration.Duration import scala.concurrent.{ Awai...
#pragma once #include <G3Frame.h> #include <G3Map.h> #include <G3TimeStamp.h> #include <stdint.h> #include "numpy_assist.h" using namespace std; namespace bp = boost::python; // Template class for working with intervals -- pairs of objects of // the same (well-ordered) type, with operations defined that support //...
import unittest from numba.compiler_lock import ( global_compiler_lock, require_global_compiler_lock, ) from .support import TestCase class TestCompilerLock(TestCase): def test_gcl_as_context_manager(self): with global_compiler_lock: require_global_compiler_lock() def test_gcl_as_...
#!/bin/sh # $Header: /home/gbsmith/projects/ResCafe/ResCafe_devel/RCS/ResCafe.sh,v 1.2 2000/07/15 21:25:39 gbsmith Exp gbsmith $ #---------------------------------------------------------------------------- # $Log: ResCafe.sh,v $ # Revision 1.2 2000/07/15 21:25:39 gbsmith # Convert args to abs paths then pass to Res...
#!/bin/bash set -e if ! [ -x "$(command -v apt-add-repository)" ]; then sudo apt-get --assume-yes update sudo apt-get install --assume-yes software-properties-common fi if ! [ -x "$(command -v ansible)" ]; then sudo apt-add-repository -y ppa:ansible/ansible sudo apt-add-repository -y ppa:git-core/pp...
#include "CImg.h" #include "kf/kf_vector.h" #include "scene.h" #include "renderable.h" #include "kf/kf_ray.h" #include "light.h" #include "windows.h" #include "lua/lua.hpp" #include "luascript.h" #include "main.h" using namespace cimg_library; int l_progressive(lua_State *L) { if (lua_gettop(L) > 0) { progressive...
package navmesh import ( "encoding/binary" "github.com/ferdoran/go-sro-framework/utils" "github.com/g3n/engine/math32" log "github.com/sirupsen/logrus" ) type ObjectList struct { ObjectCount uint16 Objects []*Object } type Object struct { ID uint32 Position *math32.Vector3 Ty...
<?PHP class Form_Photo extends Zend_Form { public function __construct($hp, $photoId) { if ($hp == 1) { $this->inithpimage($photoId); } else { $this->init($photoId); } } pri...
# Geocaching-Map-Enhancements Geocaching Map Enhancements This will be my fork where I try to do updates on the Geocaching Map Enhancements user script
class ProjectTask < ApplicationRecord belongs_to :task belongs_to :project has_one :log, dependent: :destroy, foreign_key: :task_id acts_as_archival def group_date(format = '%B %Y') updated_at.strftime(format) end def spent_time_percentage return 0 if hours.nil? or hours.zero? ((spent_time...
package com.cfckata.domain; import lombok.Data; import java.io.Serializable; @Data public class UseLoanItem implements Serializable { /** * 还款计划id */ private String planId; /** * 期数 */ private String periodNo; private String payableDate; private String payableAmount; ...
// build-pass // compile-flags: -C llvm-args=--disassemble-fn=asm_add_two_ints::add_two_ints use core::arch::asm; use spirv_std as _; fn add_two_ints(x: u32, y: u32) -> u32 { let result; unsafe { asm!( "{0} = OpIAdd typeof{0} {1} {2}", out(reg) result, in(reg) x, ...
using System; using System.Globalization; using System.Threading; using System.Windows.Forms; using EIDSS.RAM; using EIDSS.RAM.Components; using EIDSS.RAM.Layout; using EIDSS.Reports.BaseControls.Transaction; using Microsoft.VisualStudio.TestTools.UnitTesting; using bv.common.Core; using bv.common.db.Core; u...
module EffectZoo.Scenario.Reinterpretation.Shared where response :: String response = unlines [ "BigStack" , "CountDown" , "FileSizes" , "Inline" , "NoInline" ]
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
1 112 182 434 453 2 55 98 227 412 471 3 191 299 4 15 185 410 484 5 15 6 259 278 429 7 25 108 236 434 8 63 97 316 372 9 103 212 420 460 10 6 11 218 364 12 141 172 455 13 200 215 14 96 121 187 228 364 476 15 117 167 274 358 397 16 29 68 375 17 10 58 169 322 18 20 255 19 10 20 58 160 309 335 365 420 21 78 221 488 22 197 1...
class Test { delegate void D (); event D E; D proxy; event D Changed { add { if (proxy == null) proxy = delegate () { Foo (); }; } remove { } } void Foo () { } public static void Main () { } }
#-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'digest/sha2' module Gem SHA256 = Digest::SHA256 end
myTestRule { #Input parameters are: # dest # source #Output parameter is: # dest #Output from running the example is: # dest is foo # source is bar # dest is now foobar writeLine("stdout","dest is *dest"); writeLine("stdout","source is *source"); msiStrCat(*dest,*source); writeLine("stdout","dest is n...
Remove-Item -path "./lib" -recurse tsc -m es6 --outDir "./lib/es6" tsc -m commonjs --outDir "./lib/commonjs" tsc -m amd --outFile "./lib/amd/more-xrm.js" tsc -m system --outFile "./lib/system/more-xrm.js"
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using System.Runti...
<?php /* * This file is part of the Freshheads Webpack bundle. * * (c) Freshheads B.V. <info@freshheads.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FH\Bundle\WebpackBundle\Templating; use FH\WebpackStats\Parse...
--- layout: Haiku title: Autumn author: Mattias test: false --- The leaves are flying<br> The branches is touch the ground<br> Autumn is the month<br>
#!/bin/bash # NB only to be sourced set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Protect against being sourced multiple times to prevent # overwriting assert.sh global state if ! [ -z "$SOURCED_CONFIG_SH" ]; then return fi SOURCED_CONFIG_SH=true # these ought to match what is in Vagrantfile N_MA...
/* * Copyright (C) 2009 The Android Open Source Project * * 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 app...
# frozen_string_literal: true require "test_helper" class VersionTest < Minitest::Test def test_version output = capture_stdout { Gel::Command::Version.run(["--version"]) } assert output =~ %r{Gel version} end end
// This generates theme variables in the correct shape for the UI import lightThemeVars from './themes/light'; import darkThemeVars from './themes/dark'; import { ThemeVars } from './types'; import { getPreferredColorScheme } from './utils'; export const themes: { light: ThemeVars; dark: ThemeVars; normal: ThemeVars ...
# `awsinfo elasticbeanstalk instance [environment_filters]* -- [instance_filters]*` Get details about the health and load of each instance in a selected ElasticBeanstalk Environment with optional filtering of the instnances ## Environment Filter matches against * Environment Name ## Instance Filter matches against ...
//! Move generator implementation. Use the top level function [`gen`] //! to get a list of scored plays. use crate::{ ai::lookup::Lookup, game::{ board::Board, play::Play, rack::Rack, tile::{Letter, Tile}, }, util::{ self, bitboard::BitBoard, fsm:...
## Easy auth # Installation process 1. Install PostgreSQL 2. Create 2 tables (users && tokens) 3. Update config file 4. npm install 5. npm run start:dev ## TODO - Update database models - Save || Update user after login
package org.fundacionjala.enforce.sonarqube.apex.checks; import static org.fundacionjala.enforce.sonarqube.apex.api.grammar.ApexGrammarRuleKey.TRY_STATEMENT; import java.util.List; import org.sonar.check.Rule; import org.sonar.squidbridge.checks.SquidCheck; import com.sonar.sslr.api.AstNode; import com.sonar.sslr.a...
package plugins import Config import dependencies.Versions import org.jlleitschuh.gradle.ktlint.KtlintExtension import org.jlleitschuh.gradle.ktlint.KtlintPlugin import org.jlleitschuh.gradle.ktlint.reporter.ReporterType apply<KtlintPlugin>() configure<KtlintExtension> { version.set(Versions.ktlint_internal) andro...
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("SerialLabs.ExceptionHandling")] [assembly: AssemblyDescription("Exception Handling Library")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("ce974d4b-eb29-43fe-943a-77a05f121ee5")]
//! Error handlers. // Infallible used here instead of `!` to be compatible with rust <1.41. use std::{convert::Infallible, fmt::Debug, future::Future, pin::Pin}; /// An asynchronous handler of an error. pub trait ErrorHandler<E> { #[must_use] fn handle_error<'a>( &'a self, error: E, ) -> ...
namespace LoggerMessage.Tools { public class Constants { public const string LoggerMessagesExtensionsFileName = "LoggerMessagesExtensions.cs"; public const string LoggerMessagesFolderName = "Extensions"; public const string DefaultNamespace = "LoggerMessages"; public const strin...
import 'package:dio/dio.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:vexana/vexana.dart'; // ignore: always_declare_return_types main() { late INetworkManager networkManager; setUp(() { networkManager = NetworkManager( isEnableLogger: ...
/* oshmem/include/shmem-compat.h. This file contains OpenSHMEM lagacy API */ /* * Copyright (c) 2014-2015 Mellanox Technologies, Inc. * All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #ifndef OSHMEM_SHMEM_COMPAT_H #define OSHMEM_SHMEM_COMPAT_H #...
def obtain_class class_name = ENV['CLASS'] || ENV['class'] raise "Must specify CLASS" unless class_name @klass = Object.const_get(class_name) end def obtain_attachments name = ENV['ATTACHMENT'] || ENV['attachment'] raise "Class #{@klass.name} has no attachments specified" unless @klass.respond_to?(:attachmen...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdbool.h> #include <curl/curl.h> #include "ela_did.h" #include "simulateadapter.h" static const char *tx_url = "http://127.0.0.1:9123/idtx"; static const char *reset_url = "http://127.0.0.1:9123/reset"; static const char *shutdo...
'use strict'; const {Firestore} = require('@google-cloud/firestore'); const db = new Firestore(); const collection = 'service-requests'; async function update(id, data) { let ref; if (id === null) { ref = db.collection(collection).doc(); } else { ref = db.collection(collection).doc(id); } data.id = ...
import {empty as observableEmpty} from "rxjs"; import {SliderComponent} from "../../../src/Component"; import { Container, Navigator, } from "../../../src/Viewer"; import {ContainerMockCreator} from "../../helper/ContainerMockCreator.spec"; import {NavigatorMockCreator} from "../../helper/NavigatorMockCreator...
#/usr/bin/env perl ############################################################################### # # @file Parser.pm # # @brief Eulerian Data Warehouse REST Parser Module definition. # # This module is the base class of every input file parser. # # @author Thorillon Xavier:x.thorillon@eulerian.com # # @date 26/11/202...
Cenit::Service::Engine.routes.draw do get 'schema', to: 'schema#index' end
subroutine fpcosp(m,x,y,w,n,t,e,maxtr,maxbin,c,sq,sx,bind,nm,mb,a, * * b,const,z,zz,u,q,info,up,left,right,jbind,ibind,ier) c .. c ..scalar arguments.. real*8 sq integer m,n,maxtr,maxbin,nm,mb,ier c ..array arguments.. real*8 x(m),y(m),w(m),t(n),e(n),c(n),sx(m),a(n,4),b(nm,maxbin), ...
package rawhttp import ( "bufio" "io" "io/ioutil" "strconv" "strings" ) // A Response wraps the HTTP response from the server type Response struct { rawStatus string headers []string body []byte } // Header finds and returns the value of a header on the response. // An empty string is returned if no m...
package dev.frederik.dramatispersonae.auth import com.google.gson.Gson import dev.frederik.dramatispersonae.AuthenticationConfig import org.springframework.context.annotation.Bean import org.springframework.stereotype.Component import java.net.URI import java.net.URLEncoder import java.net.http.HttpClient import java....
<?php // +---------------------------------------------------------------------- // | thinkphp5 Addons [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2016 http://www.zzstudio.net All rights reserved. // +---------------------------------...
import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; class PetlyTextTheme { static TextStyle h1 = GoogleFonts.lato( fontWeight: FontWeight.bold, letterSpacing: 0.9, fontSize: 28, ); static TextStyle subtitle = GoogleFonts.lato( fontWeight: FontWeight.w500, ...
"""Database queries used by med-ai runner""" import json from typing import List, Dict from medaimodels import ModelOutput from utils.db_utils import query_and_fetchall, query_and_fetchone, query, join_for_in_clause def get_classifier_model(modality: str): """ Gets a classifier model for a given modality ...
/** * @typedef {import('../types.js').Handle} Handle * @typedef {import('../types.js').Element} Element */ import {findSelectedOptions} from '../util/find-selected-options.js' import {wrapText} from '../util/wrap-text.js' /** * @type {Handle} * @param {Element} node */ export function select(h, node) { var va...
require 'forwardable' module SequenceServer # Create report for the given job. # # Report is a generic superclass. Programs, like BLAST, must implement their # own report subclass. class Report class << self # Generates report for the given job. Returns generated report object. # # TOD...
/* Copyright 2016 Mozilla 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 distributed u...
describe ProfileController, type: :controller do let!(:admin) { create(:admin_user) } let(:user) { create(:user, admin: false) } describe '#update' do context 'unauthenticated' do it 'should return status 302' do post :update, params: { id: user.id } expect(response).to have_http_statu...
package com.jesen.cod.testlottie import android.content.Context import android.util.Log import java.io.IOException import java.util.* object AssertUtil { fun getAssetPath(context: Context): List<String> { val am = context.assets var path: Array<String>? = null try { path = am.l...
package cn.com.phinfo.oaact; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widg...
package Beam::Minion::Command::job; our $VERSION = '0.017'; # ABSTRACT: Command to manage minion jobs =head1 SYNOPSIS beam minion job [-R] [-f] [--remove] [-S <state>] [-q <queue>] [-t <task>] [-w] [-l <limit>] [-o <offset>] [<id>] =head1 DESCRIPTION This command manages the minion queue, lists jobs, li...
#!/bin/bash set -euxo pipefail # TODO(sileht): nginx cache the ip of the engine container, when the # engine container is recreated, nginx still try to connect to the old one # So we temporary restart the nginx container each time we deploy mergify cd mergify-engine-docker export ENV=prod docker-compose -f docker-c...
--- uid: System.Web.UI.WebControls.WebParts.BehaviorEditorPart --- --- uid: System.Web.UI.WebControls.WebParts.BehaviorEditorPart.#ctor --- --- uid: System.Web.UI.WebControls.WebParts.BehaviorEditorPart.DefaultButton --- --- uid: System.Web.UI.WebControls.WebParts.BehaviorEditorPart.SyncChanges --- --- uid: System....
{-# LANGUAGE LambdaCase #-} module Network.Guacamole.Parser.Pipes ( parsePipeRequest , parsePipeRequestNamed , parsePipeRequestIndexed , parsePipeStatus ...
pkg_name=mov-me pkg_version=0.0.2 pkg_origin=x0nic pkg_maintainer="Nathan Lee <nathan@globalphobia.com" pkg_license=('mit') pkg_scaffolding=core/scaffolding-ruby
#! ruby # -*- encoding: utf-8 -*- module Ariblib class FIFO attr_accessor :buf def initialize(buf) @buf=buf end def getbyte @buf.shift end def add(buf) @buf += buf end def << (buf) @buf << buf end def clear @buf.clear end def size @buf.size * 8 end def eof? @buf.size =...
--- layout: photo_set title: 2015-hanoi titlelong : hanoi, vietnam (2015) permalink: /photos/hanoi/ ---
![](info.png) Cardinal bandits (aka "how funny is this caption?") Histogram of when people responded: ![](histogram.png) Example query: ![](example_query.png) Certain participants were emailed to our caption page (very fast, no reloading) through Bob Mankoff. This caption contest was also live on the New Yorker ...
import { ByteArray } from 'temp_lib/index' // `export` so this isn't considered dead code. export function foo(): void { let a = new ByteArray(0) let b: string = a.toBase58() }
package pl.zycienakodach.kttimetraveler.core import java.time.* import java.time.temporal.TemporalAmount class MutableClock(private var instant: Instant, private val zone: ZoneId = ZoneId.systemDefault()) : Clock() { companion object { @JvmStatic fun from(clock: Clock): MutableClock = clock.toMut...
export const coinChange = (coins, amount) => { if (amount < 0) return -1 if (amount === 0) return 0 const dp = new Array(amount + 1).fill(Infinity) dp[0] = 0 for (let i = 1; i <= amount; i++) { for (let coin of coins) { if (i < coin) continue dp[i] = Math.min(dp[i], 1 + dp[i - coin]) } ...
# $Id: FTHelper.pm,v 1.55 2002/11/05 02:55:12 lapp Exp $ # # BioPerl module for Bio::SeqIO::FTHelper # # Cared for by Ewan Birney <birney@ebi.ac.uk> # # Copyright Ewan Birney # # You may distribute this module under the same terms as perl itself # POD documentation - main docs before the code =head1 NAME Bio::SeqIO:...
using Microsoft.Extensions.Hosting; using GreenPipes; using MassTransit; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using NotificationService.Consumers; using System; using System.IO; using System.Threading.Tasks; using MessagingQueue.Constants; using EmailService; names...
package main import "unicode/utf8" func indexPreviousBlankLine() int { if Global.CurrentB.cy == 0 { Global.Input = "Beginning of buffer" return 0 } for i := Global.CurrentB.cy - 1; 0 < i; i-- { if Global.CurrentB.Rows[i].Size == 0 { return i } } return 0 } func indexNextBlankLine() int { if Global.C...
import computeStateName from "../../../common/entity/compute_state_name"; import { LitElement, html, css, CSSResult, PropertyValues, property, TemplateResult, } from "lit-element"; import "../../../components/entity/state-badge"; import "../../../components/ha-relative-time"; import "../../../components/...
package com.example.andriginting.pisang.Model /** * Created by Andri Ginting on 9/30/2017. */ class MenuModel { class MenuModel constructor(val konten:String, val thumbnail:Int) }
/* * Copyright 2012-2021 the original author or authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
# DateTime Simple library for working with DateTime. ## Requirements | master | 1.0 | |:----------|:--------:| | php | 7.2 | ## Installation Install the latest version with: ``` $ composer require yakiv-khorunzhyi/date-time-lib ``` ## More resources: * [Documentation](https://github.com/yakiv-khor...
<?php namespace App\Http\Controllers; use App\Jobs\SendReceiptEmail; use App\Mail\PaymentReceipt; use App\Member; use App\Setting; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Storage; use finfo; class RegistrationController extends Controller { /...
import { Frame } from './frame'; export const Manipulator = function Manipulator(sockets) { this.sockets = sockets; this.frame = new Frame(); }; Manipulator.prototype.setAxes = function setAxes(axis1, axis2) { console.log('[manipulator]', axis1, axis2); const frame = this.frame.manipulator(axis1, axi...
# frozen_string_literal: true def content_header find('[data-testid="contentHeader"]') end def has_message_alert_with?(message) expect(page).to have_selector('[data-testid="alertMessage"]') within '[data-testid="alertMessage"]' do expect(page).to have_content message end end
package me.akadeax.keksguilds.commands.subcommands; import me.akadeax.keksguilds.Guild; import me.akadeax.keksguilds.GuildController; import me.akadeax.keksguilds.GuildMember; import me.akadeax.keksguilds.KeksGuilds; import me.akadeax.keksguilds.commands.CommandError; import me.akadeax.keksguilds.commands.CommandResul...
/** * SparkSwap CLI User configuration * * In order to edit this file, first move it to .sparkswap in your home directory * and rename it to 'config.js' * * On *nix in bash, you can do this by running: * `cp -n "$(dirname $(which sparkswap))/../lib/node_modules/broker-cli/sample-config.js" ~/.sparkswap/config.js...
namespace coffee.demo { public class Product { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public override bool Equals(object obj) { var newobj = obj as Product; if (newobj =...
package format type nopeFormatter struct{} // Clarify ... func (n nopeFormatter) Clarify(string) (Formatter, error) { return n, nil } // Format ... func (nopeFormatter) Format(string) (string, error) { return "", nil }
# dasio The goal of this project is to port **asio** of **boost** to D. As the intent is a full rewrite of asio in pure D, it is also a good opportunity for me to learn D and evaluate it's potential use for efficent I/O application. The asio library is the product of a long maturation process by expert C++ programme...
package com.nec.ve import com.nec.spark.agile.CppResource.CppResources import com.nec.ve.VeKernelCompiler.PlatformLibrarySoName import org.scalatest.freespec.AnyFreeSpec final class CheckCompiledLibrarySpec extends AnyFreeSpec { "We can get the resource file" in { val names = CppResources.AllVe.all.map(_.name) ...
package com.danielasfregola.twitter4s.http.clients.rest.favorites import com.danielasfregola.twitter4s.entities.{RatedData, Tweet} import com.danielasfregola.twitter4s.http.clients.rest.RestClient import com.danielasfregola.twitter4s.http.clients.rest.favorites.parameters.{FavoriteParameters, FavoritesParameters} impo...
#pragma once #include "Pass.h" struct TDeferredLightingPass : public TPass { void Render(CRenderer* renderer, std::vector<TLight> Lights, CCamera camera, TWindow window, float delta); private: void DrawScreenQuad(CRenderer* renderer, std::vector<TLight> Lights, TShader DeferredLightingPS, TShader Scre...
; creat(const char *name, mode_t mode) SECTION code_clib PUBLIC creat PUBLIC _creat INCLUDE "target/msx/def/msxdos2.def" EXTERN MSXDOS EXTERN msxdos_error .creat ._creat push ix ld ix,2 add ix,sp ld e,(ix+4) ;Filename ld d,(ix+5) ld c,_DELETE call MSXDOS ...
package au.id.tmm.utilities.testing.cats.instances import au.id.tmm.utilities.testing.cats.instances.wrapped._ import au.id.tmm.utilities.testing.scalacheck.instances.wrapped._ import au.id.tmm.utilities.testing.{Wrapped, WrappedK} import cats.laws.discipline.InvariantTests import munit.{DisciplineSuite, FunSuite} cl...
#!/usr/bin/env bash BCL_ENV=DEV BCL_JWT_SECRET=a_really_secret_string BCL_REDIS_ADDRESS=localhost:6379 BCL_ROOT_ADDRESS=http://localhost:8080 BCL_PORT=8080 BCL_DIR_DATA=/Users/your_home/bcl-data BCL_OAUTH_GOOGLE_ID=your_google_oauth_id BCL_OAUTH_GOOGLE_SECRET=your_google_oauth_secret
use crate::kval_enum::KVal; use crate::enc_dec::decode::decode; use crate::error::ComResult; /// &mut &vec may not be user-friendly. pub fn decode_from_slice(slice : &[u8]) -> ComResult<(Vec<KVal>, usize)>{ let mut slice = slice; decode(&mut slice) }
using System; namespace AspNetCoreAngularSignalR.Model { public class ImageMessage { public byte[] ImageBinary { get; set; } public string ImageHeaders { get; set; } } }
import test from 'ava'; import sinon from 'sinon'; import {EventEmitter} from 'events'; import fn from './'; test.before(() => { sinon.stub(console, 'log'); }); test('return 2 when the value is 4', t => { t.is(fn.calculate(4), 2); }); test('return 1 when the value is 3', t => { t.is(fn.calculate(3), 1); }); test...
/* * 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 ...
'use strict' const supportedShortCodes = [ 'en', 'nl', 'fr', 'es', 'pt', 'ja', 'it', 'de', 'ru', 'zh', // chinese (simplified) 'eo', 'jbo' // Lojban ] const mnemonicLanguages = [ 'English', 'Netherlands', 'Français', 'Español', 'Português', '日本語', 'Italiano', 'Deutsch', 'русс...
require 'spec_helper' describe Admin do before :each do @admin = Admin.new email: 'test@test.com', password: '12341234' @admin.save end describe '#new' do it 'takes two parameters an returns a Admin object' do @admin.should be_an_instance_of Admin end end describe '#email' do it...
docker run -d --restart=always \ --name ipfs_host \ -v `pwd`/ipfs-staging:/export \ -v `pwd`/ipfs-data:/data/ipfs \ -p 4001:4001 \ -p 8080:8080 \ -p 127.0.0.1:5001:5001 \ ipfs/go-ipfs:latest
import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:potato_notes/data/dao/note_helper.dart'; import 'package:potato_notes/data/model/saved_image.dart'; import 'package:potato_notes/internal/sync/image_queue.dart'; import '../helper/empty_note.dart'; class MockNoteHe...