text
stringlengths
1
1.05M
<filename>front/src/components/Body/HomePage/HomePage.js import PageHeading from '../../PageHeading/PageHeading' export default function HomePage() { return ( <> <PageHeading text="Welcome" /> <p> Lorem ipsum dolor sit amet consectetur adipisicing elit. Ex vel velit nihil illo est! Q...
<gh_stars>1-10 import React from 'react'; import { Alert } from '../../components/alert/alert'; import { Form } from '../../components/form/form'; import { Input } from '../../components/input/input'; import { Select, IOption } from '../../components/select/select'; interface IAccountFormProps { errors: string[]; ...
#!/bin/bash export NVM_DIR="$HOME/.nvm" node_versions=("$NVM_DIR"/versions/node/*) if (("${#node_versions[@]}" > 0)); then PATH="$PATH:${node_versions[$((${#node_versions[@]} - 1))]}/bin" fi if [ -s "$NVM_DIR/nvm.sh" ]; then # load the real nvm on first use nvm() { # shellcheck disable=SC1090,SC1091 source "...
<filename>C2CRIBuildDir/projects/C2C-RI/src/C2CRIReportsDBLibrary/src/org/fhwa/c2cri/reports/dao/RawOTWMessageDAO.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.fhwa.c2cri.reports.dao; import java.io.File; import java.sql.DriverManager; import java....
function buildMetadata(sample) { d3.json("/metadata/" + sample).then(function(data){ var metadata = d3.select("#sample-metadata"); metadata.html("") metadata.append("p").text("AGE: " + data["AGE"]) metadata.append("p").text("BBTYPE: " + data["BBTYPE"]) metadata.append("p").t...
package io.opensphere.core.util.cache; import java.util.Map; import java.util.function.Function; /** * A simple generic cache. * * @param <K> the key type * @param <V> the value type */ public class SimpleCache<K, V> implements Function<K, V> { /** The cache map. */ private final Map<K, V> myCacheMap; ...
<reponame>Decipher/druxt.js<filename>packages/site/src/index.js import { DruxtSiteNuxtModule } from './nuxtModule' /** * Vue.js Mixin. * * Registers props for use by Druxt slot theme components. * * @type {object} * @exports DruxtSiteMixin * @see {@link ./mixins/site|DruxtSiteMixin} * @example @lang vue * <te...
<filename>src/sentry/static/sentry/app/icons/iconPrevious.tsx import React from 'react'; import SvgIcon from './svgIcon'; type Props = React.ComponentProps<typeof SvgIcon>; const IconPrevious = React.forwardRef(function IconPrevious( props: Props, ref: React.Ref<SVGSVGElement> ) { return ( <SvgIcon {...pro...
<filename>evaluation/getBestThr_Pairs.py import sys, os from sklearn.metrics import roc_auc_score, recall_score, precision_score, roc_curve import pandas as pd import numpy as np from evaluation.evaluateScoresList import evaluateScoresLists DO_ROC_CURVE= False def loadResults( resultsPath, fnameResults): prefix= fn...
import random for _ in range(10): print(random.randint(1, 10))
<reponame>healer1064/Gimbal import program from 'commander'; import deepmerge from 'deepmerge'; import resolver from '@/config/resolver'; import EventEmitter from '@/event'; import { PluginConfig, Plugin, PluginOptions } from '@/typings/config/plugin'; import { CommandOptions } from '@/typings/utils/command'; import { ...
<reponame>awslabs/flux-swf-client /* * Copyright 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. * You may obtain a copy of the License at * * http://www.a...
package com.g4mesoft.graphics; public class ColorPalette { public static final int NUM_COLORS = 256; public static final int COLORS_PER_CHANNEL = 6; public static final int NUM_VISIBLE_COLORS = COLORS_PER_CHANNEL * COLORS_PER_CHANNEL * ...
import sys from cx_Freeze import setup, Executable build_exe_options = {"packages": ["os", "matplotlib"], "includes": ["tkinter"]} base = None if sys.platform == 'win32': base = 'Win32GUI' setup( name="Randomness", version="1.0", description="Plot Randomness with numbers", options={"build_exe": b...
# Program to find the largest number from a list numbers = [23, 75, 39, 63] # Find the largest number largest = max(numbers) print('Largest number:',largest) # Solution 1: # Find the second largest number second_largest = sorted(numbers)[-2] print('Second largest number:', second_largest) # Solution 2: # Find the...
<reponame>Organizational-Proof-Of-Work/clearinghoused_build httplib = __import__('httplib') from geventhttpclient import response import gevent.socket import gevent.ssl class HTTPResponse(response.HTTPSocketResponse): def __init__(self, sock, method='GET', strict=0, debuglevel=0, buffering=False, **k...
def generate_phase_summary(default_phases): phase_summary = {} for phase_template, configurations in default_phases: phase_name = phase_template[0] % 'S' # Extract phase name from the template for parameters, code, inheritance in configurations: phase_summary[parameters['name']] = {...
#!/bin/bash export LC_ALL=en_US.UTF-8 TIME="$(date '+%a, %d %b %Y %T %z')" YEAR="$(date '+%Y')" echo "preparing debian package build for $1-${CIRCLE_TAG}" # create debian package construction directory mkdir -p "build/deb/$1-${CIRCLE_TAG}" # copy software resources cp -r gradle "build/deb/$1-${CIRCLE_TAG}/gradle" c...
<gh_stars>1-10 package tkohdk.lib.calcstr.tree.node; /** * */ public interface TreeBinNode extends TreeNode { TreeNode setLeftNode(TreeNode left); TreeNode setRightNode(TreeNode right); TreeNode getLeftNode(); TreeNode getRightNode(); }
/** * node-disk-storage * @author Copyright(c) 2021 by <NAME> * MIT Licensed */ export const matchProperty = (compare: Record<string, any>): boolean | undefined => { const defaultProperty = { minSize: undefined, maxSize: undefined, compress: undefined } const compareIn: string[] = Object.keys(compare) const new...
#include <iostream> // Struct definition and deleteNode function implementation as described in the problem description int main() { // Example usage of the deleteNode function ListNode* head = new ListNode(1); head->next = new ListNode(2); head->next->next = new ListNode(3); head->next->next->nex...
<filename>src/CommandParser.hpp #pragma once #include <boost/algorithm/string.hpp> #include <string> namespace cnt { struct NoneCommand {}; struct UnknownCommand {}; struct PrintHelpCommand {}; struct PrintRecordsCommand {}; struct QuitCommand {}; struct AddRecordCommand { std::string recordName{}; explicit AddR...
package org.multibit.hd.ui.fest.use_cases; import com.google.common.util.concurrent.Uninterruptibles; import org.fest.swing.fixture.FrameFixture; import org.multibit.hd.testing.message_event_fixtures.MessageEventFixtures; import org.multibit.hd.testing.hardware_wallet_fixtures.HardwareWalletFixture; import org.multibi...
<!DOCTYPE html> <html> <head> <title>My Form</title> </head> <body> <form> <!-- Input fields --> <label for="name">Name:</label> <input type="text" id="name"/> <label for="email">Email:</label> <input type="email" id="email"> ...
export class MathHelpers { public static CalculateDistanceBetweenPoints(posA: RoomPosition, posB: RoomPosition): number { const a = Math.abs(posA.x - posB.x); const b = Math.abs(posA.y - posB.y); const c = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)); return c; } public static getRandomInt(min: num...
#!/bin/bash if [[ $# -ne 2 ]]; then echo "This script needs base image and node version as arguments" echo "example : ./build.sh alpine 8.12.0" echo "example : ./build.sh debian 8.12.0" exit -1 fi sed "s/<nodeversion>/${2}/g" Dockerfile.${1} > Dockerfile docker build -t accelbyte/node:${2}-${1} . docker tag a...
<gh_stars>0 package workers import ( "fmt" "log" "os" "testing" "time" "github.com/nicholasjackson/sorcery/entities" "github.com/nicholasjackson/sorcery/global" "github.com/nicholasjackson/sorcery/handlers" "github.com/nicholasjackson/sorcery/mocks" "github.com/stretchr/testify/assert" "github.com/stretchr...
<filename>dist/index.min.js /*! * name: @jswork/next-tx-cos-object * description: Tencent cos object for next. * homepage: https://github.com/afeiship/next-tx-cos-object * version: 1.0.0 * date: 2020-11-21 12:19:31 * license: MIT */ !function(){function c(e){return{Key:e.Key}}var r=(this||window||Function("retur...
<filename>0718-Maximum-Length-of-Repeated-Subarray/cpp_0718/Solution2.h /** * @author ooooo * @date 2020/10/5 13:15 */ #ifndef CPP_0718__SOLUTION2_H_ #define CPP_0718__SOLUTION2_H_ #include <iostream> #include <vector> using namespace std; class Solution { public: int findLength(vector<int> &A, vector<int> &B...
./gradlew clean build bintrayUpload -PbintrayUser=$BINTRAY_USERNAME -PbintrayKey=$BINTRAY_KEY -PdryRun=false
apt-get update apt-get install -y docker.io sudo usermod -a -G docker vagrant sudo sed -i "/$(hostname)/d" /etc/hosts sudo echo " 192.168.50.2 k8s-master 192.168.50.3 k8s-worker-0 192.168.50.4 k8s-worker-1 " >> /etc/hosts # Required by Weave networking (because of some CNI plugins): # https://kubernetes.io/docs/setup...
# calculate accuracy accuracy = (TP + TN) / (TP + TN + FP + FN)
<gh_stars>0 function reverse_number(n) { var m = 0; while (n != 0) { m *= 10; m += n % 10; n = Math.floor(n / 10); } return m; } function is_palindromic(n) { return n == reverse_number(n); } var max = 0; for (var a = 1; a < 1000; a += 1) { for (var b = a; b < 1000; b +...
total_sum = 0 for n in range(1000): if n % 3 == 0 or n % 5 == 0: total_sum += n print("The sum of all the natural numbers below 1000 that are multiples of 3 or 5 is {}".format(total_sum))
<gh_stars>1-10 var searchData= [ ['backward_5ffilter_5f',['backward_filter_',['../class_d_f_e.html#aa6953c7cf764551e2f4b14f7ea1759a9',1,'DFE']]], ['backward_5ffilter_5foutput_5f',['backward_filter_output_',['../class_d_f_e.html#a76d12aa6b5972a1d7aade0202c855699',1,'DFE']]], ['bit_5ftime_5f',['bit_time_',['../clas...
list = [1, 9, 4, 6, 2] max = list[0] list.each do |number| if number > max max = number end end puts "Largest Number: #{max}"
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import SortAmountDescSvg from '@rsuite/icon-font/lib/legacy/SortAmountDesc'; const SortAmountDesc = createSvgIcon({ as: SortAmountDescSvg, ariaLabel: 'sort amount desc', category: 'legacy', displayName: 'SortAmountDe...
import selection, {D3Selection, D3BindSelection} from "../selection"; import ObservableArray from "../observable/array"; import Observable, {ObservableHandler} from '../observable/observable' import BindRepeatIndexProxy from './bind-repeat-index'; import BindRepeatDatumProxy from "./bind-repeat-datum"; import {Writable...
#pragma once #include <cstddef> const std::size_t N = 50;
# the out most directory outer_dir="merged_IMGT_alleles/" allele_path="../plot_tree/BCRV_alleles.fasta" novel_path="CHM13_bcrv_novel_alleles/corrected_alleles_filtered.fasta" output_name="BCRV_with_CHM13_novel_alleles.fasta" echo "[MERGE NOVEL] Merge novel alleles" mkdir -p ${outer_dir} python3 merge_novel_alleles.py...
<reponame>cschladetsch/KAI<filename>Include/KAI/Language/Common/ProcessCommon.h #pragma once #include <KAI/Core/Value.h> #include <KAI/Core/Registry.h> #include <KAI/Language/Common/Process.h> KAI_BEGIN struct ProcessCommon : Process { template <class T> Value<T> New() { return _reg->New<T>(); ...
package org.zalando.intellij.swagger.intention.reference; import com.intellij.codeInsight.intention.IntentionAction; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project; import com.intellij.psi.PsiFile; import org.jetbrains.annotations.Nls; import org.jetbrains.annotations.NotNull; i...
"""Attempt to parse a database "connection string", retrieving the relevant component parts.""" from pytest import fixture from .. import URI def parse_dburi(url:str, uppercase:bool=False) -> dict: """Parse a given URL or URI string and return the component parts relevant for database connectivity. These come i...
#!/bin/bash bundle exec rackup --host 0.0.0.0 -p $PORT
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-STG/7-model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-STG/7-512+0+512-shuffled-N-VB-first-256 --do_eval --per...
import hashlib class Library(): def __init__(self): self.books = {} def add_book(self, book): h = hashlib.sha256(book.title.encode()).hexdigest() self.books[h] = book def remove_book(self, title): h = hashlib.sha256(title.encode()).hexdigest() if h in self.books: del self.books[h] def is_dupli...
package seatgeek import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "github.com/gosimple/slug" ) const ( clientIdEnvVar = "SEATGEEK_CLIENT_ID" ) type Client struct { http *http.Client baseAddr string clientId string } // NewClient returns a client for SeatGeek API func NewClient() *Cl...
#!/usr/bin/env bash set -ex # 1 ./core/deepim/test_deepim.sh \ configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV3_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_AggressiveV3_Flat_Pbr_01_02MasterChefCan_bop_test.py 1 \ output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_AggressiveV3_Flat_ycbvPbr_SO/0...
<reponame>jonqiao/SpringCloud-StockMarketCharting<filename>fsdms-angular-app/src/app/component/admin/company/company.component.ts<gh_stars>1-10 import { Component, OnInit } from '@angular/core'; import { FormBuilder, Validators } from '@angular/forms'; import { LogService } from '../../../service/log.service'; import {...
#!/bin/bash # Copyright (c) 2021 MotoAcidic HEIGHT=15 WIDTH=40 CHOICE_HEIGHT=6 BACKTITLE="StrongHands Compile Wizard" TITLE="StrongHands Compile Wizard" MENU="Choose one of the following bases to compile from:" OPTIONS=(1 "Compile Windows" 2 "Compile Linux" 0 "Exit Script" ) CHOICE=$(whiptail --clear\ --bac...
<filename>src/helpers/getToken.js const getToken = request => request.body.token || request.query.token || request.headers["x-access-token"]; module.exports = getToken;
<reponame>iumarchenko/recsys<filename>final_proj/src/recommenders.py #!/usr/bin/env python # coding: utf-8 # In[3]: import pandas as pd import numpy as np # Для работы с матрицами from scipy.sparse import csr_matrix # Матричная факторизация from implicit.als import AlternatingLeastSquares from implicit.nearest_nei...
import { QueryParamsToStringPipe } from './query-params-to-string.pipe'; describe('QueryParamsToStringPipe', () => { it('create an instance', () => { const pipe = new QueryParamsToStringPipe(); expect(pipe).toBeTruthy(); expect(pipe.transform()).toBe(''); expect(pipe.transform({})).toBe(''); expe...
#!/bin/bash # SPDX-License-Identifier: Apache-2.0 # Copyright Authors of Cilium # Simple script to make sure viper.GetStringMapString should not be used. # Related upstream issue https://github.com/spf13/viper/issues/911 if grep -r --exclude-dir={.git,_build,vendor,contrib} -i --include \*.go "viper.GetStringMapString...
#!/bin/sh # # 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"); yo...
#!/bin/bash # COPY PHASE cp -v assets/ftequakeworld.sh "$diststart/common/dist/" cp -v assets/ftequakeworld-quake1.sh "$diststart/common/dist/" cp -v assets/ftequakeworld-quake1-mg1.sh "$diststart/common/dist/" cp -v assets/ftequakeworld-quake1-dopare.sh "$diststart/common/dist/" cp -v assets/ftequakeworld-quake1-re.s...
<gh_stars>0 import React from "react" import { Fade } from "react-reveal" import { CoverLayout } from "../components/Layout" import ImageCover from "../components/ImageCover" import Section from "../components/Section" import { Helmet } from "react-helmet" export default () => ( <CoverLayout navbarTextColor="wh...
<reponame>swishcloud/goblog package internal import ( "log" "github.com/swishcloud/gostudy/logger" ) const ( TimeLayout1 = "2006-01-02 15:04" TimeLayout2 = "15:04:05" TimeLayoutMysqlDateTime = "2006-01-02 15:04:05" ) var Logger *log.Logger var LoggerWriter *logger.FileConcurrentWriter
import { OnDestroy, ɵmarkDirty as markDirty } from '@angular/core'; import { untilDestroyed } from '@ngneat/until-destroy'; import { from, Observable, ReplaySubject, Subject } from 'rxjs'; import { mergeMap, tap, switchMap, startWith, filter } from 'rxjs/operators'; type ObservableDictionary<T> = { [P in keyof T]:...
#!/bin/bash rm -rf ./PDESolver rm -rf ./PDESolver.jl rm -rf ./ODLCommonTools rm -rf ./SummationByParts rm -rf ./PumiInterface rm -rf ./ArrayViews rm -rf ./BinDeps rm -rf ./Compat rm -rf ./FactCheck rm -rf ./MPI rm -rf ./NamedArrays rm -rf ./SHA rm -rf ./URIParser rm -rf ./NaNMath rm -rf ./Calculus rm -rf ./DualNumbers...
import argparse import os import requests import threading def download_file(url, target_directory): filename = url.split('/')[-1] filepath = os.path.join(target_directory, filename) response = requests.get(url, stream=True) with open(filepath, 'wb') as file: for chunk in response.iter_content(...
import numpy as np import pyamg from scipy import sparse from fem.fem import FiniteElement from linsolver import sparse_solver class PossionBlending(): def __init__(self, source, mask, target, mask_offset, slow_solver=False): self.source = source self.mask = mask self.target = target ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.boldDown = void 0; var boldDown = { "viewBox": "0 0 20 20", "children": [{ "name": "path", "attribs": { "d": "M2.5,10H6V3h8v7h3.5L10,17.5L2.5,10z" } }] }; exports.boldDown = boldDown;
// from https://i.redd.it/j0bsovt727i01.png var notes_fingers = [ // note we add index via map at end of the array. {'stage': 3, 'note': 'B', 'octave': '5', 'fingering': ['2']}, {'stage': 3, 'note': 'Bb', 'octave': '5', 'fingering': ['1']}, {'stage': 3, 'note': 'A', 'octave': '5', 'fingering': ['12']}, ...
/* * MIT License * * Copyright (c) 2020-present Cloudogu GmbH and Contributors * * 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 limitation the r...
db.employees.find({ age: { $gt: 30 }, }, { firstname: 1, lastname: 1 })
#!/bin/sh # # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one # or more contributor license agreements. Licensed under the Elastic License; # you may not use this file except in compliance with the Elastic License. # set -e ./check_env_variables.sh LIST_ID=${1-ip_list} PAGE=${2-1} PER_PA...
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AxisModel } from '@syncfusion/ej2-charts'; /** * `Axis` directive represent a axis row of the react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <AxesDirectiv...
<gh_stars>10-100 /******************************************************************************* Copyright (c) 2017, Honda Research Institute Europe GmbH Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redist...
echo "import React from 'react'; import './$1.css'; import styled, { ThemeProvider } from 'styled-components'; // import theme from '../somewhere'; const theme = {}; // delete this if you're importing the theme or don't need a theme at all const $1 = styled.div\` \` const Themed$1 = props => ( <ThemeProvider them...
<gh_stars>0 package modell.raetsel; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import java.nio.charset.StandardCharsets; import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayLis...
#!/bin/bash if [ $# -eq 0 ]; then echo "<4>No file name specified" exit 1 fi if mkdir "/tmp/interceptty.lock"; then echo "No interceptty-save service is already active" else echo "An interceptty-save service is already active" exit 0 fi dir="/tmp/interceptty/" name="${1##*/}" echo "Commanding mu...
<gh_stars>0 import UserEsApi from './user_es_api'; export default UserEsApi;
java -jar /Users/keerthinelaturu/Keerthi/source/smart-contracts/verificationTools/bip-to-nusmv.jar /Users/keerthinelaturu/Keerthi/source/smart-contracts/projectOutputs/ItemsStoragef07e82f0-76ee-beac-69db-d0e37574c1b7/ItemsStorage.bip /Users/keerthinelaturu/Keerthi/source/smart-contracts/projectOutputs/ItemsStoragef07e8...
#!/usr/bin/env bash # ----------------------------- FONTES ----------------------------- # URL_GOOGLE_EARTH_PRO="https://dl.google.com/dl/linux/direct/google-earth-pro-stable_7.3.2_amd64.deb" URL_SPRING="http://www.dpi.inpe.br/spring/download/bin/linux/Spring5_5_5_Port_Ubuntu1604_x64.tar.gz" URL_TERRAVIEW="http://www....
#!/usr/bin/env bash hlint --hint .hlint.yaml . --ignore='Parse error'
module Promulgate module Utils module_function def valid_url?(url) begin uri = URI.parse(url) uri.is_a?(URI::HTTP) || uri.is_a?(URI::HTTPS) rescue URI::InvalidURIError end end def hmac(secret, body) digest = OpenSSL::Digest.new('sha256') OpenSSL::HMAC.he...
import preprocessor as p import matplotlib.pyplot as plt import re import string import numpy as np from nltk.corpus import stopwords import nltk import matplotlib.pyplot as plt from wordcloud import WordCloud, STOPWORDS from datetime import datetime from PIL import Image, ImageFont, ImageDraw import tweepy import conf...
#! /usr/bin/env bash set -exu cd "`dirname "$(readlink -f "$0")"`"/.. for k in */ ; do ( set +e cd $k git pull origin ) done
#!/bin/bash # # Script to generate test files. EXIT_SUCCESS=0; EXIT_FAILURE=1; TEST_DIRECTORY="/tmp/test"; if ! test -x "setup.py"; then echo "Unable to find: ./setup.py"; exit ${EXIT_FAILURE}; fi rm -rf build/ dist/; ./setup.py -q sdist_test_data; if test $? -ne ${EXIT_SUCCESS}; then echo "Unable to run: ./s...
;(function($) { var _defaults = { /** * Automatically submit the form after it is bound */ submitOnBind: false, /** * The expected response dataType */ dataType: 'json', /** * Called when a valid form is submitted. * * Return false to halt further event executi...
<filename>src/reader/test_cases/test_import_context.py from django.test import TestCase from reader.importer import TextImporter class TestImportContext(TestCase): def test_division_level(self): context = TextImporter.ImportContext("TestCase") self.assertEquals(context.get_divisio...
#include "stdafx.h" #include "igame_level.h" #include "IGame_Persistent.h" #include "igame_objectpool.h" #include "xr_object.h" IGame_ObjectPool::IGame_ObjectPool(void) { } IGame_ObjectPool::~IGame_ObjectPool(void) { R_ASSERT (m_PrefetchObjects.empty()); } void IGame_ObjectPool::prefetch () { R_...
c() { cd ~/projects/$1; } _c() { _files -W ~/projects -/; } compdef _c c
#!/bin/sh EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig) php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] then >&2 echo 'ERROR: Inv...
var structCatch_1_1Matchers_1_1Impl_1_1MatchNotOf = [ [ "MatchNotOf", "structCatch_1_1Matchers_1_1Impl_1_1MatchNotOf.html#a47afdd9e4c3354cef85adc3186097ae4", null ], [ "describe", "structCatch_1_1Matchers_1_1Impl_1_1MatchNotOf.html#ac5fb4ef6a9069d23a4098c3c818f06b0", null ], [ "match", "structCatch_1_1Match...
FIGURE=figure_supp_protein_cluster_analysis.png convert vmdscene.png -trim vmdscene.trim.png montage -pointsize 96 -geometry 'x1200' -tile 2x1 -font Liberation-Sans-Bold -label 'A' clustering-dist.png_ar20.5_apdtrpap.png -label 'B' clustering-dist.png_ar20.5_apdtrpap_Tn.png tmp_AB.png convert clustering-linear.png_a...
#!/usr/bin/env bash source /secrets.sh ENVIRONMENT=monitoring if [[ $# -lt 1 ]]; then echo usage: osism-$ENVIRONMENT SERVICE [...] exit 1 fi service=$1 shift ANSIBLE_DIRECTORY=/ansible CONFIGURATION_DIRECTORY=/opt/configuration ENVIRONMENTS_DIRECTORY=$CONFIGURATION_DIRECTORY/environments VAULT=${VAULT:-$EN...
'use strict'; var _20 = { elem: 'svg', attrs: { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32', width: 20, height: 20, }, content: [ { elem: 'path', attrs: { d: 'M13 11H7a3 3 0 0 0-3 3v2h2v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h2v-2a3 3 0 0 0-3-3zm-3-1a4...
import React, { Component, Fragment } from "react"; import PropTypes from "prop-types"; import { Row, Col, Spin, Typography } from "antd"; import "./style.scss"; import MeetingTypeCard from "./MeetingTypeCard"; import { connect } from "react-redux"; import meetingTypesBranch from "../../state/meeting-types"; class ...
DROP PROCEDURE IF EXISTS getEthnicOutput; CREATE DEFINER=`ineqbench_user`@`%` PROCEDURE `getEthnicOutput`(IN start_age int(2), IN end_age int(2), IN sexIn VARCHAR(25), IN locality VARCHAR(25)) /* procedure for getting south asians, black afro-carribeans, and gypsies/travelers = gets totalPopulation using the totalPopul...
<filename>assets/content.js // Inspect all subdirectories from the context (this file) and require files // matching the regex. // https://webpack.js.org/guides/dependency-management/#require-context require.context(".", true, /^\.\/.*\.(jpe?g|png|gif|svg|woff2?|ttf|otf|eot|ico)$/);
package service import "shippo-server/internal/model" type PermissionAccessService struct { *Service } func NewPermissionAccessService(s *Service) *PermissionAccessService { return &PermissionAccessService{s} } func (t *PermissionAccessService) PermissionAccessCreate(p model.PermissionAccess) (err error) { err =...
<reponame>jedrula/survey var jsonapify = require('jsonapify'); var User = require('../models/user'); const userResource = new jsonapify.Resource(User, { type: 'users', id: { value: new jsonapify.Property('_id'), writable: false, }, //links: { // self: { // value: new jsonapify.Template(...
#!/bin/bash set -e apt-get update && apt-get -y install lsb-release UBUNTU_VERSION=${UBUNTU_VERSION:-`lsb_release -sc`} LANG=${LANG:-en_US.UTF-8} LC_ALL=${LC_ALL:-en_US.UTF-8} CRAN=${CRAN:-https://cran.r-project.org} ## mechanism to force source installs if we're using RSPM CRAN_SOURCE=${CRAN/"__linux__/$UBUNTU_VER...
# Step 1: Create a custom exception class class ConfigException(Exception): pass # Step 2: Modify the given code snippet to raise ConfigException try: # Your code that may raise a KeyError raise KeyError("example_key") except KeyError as e: raise ConfigException( 'Integration "{}" is not regist...
<reponame>TheSpicyMeatball/jsdoc-parse-plus import { first, getTagRegExp, isNotNullOrEmpty } from '../_private/utils'; /** * Removes a set of tags from jsdoc * * @param {string} jsdoc - The entire jsdoc string * @param {string[]} tags - Array of string tags to remove * @returns {string} The jsdoc string the spec...
package code.generator; public class ComparisonDifferenceException extends Exception { private static final long serialVersionUID = 1L; private final String reference; private final String actual; private final Integer index; public ComparisonDifferenceException(String reference, String actual, Integer...
<reponame>GuRuGuMaWaRu/CodeProblems<gh_stars>0 function checkGrid(grid) { const numbers = grid.reduce((nums, num) => { if (!nums[num]) nums[num] = true; return nums; }, {}); return Object.keys(numbers).length === 9; } function sudoku(grid) { for (let i = 0, len = grid.length; i < len; i += 1) { let...
#!/bin/bash function jdlVal() { FILE=$1 KEY="$2" RESULT=`cat $FILE | grep "$KEY" | awk -F "$KEY " '{print $2}'` echo "$RESULT" return 0 }