text
stringlengths
1
1.05M
#!/usr/bin/env bash # # Change WorkerThreads to 1 and check if only 1 thread is used if [ -n "$HAVE_MYSQL" ]; then ods_setup_conf conf.xml conf-mysql.xml fi && ods_reset_env && log_this_timeout ods-control-start 30 ods-control start && syslog_waitfor 60 'ods-enforcerd: .*Sleeping for' && syslog_waitfor 60 'ods-sign...
SELECT * FROM stars WHERE description LIKE '%sun%';
#!/bin/sh set -e GOFLAGS=-mod=vendor GO111MODULE=on GOOS="" GOARCH="" go run $@
package core.checker.checker; import core.checker.util.Perf; import core.checker.vo.Result; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Spits out graphs of throughput over time. Checker options take precedence * over those passed in with this constructor. */ public class RateGra...
<reponame>j-groeneveld/streaming-serverless module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { lambda: { files: [ 'infrastructure/lambda/**/fn/index.*', 'infrastructure/lambda/*/lib/*...
#!/usr/bin/env bash # # Copyright (c) 2019-2020 The Finalcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. export LC_ALL=C.UTF-8 export CONTAINER_NAME=ci_win64 export DOCKER_NAME_TAG=ubuntu:20.04 # Check that ...
from rest_framework.pagination import PageNumberPagination class UserListPagination(PageNumberPagination): """ Custom pagination class for paginating a list of users """ page_size = 64 page_query_param = "page" page_size_query_param = "size" max_page_size = 64
<reponame>lananh265/social-network<filename>node_modules/react-icons-kit/md/ic_event_available_twotone.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_event_available_twotone = void 0; var ic_event_available_twotone = { "viewBox": "0 0 24 24", "children": [{ "name":...
#!/bin/bash sudo apt-get install -y ansible sshpass ansible-playbook -i inventory/hosts playbook.yml # --ask-become-pass
#!/bin/bash -eu _root_dir=$(dirname $(dirname $(readlink -f $0))) _ungoogled_repo=$_root_dir/ungoogled-chromium printf '%s-%s.%s' $(cat $_ungoogled_repo/chromium_version.txt) $(cat $_ungoogled_repo/revision.txt) $(cat $_root_dir/revision.txt)
#!/bin/bash -e # # Copyright (c) 2009-2020 Robert Nelson <robertcnelson@gmail.com> # Copyright (c) 2010 Mario Di Francesco <mdf-code@digitalexile.it> # # 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 ...
$('document').ready(function(){ $("#btn-login").click(function(){ $("#login-form").validate({ rules: { password: { required: true, }, user_email: { required: true, email: true } }, messages: { password:{ req...
package org.cmayes.hartree.calc; /** * Contract for performing a calculation on a given input. * * @author cmayes */ public interface Calculation { /** * Perfoms the calculation. * * @param procResult * The input to process. * @return The results of the calculation. ...
/* **** Notes Restore. Remarks: Along with C library //*/ # define CAR # include <stdio.h> # include "../../../incl/config.h" signed(__cdecl restore_rules(signed(arg/* append or.. */),page_t(*argp))) { auto signed char *b; auto rule_t *rule; auto signed r; auto signed short flag; if(!argp) return(0x00); flag = ...
#!/bin/bash dieharder -d 209 -g 30 -S 246603919
#!/bin/bash #$ -V #$ -N sequdas_fastqc #$ -cwd #$ -pe smp 7 #$ -l h_vmem=100G python $3/Cluster/fastqc.py $1 $2
<gh_stars>1-10 package de.ids_mannheim.korap.service; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.regex.Pattern; import javax.ws.rs.core.Response.Status; import org.apache.logging.log4j.LogManager; import o...
class Solution { public: int maxArea(vector<int>& height) { if(height.size() < 1) return 0; int left = 0; int right = height.size() - 1; int result = 0; while(left < right){ int area = (height[left] < height[right]) ? (height[left] * ...
def generate_model_summary(): registered_models = [ 'DocumentReferencesType_model', 'DocumentTitleType_model', 'DocumentTrackingType_model', 'DocumentTypeType_model', 'EngineType_model', 'EntitlementType_model' ] model_summary = {model: [] for model in registe...
#!/usr/bin/env bash # This script will run predict on test for all the networks and assemble a final submission file. set -e # abort if any command fails source activate py27 export PYTHONPATH=$(pwd):$PYTHONPATH pushd asanakoy bash predict_scratch.sh bash predict_vgg11v1.sh popd pushd albu bash predict.sh popd pushd...
#!/bin/sh psql -U ticketuser ticketdb -c "\lo_list" | grep ^' [0-9]' | grep -o '[0-9]\+' > /tmp/out.txt while read line do echo $line done < /tmp/out.txt
package com.g4mesoft.util; public abstract class GameEvent { private final Object sender; boolean cancel; public GameEvent(Object sender) { this.sender = sender; cancel = false; } public void cancelEvent() { cancel = true; } public Object getSender() { return sender; } }
import nltk from nltk.corpus import wordnet # Define a student's answer student_answer = "The cat ran across the street." # Define the answer key answer_key = "The cat ran over the bridge." # Split into tokens student_tokens = nltk.word_tokenize(student_answer) answer_key_tokens = nltk.word_tokenize(answer_key) # I...
<reponame>practicajs/practica<gh_stars>10-100 import isPortReachable from "is-port-reachable"; import path from "path"; import dockerCompose from "docker-compose"; import { execSync } from "child_process"; module.exports = async () => { console.time("global-setup"); // ️️️✅ Best Practice: Speed up during developm...
#!/bin/bash #creates list of parallel jobs to construct gene/exon coverage sums per all samples #in a Snaptron compilation using a specific annotation #1) parameter is the TSV of disjoint exon coordinates, format(tab-delimted): #chrm,start,end,gene_name #2) parameter is the Snaptron compilation name string (e.g. encod...
var NAVTREEINDEX15 = { "_neon_end_to_end_tests_8cpp.xhtml#a4892abb94679c653f8cb78efb6f17152":[8,0,1,10,4,0,1,75], "_neon_end_to_end_tests_8cpp.xhtml#a4ead8cf58c0c1bbd12cc5e6acfc08338":[8,0,1,10,4,0,1,13], "_neon_end_to_end_tests_8cpp.xhtml#a519174862e574b4c5b16d854e9703a07":[8,0,1,10,4,0,1,46], "_neon_end_to_end_tests_...
package org.bf2.cos.fleetshard.operator.it.debezium.glues; import java.util.function.Consumer; import java.util.stream.Collectors; import org.bf2.cos.fleetshard.it.cucumber.support.StepsSupport; import org.bf2.cos.fleetshard.support.json.JacksonUtil; import com.fasterxml.jackson.databind.JsonNode; import io.cucumbe...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-FW/model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-FW/1024+0+512-N-VB-IP-first-256 --do_eval --per_device...
#!/bin/bash # Run script as root if [ $(id -u) != "0" ] then sudo "$0" "$@" exit $? fi ######## PRE-START SETUP ########## # Stop watchdog before update /etc/init.d/watchdog stop # Enable rw file system ../app/helpers/mount_rw.sh # Sdcard life time extend hacks # http://raspberrypi.stackexchang...
def determine_next_action(animator_state: str, is_human_exists: bool, fsm_state: str) -> str: if animator_state == "Wait" and is_human_exists: return "Transition to State_Contact_Dragon" elif not is_human_exists: return "Set Is_Sleep to true" else: return "No action needed"
SELECT * FROM TABLE WHERE column1 = 'some_value' LIMIT 10 ORDER BY column2 DESC
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2017 Intel Corporation. All Rights Reserved #pragma once #include <opencv2/core/core.hpp> #include <map> class PersonData { public: int Id; int rid = 0; cv::Rect rectangle; bool valid; }; class PersonDataStorage { pub...
package de.hswhameln.typetogether.client.runtime; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.function.Consumer; /** * Class that handles listening to property chan...
<reponame>kuhella/ambari<filename>ambari-server/src/main/resources/stacks/ADH/1.4/services/FLINK/package/scripts/flink.py #!/usr/bin/env python import sys, os, pwd, grp, signal, time, glob from resource_management.libraries.functions.check_process_status import check_process_status from resource_management import * fr...
def add(x, y): return x + y def subtract(x, y): return x - y def multiply(x, y): # Add code here to multiply x and y pass def divide(x, y): # Add code here to divide x and y pass
export class Profile { public id: string; public firstname: string; public lastname: string; public avatar?: any; constructor(firstname: string, lastname: string, avatar?: any) { this.firstname = firstname; this.lastname = lastname; this.avatar = avatar; } }
TMPDIR=`mktemp -d 2>/dev/null || mktemp -d -t 'tmpConfigDir'` DUMPDIR=`mktemp -d 2>/dev/null || mktemp -d -t 'dumpDir'` cp config/config.json $TMPDIR echo "Creating databases" docker exec mattermost-mysql mysql -uroot -pmostest -e "CREATE DATABASE migrated; CREATE DATABASE latest; GRANT ALL PRIVILEGES ON migrated.* T...
# Pull latest word-flip Docker image docker pull asewdat/word-flip # Kill existing word-flip app if running docker kill word-flip-app # Remove word-flip-app container if exists docker rm word-flip-app # Start word-flip-app using latest image docker run -p 80:3000 --name word-flip-app --link mongo-img-0:mongo -d asew...
(function () { const triangleDirs = [ ['top', 'Top Right'], ['right', 'Bottom Right'], ['bottom', 'Bottom Left'], ['left', 'Top Left'] ] const block = (title, content) => `<div class="block"> <h5>${title}</h5> ${content} </div>` const getField = selector => { const $own...
#!/usr/bin/with-contenv bash # ============================================================================== # Community Hass.io Add-ons: Pi-hole # Sets the configured password for the Pi-hole admin interface # ============================================================================== # shellcheck disable=SC1091 s...
<reponame>kels-orien/fastify-rest-api<filename>module.js const { gql } = require("apollo-server-fastify"); const typeDefs = gql` type Token { token: String! } type User { id: ID! firstName: String! lastName: String! password: String! bio: String profileImage: String email: String!...
# Library of functions shared by all tests scripts, included by # test-lib.sh. # # Copyright (c) 2005 Junio C Hamano # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the Lic...
# Variables SHARP_VERSION=$(npm show sharp version) NODE_VERSION=10.16.3 SHARP_DIRECTORY=sharp-$SHARP_VERSION TARBALL=sharp-$SHARP_VERSION-aws-lambda-linux-x64-node-$NODE_VERSION.zip # current dir where the build.sh is located DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" cd $DIR # https://docs...
#network interface on which to limit traffic IF="eth0" #limit of the network interface in question LINKCEIL="1gbit" #limit outbound Bitcoin protocol traffic to this rate LIMIT="160kbit" #defines the address space for which you wish to disable rate limiting LOCALNET="192.168.0.0/16" #delete existing rules tc qdisc del ...
#!/bin/bash Ns=(10000 40000 100000 200000) for n in "${Ns[@]}" do ./fork $n >> result.txt ./vfork $n >> result.txt ./clone $n >> result.txt ./vclone $n >> result.txt done
<reponame>asvyazin/purescript-screeps exports.usePathFinder = function () { return PathFinder.use(true); } exports.deserialize = function (json) { return function () { return PathFinder.CostMatrix.deserialize(json); } } exports.search = function (from) { return function (to) { return fun...
'use strict'; const semver = require('semver'); //values from http://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutRetentionPolicy.html const validRetentionInDays = [1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653]; class AwsAddLogRetention { constructor(serverless, ...
'use strict'; const passport = require('passport'); const LocalStrategy = require('passport-local').Strategy; const DBWrapper = require('./DBWrapper').createDBWrapper(); const PasswordHelper = require('./PasswordHelper').createPasswordHelper(); var PassportWrapper = function(){ this.passport = passport; this.p...
package com.projects.tradingMachine.services.database.sql; import java.sql.CallableStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.Properties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; im...
import os.path import page_finder from util import extract_all_links try: FILE = __file__ except NameError: FILE = './tests' TESTDIR = os.getenv('TESTPATH', os.path.dirname(os.path.realpath(FILE))) def get_local_url(filename): return 'file:///{0}/{1}'.format(os.path.join(TESTDIR, '...
#!/usr/bin/env bash set -o errexit test_import () { echo "Create environment: python=$PYTHON_VERSION $1" # Create an empty environment conda create -q -y -n test-imports -c conda-forge python=$PYTHON_VERSION pyyaml fsspec toolz partd cloudpickle $1 conda activate test-imports pip install -e . ...
def sort_strings_alphabetically(strings): strings.sort() return strings if __name__ == "__main__": strings = ["hello", "bye", "world", "how", "are", "you"] sorted_strings = sort_strings_alphabetically(strings) print(sorted_strings)
#!/bin/bash export CHANNEL_NAME=pcr-channel echo "Creating channel" peer channel create -o orderer.rbi.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/rbi.com/orderers/orderer.rbi.com/msp/tlscacerts/tlsca.rbi.com...
function getPermutations(string) { let result = []; if (string.length === 1) { result.push(string); return result; } for (let i = 0; i < string.length; i++) { let firstChar = string[i]; let charsLeft = string.substring(0, i) + string.substring(i + 1); let innerPermutations = getPermutations(charsLeft); ...
#!/bin/bash # exit when any command fails set -e # keep track of the last executed command trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG # echo an error message before exiting trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT # Extract the base64 encoded config data ...
class Histogram: def __init__(self): self.data_points = [] def add_data_point(self, value): self.data_points.append(value) def generate_histogram(self): if not self.data_points: raise TypeError("Empty histogram") histogram_dict = {} for data_point in se...
<filename>src/main.js import 'babel-polyfill'; import './scss/style.scss'; import React from 'react'; import ReactDom from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import configureStore from './store/configureStore'; import bootstrapStore fro...
#!/bin/sh # # Skip the test if arch+kernel combination is not supported. # # Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org> # Copyright (c) 2016-2017 The strace developers. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that th...
public class Task { public void done() { System.out.println("Task marked as done"); } }
<reponame>horowitz2009/BBGun<filename>src/com/horowitz/bigbusiness/model/Deserializable.java package com.horowitz.bigbusiness.model; public interface Deserializable { void postDeserialize(Object[] transientObjects) throws Exception; }
class TreeNode: def __init__(self, data): self.data = data self.left = None self.right = None def build_binary_tree(integers): if len(integers) == 0: return None root = TreeNode(integers[0]) i = 0 l = len(integers) nodes = [root] while (i <...
#ifndef DVDSHOP_REGULARMOVIE_H #define DVDSHOP_REGULARMOVIE_H #include "Movie.h" class RegularMovie : public Movie { public: RegularMovie(const std::string& title); double determine_amount(int days_rented) const override; int determine_points(int days_rented) const override; }; #endif//DVDSHOP_REGULARMO...
adpater="en0" # Adapter name username="username" password="password" mac=$(ifconfig ${adpater} | grep "ether " | awk '{print $2}') ip=$(ifconfig ${adpater} | grep "inet " | awk '{print $2}') response=$(curl -s "http://10.69.69.72/quickauth.do?userid=${username}&passwd=${password}&wlanuserip=${ip}&wlanacname=NFV-BAS...
import numpy as np from typing import Tuple, Dict import scipy.linalg def eigen_solver(matrix: np.ndarray, n_eigenpairs: int, is_symmetric: bool) -> Tuple[np.ndarray, np.ndarray]: if n_eigenpairs == matrix.shape[1]: if is_symmetric: scipy_eigvec_solver = scipy.linalg.eigh else: ...
#!/bin/bash set -e __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" __branch=$(git branch --no-color | grep -E '^\*' | awk '{print $2}') dotnet-sonarscanner begin /key:"jpdillingham_Utility.CommandLine.Arguments" /o:jpdillingham-github /d:sonar.host.url="https://sonarcloud.io" /d:sonar.exclusions="**/*examples*/*...
package com.testforth.terminal; import static java.awt.event.KeyEvent.*; import java.util.HashMap; import java.util.Map; import static com.testforth.terminal.TerminalWindow.*; /** * @author Dmitry */ class KeyCodes { public static Map<Integer, Integer> keyCode2LanceletKeyCode = new HashMap<>() { { ...
#!/bin/bash ### Use this script to remove all dependencies indicated in vcpkg-dependencies ### from the vcpkg submodule version=1.0.1-for-${PROJECT_NAME} tripletOverride= while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in -V | --version ) echo $version exit ;; -h | --help ) echo "$0:" ec...
let givenDate = new Date(2012, 11, 16); let formattedDate = givenDate.toLocaleDateString('en-US', { day: '2-digit', month: '2-digit', year: 'numeric' }); console.log(formattedDate); // 12/16/2012
<gh_stars>0 package gui; public interface GraphicPanel { //result panel public String getResult(); public void setResult(String text); public void addResult(String s); public void backspaceResult(); public void clearResult(); public boolean isResultEmpty(); //expression panel public String ge...
package org.museautomation.ui.extend.components; import javafx.geometry.*; import javafx.scene.*; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.util.*; import org.controlsfx.control.*; /** * @author <NAME> (see LICENSE.txt for license details) */ public abstract class PopupDialog { ...
import { Connection, MysqlError } from 'mysql'; import { Report } from '@/typings/command'; interface Config { commandPrefix?: string | string[]; database: string; table: string; } /* eslint-disable-next-line @typescript-eslint/no-explicit-any */ type Row = any; const VAR_RE = /\${(.+?):(.+?)(?:,\s*(.+?))?(?:,...
<filename>using-custom-hook.js const useTextByCount = (count, messages, onFinished) => { const [text, setText] = useState(messages[0]); useEffect(() => { if (count < messages.length) { return setText(messages[count]); } return onFinished(); }, [count]); return text; }; const messages = ['Ca...
<reponame>p2401kumar/ObjMtlParser package com.keetarp.parser.mtl_parser; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import com.keetarp.parser.comman.TheThree; public class...
def is_single_character(word): return len(word) == 1
#ifndef PROJ_TYPE_H_ #define PROJ_TYPE_H_ // #include "proto/message_protocol.pb.h" namespace google { namespace protobuf { class MessageLite; } } class MessageLite; namespace ChatProtocol{ class Packet; } using MessageBase = google::protobuf::MessageLite; using MessagePtr = std::shared_ptr<MessageBase>; using Pa...
package Assign_Cookies; import java.util.Arrays; public class Solution { public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int i, j; for (i = 0, j = 0; i < g.length && j < s.length;i++) { while (s[j++] < g[i]){ if (j >=...
package org.slos; import org.slos.battle.decision.Choice; import org.slos.battle.decision.ChoiceGate; import org.slos.battle.decision.ChoiceGateFactory; import org.slos.battle.decision.MasterChoiceContext; import org.slos.battle.decision.strategy.ChoiceStrategyMode; import org.junit.jupiter.api.Disabled; import org.ju...
class PluginManager: def __init__(self): self.registered_plugins = [] def register_plugin(self, name, plugin_type, api_version): self.registered_plugins.append((name, plugin_type, api_version)) def reject_plugin(self, name): if 'imdb' in name: raise ValueError(f"Plugin ...
<gh_stars>0 import { templateForComponentFile, createYargsForComponentGeneration, } from '../helpers' export const files = async ({ name, ...rest }) => { console.info(rest) const serviceFile = templateForComponentFile({ name, apiPathSection: 'services', templatePath: 'service/service.js.template', ...
<reponame>thomaszdxsn/zoom-meeting-api import { CreateUserActions, UserType } from '../constants'; export interface CreateUserParams { action: CreateUserActions; user_info: { email: string; type: UserType; first_name?: string; last_name?: string; password?: string }; }
def reverse_string(s): # create an empty list to store reversed characters reversed_s = [] # Iterate over the string in reverse order for i in range(len(s) - 1, -1, -1): reversed_s.append(s[i]) # Join the characters to form the reversed string return "".join(reversed_s)
#!/bin/bash set -e export DEFAULT_NATS_SERVER_VERSION=v2.0.4 export NATS_SERVER_VERSION="${NATS_SERVER_VERSION:=$DEFAULT_NATS_SERVER_VERSION}" # check to see if nats-server folder is empty if [ ! "$(ls -A $HOME/nats-server)" ]; then ( mkdir -p $HOME/nats-server cd $HOME/nats-server wget https://github.com/na...
import { Injectable } from '@angular/core'; import 'rxjs/add/operator/toPromise'; import { Course } from 'app/core/model'; import * as moment from 'moment'; import { AuthHttp } from 'angular2-jwt'; import { environment } from 'environments/environment'; @Injectable() export class CoursesService { courseUrl: string...
#!/usr/bin/env bash export NCTL_DOCKER_CONTAINER=${1:-"mynctl"} export NCTL_HOME=/home/casper/casper-node/utils/nctl # ############################################################### # ALIASES # ############################################################### # Assets. nctl-assets-dump() { docker exec -t $NCTL_DOCKER...
package io.github.intellij.dlanguage.run.exception; public class ModuleNotFoundException extends Exception { public ModuleNotFoundException() { this("Module was null"); } public ModuleNotFoundException(final String message) { super(message); } }
"""Project: Eskapade - A python-based package for data analysis. Macro: esk202_writedata Created: 2017/02/20 Description: Macro to illustrate writing pandas dataframes to file. Authors: KPMG Advanced Analytics & Big Data team, Amstelveen, The Netherlands Redistribution and use in source and binary forms, w...
from hs_build_tools.nose import eq_,ok_ import hashkernel.bakery as ids from hashstore.tests import TestSetup from sqlalchemy import Table, Integer, MetaData, Column, types, select from hashstore.utils.db import Dbf, IntCast, StringCast import enum import logging logging.basicConfig() logging.getLogger('sqlalchemy.e...
#!/usr/bin/env bash # Based on https://superuser.com/posts/1538073 set -e FILE_PATH=$1 if [ ! -f "${FILE_PATH}" ]; then echo "Invalid file path: ${FILE_PATH}" exit 2 fi # Density ppi - the higher the value the longer the conversion will take DENSITY=${DENSITY:-"300"} DESTINATION_DIRECTORY=${DESTINATION_DIRECTORY...
function MultiLiner() { this.myLinesStartWith = ""; this.myLinesEndWith = ""; this.myStringToWrap = ""; this.setLineStart = function(aLineStart){ this.myLinesStartWith = aLineStart; } this.setLineEnd = function(aLineEnd){ this.myLinesEndWith = aLineEnd; } this.setStringToWrap = function(aStringToWra...
#!/usr/bin/env python3 """Graph AWS resource data in Neptune""" import argparse import os import sys from typing import List, Optional from altimeter.aws.aws2n import generate_scan_id, aws2n from altimeter.aws.scan.muxer.local_muxer import LocalAWSScanMuxer from altimeter.core.config import AWSConfig def main(argv: ...
import * as React from "react"; import { StaticImageImport } from "src/image"; export const TEAM_TYPES = ["Team", "Keynote Speaker", "Panelist"] as const; export type TeamType = typeof TEAM_TYPES[number]; export interface TeamMemberProps { name: string; title: string; type: TeamType; image: StaticImageImport;...
'use strict'; import angular from 'angular'; // import ngAnimate from 'angular-animate'; import ngCookies from 'angular-cookies'; import ngResource from 'angular-resource'; import ngSanitize from 'angular-sanitize'; const ngRoute = require('angular-route'); import uiBootstrap from 'angular-ui-bootstrap'; import { ...
#!/bin/bash set -e # Exit immediately if a command exits with a non-zero status DIST="dist" # rely on the heavy assumption that there is only one .tar file here (should be ok in CI) TARFILE=$(cd ${DIST} && ls *.tar) ORIGINAL="\"dependencies\": {" REPLACEMENT="\"dependencies\": {\n \"@abolis\/plate-maker\": \"file...
#! /bin/sh # Copyright (C) 2000-2020 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program ...
module Foundation module Icons module Sassc module Rails VERSION = "3.0.0" end end end end
#!/bin/bash # Sample usage of the script # Set log level and message level="INFO" message="This is an informational message" # Convert log level to uppercase level=${level^^} # Use case statement to perform actions based on log level case $level in INFO) echo "Information: $message" ;; WARN) ...
#!/bin/bash ## curl http2 2020-01-02 ## http://www.aqzt.com ##email: ppabc@qq.com ##robert yu ##centos 6和centos 7 yum install -y bzip2 openssl openssl-devel libcurl wget https://github.com/nghttp2/nghttp2/releases/download/v1.40.0/nghttp2-1.40.0.tar.bz2 tar xvf nghttp2-1.40.0.tar.bz2 cd nghttp2-1.40.0 ./configure mak...
#!/bin/bash export GOPATH=/opt/gopath export GOROOT=/opt/go export PATH="$PATH:$GOROOT/bin:$GOPATH/bin" usage() { echo "Usage: $0 [-c <channel name>] [-g <orgs of peers>] [-n <chaincode name>] [-v <chaincode version>]" 1>&2 exit 1 } while getopts ":c:n:v:g:" o; do case "${o}" in c) c=${OPTARG} ;; n) n=${OPTA...
# modify the prompt to contain branch name if applicable git_branch() { branch=$(git current-branch 2> /dev/null) if [ "$branch" = "master" ]; then echo "±" else echo $branch fi } hg_bookmark() { repo=$($HOME/.zsh/tools/find_parent_dir .hg) if [[ -n $repo ]]; then bookmark=$(cat $repo/bookmarks...
export LD_LIBRARY_PATH=/usr/lib/jvm/default-java/jre/lib/amd64/server:$LD_LIBRARY_PATH