text
stringlengths
27
775k
require 'spec_helper' describe Algorithmable::DataStructs::Stack do context '#general' do let(:stack) { described_class.new } let(:items) { [3, 2, 1].freeze } it do expect(stack).to be_kind_of(described_class) end it do stack.push 1 expect(stack.size).to eq(1) end it ...
wayfinder ========= a little http router generator - what is it? - getting started - language reference - more information what is it? ----------- Routing configuration is almost universally done dynamically during application initialization, even in systems that tend towards a static style. But the lines of chang...
#!/bin/bash echo -n "What is your name ? " read USER_INPUT echo "Good Morning, ${USER_INPUT}!"
using System; using System.Linq; using Aspose.Slides.Web.API.Clients.Enums; using Aspose.Slides.Web.UI.Models.Interfaces; namespace Aspose.Slides.Web.UI.Models { class SplitterModel : BaseViewModel, ISplitterModel { public string IntoMany { get; } = "Split into many"; public string Every { get;...
# encoding: utf-8 # uses ruby-concurrent, so we can use Concurrent.monotonic_time require 'rspec_sequencing' module RSpec class TimedTuple attr_reader :offset, :value def initialize(offset, value) @offset, @value = offset, value end def inspect "#{value} at #{offset}" end end c...
class SearchBlock < BaseBlock def initialize(tag_name, markup, tokens) @nodelist = @search_block = [] super end # Render the search results. def render(context) search_results = fetch_search_results(context) result = [] context.stack do search_results.each do |search_result| ...
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/host/heartbeat_sender.h" #include "base/logging.h" #include "base/message_loop.h" #include "base/string_number_conversions.h" #inc...
module RSpecHelpers def profile_parslet(rip, parslet = :lines) binding.pry result = RubyProf.profile do parser(rip).send(parslet).parse_tree end result.eliminate_methods!([ /Array/, /Class/, /Enumerable/, /Fixnum/, /Hash/, /Kernel/, /Module/, /Ob...
(ns heron.generative-test (:require [heron.core-test :refer (view)] [clojure.test.check.generators :as gen] [clojure.test.check.properties :as prop] [clojure.test.check.clojure-test :as ct :refer (defspec)] [clojure.set :as set] [clojure.test :refer :all]) (:import [io.lacuna.bifurcan Linea...
DO $code$ DECLARE f_type text := 'png'; file_size text; file_name text; BEGIN SELECT f_size, f_name INTO STRICT file_size, file_name FROM files WHERE f_type = f_type -- f_type = 'png' ORDER BY f_size DESC LIMIT 1; RAISE INFO 'Biggest % file is %', f_type, file_name; END $code$;
<?php #endif /* hrtime.c */ function hrtime(bool $as_number = false) : array|int|float|false { }
// Compiler options: -langversion:default // Test for covariance support in delegates // using System; public class A { protected string name; public A (string name) { this.name = "A::" + name; } public A () { } public string Name { get { return name; } } } public class B : A {...
/* * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ package com.netease.hearttouch.router; import java.net.URLEncoder; import java.util.regex.Pattern; /** * 保存每个被标注的Activity的信息,包括可以匹配的URL,进入及退出动画等 * 主要提供匹配URL功能,判断目标URL是否可以跳转到当前Ac...
#pragma once #include "Arduino.h" #include <Button.h> extern Button keyHolder; void setupKeyHolder(); bool isKeyOnHolder(); void updateKeyBoxStatus();
package br.com.project.key.controlador.load import br.com.project.account.Account import br.com.project.bcb.pix.BCBPix import br.com.project.institution.Institution import br.com.project.key.model.Key import br.com.project.key.model.KeyRepository import br.com.project.key.model.KeyResponseData import br.com.project.ke...
package com.rohan.dp.visitor.solution.ex2; public class NormalizeFilter implements AudioFilter { @Override public void applyFilter(FactSegment fact) { System.out.println("Normalizing fact segment"); } @Override public void applyFilter(FormatSegment format) { System.out.println("Nor...
require 'rails_helper' describe Jwt::Encoder do let(:user) { create(:user) } describe '#call' do it 'should return the encoded access_token' do expect(subject.call(user)).not_to be_empty end it 'should create a new Token on the database' do expect { subject.call(user) }.to change { Token....
import { IResult } from "mssql"; export class SqlHelpers { public static isValidResult<T>(result: IResult<T>): boolean { if (!result || !result.recordsets || !result.recordsets.length || result.recordsets.length !== 1) { return false; } return true; } public static isVa...
// // Copyright 2016 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // FenceSyncNULL.cpp: // Implements the class methods for FenceSyncNULL. // #include "libANGLE/renderer/null/FenceSyncNULL.h" #include "com...
pidlock == A library for working with pidfiles, with a lock-like API. Usage -- ``` extern crate pidlock; fn main() { let mut lock = pidlock::Pidlock::new("/path/to/pidfile.pid"); lock.acquire().unwrap(); ... lock.release().unwrap(); } ``` License -- pidlock is licensed under the MIT license ([LI...
# Toast 使用方法 <ClientOnly> <Toast-demos></Toast-demos> </ClientOnly> ```html <g-button @click="$toast('点击弹出提示')">上方弹出</g-button> <g-button @click="$toast('点击弹出提示', {position:'middle'})">中间弹出</g-button> <g-button @click="$toast('点击弹出提示', {position:'bottom'})">下方弹出</g-button> ``` <ClientOnly> <Toast-demos2></Toast...
# Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
#include <iostream> #include <math.h> #include <stdlib.h> #include <string.h> using namespace std; long long first(int n) { long long binary = 0; int remainder, i = 1; while (n != 0) { remainder = n % 2; n /= 2; binary += remainder * i; i *= 10; } re...
# website Tools to explore: * https://www.discourse.org/ * https://kdp.amazon.com/en_US * https://www.highcharts.com/
use super::*; pub(crate) struct FatToken { leading: Vec<Trivia>, body: TokenData, trailing: Vec<Trivia>, } impl FatToken { pub(crate) fn new(body: TokenData) -> Self { FatToken { leading: vec![], body, trailing: vec![], } } pub(crate) fn tok...
package com.mysterionnh.allmuffin.helper; import android.content.Context; import android.graphics.Color; import android.util.Log; import android.view.Gravity; import android.widget.Toast; public class Errors { /** * Show Error to User * * @param context Context of Activity * @param errorMsg E...
package com.knight.kotlin.module_square.api import com.knight.kotlin.library_network.bean.BaseResponse import retrofit2.http.Field import retrofit2.http.FormUrlEncoded import retrofit2.http.POST /** * Author:Knight * Time:2022/4/8 17:37 * Description:SquareShareArticleApi */ interface SquareShareArticleApi { ...
<?php class manage { /*管理员列表*/ function index() { $adm=D('qa_admin'); $this->assign('model','管理员管理'); $this->assign('admlist',$adm->order('purview desc')->select()); $this->display(); } function addmgr() { if($_SESSION['purview'] < 65536) $this->error('您没有权限添加管理员!...
# global.d.ts [ファイル](./)についての説明の中で、ファイルベースのモジュールを使い、グローバルの名前空間を汚染しないようにすることを推奨しました。そのときに、グローバル変数とファイルモジュールについて取り上げました。 しかし、もしプロジェクトに初心者のTypeScript開発者が多い場合は、global.d.tsファイルを用意してグローバル空間にインターフェースや型を宣言することにより、すべてのTypeScriptコードにおいて、瞬時に、それらの型をいつでも簡単に利用可能にすることができます。 > JavaScriptを生成するコードについては、ファイルモジュールを使うことを強くお勧めします。そして、`gl...
/* * 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 ...
#!/usr/bin/env bash kubectl delete -f manifests/hello.yaml kubectl delete -f manifests/reversed.yaml
let routePrefix = ''; if (process.env.GITHUB_PAGES) { routePrefix = `/${process.env.GITHUB_PAGES}`; } export default routePrefix;
using UnityEngine; using System.Collections.Generic; namespace ProjectSpacer { public class ThrustModule : MonoBehaviour { public float UpThrust = 0f; public float LeftThrust = 0f; public float RightThrust = 0f; public float DownThrust = 0f; } }
unit Thread; {$MODE Delphi} { Thread : Unité contenant la déclaration des threads qui traitent chaquent requête que reçoit le serveur. Date : Juin 2000 Auteur : Claude Pilatre Utilise : Stream } interface uses Windows, Classes, SysUtils, Http, Stream, Config; type { ___ Classe RequestTh...
# XC7010-1CLG400C export XRAY_PINCFG=ZYBOZ7-SWBUT export XRAY_DIN_N_LARGE=4 export XRAY_DOUT_N_LARGE=6 export HARNESS_DIR=$XRAY_DIR/database/zynq7/harness/zybo/swbut/ source $XRAY_DIR/minitests/roi_harness/zybo-common.sh
#pragma once /// Holds all ray-primitive intersection tests /// some primitives may have multiple variants e.g. triangle half plane and triangle barycentric /*namespace Intersection { namespace Triangle { bool halfPlane(Ray& r, float& t, const glm::vec3& v0, const glm::vec3& v1, const glm::vec3& v2); bool baryc...
--- name: Bug report about: Report a bug title: '' labels: '' assignees: '' --- **Version:** **Description of the problem:** **Steps to reproduce:** **Code:** <!-- Please fill in the code --> <details> <summary>Source Code</summary> ```gdscript ``` </details> <details> <summary>Output</summary> ```csharp ``` ...
using Food.Food.FoodClasses; namespace Food.Food.NutritionGroups { class Vitamins { public Nutrient VitaminC { get; set; } } }
import React from 'react' import { withStyles } from 'material-ui/styles'; //import { classes } from 'istanbul-lib-coverage'; // const styles= ()=>({ // dashboardContainer:{ // } // }) class Tab2 extends React.Component{ render(){ //const {classes} = this.props return ( <div >This is Tab2</div> ...
// Copyright 2017 ETH Zurich // Copyright 2018 ETH Zurich, Anapaya Systems // // 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 ...
export default interface Starter { init(): Promise<void>; start(): Promise<void>; destroy(): Promise<void>; }
const allRemoveBtns = document.querySelectorAll('.remove-my-card'); const deleteEvent = async (event) => { event.preventDefault(); cardid = event.target.getAttribute('data-value'); console.log(cardid); const response = await fetch(`/api/events/${cardid}`, { method: 'DELETE', }); if (response.ok) { ...
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.2.0] - 2021-11-12 ### Added - Unit test code coverage reportin...
<?php declare(strict_types=1); namespace Netgen\BlockManager\Validator\Structs; use Netgen\BlockManager\API\Values\Block\Block; use Netgen\BlockManager\API\Values\Block\BlockUpdateStruct; use Netgen\BlockManager\Validator\Constraint\BlockItemViewType; use Netgen\BlockManager\Validator\Constraint\BlockViewType; use N...
# frozen_string_literal: true require "help" class City < ApplicationRecord has_many :users, dependent: :nullify has_many :completions, through: :users has_one :city_score # rubocop:disable Rails/HasManyOrHasOneDependent -- this is an SQL view has_many :city_points # rubocop:disable Rails/HasManyOrHasOneDepen...
package issue import ( "strings" "github.com/fatih/color" "github.com/lighttiger2505/lab/commands/internal" "github.com/lighttiger2505/lab/internal/api" "github.com/ryanuber/columnize" gitlab "github.com/xanzy/go-gitlab" ) type listMethod struct { client api.Issue opt *ListOption project string } func...
<?php /** * Created by PhpStorm. * User: alyson * Date: 19/07/17 * Time: 22:18 */ namespace Agenda\Controller; use Zend\Authentication\Storage\Session as SessionStorage; use Zend\Authentication\AuthenticationService; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; class UserCont...
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.masterdb.config; import static org.testng.AssertJUnit.assertEquals; import java.util.ArrayList; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo...
suite('PointerMap', function() { test('PointerMap has Map API', function() { var keys = [ 'set', 'get', 'has', 'delete', 'size' ]; expect(PointerEventsPolyfill.PointerMap.prototype).to.contain.keys(keys); }); test('PointerMap has .item', function() { expect(PointerEve...
export default function DataSetFactory({ apiGateway, templateDataSet }) { return { autoCreate: true, fields: [ { name: 'title', type: 'string', label: '文档名称', required: true, }, { name: 'root', type: 'boolean', label: '创建至根目录', }, ], }; }
#region Header // // CmdWallLayerVolumes.cs - determine // compound wall layer volumes // // Copyright (C) 2009-2017 by Jeremy Tammik, // Autodesk Inc. All rights reserved. // // Keywords: The Building Coder Revit API C# .NET add-in. // #endregion // Header #region Namespaces using System; using System.C...
--- title: AlertmanagerFailedReload weight: 20 --- # AlertmanagerFailedReload ## Meaning The alert `AlertmanagerFailedReload` is triggered when the Alertmanager instance for the cluster monitoring stack has consistently failed to reload its configuration for a certain period. ## Impact The impact depends on the ty...
# Vavato Back Office UI components ## Philosophy These components provide consistency when used, providing all of the necessary formatting and CSS, except for layout matters like flexbox, css grid, floats, etc. The idea is not to provide extensive options, but rather enforce consistency in style throughout the backo...
#!./parrot # Copyright (C) 2007-2008, Parrot Foundation. =head1 NAME t/pmc/object.t - test the Object PMC =head1 SYNOPSIS % prove t/pmc/object.t =head1 DESCRIPTION Tests the Object PMC. =cut # L<PDD15/Object PMC API> ## TODO add more tests as this is documented and implemented .sub main :main .include ...
const textShadow = [...new Array<unknown>(400)] .map((_, i) => i % 200 * 1.2) .map((i, j) => `${[i, 120 - i, 120 - i, i - 240][~~(j / 50) % 4]}px ${j}px hsl(${5.4 * j}, 100%, 50%)`) .join(); export const logger = () => setTimeout( console.log.bind( console, '%cUnique Stu...
import 'package:catex/src/lookup/characters.dart'; import 'package:catex/src/lookup/context.dart'; import 'package:catex/src/lookup/exception.dart'; import 'package:catex/src/lookup/functions.dart'; import 'package:catex/src/lookup/macros.dart'; import 'package:catex/src/lookup/modes.dart'; import 'package:catex/src/pa...
// MIT License // // (C) Copyright [2020-2021] Hewlett Packard Enterprise Development LP // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitatio...
[后端项目地址](https://github.com/programTong/calendar) ![](./picture/1.png) ![](./picture/2.png) ![](./picture/3.png) ![](./picture/4.png) ![](./picture/5.png)
import { isObject, runTransforms } from "./utils"; const getValue = (val, parent, idx, context) => { const { refTable } = context; if (isObject(val)) { const { transformedData } = runTransforms(val, context.transforms, parent, idx); decompress(transformedData, context); return transforme...
Rails.application.routes.draw do get 'quiz/index' resources :questions post 'questions/submitQuestion'=>'questions#submitQuestion', as: :submit_question root 'sessions#login' get "signup", :to => "users#new" get "login", :to => "sessions#login" get "logout", :to => "sessions#logout" get "home", :to =...
// //----------------------------------------------------------------------- // // <copyright file="ContextWatchWithSpec.cs" company="Akka.NET Project"> // // Copyright (C) 2009-2019 Lightbend Inc. <http://www.lightbend.com> // // Copyright (C) 2013-2019 .NET Foundation <https://github.com/akkadotnet/akka.net> ...
RSpec.describe LearnSQL do before do LearnSQL.query(%q{ CREATE TABLE blueberries ( id serial, growing_area character varying, PRIMARY KEY (id) ); }) sql = %q{ INSERT INTO blueberries (growing_area) VALUES ($1), ($2), ($3), ...
$API = "cc433e68c49ff5ec77fe410a221b7322" $Location = "hanoi,vn" $Id = "1561096" $Format = "json" #xml or json $Unit = "=metric" # metric: Celsius or imperial: Fahrenheit $url = 'http://api.openweathermap.org/data/2.5/forecast?id={0}&appid={1}&mode={2}&units=metric' -f $Id, $API, $Format, $Unit $webclient = New-Objec...
import React, { useContext } from "react" import { NavLink } from "react-router-dom" import styled from "styled-components" import { Container } from "commons/styles" import OverlaySpinner from "commons/OverlaySpinner" import { colors } from "theme" import { DONATE_TO } from "constants/routes" import { AppContext } fr...
package eu.kanade.tachiyomi.ui.library.sync sealed class LibrarySyncProgressEvent { class ProgressUpdated(val status: String) : LibrarySyncProgressEvent() class Completed(val conflicts: List<String>) : LibrarySyncProgressEvent() class Error(val error: String) : LibrarySyncProgressEvent() }
'use strict'; var gulp = require('gulp'); var deploy = require('gulp-gh-pages'); var options = { remoteUrl: "https://github.com/myStashIndia/myStashIndia.github.io.git", branch: "master"}; gulp.task('deploy', function () { gulp.src("dist/**/*.*") .pipe(deploy(options)); }); var sass ...
package iot.tsdb.test.data.command; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import com.beust.jcommander.Parameter; import com.beust.jcommander.Parameters; import iot.tsdb.test.data.meta.DataSetMeta; @Parameters(commandNames = "generateDataSet1", commandDescription = "Generate data set...
subprojects { apply { plugin("org.springframework.boot") } dependencies { "developmentOnly"("org.springframework.boot:spring-boot-devtools") } }
package com.priyankvasa.android.cameraviewex_sample.extensions import android.graphics.Bitmap import android.graphics.Matrix private val matrix: Matrix = Matrix() fun Bitmap.rotate(rotation: Int): Bitmap = when (rotation) { 0 -> this else -> Bitmap.createBitmap( this, 0, 0, ...
#include "Point.h" Point::~Point() { if (str != nullptr) { delete[] str; } } int Point::numLength(int number) { int result = 1; while (number > 9) { number /= 10; result++; } return result; } void Point::addSymbol(int& index, char symbol) { str[index] = symbol; ++index; } void Point::addNumber(int& ...
package io.ceratech.withings import org.scalatest.{AsyncWordSpec, MustMatchers} import org.scalatest.mockito.MockitoSugar /** * Base unit-test class * * @author dries */ abstract class BaseTest extends AsyncWordSpec with MustMatchers with MockitoSugar
import * as React from "react"; import { connect } from "react-redux"; import lang from "../../../language.json"; import { createCompanyPost } from "actions/companies/CompanyActions"; import { Modal } from "components/Modal/Modal"; import { ModalIds } from "types/ModalIds"; import { useModalOpen } from "../../../hooks/...
#!/opt/puppetlabs/puppet/bin/ruby # frozen_string_literal: true require 'json' require 'open3' require 'puppet' # see https://github.com/DavidS/dasz-configuration/blob/main/manifests/nodes/backup.dasz.at.pp # see https://github.com/DavidS/dasz-configuration/blob/main/manifests/site.pp def update_file(manifest, target_...
import * as tf from "@tensorflow/tfjs-node"; import * as path from "path"; import { Logits, ModelInput } from "../models/model"; import { isOneDimensional } from "../utils"; import { FullParams, ModelDefaults, PartialMetaGraph, Runtime, RuntimeOptions } from "./runtime"; export class TFJS extends Runtime { ...
require 'rails_helper' RSpec.describe VisitorWithdrawalResponse do subject(:instance) { described_class.new(visit: visit) } let(:visit) { create(:visit) } describe '#visitor_can_withdraw?' do subject(:visitor_can_withdraw?) { instance.visitor_can_withdraw? } context "when it can't be withdrawn" do ...
// Copyright 2018 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package vmtest import ( "fmt" "io" "io/ioutil" "os" "os/exec" "path" "path/filepath" "testing" "github.com/u-root/u-root/pkg/golang" "github.com/...
<?php namespace Stephenchen\Core\Service\Auth; use Exception; use Carbon\Carbon; use Tymon\JWTAuth\Facades\JWTAuth; final class JwtObject { /** * @string */ protected string $token; /** * @var */ protected $payload; /** * AuthObject constructor. * * @param $to...
export const Materials = { page: 'bg-white', } export interface StyleProps { tw?: any } export type Size = | 0 | 0.5 | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 56 | 64 | 72 | 80 | 96
using SmtpForMe.Properties; using System; using System.Configuration; using System.Diagnostics; using System.Net; using System.Windows.Forms; namespace SmtpForMe { public partial class Form1 : Form { public SmtpForMeApplicationContext Context { get; set; } public Form1() { ...
//! Character level functions. //! //! use super::super::LineState; use std::cmp; use std::collections::HashMap; /// Transposes the character at the cursor position with the preceeding character and moves forward. /// Does nothing if the cursor is in the HOME position. pub fn transpose_character(state: &mut LineState)...
namespace FantasyCritic.Web.Models.Requests.League; public record DraftGameRequest(Guid PublisherID, string GameName, bool CounterPick, Guid? MasterGameID);
package fake import "math/rand" func randGender() string { g := "male" if rand.Intn(2) == 0 { g = "female" } return g } func firstName(gender string) string { return lookup(lang, gender+"_first_names", true) } // MaleFirstName generates male first name func MaleFirstName() string { return firstName("male") ...
/* automatically generated by rust-bindgen */ use super::*; #[doc = " Dummy type to make handling easier"] pub type lv_ll_node_t = u8; #[doc = " Description of a linked list"] #[repr(C)] #[derive(Copy, Clone)] pub struct lv_ll_t { pub n_size: u32, pub head: *mut lv_ll_node_t, pub tail: *mut lv_ll_node_t, ...
$:.unshift File.dirname(__FILE__) require 'abacos' require 'abacos/helper' require 'abacos/address' require 'abacos/customer' require 'abacos/line' require 'abacos/payment' require 'abacos/order' require 'abacos/line_personalization' require 'abacos_integration/configuration' module AbacosIntegration # class << sel...
# frozen_string_literal: true require 'spec_helper' describe SessionType, type: :model do describe 'validations' do it { is_expected.to validate_presence_of :conference } # TODO: Validations of languages end describe 'associations' do it { is_expected.to have_many :sessions } it { is_expected.t...
import React, { ReactNode } from 'react'; import { Router } from '../Router'; import { createBrowserHistory, createHashHistory } from 'history'; import { mount } from 'enzyme'; const mountInBrowserRouter = (jsx: ReactNode) => { const history = createBrowserHistory(); const wrapper = mount(<Router history={history}>...
#!/usr/bin/env bash set -eu uid=$(id -u $USER) gid=$(id -g $USER) user=$(id -un $USER) group=$(id -gn $USER) # Build the actual image image_name="haskell-stack" docker build \ --build-arg uid="$uid" \ --build-arg gid="$gid" \ --build-arg user="$user" \ --build-arg group="$group" \ --tag "$image_n...
package redis import ( "errors" "fmt" "strconv" "strings" "github.com/mediocregopher/radix/v3" "github.com/rsms/ent" ) func debugTrace(format string, args ...interface{}) { // The Go compiler will strip all invocations of debugTrace when the function body is empty. // (un)comment the next line to toggle debu...
./ml_server & sleep 2s python3 pythonClient/pythonClient.py & sleep 2s ssh root@192.168.1.10 "cd /home/root/ml/runfiles/ && mlprog"
set -uo pipefail # Default output location OUTPUT=$(pwd)/output.$(date '+%m-%d-%Y-%H-%M-%S') # Default number of jobs to run in parallel JOBS=1 # Default timeout in seconds TIMEOUT=1000 BINARIES=() # Prints out the help/usage message. function print_help() { printf '%s\n' "-- WP batch running script --" printf...
package com.kazakago.cueue.model import io.ktor.features.* import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable data class User( @SerialName("id") val id: UserId, @SerialName("workspaces") val workspaces: List<Workspace>, ) { fun validate(unsafeWorkspaceI...
{-# LANGUAGE DeriveDataTypeable, FlexibleContexts, OverloadedStrings, LambdaCase #-} module Howl.Facebook.Object.User ( User(..) , Gender(..) , getUser , searchUsers , getUserCheckins , Friend(..) , getUserFriends ) where import Control.Applicative import Control.Monad (mzero) import Co...
RSpec.describe EventStream do context "::Purging" do context ".purge_queue" do before do EvmSpecHelper.create_guid_miq_server_zone end let(:purge_time) { (Time.zone.now + 10).round } it "submits to the queue" do expect(described_class).to receive(:purge_date).and_return(pu...
<div class="mt-4"> <x-label :value="__('Documents')" /> <x-input class="mt-1 w-full" type="file" wire:model="documentations"/> {{-- <x-input-error for="name" class="mt-2" /> --}} </div>
package com.victoryw.deplayqueue.redis.configuration import com.victoryw.deplayqueue.redis.interfaces.DelayJobWorker import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.scheduling.annotation.Scheduled import org.springframework.stere...
MK_HOST_STEPS=' prep fetch deppkg contain bdepinstall ' MK_STEPS=" $MK_HOST_STEPS checksum extract patch configure build install sub optimize validate pkg " PKG_REQUIRED_VARS=' name ver epoc ' PKG_OPTIONAL_VARS=' dist bdep rdep lib style configure distdir builddir emptydirs patchflag ...
import { evaluateLogFile } from './evaluateLogFile' export { evaluateLogFile } export default evaluateLogFile
/** * Create and add a hidden modal in the DOM, by default including a Tournesol * login iframe. * * This content script is meant to be run on each YouTube page. * * @require config/const.js */ /** * Youtube doesnt completely load a page, so content script doesn't * launch correctly without these events. * ...
(ns leiningen.new.shadow-cljs (:require [leiningen.new.common :refer :all])) (def shadow-version "2.15.2") (def shadow-cljs-dependencies [['thheller/shadow-cljs shadow-version :scope "provided"] ['org.clojure/core.async "1.3.618"]]) (def shadow-assets [["package.json" "shadow/packa...
//! Receiver related Callbacks //! //! # Brief #ifndef BIPOLAR_ASYNC_RECEIVER_CALLBACK_HPP_ #define BIPOLAR_ASYNC_RECEIVER_CALLBACK_HPP_ #include <exception> #include <utility> #include "bipolar/core/overload.hpp" #include "bipolar/async/receiver/primitive.hpp" namespace bipolar { /// Ignore /// /// # Brief /// str...