text
stringlengths
1
1.05M
import React from 'react'; import { Table, TableHeader, TableBody, TableProps } from '@patternfly/react-table'; import { Bullseye, EmptyState, EmptyStateVariant, EmptyStateIcon, Title, EmptyStateBody, Button } from '@patternfly/react-core'; import SearchIcon from '@patternfly/react-icons/dist/esm/icons/se...
import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faSpinner } from '@fortawesome/free-solid-svg-icons'; const propTypes = { size: PropTypes.string, }; const Loading = ({ size } = {}) => <FontAwesomeIcon icon={faSpinner} size={si...
import { withStyles, TableRow } from '@material-ui/core' const TableRowMobile = withStyles({ '@media (max-width: 500px)': { root: { display: 'grid', gridTemplate: 'auto / 1fr 2fr', } } })(TableRow) export default TableRowMobile
<filename>tools/src/test/scala/com/threerings/nexus/gencode/FactoryGenTest.scala // // Nexus Tools - code generators for Nexus framework // http://github.com/threerings/nexus/blob/master/LICENSE package com.threerings.nexus.gencode import javax.annotation.processing.SupportedAnnotationTypes import javax.lang.model.el...
#!/bin/bash # Copyright (c) 2013 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. if [ -d "$1" ]; then cd "$1" || exit 1 else echo "Usage: $0 <datadir>" >&2 echo "Removes obsolete Unit database fil...
import string import random pwd_length = 8 alphabet = string.ascii_letters + string.digits + string.punctuation pwd = "" for i in range(pwd_length): char = random.choice(alphabet) if i % 4 == 0 and char in string.ascii_uppercase: pwd += char elif i % 4 == 1 and char in string.ascii_lowercase: ...
<reponame>mineMineGo/Javascript export function h(type, props, children) { return { type, props, children } }
#!/bin/bash # Installation script for mobileinsight-core on macOS # It installs package under /usr/local folder # Author : Zengwen Yuan # Date : 2018-04-12 # Version : 3.1 # set -e # set -u echo "** Installer Script for mobileinsight-core on macOS **" echo " " echo " Author : Zengwen Yuan (zyuan [at] cs.ucla.edu...
<reponame>mkralik3/syndesis-qe package io.syndesis.qe.steps.integrations.importt; import io.syndesis.qe.TestConfiguration; import io.syndesis.qe.pages.integrations.Integrations; import io.syndesis.qe.pages.integrations.importt.ImportIntegration; import io.syndesis.qe.utils.TestUtils; import java.io.File; import io.c...
#!/bin/sh set -eu >&2 echo "Automated deploy currently disabled" >&2 echo "Would have deployed $(cat .dockertag) if enabled" exit tag=$(cat .dockertag) echo "Running remote SSH-script" ssh -o StrictHostKeyChecking=no core@coreos-1.foreningenbs.no /bin/bash << EOF set -eu cd /data/drift/services/users-api ./de...
package com.platform.cache; import com.platform.dao.SysRegionDao; import com.platform.entity.MyRegion; import com.platform.entity.SysRegionEntity; import com.platform.utils.SpringContextUtils; import org.springframework.beans.factory.InitializingBean; import java.util.ArrayList; import java.util.Collection; import ja...
<reponame>Hannah-Abi/python-pro-21 import unittest from unittest.mock import patch from tmc import points, reflect from tmc.utils import load, load_module, reload_module, get_stdout, check_source from functools import reduce import os import os.path import textwrap from random import choice, randint from datetime impo...
from typing import List def count_anime_store_statistics_endpoints(url_patterns: List[str]) -> int: anime_store_endpoints = [pattern for pattern in url_patterns if "anime-store" in pattern] return len(anime_store_endpoints)
#!/usr/bin/env bash cd "$(dirname "$0")" k8sDirPrefix="./k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring" ecsDirPrefix="./ecs-task-definition-templates/deployment-mode/daemon-service/cwagent-ecs-instance-metric" newK8sVersion="k8s/1.3.0" agentVersion="amazon/cloudwatch-agent:...
<filename>public/assets/js/main.js<gh_stars>0 (function ($) { "use strict"; // Pre loader $(window).on("load", function () { $(".preloader").fadeOut(2000), $("body").css({"overflow-y":"inherit"}); $(".mean-container .mean-bar").css({"display":"inherit"}) }); jQuery('#mobile-menu').meanmenu({ ...
#!/usr/bin/env bash python -u train.py --lr 0.00005 --batch-size 16 --dist-url 'tcp://localhost:10001' --multiprocessing-distributed --world-size 1 --rank 0 --epochs 50 --save_path ./result_vigor --op sam --wd 0.03 --mining --dataset vigor --cos --dim 1000 --asam --rho 2.5 python -u train.py --lr 0.000005 --batch-size...
import React, { Component } from "react"; import PropTypes from "prop-types"; import _ from "lodash"; import { View, Keyboard, Text, ScrollView } from "react-native"; import baseTheme from "./theme"; import TextInputField from "./fields/textInput"; import LongTextInputField from "./fields/longTextInput"; import Switch...
<filename>src/components/list/__tests__/CdrList.spec.js import { mount } from '@vue/test-utils'; import CdrList from 'componentdir/list/CdrList'; describe('CdrList', () => { test('renders correctly', () => { const wrapper = mount(CdrList); expect(wrapper.element).toMatchSnapshot(); }); it('renders an ...
#g++ -g -Wall -std=c++11 -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I/usr/local/include/thrift -I/usr/include/boost cppgen/*.cpp server.cpp -L/usr/local/lib -lthrift -o server g++ -Wall -I/usr/local/include/thrift -c cppgen/PingService.cpp -o PingService.o g++ -Wall -I/usr/local/include/thrift -c cppgen/ping_constants.cpp ...
#!/bin/sh export C_INCLUDE_PATH=$PREFIX/include export CPLUS_INCLUDE_PATH=$PREFIX/include export CFLAGS="-I$PREFIX/include" export LDFLAGS="-L$PREFIX/lib" export CPATH=${PREFIX}/include wget http://ccb.jhu.edu/software/stringtie/dl/prepDE.py make release mkdir -p $PREFIX/bin mv stringtie $PREFIX/bin if [ "$PY3K" ==...
console.log('Demo!');
#!/bin/bash set -o errexit set -o xtrace GARBD_OPTS="" function get_backup_source() { peer-list -on-start=/usr/bin/get-pxc-state -service=$PXC_SERVICE 2>&1 \ | grep wsrep_ready:ON:wsrep_connected:ON:wsrep_local_state_comment:Synced:wsrep_cluster_status:Primary \ | sort \ | tail -1 \ ...
logValue<-function(){ lsval<-Sys.time() cat("The most recently displayed value was logged at", lsval, "\n") return(lsval) }
<filename>7-assets/past-student-repos/LambdaSchool-master/m4/42e1/data/seeds/05-taskscontexts.js exports.seed = function(knex) { return knex('projectsresources').insert([ { taskid: 1, contextid: 1 }, { taskid: 2, contextid: 2 }, { taskid: 3, contextid: 3 } ]); };
public class BowScript : WeaponScript { public GameObject ActivArrow { get; set; } public Transform FierPoint; public GameObject arrow; private int ammunitionCount; public void FireArrow() { if (ammunitionCount > 0) { GameObject newArrow = Instantiate(arrow, FierPoin...
#!/usr/bin/env bash cd artillery-load-testing npm install npm run test
var _neon_softmax_base_workload_8cpp = [ [ "NeonSoftmaxWorkloadValidate", "_neon_softmax_base_workload_8cpp.xhtml#a4077a9771ba9c551f4ce61863f65e798", null ] ];
<gh_stars>0 $(document).foundation(); var app = {}; $(function () { /*$(document).foundation(); */ app.topMenu(); }); // Top menu app.topMenu = function () { $(".dropdown").on('show.zf.dropdownmenu', function (ev, $el) { $el.css({ "display": "none" }) .slideDown(...
from Jumpscale import j from .JSBase import JSBase class ThreeBotActorBase(JSBase): def _init_actor(self, **kwargs): self._scheduler = None self._schemas = {} assert "package" in kwargs self.package = kwargs["package"] self.bcdb = self.package.bcdb @property def sc...
import os from tests.fixtures import * # noqa def test_create_project_via_cmd(new_project_via_cmd): # noqa assert os.path.isdir(os.path.dirname(new_project_via_cmd.__file__))
package de.akquinet.engineering.vaadinator.example.address; import java.util.HashMap; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import com.vaadin.addon.touchkit.server.TouchKitServlet; import com.vaadin.server.VaadinRequest; import com.vaadin.server.VaadinServlet; import d...
import React from 'react'; import { withStyles } from 'material-ui/styles'; import classnames from 'classnames'; import HeartOutlineIcon from '@material-ui/icons/FavoriteBorder'; import HeartIcon from '@material-ui/icons/Favorite'; const styles = theme => ({ infoBar: { display: 'flex', justifyContent: 'cente...
#!/bin/bash -xe sudo apt-get install -y openssh-client openssh-server #sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original #sudo chmod a-w /etc/ssh/sshd_config.original sudo /etc/init.d/ssh restart mkdir -p ~/.ssh chmod 700 ~/.ssh touch ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys
package cn.pasteme.common.mapper.handler; import cn.pasteme.common.enumeration.ValueEnum; import org.apache.ibatis.type.BaseTypeHandler; import org.apache.ibatis.type.JdbcType; import javax.validation.constraints.NotNull; import java.sql.CallableStatement; import java.sql.PreparedStatement; import java.sql.ResultSet...
def extract_unique_keys(config_dict): unique_keys = set() def extract_keys_recursive(dictionary): for key, value in dictionary.items(): unique_keys.add(key) if isinstance(value, dict): extract_keys_recursive(value) extract_keys_recursive(config_dict) ret...
<html> <head> <title>Database Table Example</title> </head> <body> <h1>Database Table Example</h1> <table> <thead> <tr> <th>ID</th> <th>Name</th> <th>Age</th> <th>Address</th> ...
#!/bin/bash root="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" source "$LSN_COMMON/functions" cd $root proc=$(ps -fC lsn-jsc) if [ "$?" == "0" ]; then echo $proc if (! ask_yn 'Run anyway?'); then exit 0; fi fi build_files=( specs/ecma.hf specs/livesite.hf specs/hub.hf specs/app.hf specs/...
#include <stdio.h> int main() { int num1 = 7; int num2 = 10; int num3 = 22; float average; average = (num1 + num2 + num3) / 3.0; printf("Average of three numbers: %f", average); return 0; }
<reponame>typekev/react-mk import { Action } from './types'; import getKeyPressDelay from './getKeyPressDelay'; import { defaultKeyPressDelay } from './constants'; /** * Returns a delay in milliseconds based on a given `action` and `delayRange` * * @param action - The smallest possible output * @param delayRange -...
import { sanitizeHtml } from "./sanitizer"; import { ParsedRequest } from "./types"; const twemoji = require("twemoji"); const twOptions = { folder: "svg", ext: ".svg" }; const emojify = (text: string) => twemoji.parse(text, twOptions); function getCss() { return ` @import url('https://fonts.googleapis.com/css2?...
#!/bin/bash -f #********************************************************************************************************* # Vivado (TM) v2018.2 (64-bit) # # Filename : c_addsub_1.sh # Simulator : Aldec Riviera-PRO Simulator # Description : Simulation script for compiling, elaborating and verifying the project sour...
// @ts-nocheck /* eslint-disable @typescript-eslint/no-unsafe-argument */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ import { EventEmitter } from 'events' import type TypedEmitter from 'typed-emitter' type Emitter = TypedEmitter<any> const IGNORED_HTML_TAGS = new Set([ 'BR', 'HEAD', '...
import torch.nn as nn class ConvolutionLayer(nn.Module): def __init__(self, inplanes, feat_planes, stride): super(ConvolutionLayer, self).__init__() self.final_use = True if stride == 1: self.final = nn.Conv2d(inplanes, feat_planes, 1) else: self.final = nn.C...
// Define a struct to represent a request struct Request { id: u64, data: String, } // Define a trait for policies trait Policy<T> { fn apply_policy(&self, request: &T) -> bool; } // Define a trait for services trait Service<T> { fn process_request(&self, request: &T) -> Result<(), String>; } // Defi...
<gh_stars>0 /* ANSWER ------------------------------------------------------------------------------------- 这道题实在TMD的变态了。我能正常想到的方法是按值进行二分法。 BinarySearch的解释: [1,3,4,2,2] 这个长度是5,所以一共有4个不同的数(一个重复) 按值BinarySearch,先看比<=2的有多少个 (4的一半是2) 扫描一轮 (分界2, 目标2), 发现1,2,2 三个数满足,这大于目标个数2所以按这个range 扫描二轮 (分界1, 目标1), 发现1 一个数满足,和目标相同,所以选择另...
const nodemailer = require('nodemailer'); const sendEmail = async (user) => { const transporter = nodemailer.createTransport({ service: 'Gmail', auth: { user: 'yourGmail@gmail.com', pass: 'yourPassword' } }); const options = { from: 'myemail@gmail.com', to: user.email, subject: 'New User Information', htm...
import random class LicensePlateGenerator: def __init__(self): self.provinces = u"京津冀晋蒙辽吉黑沪苏浙皖闽赣鲁豫鄂湘粤桂琼川贵云渝藏陕甘青宁新" self.digits = '0123456789' self.used_plates = set() def generate_license_plate(self): province = random.choice(self.provinces) number = ''.join(random.choi...
<filename>src/features/auth/redux/data/reduxFormEntries.ts<gh_stars>1-10 import { makeReduxFormEntry } from 'shared/helpers/redux'; import * as NS from '../../namespace'; export const loginFormEntry = makeReduxFormEntry<NS.ILoginForm>('loginForm', ['email', 'password', 'remember']); export const passwordRecoveryFor...
package ru.job4j.search; import java.util.LinkedList; /** * PriorityQueue - class emulates Queue with priority on a basic LinkedList * * @author <NAME> (<EMAIL>) * @version $Id$ * @since 0.1 */ public class PriorityQueue { /** Linkred List of tasks */ private LinkedList<Task> tasks = new LinkedList<>();...
docker build -t biglittlechallenge/trials-base-arm -f Dockerfile-trials-base-arm . docker build -t biglittlechallenge/trials-engine-arm -f Dockerfile-trials-engine-arm . docker build -t biglittlechallenge/trials-engine-dashboard-arm -f Dockerfile-trials-engine-dashboard-arm . docker build -t biglittlechallenge/trial...
import React, { useState } from "react" import { Link } from "gatsby" import Lottie from "react-lottie" import animationData from "../lotties/house" import Layout from "../components/layout" import "../components/layout.css" import SEO from "../components/seo" import data from "../data" const IndexPage = props => { ...
#!/bin/bash # Copyright 2014 The Kubernetes Authors 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.apache.org/licenses/LICENSE-2.0 # # Unless require...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.keyboard = void 0; var keyboard = { "viewBox": "0 0 20 20", "children": [{ "name": "path", "attribs": { "d": "M18.6,4h-17.2C0.629,4,0,4.629,0,5.4V14.6C0,15.369,0.629,16,1.399,16h17.2c0.77,0,1.4-0.631,1.4-1.4V5.4\r\...
def sumThree(x, y): nums = [x + y] result = [int(num) for num in nums if int(num) % 3 == 0] return result sum_results = sumThree(x, y) print(sum_results)
<filename>yupc-frontend/yupc-manage-center/src/main/java/com/github/yupc/center/configuration/GlobalVariableProperties.java<gh_stars>0 package com.github.yupc.center.configuration; import lombok.Data; import lombok.NoArgsConstructor; import org.springframework.boot.context.properties.ConfigurationProperties; import or...
<filename>query_builder.go<gh_stars>10-100 package influxquerybuilder import ( "bytes" "fmt" "regexp" "strings" ) // Duration Duration interface type Duration interface { Nanoseconds(uint) Duration Microseconds(uint) Duration Milliseconds(uint) Duration Second(uint) Duration Minute(uint) Duration Hour(uint)...
export class NavigationService { private history: string[] = []; private navigationCallbacks: ((page: string) => void)[] = []; navigateTo(page: string): void { this.history.push(page); this.notifyNavigationSubscribers(page); } navigateBack(): void { if (this.history.length > 1) { this.hist...
package cloudflare import ( "bytes" "encoding/json" "golang.org/x/net/context" ) // Zones - Cloudflare Zones API Client. type Zones struct { // Options - Client options. *Options } // Create - Creates a zone. func (zones *Zones) Create(ctx context.Context, domain string) (zone *Zone, err error) { buffer := ne...
import { Component, OnInit } from '@angular/core'; import { ToastrService } from 'ngx-toastr'; import { ActivatedRoute, Router } from '@angular/router'; import { NgForm } from '@angular/forms'; import { Party } from '../../../@theme/model/party-class'; import { PartyService } from '../../../@theme/services/party.servic...
import { scrypt_simple, to_uint8, encrypt as chacha_encrypt, decrypt as chacha_decrypt, to_utf8, isAvailable } from 'rasm-crypt'; import * as waitUntil from 'async-wait-until'; export class RandomHelper { static getRandomValues?: (array: Uint32Array | Uint8Array) => void = undefined; static fillRandom(array: Uin...
diff <(tail -n +3 data/2020-11-12.1057) <(tail -n +3 data/2020-11-12.1027)
# Gemfile source 'https://rubygems.org' gem 'rails', '~> 6.0.3' gem 'sqlite3' # config/routes.rb Rails.application.routes.draw do get '/survey' => 'survey#new' post '/survey/create' => 'survey#create' end # app/controllers/survey_controller.rb class SurveyController < ApplicationController def new @survey =...
class Node { public data public left public right constructor(data, left, right){ this.data = data this.left = left this.right = right } show () { return this.data } } /** * BinarySearchTree 二分叉树类 */ class BinarySearchTree { public root constructor () { this.root = null } ...
<reponame>ZacharyBabbitt/office-ui-fabric-react<filename>apps/a11y-tests/src/axe-sarif-converter/document-utils.ts // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. export class DocumentUtils { public title(): string { return ''; } }
#!/bin/sh cd .. . ./setEnv.sh RUN_CMD="$JAVA_HOME/bin/java $MEM_ARGS -cp $CLASSPATH twitter4j.examples.directmessage.ShowDirectMessage" echo $RUN_CMD ${1+"$@"} exec $RUN_CMD ${1+"$@"}
<reponame>makenosound/css-in-js-generator import * as postcss from "postcss"; const parseSelector = require("postcss-selector-parser"); import { getSelectorScope } from "./getSelectorScope"; export function getRequiredScopes( css: string, scope: string, knownScopes: Set<string> ): Set<string> { const required...
mpirun --allow-run-as-root --tag-output -np 16 -H 11.238.201.7:4,11.238.201.70:4,11.238.201.4:4,11.238.201.67:4 -bind-to none -map-by slot -mca pml ob1 -mca btl ^openib -mca plm_rsh_args "-p 54321" -mca btl_tcp_if_include bond0 -x NCCL_SOCKET_IFNAME=bond0 -x NCCL_IB_DISABLE=1 -x CUDNN_VERSION -x NSIGHT_SYSTEMS_VERSION ...
package pl.allegro.tech.hermes.management.infrastructure.zookeeper; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.curator.framework.CuratorFramework; import pl.allegro.tech.hermes.common.admin.AdminTool; import pl.allegro.tech.hermes.common.admin.zookeeper.ZookeeperAdminTool; import pl.allegro....
var searchData= [ ['opsick_20client_20library_20_2d_20api_20documentation_0',['Opsick Client Library - API Documentation',['../index.html',1,'']]] ];
<reponame>carlos-menezes/hastebincli #!/usr/bin/env node const axios = require('axios'); const yargs = require('yargs'); const fs = require('fs'); const HASTEBIN_URL = 'https://hastebin.com/documents'; const options = yargs .usage('Usage: <option> <data>') .option('t', { alias: 'text', describe: 'The text to wri...
@interface Matrix : NSObject @property (assign) NSInteger rows; @property (assign) NSInteger columns; @end
<reponame>Afrah-Abdulmajid/CS-Operating-Systems<filename>Assignment 4/semaphores.java import java. util.Scanner; import java.lang.System; import java.lang.System; import java.util.concurrent.Semaphore; import java.util.LinkedList; import java.util.Queue; class semaphores{ Queue <Process> queue; Process p ; pri...
@app.route('/user', methods=['POST']) def create_user(): data = request.get_json() name = data['name'] email = data['email'] password = data['password'] # ... create the user ... return jsonify({'message': 'User successfully created'})
#!/bin/bash set -e # Exit with nonzero exit code if anything fails SOURCE_BRANCH="master" TARGET_BRANCH="master" function generate { php bin/sculpin generate --env=prod } # Pull requests and commits to other branches shouldn't try to deploy, just build to verify if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS...
import matplotlib.pyplot as plt first_name = ['John', 'Jane', 'Alex'] age = [20, 18, 24] plt.bar(first_name, age) plt.xlabel('Name') plt.ylabel('Age') plt.title('Age of Persons') plt.show()
"""Methods for working with data and numpy arrays""" import warnings import numpy as np def arr_sample(arr, rate): """Return an array linearly sampled from the input array at the given rate. Examples -------- * [1, 2, 3, 4] and rate 2 -> [1, 3] * [1, 2, 3, 4] and rate 0.5 -> [1, 1, 2, 2, 3, 3,...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var bbox_1 = require("@antv/g2/lib/util/bbox"); var constant_1 = require("@antv/g2/lib/constant"); Object.defineProperty(exports, "DIRECTION", { enumerable: true, get: function () { return constant_1.DIRECTION; ...
<reponame>kdubiel/bh-events<gh_stars>1-10 export * from './yupLocales'; export * from './en'; export * from './pl'; export * from './supportedLanguages';
<filename>splashpy/faker/model.py # # This file is part of SplashSync Project. # # Copyright (C) 2015-2020 Splash Sync <www.splashsync.com> # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTIC...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for RHSA-2012:1491 # # Security announcement date: 2012-12-04 20:28:43 UTC # Script generation date: 2017-01-17 21:18:08 UTC # # Operating System: Red Hat 6 # Architecture: x86_64 # # Vulnerable packages fix on version: # - kernel-rt-doc.noarch:3.2.33-rt50.66.el6...
#!/bin/bash TASK=8 LANG=tr MODEL=ctrl_vilbert MODEL_CONFIG=ctrl_vilbert_base TASKS_CONFIG=iglue_test_tasks_boxes36.dtu TRTASK=RetrievalFlickr30k TETASK=RetrievalxFlickrCO${LANG} TEXT_PATH=/home/projects/ku_00062/data/xFlickrCO/annotations_machine-translate/${LANG}/test_gmt.jsonl FEAT_PATH=/home/projects/ku_00062/data/...
#!/bin/bash tar czf happyR.tar.gz .babelrc .gitignore client package-lock.json package.json public script secrets.js server webpack.config.js scp happyR.tar.gz 165.227.82.241 :~ rm happyR.tar.gz ssh 165.227.82.241 << 'ENDSSH' pm2 stop all rm -rf happyResident mkdir happyResident tar xf happyR.tar.gz -C happyResident ...
"use strict"; var _RequestManager_token; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequestManager = exports.RequestMethod = void 0; const tslib_1 = require("tslib"); const collection_1 = tslib_1.__importDefault(require("@discordjs/collection")); const form_data_1 = tslib_1.__importDef...
#!/bin/sh # # Sync mode: SYNC_LOCAL # printf "\033[94m[TEST]\033[m Sync mode: SYNC_LOCAL" printf " \033[90m(Sync: WWW2 -> WWW2, Initiator: WWW2)\033[m" docker-compose exec www2 python3 /var/www/html/db_sync_tool -f /var/www/html/tests/scenario/sync_local/sync-local-to-local.json -y $1 # Expecting 3 results in the da...
<reponame>curieos/CharacterSheetGenerator<filename>spec/objects/race_feature_spec.rb RSpec.describe 'RaceFeature' do let(:dummy_race_feature) { CharacterSheetGenerator::RaceFeature.new("Dark Vision", "") } it "has source that is 'Race'" do expect(dummy_race_feature.source).to eq("Race") end end
// // CGRect+LTFramer.h // Pods // // Created by <NAME> on 15/09/16. // // @import Foundation; FOUNDATION_EXTERN CGRect CGRectCreate(CGPoint origin, CGSize size); FOUNDATION_EXTERN CGRect CGRectIntegralMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height);
#!/bin/bash #SBATCH --job-name=ppta_ptmcmc_pe_cpl_varslope_set_all_ephem_0 #SBATCH --output=/fred/oz002/bgoncharov/correlated_noise_logs/ppta_ptmcmc_pe_cpl_varslope_set_all_ephem_0_%A_%a.out #SBATCH --ntasks=4 #SBATCH --time=1-11 #SBATCH --mem-per-cpu=6G #SBATCH --tmp=8G #SBATCH --array=0 pyv="$(python -c 'import sys;...
#!/bin/bash #SBATCH --gres=gpu:1 #SBATCH --cpus-per-task=5 #SBATCH --job-name="BigGAN CIFAR" #SBATCH --time=10-00:00:00 #SBATCH --account=engs-tvg #SBATCH --reservation=tvg202110 #SBATCH --qos=tvg #SBATCH --partition=short source activate py36 CUDA_VISIBLE_DEVICES=0,1 python train.py \ --shuffle --batch_size 50 --p...
import boto3 def list_s3_buckets(region_name): s3_client = boto3.client('s3', region_name=region_name) try: response = s3_client.list_buckets() bucket_names = [bucket['Name'] for bucket in response['Buckets']] return bucket_names except Exception as e: # Handle any potential...
package databases import ( "database/sql" "log" "github.com/DATA-DOG/go-sqlmock" "github.com/alhamsya/boilerplate-go/lib/helpers/database" "github.com/jmoiron/sqlx" ) func setupMockDB() (mockDB *sql.DB, mockStore *database.Store, mockSQL sqlmock.Sqlmock) { mockDB, mockSQL, err := sqlmock.New() if err != nil {...
#!/bin/bash # ---------------------------------------------------------------- # Copyright 2016 Cisco Systems # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
<filename>WebMediaStoreRegister/src/main/java/ra/jademy/domain/ProductType.java package ra.jademy.domain; public enum ProductType { CD, DVD, BOOK }
module ActsAsTranslated VERSION = '1.0.4' end
#!/bin/bash -l ## Grant name #SBATCH -A plgcholdadyplomy ## Node count, 1 by default #SBATCH -N 1 #SBATCH --cpus-per-task=1 #SBATCH --mem-per-cpu=40GB ## Job time #SBATCH --time=26:00:00 ## Partition #SBATCH -p plgrid-gpu #SBATCH --gres=gpu:2 module add plgrid/tools/python/3.8 module add plgrid/libs/tensorflow-g...
#! /bin/bash sudo yum update -y sudo yum install -y httpd sudo systemctl enable httpd sudo service httpd start echo "<h1>This is terraform cloud demo using remote state file" | sudo tee /var/www/html/index.html
<filename>stepDefinitions/clickAction.js //import AngularHomePage from '../pages/angularHomePage'; //import Globals from '../support/Globals'; //import { browser } from 'protractor'; //import { Given,When, Then } from "cucumber"; // Chai /*const globals = new Globals(); const expect = globals.expect;*/ var Ang...
if [ ! -f ~/logger.txt ]; then touch ~/logger.txt; fi if [ ! -f ~/.logger ]; then touch ~/.logger; fi touch user.user whoami > user.user python3 logger.py &
# 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/licenses/LICENSE-2.0 # # Unless required by applicabl...
#!/bin/bash # Do not use, yet for filename in *.mkv; do ffmpeg -i "$filename" -map 0 -c copy -c:a aac -c:v av1 -crf 17 -strict -2 out.mkv rm "$filename" mv out.mkv "$filename" done
export * as Declarative from './List.uncontrolled.declarative.stories'; export * as DataDriven from './List.uncontrolled.data-driven.stories';