text
stringlengths
1
1.05M
<reponame>qaqRose/TLog package com.yomahub.tlog.id; import cn.hutool.core.util.IdUtil; public class TLogDefaultIdGenerator extends TLogIdGenerator{ @Override public String generateTraceId() { return IdUtil.getSnowflake().nextIdStr(); } public static void main(String[] args) { System.o...
const axios = require('axios'); axios.get('/api/v1/users/') .then(response => { console.log(response.data); }) .catch(error => { console.log(error); });
#!/usr/bin/env bash # Copyright 2019 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
<reponame>fuchina/FSPassword<filename>FSPasswordSample/Pods/Headers/Public/FSJZBus/FSMultiPeerService.h<gh_stars>0 // // FSMultiPeerService.h // myhome // // Created by FudonFuchina on 2017/10/21. // Copyright © 2017年 fuhope. All rights reserved. // #import <Foundation/Foundation.h> #import <MultipeerConnectivity/...
import { Enforcer } from 'casbin'; import { GraphqlModuleContext, ModuleResolvers } from '../GraphqlModule'; import { GraphqlPlugin } from './@GraphqlPlugin'; export interface WrapResolverMapWithCasbinOptions<User> { enforcer: { current: null | Enforcer; }; getUser: (context: any) => Promise<User | null | u...
CREATE TABLE users ( name varchar(255), username varchar(255), email varchar(255), PRIMARY key (username), INDEX username_index (username), INDEX email_index (email) );
import React, { Component, Fragment } from "react"; import checkAuth from "../../checkAuth"; import { Redirect } from "react-router-dom"; class Default extends Component { state = { status: 2 }; refetch = () => { checkAuth() .then(data => { this.setState({ ...this.state, ...data }); }) ...
#Aqueduct - Compliance Remediation Content #Copyright (C) 2011,2012 Vincent C. Passaro (vincent.passaro@gmail.com) # #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 Licens...
<filename>mango/__main__.py import click from pydoc import locate @click.group() def cli(): pass @cli.command() @click.argument('experiment') @click.argument('param', nargs=-1) def train(experiment, param): Experiment = locate(experiment) if Experiment is None: click.echo(f'Class {experiment} no...
#!/bin/bash -f #********************************************************************************************************* # Vivado (TM) v2018.3 (64-bit) # # Filename : system.sh # Simulator : Mentor Graphics Questa Advanced Simulator # Description : Simulation script for compiling, elaborating and verifying the pr...
def compareLength(string1, string2): if len(string1) == len(string2): return True else: return False string1 = "Hello" string2 = "Goodbye" isSameLength = compareLength(string1, string2) print(isSameLength) # Output: false
#!/bin/bash # # snap_nt_combine.sh # # This script runs SNAP against the NT database # # Chiu Laboratory # University of California, San Francisco # January, 2014 # # This script will successively run SNAP against NT partitions and then combine the results # # Note: for the NT database, default FASTQ headers will cause...
#!/bin/bash export PATH=$PATH:$HOME/bin function delete() { /bin/rm -f $1 } if [ "x$HOME" = "x" ] ; then HOME=/home/naehas fi LOG=$HOME/cron.log echo "`date`: ====== statsCron.sh Starting. ======" >> $LOG if [ ! -f $HOME/bin/.statsrc ] ; then echo "`date`: Stats settings not initialized." >> $LOG exit 1 fi . $...
require File.expand_path('../../../spec_helper', __FILE__) require 'date' describe "Date#day" do it "returns the day" do d = Date.new(2000, 7, 1).day d.should == 1 end end
<gh_stars>1-10 /* Copyright 2019-2020 Netfoundry, 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
def fib(n): if n <= 1: return n else: return fib(n-1)+fib(n-2)
<filename>src/index.ts import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { IFoo } from "provider-test"; /** * Initialization data for the consumer-test extension. */ const extension: JupyterFrontEndPlugin<void> = { id: 'consumer-test', autoStart: true, requires: [IFo...
#!/usr/bin/env bash set -e source bosh-cpi-src/ci/tasks/utils.sh source /etc/profile.d/chruby-with-ruby-2.1.2.sh check_param release_blobs_access_key check_param release_blobs_secret_key # Version info semver_version=`cat release-version-semver/number` echo $semver_version > promoted/semver_version echo "BOSH Googl...
<filename>src/pages/Experience4/index.js /** * @module Experiences/Experience0 */ import React, { Profiler } from 'react' import { Observable } from 'rxjs' const onRender = (id, phase, actualDuration) => { console.log(id, phase, actualDuration) } const observer = { next: (x) => console.log(`Observer got a next...
import requests from bs4 import BeautifulSoup def get_article_detail(article_url: str) -> dict: article_info = {} try: response = requests.get(article_url) if response.status_code == 200: soup = BeautifulSoup(response.content, 'html.parser') article_info["Author"] = soup...
# Prompt the user to enter a commit message commit_message = input("Enter the commit message: ") # Simulate the process of committing the changes using the entered message print(f"Committing changes with message: {commit_message}") # Simulate pushing the committed changes to a remote repository print("Pushing changes...
import re def extract_module_info(code_snippet): module_info = {} pattern = r'pub mod (\w+);.*?// Export `(.+?)` as Rust module `(\w+::\w+::\w+)`' matches = re.findall(pattern, code_snippet, re.DOTALL) for match in matches: module_name = match[2] file_path = match[1] module...
def construct_file_path(check, use_a6_conf_dir): A5_CONF_DIR = '/path/to/A5_conf' A6_CONF_DIR = '/path/to/A6_conf' if use_a6_conf_dir: return '{}/{}.d/conf*'.format(A6_CONF_DIR, check) else: return '{}/{}*'.format(A5_CONF_DIR, check)
import {Injectable} from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor, HttpErrorResponse } from '@angular/common/http'; import {Observable, of} from 'rxjs'; import {Router} from "@angular/router"; import {catchError} from "rxjs/internal/operators"; import {ToastrServi...
#!/bin/sh # GET # Simon Hugh Moore # # Retrive meta data from pass file # # Meta data must be organized in file like so: # meta_name: data # for example: # login: user_name get(){ pass show "$2" | rg "$1: " | cut -d' ' -f2 } case "$2" in -c) get "$1" "$3" | xclip -selection clipboard;; *) get "$@";; esa...
<gh_stars>0 /** * Copyright 2015 Flipkart Internet Pvt. 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/LICENSE-2.0 * * Unless required by app...
def find_invalid_values(arr): for i in range(len(arr)): for j in range(len(arr[i])): if arr[i][j] == "N/A": arr[i][j] = 0 return arr
'use strict'; var superagent = require('superagent'); var path = require('path'); var fs = require('fs'); var resolutionCache = {}; module.exports = class Resolver { constructor(options, github) { this.options = { organizations: [ 'PolymerElements', 'Polymer' ], cacheValidTim...
<reponame>emersonbrs/desafio-frontend<filename>src/components/Button/styles.ts import styled from 'styled-components'; export const Container = styled.button` width: 100%; background: var(--yellow); color: var(--blue-grey); height: 3.75rem; border-radius: 0.5rem; border: 0; font-weight: bold; margin...
#!/usr/bin/env bash # 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 # "Lice...
cp -r graded-kanji-examples/dist/* src/data cp -r fonts src mkdir -p docs cp -r src/* docs minify -r src -o docs
#!/bin/bash source includes/core.sh :: "Start" rm -rf vendor/ warden env exec -u root -T php-fpm bash -c "composer clearcache && composer install" warden env exec -u root -T php-fpm bash -c "chown www-data:www-data -R /var/www/html/" :: "Finished."
import App from "../src/app"; import * as assert from "power-assert"; describe("app", () => { context("production mode", () => { let window:any = {}; window.__import_view_component__ = null; window.__import_user_attr__ = null; window.__import_user_attrs_value__ = null; global.window = window; ...
#!/bin/bash echo "" > min.js cat js/animateRotate.js >> min.js cat js/data.js >> min.js cat js/dropmenu.js >> min.js cat js/hiring.js >> min.js cat js/stat.js >> min.js cat js/upgrades.js >> min.js cat js/science.js >> min.js
function* gen() { yield 1; yield 2; yield 3; yield 4; yield 5; } // for (let g of gen()) { // console.log(g); // } var geniter = gen(); console.log(geniter.next()); console.log(geniter.next()); console.log(geniter.next()); console.log(geniter.next()); console.log(geniter.next()); console.log(g...
<gh_stars>100-1000 /* * Copyright © 2021 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modi...
<reponame>ooooo-youwillsee/leetcode // // Created by ooooo on 2020/1/25. // #ifndef CPP_0067__SOLUTION1_H_ #define CPP_0067__SOLUTION1_H_ #include <iostream> using namespace std; /** * 从尾遍历到头 */ class Solution { public: string addBinary(string a, string b) { string ans = ""; int i = a.size() - 1, j = b...
#! /bin/bash ########################################################################## # >> SETUP DEFAULT VALUES ########################################################################## DOVECOT_MAILBOX_FORMAT="${DOVECOT_MAILBOX_FORMAT:=maildir}" DOVECOT_TLS="${DOVECOT_TLS:=no}" ENABLE_CLAMAV="${ENABLE_CLAMAV:=0}" ...
import sounddevice as sd def process_audio(input_device, output_device, sample_rate, duration): # Define callback function for audio processing def callback(indata, outdata, frames, time, status): if status: print(f"Error: {status}") outdata[:] = indata # Process the audio data (in...
#!/bin/bash # Input list of packages to install packages=("package1" "package2" "package3") # Function to install a package install_package() { package_name=$1 echo "--" echo "-- Attempting to install $package_name" echo "--" cpanm $package_name if [[ $? -ne 0 ]]; then echo "!!! !!!" ...
<reponame>lananh265/social-network<filename>node_modules/react-icons-kit/md/ic_filter_2_twotone.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_filter_2_twotone = void 0; var ic_filter_2_twotone = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs...
<reponame>mmvvpp123/Reminderse-API<gh_stars>1-10 import * as React from "react"; import { SkeletonCard } from "./SkeletonCard"; const DashboardLoading = () => { return ( <> {Array(4) .fill(0) .map((_, i) => ( <SkeletonCard key={i} /> ))} </> ); }; export default Das...
<reponame>Baranov-Ivan/towel-sort module.exports = function towelSort (matrix) { if(Array.isArray(matrix) && matrix.length && arguments.length > 0) { let resarr = []; matrix.reduce((_,currentValue,currentIndex) => { currentIndex % 2 ? currentValue.reduceRight((_,deepValue) => resarr....
import ContactHeader from '@authenticator/contact/components/ContactHeader'; export { ContactHeader, }
import { createTestEvent } from './create-test-event' import { Destination } from './destination-kit' import { mapValues } from './map-values' import type { DestinationDefinition } from './destination-kit' import type { JSONObject } from './json-object' import type { SegmentEvent } from './segment-event' import { AuthT...
class E: def __init__(self, x, y): self.x = x self.y = y @staticmethod def a4(): return 0 # Replace with the actual coefficient A @staticmethod def a6(): return 0 # Replace with the actual coefficient B def hensel_lift(curve, p, point): A, B = map(long, (curv...
import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Build; import androidx.core.app.NotificationCompat; public class NotificationUtils { private static final String CHANNEL...
<gh_stars>0 import { Subscriber } from '../Subscriber'; import { EmptyObservable } from '../observable/EmptyObservable'; /** * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times, * on a particular Scheduler. * * <img src="./img/repeat.png" width="100%"> * *...
<filename>xmlEnumeration.go // Copyright 2020 The xgen 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 xgen written in pure Go providing a set of functions that allow you // to parse XSD (XML schema files). This library ...
#!/usr/bin/env bash ## Complete the following steps to get Docker running locally # Step 1: # Build image and add a descriptive tag docker build . --tag qasibeat/project4attempt2 # Step 2: # List docker images docker image ls # Step 3: # Run flask app sudo docker run --name qasibeat/project4attempt2 -p 8000:80 qasi...
import { Router } from "express"; import cController from "../controllers/mensajeController"; class MensajeRoutes { public router: Router = Router(); constructor() { this.config(); } config(): void { this.router.get('/', cController.obtenerMisUltimosMensajes); this.router.get(...
<filename>src/components/CommentCard/index.js import component from './CommentCard' import connector from './CommentCard.connector' export default connector(component)
nohup wget -r -l1 -H -t1 -nd -N -np -A.gz -erobots=off https://ftp.ncbi.nlm.nih.gov/pubmed/baseline & nohup wget -r -l1 -H -t1 -nd -N -np -A.gz -erobots=off -P daily https://ftp.ncbi.nlm.nih.gov/pubmed/updatefiles/ &
import { actions, } from '../constants'; const user = (state = [], action) => { switch (action.type) { case actions.ADD_ASSET: return [ ...state, action.assetDetails, ]; case actions.REMOVE_ASSET: return state.filter((asset) => asset.id !== action.assetDetails.id); def...
#! /bin/bash CURRENTDIR=$(pwd) cd $PRODDIR/numu_all_numuflux/scripts/gen/ && source ../chips_1200_map.sh cd $PRODDIR/nuel_all_numuflux/scripts/gen/ && source ../chips_1200_map.sh cd $PRODDIR/numu_cccoh_numuflux/scripts/gen/ && source ../chips_1200_map.sh cd $PRODDIR/numu_nccoh_numuflux/scripts/gen/ && source ../chips...
#!/bin/bash yarn db:generate yarn db:migrate yarn dev
<filename>homeassistant/components/directv/media_player.py """Support for the DirecTV receivers.""" import logging from typing import Callable, List from directv import DIRECTV from homeassistant.components.media_player import MediaPlayerDevice from homeassistant.components.media_player.const import ( MEDIA_TYPE_...
<filename>src/utils/contextUtils.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. import * as fse from "fs-extra"; import * as os from "os"; import * as path from "path"; import { ExtensionContext, extensions } from "vscode"; let EXTENSION_PUBLISHER: string; ...
# Load fastqc module module add fastqc/0.11.7 # Set input and output variables OUTDIR=results/fastqc_untrimmed_reads INPUT=data/untrimmed_fastq/*.fastq.gz # Create output directory if necessary mkdir -p $OUTDIR # Run fastqc fastqc -o $OUTDIR $INPUT
printf "installing curl... " sudo apt install curl -y
import random def randomElement(arr): return random.choice(arr)
<reponame>lgoldstein/communitychest<filename>development/src/main/java/net/community/chest/svn/ui/filesmgr/SVNLocalCopyFileNameRenderer.java /* * */ package net.community.chest.svn.ui.filesmgr; import java.awt.Component; import java.util.Map; import javax.swing.Icon; import javax.swing.JTable; import javax.swing.f...
#shellcheck disable=SC2034 #shellcheck disable=SC2154 pkg_name=infra-proxy-service pkg_description="Automate infra views" pkg_origin=chef pkg_version="0.1.0" pkg_maintainer="Chef Software Inc. <support@chef.io>" pkg_license=('Chef-MLSA') pkg_upstream_url="http://github.com/chef/automate/components/infra-proxy-service"...
/* * Copyright (C) 2017 The Dagger Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
# File: T (Python 2.4) from pandac.PandaModules import * from direct.showbase.DirectObject import * from direct.interval.IntervalGlobal import * from direct.actor import Actor from pirates.piratesbase import PiratesGlobals from PooledEffect import PooledEffect from EffectController import EffectController import rando...
#include <Arduino.h> #include "DharmaIO_Button.h" /* * * * */ Button::Button(byte init_pin, bool digitalTrigger, bool enableInternalPullup) { this->pin = init_pin; this->digitalTrigger = digitalTrigger; // if button is set to react to logic level high then disable the internal pullup if (digita...
<gh_stars>1-10 ############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NAME>, <EMAIL>, All rights reserved. # LLNL-CODE-647...
#! /bin/sh UNAME=$(uname -r) if [ $UNAME | grep 'linux' ]; then BT_CLIENT="hcitool" BT_SEARCHLINE="scan" BT_CONNECT="auth" else; #if not on linux, assume OSX for now. BT_CLIENT="blued" BT_SEARCH="listall" BT_CONNECT="join" fi if [ echo $1 | grep -io '([[:xdigit:]]{1,2}[:-]){5}[[:xdigit:]]{1,2}'...
import styled from 'styled-components/native' import { RectButton } from 'react-native-gesture-handler' import getColorFromType from '../../utils/getColorFromType' export const Container = styled(RectButton) <{ type: string }>` height: 130px; padding: 20px; overflow: hidden; margin-bottom: 15px; border-radiu...
<gh_stars>1-10 package com.krrrr38.mackerel4s.model import com.krrrr38.mackerel4s.model.Types.{ HostID, MonitorID, AlertID } object AlertStatus { def fromString(status: String): Option[AlertStatus] = status match { case "OK" => Some(AlertStatusOK) case "CRITICAL" => Some(AlertStatusCritical) case "WARNI...
#!/bin/sh cwd="$(pwd)" root="$(git rev-parse --show-toplevel)" cd "$root" || exit 1 jsfiles=$(git diff --cached --name-only --diff-filter=ACM "src/**.js" "src/**.jsx" | tr '\n' ' ') [ -z "$jsfiles" ] && exit 0 # Prettify all staged .js files echo "$jsfiles" | xargs ./node_modules/.bin/prettier --write # Add back t...
#!/bin/bash # Generate c?d.doc and cguru.doc from *.docsrc, from the docs/ directory. # Contains some of their text content here too. # Barnett 7/24/20. # local expansions done before insertion NU="nonuniform point" NF="nonuniform frequency target" CO=coordinates LM="length M real array" LN="length N real array" PI="i...
<reponame>glameyzhou/training package org.glamey.training.codes.hash.consistent; /** * 节点相关信息 * * @author yang.zhou 2019.11.04.17 */ public abstract class ShardInfo<R> { private final int weight; public ShardInfo(int weight) { this.weight = weight; } public int getWeight() { retur...
SELECT name FROM employees WHERE hours_worked > 40;
set -eo nounset cd /sources test -f expect5.45.tar.gz || \ wget --no-check-certificate \ https://downloads.sourceforge.net/expect/expect5.45.tar.gz rm -rf expect5.45 tar xf expect5.45.tar.gz pushd expect5.45 ./configure --prefix=/usr \ --with-tcl=/usr/lib \ --enable-shared ...
<gh_stars>0 $("#form-dept-edit").validate({ rules:{ deptName:{ required:true, }, orderNum:{ required:true, }, }, submitHandler:function(form){ update(); } }); function update() { var deptId = $("input[name='deptId']").val(); var parentId = $("input[name='parentId']").val(); var orderNum = $("inp...
#!/usr/bin/bash set -euxo pipefail echo "install_weak_deps=False" >> /etc/dnf/dnf.conf # Tell RPM to skip installing documentation echo "tsflags=nodocs" >> /etc/dnf/dnf.conf dnf install -y python3 python3-requests epel-release 'dnf-command(config-manager)' dnf config-manager --set-disabled epel curl https://raw.gith...
<reponame>ErikWegner/imoin<gh_stars>1-10 describe('options html', () => { const getFormTextValueStub = sinon.stub(window, 'getFormTextValue'); const getCheckboxValueStub = sinon.stub(window, 'getCheckboxValue'); const setCheckboxValueStub = sinon.stub(window, 'setCheckboxValue'); const documentQuerySelectorStub...
from lxml import etree # Create the root element root = etree.Element('table') # Create two columns table_elem = etree.SubElement(root, 'column') table_elem.set('name', 'FirstName') table_elem = etree.SubElement(root, 'column') table_elem.set('name', 'LastName') # Print the whole XML print(etree.tostring(root, pr...
<gh_stars>0 import { routeInfo } from '../../router'; export default { data(){ return { routeInfo: [], }; }, methods: { navigate(idx){ this.$router.push(this.routeInfo[idx].path); }, }, mounted(){ for (let route of this.$router.options.routes) { if (route.path !== this.$route.path) { this.ro...
#!/bin/bash # Copyright 2019 Google LLC # # 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 ...
package com.padcmyanmar.charleskeith.activities; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android...
#!/bin/bash cargo build --release --features generate-api-description --target=wasm32-unknown-unknown wasm-build target {{project-name}} --target-runtime=substrate --final={{project-name}} --save-raw=./target/{{project-name}}-deployed.wasm --target wasm32-unknown-unknown
<reponame>Rayissach/news-2-you var express = require("express") var router = express.Router(); var db = require("../models") // var controller = require('../') router.get("/", function( req, res) { res.render("index", {title: 'Express'}) }); // router.get("/articles", function(req, res) { // res.render ("ind...
#! /bin/bash CMD="./run.sh" if [ $# != 1 ]; then echo "Usage: ${0} [--v2|--v3]" >&2 exit 1 elif [ ${1} != "--v2" -a ${1} != "--v3" ]; then echo "Usage: ${0} [--v2|--v3]" >&2 exit 1 fi version=${1#*v} NB_TESTS=$(find tests -maxdepth 1 -type d -regex '.*/in[0-9]*\.v'"${version}"'$' | wc -l) mkdir -p tests_tm...
/** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later...
<filename>one_offs/dodd_frank/dump.py import subprocess import sys dockets = [docket.strip() for docket in open(sys.argv[1])] for docket in dockets: p = subprocess.Popen(["./run.py", 'rdg_dump_api', '-d', docket]) p.communicate()
#!/bin/bash ## default value VALUE_L="1" IS_MANUAL_CONTROLL="n" IS_SAMPLE_CONTROLL="n" GAME_TIME="180" # game time (s) RESULT_LOG_JSON="result.json" # result log file ## get args level setting while getopts l:m:s:t:f: OPT do case $OPT in "l" ) VALUE_L="$OPTARG" ;; "m" ) IS_MANUAL_CONTROL...
<reponame>TomminMC/Eris /* * Command Handler */ module.exports = (client, message) => { // Ignore Direct Messages if (message.channel.type !== 'text') return require('./messageCounter')(message) require('./reactions')(message) const prefix = client.eris.config.prefix // Ignore messages that are not st...
#!/usr/bin/env bash # Copyright 2016 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
#!/bin/bash _mydir="$(pwd)" BASEDIR=$(dirname "$0") cd "$BASEDIR" cd .. cd .. old="$IFS" IFS=';' str="'$*'" node remove-empty-directories.js "$str" IFS=$old cd $_mydir
<reponame>googleapis/googleapis-gen<gh_stars>1-10 # frozen_string_literal: true # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/lic...
#!/usr/bin/env bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" cd $DIR/.. REMOTE_URL_BASE=$1 REMOTE_INDEX_URL=$2 CHARTS_DIR=".helm-release-packages" EXISTING_INDEX=$(mktemp /tmp/index.yaml.XXXXXX) REMOTE_CODE=$(curl -s -L -w "%{http_code}" $REMOTE_INDEX_URL -o $EXISTING_INDEX) if [ ...
package healthchart.ui import javax.swing.JFileChooser import javax.swing.filechooser.{FileNameExtensionFilter, FileSystemView} object FileChooser: def chooseFile(frame: Frame, dialogTitle: String, fileExtensionFilterDesc: String, fileExtensions: Array[String]): O...
#!/bin/bash # # 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...
#!/bin/bash ############################################################################## # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this di...
#!/bin/bash # Copyright 2021 Huawei Technologies 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/LICENSE-2.0 # # Unless required by applicable law ...
CREATE OR REPLACE VIEW v_sales_2004 (sales_id,customer_id,product_id,sale_date, quantity,sale_value,department_id,sales_rep_id,gst_flag) AS SELECT sales_id,customer_id,product_id,sale_date, quantity,sale_value,department_id,sales_rep_id,gst_flag FROM sales WHERE sale_date BETWEEN '200...
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import CutSvg from '@rsuite/icon-font/lib/legacy/Cut'; const Cut = createSvgIcon({ as: CutSvg, ariaLabel: 'cut', category: 'legacy', displayName: 'Cut' }); export default Cut;