text
stringlengths
1
1.05M
import {MigrationInterface, QueryRunner} from "typeorm" export class UsersTable1594021018180 implements MigrationInterface { name = 'UsersTable1594021018180' public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query(`CREATE TABLE "public"."users" ("id" uuid NOT NULL DEFAULT uu...
package com.boot.feign.article.fallback.impl; import com.boot.feign.article.fallback.CategoryFallbackFeign; import com.boot.pojo.Article; import com.boot.pojo.Category; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; import java.util.List; @Component @Slf4j public class CategoryFal...
package com.globalcollect.gateway.sdk.java.gc.payment.definitions; import com.globalcollect.gateway.sdk.java.gc.payment.definitions.MerchantAction; import com.globalcollect.gateway.sdk.java.gc.payment.definitions.Payment; import com.globalcollect.gateway.sdk.java.gc.payment.definitions.PaymentCreationOutput; public c...
<filename>src/main/java/evilcraft/items/BloodContainerConfig.java package evilcraft.items; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidContainerRegistry; import net.minecraftforge.fluids.FluidRegistry; import evilcraft.api.config.ElementTypeCategory; import evilcraft.api.config.ItemConfi...
#!/bin/sh # Let's compile Galore daemon chmod 755 src/leveldb/build_detect_platform chmod 755 src/secp256k1/autogen.sh cd src/leveldb make libleveldb.a libmemenv.a cd .. make -f makefile.unix strip galored
""" Generate a visual ASCII art in Python """ def generate_ascii(drawing): height = len(drawing) + 2 width = len(drawing[0]) + 2 def get_ascii_cell(cell): # Define the character in the ASCII art if cell == '*': return '*' if cell == ' ': return ' ' ...
<filename>java/ql/src/DeadCode/DeadField.java public class FieldOnlyRead { private int deadField; private int getDeadField() { return deadField; } }
<gh_stars>1-10 /******************************************************************************* * 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 AS...
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Licen...
<reponame>shadowcrypto1/dsynths-app-v2<filename>src/components/Icons/ArrowBubble.tsx import React from 'react' import { useIsDarkMode } from 'state/user/hooks' import { useTheme } from 'styled-components' export default function ArrowBubble({ size = 12, ...rest }: { size?: number; [x: string]: any }) { const isDarkM...
<filename>second-example-application/src/main/java/com/github/robindevilliers/welcometohell/wizard/expression/function/MatchesFunction.java package com.github.robindevilliers.welcometohell.wizard.expression.function; import com.github.robindevilliers.welcometohell.wizard.expression.Function; import java.util.Map; pu...
package kz.chesschicken.chickenextensions.content.overworld import kz.chesschicken.chickenextensions.content.overworld.OverworldListener._ import kz.chesschicken.chickenextensions.content.overworld.block.{TileFlower, TileLeaves, TileSapling} import net.minecraft.block.BlockBase import net.minecraft.item.ItemBase impor...
module Chewy class Repository include Singleton attr_reader :analyzers, :tokenizers, :filters, :char_filters def self.delegated public_instance_methods - superclass.public_instance_methods - Singleton.public_instance_methods end def self.repository(name) plural_name = name.to_s.plur...
#!/bin/bash # # @author André Storhaug <andr3.storhaug@gmail.com> # @date 2021-05-01 # @license MIT # @version 3.2.4 set -o pipefail shopt -s extglob globstar nullglob dotglob PERSONAL_TOKEN="$INPUT_PERSONAL_TOKEN" SRC_PATH="$INPUT_SRC_PATH" DST_PATH="$INPUT_DST_PATH" DST_OWNER="$INPUT_DST_OWNER" DST_REPO_NAME="$INP...
#!/bin/sh -ex # Copyright 2014-present Viktor Szakats <https://vsz.me/> # See LICENSE.md export _NAM export _VER export _OUT export _BAS export _DST _NAM="$(basename "$0")" _NAM="$(echo "${_NAM}" | cut -f 1 -d '.')" _VER="$1" ( cd "${_NAM}" || exit if [ "${_OS}" != 'win' ]; then # https://clang.llvm.org/d...
hijss
#!/bin/bash export LWAN_ROOT=${IROOT}/lwan export LWAN_BUILD=${LWAN_ROOT}/build rm -rf ${LWAN_BUILD} mkdir -p ${LWAN_BUILD} cd ${LWAN_BUILD} cmake ${LWAN_ROOT} -DCMAKE_BUILD_TYPE=Release && make techempower cd $LWAN_ROOT/techempower $LWAN_BUILD/techempower/techempower &
<?hh // strict namespace Waffle\Lib\Exception; use type InvalidArgumentException; class JsonEncodeException extends InvalidArgumentException implements ExceptionInterface { }
package org.apache.servicecomb.demo.springmvc.client; /* * 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 Ap...
<reponame>AlexCollins01/myPython-projects # Symbols Identifier a = input("Enter the symbols: ") z = "abcdefghijklmnopqrstuvwxyz" y = z.upper() g = "1234567890" def identifySymbols(a): for letter in a: if letter == "a [len(a) - 1]": break if letter in z: print(letter + " is ...
#!/bin/bash # This downloads and installs a pinned version of miniconda set -ex cd $(dirname $0) MINICONDA_VERSION=4.6.14 CONDA_VERSION=4.6.14 # Only MD5 checksums are available for miniconda # Can be obtained from https://repo.continuum.io/miniconda/ MD5SUM="718259965f234088d785cad1fbd7de03" URL="https://repo.contin...
//////////////////////////////////////////////////////////////// // OOP244 Workshop 9: Inheritance & Virtual Functions // File SportCar.cpp // Version 1.0 // Date 2016/11/21 // Author <NAME> // Number ID 0385151 // Email <EMAIL> //////////////////////////////////////////////////...
#!/usr/bin/env bash set -e echo "Running unload-copy utility" # Required CONFIG_FILE=${CONFIG_FILE:-} AWS_REGION=${AWS_REGION:-us-east-1} AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-} AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-} if [ "${CONFIG_FILE}" == "" ]; then echo "Environment Var 'CONFIG_FILE' must be defi...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.com.bancoSessaoOriginal.servlet.cliente; import br.com.bancoSessaoOriginal.dao.ClienteDAO; import javax.servlet.ann...
package leveldb import ( "encoding/json" dbm "github.com/tendermint/tmlibs/db" "github.com/reed/errors" "github.com/reed/types" ) var ( txPrefix = "TX:" utxoPrefix = "UTXO:" storeErr = errors.New("leveldb error") ) type Store struct { db dbm.DB } func NewStore(db dbm.DB) *Store { return &Store{ db: d...
<reponame>zjin-lcf/HeCBench /*========================================================================= Copyright (c) 2007, Los Alamos National Security, LLC All rights reserved. Copyright 2007. Los Alamos National Security, LLC. This s...
package com.fillmore_labs.avro_demo.confluent; import com.google.common.graph.Graph; import com.google.common.graph.GraphBuilder; import com.google.common.graph.ImmutableGraph; import io.confluent.kafka.schemaregistry.CompatibilityChecker; import io.confluent.kafka.schemaregistry.CompatibilityLevel; import io.confluen...
<reponame>abkl/csim import { mean, sampleStandardDeviation } from "simple-statistics" import { fields, gameValues } from "../src/utils/game-constants" // Types: interface TotalStats { totalMeans: { [s: string]: number } totalStdDeviations: { [s: string]: number } } type GameItem = "Cargo" | "Hatch Panel...
'use strict'; const fs = require('fs'); let write = (file, data) => { let json = JSON.stringify(data, null, 2); return fs.writeFileSync(file, json, 'utf8'); } module.exports = (file) => { if (!file) { throw new Error("the file name is required"); } let data; try { data = JSON.parse(fs.readFileSync(file, 'u...
from django.db import models class Bb(models.Model): ammount = models.FloatField( null=True, blank=True, verbose_name='Цена') comment = models.CharField( max_length=50, verbose_name='Коментарий') published = models.DateField( auto_now_add=False, db_i...
<gh_stars>1-10 require_relative '../lib/interface_data_control.rb' describe InterfaceDataControl do let(:new_class) { InterfaceDataControl.new } it 'Raises argument error when less than two arguments are given' do expect { InterfaceDataControl.new('value') }.to raise_error(ArgumentError) end it 'Raises a...
class BankAccount: def __init__(self): self.balance = 0 self.transaction_count = 0 def deposit(self, amount): self.balance += amount self.transaction_count += 1 def withdraw(self, amount): self.balance -= amount self.transaction_count += 1 def get_balan...
<reponame>PW486/leetcode SELECT w.name, w.population, w.area FROM World w WHERE w.area > 3000000 OR w.poplution > 25000000;
#include <iostream> using namespace std; int main(){ int a,b; while(cin>>a>>b)cout<<(b>=a+7?"PASS!":"FAIL! You see see you!")<<endl; }
<filename>src/components/MenuLinks/index.tsx<gh_stars>0 import React from 'react' import * as S from './styled' import getThemeColor from "../../utils/getThemeColor" import links from './content' const MenuLinks = () => ( <S.MenuLinksWrapper> <S.MenuLinksList> {links.map((link,i) => ( ...
<reponame>siklu/mina-sshd /* * 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 ...
#!/bin/bash . docker/app_start_up.sh # Now start our various services... # Start php-fpm service php5.6-fpm restart # Start nginx in foreground. This will keep the docker image open. nginx -g 'daemon off;'
def update_object(request): obj = SomeObject.objects.get(id=request.POST['id']) form = SomeForm(request.POST, instance=obj) if form.is_valid(): form.save() return redirect('app_index') else: return render(request, 'app/update.html', {'form': form}
#!/bin/sh d=$(cd $(dirname $0) && pwd) cd $d python example.py
<filename>zakupki/unzipper.py import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zakupki.settings") os.environ["DJANGO_SETTINGS_MODULE"] = "zakupki.settings" import django django.setup() from zakupki.settings import BASE_DIR import zipfile import pathlib def unzip_file(_from_dirname, _to_dirname, filename): ...
#!/usr/bin/env bash set -e /apps/squid/sbin/squid -NsY -f /apps/squid/conf/squid.conf & e2guardian -N & wait -n
def findAnagrams(word): perms = set(["".join(perm) for perm in itertools.permutations(word)]) return perms
<reponame>kilfu0701/jekyll-mulang require "jekyll-mulang/version" require "jekyll-mulang/pager" require "jekyll-mulang/pagination" module Jekyll module MuLang end end
<gh_stars>1-10 import java.util.ArrayList; public class HeroisDoFilme { ArrayList<Filme> Filmes; ArrayList<HeroisDoFilme> Heroi; public HeroisDoFilme() { this.Filmes = new ArrayList<>(); this.Heroi = new ArrayList<>(); } public void totalInvestimento() { System.out.println...
// CondChan is a sync.Cond with the ability to wait in select statement. package condchan import ( "sync" "sync/atomic" "unsafe" ) // CondChan implements a condition variable, a rendezvous point for goroutines waiting for or announcing the occurrence // of an event. // // Each Cond has an associated Locker L (ofte...
'use strict'; const newArray = require('./new-array'); module.exports = (size, fillWith) => { const fillWithFn = typeof fillWith === 'function' ? fillWith : () => fillWith; return newArray(size, (i, lastRow, rows) => newArray(size, (j, lastElement, row) => fillWithFn(i, j, lastElement, lastRow, row, rows)...
def camel_to_snake(string): output = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', string) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', output).lower() camel_to_snake(helloWorldToSnakeCase)
import { rmSync, readdirSync, writeFileSync } from 'fs'; import { join } from 'path'; import titleCase from '../lib/titleCase.js'; import replaceInFile from '../lib/replaceInFile.js'; export default ({ basePath, asarExtractPath }, { name, channel }) => { // Exec file const execPath = join(basePath, `Discord${chan...
<filename>src/routes/UserSettings/CommunitySettingsTab/CommunitySettingsTab.js import PropTypes from 'prop-types' import React, { Component } from 'react' import './CommunitySettingsTab.scss' import { Link } from 'react-router-dom' import { DEFAULT_AVATAR } from 'store/models/Community' import { communityUrl } from 'ut...
# coding=utf-8 """Test _utils module.""" from __future__ import absolute_import, division, print_function import os import shutil from future.standard_library import install_aliases import numpy as np import pytest import torch from iftorch._utils import dataloader, reverse_mapping from iftorch.save_utils import ( ...
#!/bin/bash numServers=$1 baseJettyPort=8900 baseStopPort=9900 die () { echo >&2 "$@" exit 1 } [ "$#" -eq 1 ] || die "1 argument required, $# provided, usage: stop.sh {numServers}" cd ../server for (( i=1; i <= $numServers; i++ )) do stopPort=`expr $baseStopPort + $i` echo "stopping server$i, stop port...
package git import ( "errors" "github.com/lxn/walk" "gpics/base/config" "log" "net/url" "strings" "sync" "time" ) func RepName(u string) (string, error) { rs, err := url.Parse(u) if err != nil { return "", nil } us := strings.Split(rs.Path, "/") if len(us) < 3 { return "", errors.New("解析仓库名称失败") } ...
<reponame>linux-on-ibm-z/influxdb package write import ( "bufio" "bytes" "context" "fmt" "io" "io/ioutil" "strings" "testing" "time" "github.com/google/go-cmp/cmp" platform "github.com/influxdata/influxdb/v2" "github.com/influxdata/influxdb/v2/mock" "github.com/influxdata/influxdb/v2/pkg/testing/assert" ...
def multiply(a, b): result = 0 if b < 0: a = -a b = -b while b: if b & 1: result += a b >>= 1 a <<= 1 return result
[{ "title":"创伤RAPT量表", "summary":"<div class='tips'>* 胸部 AIS>2分<br/>**腹部 AIS>2分<br/>***头部 AIS>2分<br/>****GCS<8分<br/>免责声明 <br/> 本量表参考《创伤骨科患者深静脉血栓形成筛查与治疗的专家共识 中华创伤骨科杂志 2013,15(12)》<br/> 请患者在医务工作者指导下进行填写,本量表最终结果仅供专业医务工作者参考</div>", "items": [ { "title":"病史", "summary":"", "type":"checkb...
#!/bin/bash set -eux cd .. mvn -P package java -cp target/selenese-runner.jar jp.vmi.selenium.selenese.utils.CommandDumper | sed 's/,.*//' | dos2unix > docs/selenese-runner-command-list.txt
TERMUX_PKG_HOMEPAGE=https://git-scm.com/ TERMUX_PKG_DESCRIPTION="Fast, scalable, distributed revision control system" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=2.35.1 TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/pub/software/scm/git/git-${TERMUX_PKG_VERSION}.t...
<filename>assembler/assembly-parser.cpp<gh_stars>1-10 /* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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/LI...
#!/bin/sh # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. INPUT=$(cat /dev/stdin) VALID=false REVSIG=false IFS=' ' if [ "$AUREUS_VERIFY_COMMITS_ALLOW_SHA1" = 1 ]; then GPG_RES...
#!/bin/sh while #until ls > /dev/null do echo "ahhaa" sleep 3 done X=1 while [ $X -le 10 ] do echo "X on $X" X=$((X+1)) done X=1 until [ $X -gt 10 ] do echo "X on $X" X=$((X+1)) done while : do echo "Teeme" sleep 2 echo -e "Tahad lõpetada? [j/e] \c" read answer if [ ...
/* Produced by CVXGEN, 2021-03-12 04:35:32 -0500. */ /* CVXGEN is Copyright (C) 2006-2017 <NAME>, <EMAIL>. */ /* The code in this file is Copyright (C) 2006-2017 <NAME>. */ /* CVXGEN, or solvers produced by CVXGEN, cannot be used for commercial */ /* applications without prior written permission from <NAME>. */ /* Fi...
<filename>node_modules/@medusajs/medusa/dist/repositories/product.d.ts import { FindManyOptions, FindOperator, OrderByCondition, Repository } from "typeorm"; import { ProductTag } from ".."; import { Product } from "../models/product"; declare type DefaultWithoutRelations = Omit<FindManyOptions<Product>, "relations">; ...
<reponame>Zaibot/node-arrayq require('../es6/prototype'); const { Suite } = require('benchmark'); const data = require('./data.json'); module.exports = () => new Suite() .add('length === 0', () => data.length === 0) .add('qEmpty', () => data.qEmpty());
#!/bin/bash mkdir -p "$PREFIX/bin" export MACHTYPE=x86_64 export BINDIR=$(pwd)/bin mkdir -p "$BINDIR" (cd kent/src/lib && make) (cd kent/src/htslib && make) (cd kent/src/jkOwnLib && make) (cd kent/src/hg/lib && make) (cd kent/src/utils/pslLiftSubrangeBlat && make) cp bin/pslLiftSubrangeBlat "$PREFIX/bin" chmod +x "$PRE...
<reponame>shrtCKT/FCG-to-Vector<gh_stars>1-10 package ml.cluster; import java.util.ArrayList; import java.util.BitSet; import java.util.HashMap; import java.util.List; import java.util.Map; import ml.data.Attribute; import ml.data.DataInstance; public class AgglomerativeHierarchical { public enum ProximityMetric {...
package math; import java.io.BufferedReader; import java.io.InputStreamReader; /** * * @author minchoba * 백준 2903번: 중앙 이동 알고리즘 * * @see https://www.acmicpc.net/problem/2903 * */ public class Boj2903 { public static void main(String[] args) throws Exception{ // 버퍼를 통한 값 입력 BufferedReader br = new Buffere...
#!/bin/bash print_bytes() { #if [ "$1" -eq 0 ] || [ "$1" -lt 100 ]; then # bytes="0 kB/s" #elif [ "$1" -lt 1000 ]; then # bytes="0$(echo "scale=1;$1/1000" | bc -l ) kB/s" if [ "$1" -eq 0 ] || [ "$1" -lt 1000 ]; then bytes="0 kB/s" elif [ "$1" -lt 1000000 ]; then bytes="$(e...
from django.contrib.staticfiles.urls import urlpatterns as staticfiles_urlpatterns from devilry.project.common.default_urls import devilry_urls from devilry.project.common.http_error_handlers import * # noqa urlpatterns = [] urlpatterns.extend(devilry_urls) urlpatterns.extend(staticfiles_urlpatterns)
#!/bin/bash killall -s SIGQUIT poolbench.exe sleep 1 ./poolbench.exe config.json
<reponame>Mogztter/neo4j-apoc-procedures package apoc.bolt; import java.util.Collections; import java.util.Map; import static apoc.util.Util.toBoolean; public class BoltConfig { private final boolean virtual; private final boolean addStatistics; private final boolean readOnly; private final boolean ...
#!/bin/bash # Sets the selected_bg_color to one of the Solarized accent colors # Color prompt read -p "Please chose an accent color. (yellow, orange, red, magenta, violet, blue, cyan, green or custom) : " color if [ $color = yellow ] then hexcolor=b58900 elif [ $color = orange ] then h...
#!/bin/bash file_req_ext=".mp3" next_iteration='next_iteration.txt' #must be empty file in start file_names='file_names.txt' #base_dir='/home/naji/bashir-workspace/kids_corner/420p/usb1/read_father_aud' base_dir='/home/naji/Downloads/temp/ytdown/audio_books_backup/aDAS' if [ -s $file_names -a ! -s $ne...
#include <iostream> #include <string> #include "CQChartsVariant.h" // Assuming the necessary header file std::string processPlotModelValue(Plot* plot_, int visibleColumnInd, bool ok) { auto value = plot_->modelValue(visibleColumnInd, ok); if (!ok) { return "Error: Retrieval of plot model value failed...
<gh_stars>1-10 #include<bits/stdc++.h> #define fi first #define se second using namespace std; map < int , vector < pair < int, int > > > gg; map < int, int > col; void addEdge(int a, int b, int c) { if(a > b) swap(a, b); a = a - 1, b = b + 1; gg[a].push_back({b, c}); gg[b].push_back({a, c}); } bool ...
let facade = require('gamecloud') let {NotifyType, ResType, ActivityType,em_Condition_Type,em_Condition_Checkmode} = facade.const let EventData = facade.Util.EventData let LargeNumberCalculator = facade.Util.LargeNumberCalculator /** * 添加资源消息句柄 * @param {EventData} event */ function handle(event){ //用户资源发生变化 s...
#!/bin/sh DIRNAME="$(dirname "$(readlink -f "$0")")" DEFAULT_IMAGE="quay.io/k8stopologyawarewg/resource-topology-exporter:latest" REPOOWNER=${REPOOWNER:-k8stopologyawarewg} IMAGENAME=${IMAGENAME:-resource-topology-exporter} IMAGETAG=${IMAGETAG:-latest} export RTE_CONTAINER_IMAGE=${RTE_CONTAINER_IMAGE:-quay.io/${REPOOW...
#!/bin/bash # Copyright 2016 Google, 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 ...
#!/bin/bash cat <<EOF # # sniproxy_dnsmasq-install.sh # Support OS: Debian / Ubuntu / CentOS # # Please choose to install the following softwares: # 1. install SNIProxy + DNSmasq 2. install SNIProxy only 3. install DNSmasq only 4. exit # Before install, make sure the OpenVPN client service has been stopped! # servic...
<gh_stars>0 const ms = require("ms"); module.exports = { name: "givstart", description: "Starts a giveaway", category: "giveaway", usage: "givstart <time> <winner count> <price>\n **Example:** !givstart 2d 10 Discord nitro", memberPermissions: ["MANAGE_GUILD"], aliases: ["gstart"], execute(bot, message, ...
<reponame>dubbl/procgen var generate_pumpkin = function(seed) { var canvas = document.getElementById('canvas'); if (!canvas.getContext){ alert('Your browser does not support canvas.'); return; } var ctx = canvas.getContext('2d'); var cw = canvas.width; var ch = canvas.height; ...
// TODOS: // add browserify // add ng-annotate var gulp = require('gulp'); var concat = require('gulp-concat-sourcemap'); var del = require('del'); var inject = require('gulp-inject'); var rename = require('gulp-rename'); var useref = require('gulp-useref'); var replace = require('gulp-replace'); var git = require('gi...
package cn.catguild.selfdevelop.gitcli.util; import org.junit.jupiter.api.Test; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.security.NoSuchAlgorithmException; import java.util.z...
<filename>src/result.ts import {Option, some, none} from "./option"; export const emptyOk = <E>(): Result<void, E> => new Ok(undefined); export const emptyErr = <T>(): Result<T, void> => new Err(undefined); export const ok = <T, E>(value: T): Result<T, E> => new Ok(value); export const err = <T, E>(error: E): Result<...
export default { SplashScreen: 'SplashScreen', RegisterScreen: 'RegisterScreen', HomeScreen: 'HomeScreen', };
<filename>open-sphere-plugins/csv-common/src/main/java/io/opensphere/csvcommon/common/datetime/DateColumn.java package io.opensphere.csvcommon.common.datetime; import io.opensphere.core.common.configuration.date.DateFormat.Type; /** * Contains information on a date column within the csv data. * */ public c...
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 集团预算释放 * * @author auto create * @since 1.0, 2021-08-06 10:17:49 */ public class AlipayBossFncAntbud...
function run() { curl -s -XPOST \ -H "Authorization: Bearer $(gcloud auth print-identity-token)"\ -H 'Content-Type: application/json' \ "https://vaccine-allocation-sipjq3uhla-uc.a.run.app/${1}" \ --data '{"state_code": "'"${2}"'", "district": "'"${3}"'"}' } rm logfile_tev while r...
#!/bin/bash # dv-trio.sh input=$1 # output=$1".txt" # #save original GT value and move Famseq GT to be the GT value for sample while read line; # do while there are lines from input file do # read -d '\t' -r -a line_fields <<< "$line" # IFS=': ' read -r -a format_fields <<< "${line_fields[8]}" # IFS=': ' read ...
//##################################################################### // Copyright 2005-2008, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //######################################...
<reponame>tdrv90/freeCodeCamp<gh_stars>0 // (1) Create a function called reusableFunction which prints "Hi World" to the dev console. // (2) Call the function. // Example function ourReusableFunction() { console.log("Heyya, World"); } ourReusableFunction(); // Only change code below this line function reusable...
#!/bin/bash # Create a resource group az group create --name myResourceGroup --location eastus2 # Create a scale set in Availability Zone 1 az vmss create \ --resource-group myResourceGroup \ --name myScaleSet \ --image UbuntuLTS \ --upgrade-policy-mode automatic \ --admin-username azureuser \ --generate-...
<reponame>sivabalajii/groovy-plugin<gh_stars>10-100 /* * The MIT License * * Copyright (c) 2019, CloudBees, Inc. * * 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, ...
package demo.sap.safetyandroid.test.core; import android.content.Context; import android.hardware.fingerprint.FingerprintManager; import android.os.Looper; import android.os.SystemClock; import androidx.test.InstrumentationRegistry; import androidx.test.espresso.UiController; import androidx.test.espresso.ViewAction; ...
<filename>frontend/components/Editor.js<gh_stars>0 import { html, Component } from "../common/Preact.js" import isEqual from "https://cdn.jsdelivr.net/npm/lodash-es@4/isEqual.js" import immer from "https://unpkg.com/immer@7.0/dist/immer.esm.js" import { create_pluto_connection, resolvable_promise } from "../common/Plu...
#!/bin/bash # # Script to setup RunCloud config on a Miranj production server # APP_NAME="boilerplate-craft" CDN_NAME="boilerplate-cdn" REDIRECTS_NAME="boilerplate-redirects" REPO_NAME="boilerplate" REPO_DIR="/home/runcloud/webapps/$APP_NAME/$REPO_NAME" TARGET_DIR="/etc/nginx-rc/extra.d" cd $TARGET_DIR # CDN ln ...
<filename>src/components/_global/js/modules/videos.js<gh_stars>100-1000 /* ************************************* * <!-- Videos --> ************************************* */ import { templateUrl, homeUrl, ajaxUrl, browser, UixModuleInstance, UixGUID, UixMath, UixCssProperty, UixD...
<filename>sunspot/spec/api/indexer/attributes_spec.rb require File.expand_path('spec_helper', File.dirname(__FILE__)) require 'bigdecimal' describe 'indexing attribute fields', :type => :indexer do it 'should correctly index a stored string attribute field' do session.index(post(:title => 'A Title')) expect(...
noweave -x -delay 2015PH10813.nw > output.tex notangle -RbintreeSignature-complete 2015PH10813.nw > bintreeSignature-complete.sml notangle -RbintreeStructure-complete 2015PH10813.nw > bintreeStructure-complete.sml notangle -RtestCase-complete 2015PH10813.nw > testCase-complete.sml pdflatex output.tex
<reponame>MrinAK/Spring-Boot package eu.itdc.internetprovider.service; import eu.itdc.internetprovider.persistence.entity.Product; import eu.itdc.internetprovider.persistence.repository.ProductRepository; import eu.itdc.internetprovider.service.dto.ProductDTO; import eu.itdc.internetprovider.service.exception.Resource...
<reponame>cookiexyx/vue-mobile-template 'use strict'; exports.__esModule = true; var _utils = require('../utils'); exports.default = { computed: { $t: function $t() { var name = this.$options.name; var prefix = name ? (0, _utils.camelize)(name) + '.' : ''; var messages = this.$vantMessages[t...