text
stringlengths
1
1.05M
#!/bin/bash if [ -z "$FC_CONTAINER_ID" ] then echo "Skip as this is local env ..." exit 0 else echo "Building in cloud ...." fi # cd to app root CWD=$(dirname $0) if [[ `basename $(pwd)` = 'scripts' ]]; then cd ../ else cd `dirname $CWD` fi npm install npm run build cp ./package.json ./dist cd ./...
# DISCOVER MODE ##################################################################################################### if [ "$MODE" = "discover" ]; then if [ "$REPORT" = "1" ]; then if [ ! -z "$WORKSPACE" ]; then args="$args -w $WORKSPACE" LOOT_DIR=$INSTALL_DIR/loot/workspace/$WORKSPACE echo -e "...
<filename>cmd/thanos/rule.go package main import ( "context" "fmt" "math/rand" "net" "net/http" "net/url" "os" "os/signal" "path" "path/filepath" "strconv" "strings" "sync" "syscall" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/oklog/run" opentracing "github.com/...
import request from "../../lib/request"; const app = getApp(); import serviceData from '../../data/config'; Page({ data : { products:[], currentPage:1, perPage : 5 }, onLoad(option){ var categoryId = option.id; var pageData = new Object(); pageData.page = thi...
/* * Copyright 2014-2018 the original author or 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 app...
<reponame>Ashindustry007/competitive-programming // https://open.kattis.com/problems/dicecup #include <iostream> #include <set> #include <vector> using namespace std; typedef vector<int> vi; typedef set<int> si; int main() { int m, n; cin >> m >> n; vi v(m + n + 2, 0); for (int i = 1; i <= m; i++) { for (int j...
<gh_stars>0 package com.ylesb.plan; /** * @title: PlanTest * @projectName plan * @description: TODO * @author White * @site : [www.ylesb.com] * @date 2021/12/2016:05 */ import com.baomidou.mybatisplus.test.autoconfigure.MybatisPlusTest; import com.ylesb.plan.mapper.UserMapper; import com.ylesb.plan.entity.User;...
const applyDiscount = (originalPrice, discount, taxRate = 0) => { let discountAmount = originalPrice * (discount / 100); let priceAfterDiscount = originalPrice - discountAmount; let taxAmount = priceAfterDiscount * (taxRate / 100); let finalPrice = priceAfterDiscount + taxAmount; return finalPrice; }
#!/bin/bash set -o nounset set -o errexit set -o pipefail echo "************ baremetalds assisted gather command ************" if [[ ! -e "${SHARED_DIR}/server-ip" ]]; then echo "No server IP found; skipping log gathering." exit 0 fi # Fetch packet basic configuration # shellcheck source=/dev/null source "${SHA...
# Imports import torch.nn as nn import torch # CNN Model class CNN(nn.Module): def __init__(self): super(CNN, self).__init__() # Convolutional blocks self.conv1 = nn.Sequential( nn.Conv2d(1, 6, 3, 1), nn.ReLU(), nn.MaxPool2d(2, 2)) self.conv2 = nn...
#!/bin/bash # Get an updated config.sub and config.guess cp $BUILD_PREFIX/share/libtool/build-aux/config.* ./build-aux export PERL=${BUILD_PREFIX}/bin/perl if [[ ${HOST} =~ .*linux.* ]]; then export CFLAGS="${CFLAGS} -lrt" fi M4=m4 \ ./configure --prefix=${PREFIX} --host=${HOST} make -j${CPU_COUNT} ${VERBOSE_AT}...
description = """ Adds django-mptt support to your project. For more information: http://django-mptt.github.com/django-mptt/ """
<filename>open-sphere-base/core/src/main/java/io/opensphere/core/util/collections/TroveUtilities.java package io.opensphere.core.util.collections; import java.util.List; import java.util.Set; import gnu.trove.TByteCollection; import gnu.trove.TCharCollection; import gnu.trove.TCollections; import gnu.trove.TD...
<reponame>miguel76/sparql-net<filename>tests/templateFactory.test.ts import { TemplateFactory, FlowEngine, Actions } from '../src/index' import { newEngine } from '@comunica/actor-init-sparql-file' const path = require('path') const tf = new TemplateFactory({ prefixes: { ex: 'http://example.org/', rdf: 'htt...
""" Created on Dec 17, 2009 @author: barthelemy """ from __future__ import unicode_literals, absolute_import import unittest from py4j.compat import unicode from py4j.java_gateway import JavaGateway, GatewayParameters from py4j.protocol import Py4JJavaError, Py4JError from py4j.tests.java_gateway_test import ( s...
<gh_stars>1-10 package db_test import ( "example/internal/tester" "example/users/db" "example/users/entities" "github.com/stretchr/testify/suite" "testing" ) type RoleRepositoryTest struct { suite.Suite tester.Integration roles db.RoleRepository } func TestRoleRepository(t *testing.T) { suite.Run(t, new(Ro...
<gh_stars>0 package handlers import ( "bytes" "io/ioutil" "log" "net/http" "net/http/httptest" "os" "testing" "github.com/facebookgo/inject" "github.com/nicholasjackson/sorcery/entities" "github.com/nicholasjackson/sorcery/global" "github.com/nicholasjackson/sorcery/mocks" "github.com/stretchr/testify/ass...
package com.foxconn.iot.sso.dao.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import com.foxconn.iot.sso.dao.UserDao; import com.foxconn.iot.sso.mapper.UserMapper; import com.foxconn.iot.sso.model.User; @Repository public class UserDa...
#!/bin/sh # If you would like to do some extra provisioning you may # add any commands you wish to this file and they will # be run after the Homestead machine is provisioned. cd /home/vagrant/code # Set up the code style checking pre-commit hook cp githooks/pre-commit .git/hooks/pre-commit cp githooks/config-pre-com...
#!/bin/bash echo "ESLint running for staged files..." # from https://eslint.org/docs/user-guide/integrations#source-control - Git pre-commit hook that only lints staged changes fileList=$(git diff --diff-filter=d --cached --name-only | grep -E '\.js$') if [ ${#fileList} -lt 1 ]; then echo -e "You have no staged f...
import {SET_MODULES} from "../types"; export const getModules = (params = {}) => { return (dispatch) => { axios.get("/api/modules", { params: params }).then(response => { dispatch({ type: SET_MODULES, payload: response.data...
def format_config(config: dict) -> str: delta = config['CONF_DELTA'] name = config['CONF_NAME'] country = config['CONF_COUNTRY'] if delta > 60: return f"{name} will be traveling to {country}" else: return f"{name} is currently in {country}"
<filename>src/main/java/app/habitzl/elasticsearch/status/monitor/tool/client/data/node/NodeInfo.java<gh_stars>1-10 package app.habitzl.elasticsearch.status.monitor.tool.client.data.node; import javax.annotation.concurrent.Immutable; import java.io.Serializable; import java.util.Objects; import java.util.StringJoiner; ...
#!/bin/bash dieharder -d 4 -g 400 -S 2943218124
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DSA-2501-1 # # Security announcement date: 2012-06-24 00:00:00 UTC # Script generation date: 2017-01-01 21:06:25 UTC # # Operating System: Debian 6 (Squeeze) # Architecture: x86_64 # # Vulnerable packages fix on version: # - xen:4.0.1-5.2 # # Last versions re...
var path = require('path') var express = require('express') var cookieParser = require('cookie-parser'); var session = require('cookie-session'); var bodyParser = require('body-parser'); var methodOverride = require('method-override') var url = require("url") var onHeaders = require('on-headers') module.exports =...
#!/bin/bash # This script will build the project. export GRADLE_OPTS="-Xmx1g -Xms1g" if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo -e "Build Pull Request #$TRAVIS_PULL_REQUEST => Branch [$TRAVIS_BRANCH]" ./gradlew -Prelease.useLastTag=true -Pskip.loadtest=true build elif [ "$TRAVIS_PULL_REQUEST" == "false" ...
#!/bin/bash run_inference() { bit_config=$1 num_layers=$2 printf "%s\n" $bit_config python test_resnet_inference_time.py --bit-config $bit_config --num-layers $num_layers cp ./debug_output/resnet_generated.cu ./debug_output/resnet_manual.cu sed -i 's/h_w_fused_n_fused_i_fused_nn_fused_ii_fused_inner < 8;/h...
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.8.0
<reponame>gbtunze/sesegpu #include <cnpy.h> #include <stdio.h> #include <wordexp.h> #include <experimental/mdspan> namespace stdex = std::experimental; constexpr int side = 28; using mnisttype = stdex::basic_mdspan<uint8_t, stdex::extents<stdex::dynamic_extent, side, side> >; // Global scope to keep cnpy::NpyArray x_t...
# content of doc/autogen.py from keras_autodoc import DocumentationGenerator pages = { "layers/core.md": ["keras.layers.Dense", "keras.layers.Flatten"], "callbacks.md": ["keras.callbacks.TensorBoard"], } doc_generator = DocumentationGenerator(pages) doc_generator.generate("./sources")
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal_bio.h" #include <assert.h> // TODO: temporarily keeping the un-prefixed signature of this method // to keep tests running in CI. This will be removed ...
#ifndef LITE_PACK_NUMBER_H #define LITE_PACK_NUMBER_H #include <stdint.h> union __lip_num { int i; unsigned u; }; static inline union __lip_num __lip_num_int(int x) { return (union __lip_num){.i = x}; } static inline union __lip_num __lip_num_unsigned(unsigned x) { return (union __lip_num){.u = x}; ...
<reponame>segmentio/localstorage-retry<filename>lib/schedule.js 'use strict'; var each = require('@ndhoule/each'); var CLOCK_LATE_FACTOR = 2; var defaultClock = { setTimeout: function(fn, ms) { return window.setTimeout(fn, ms); }, clearTimeout: function(id) { return window.clearTimeout(id); }, Date...
<gh_stars>10-100 // Copyright (c) 2022 <NAME>. All Rights Reserved. // https://github.com/cinar/indicatorts import { add, changes, divide, divideBy, substract, } from '../../helper/numArray'; import { sma } from '../trend/sma'; /** * Default period for EMV. */ export const EMV_DEFAULT_PERIOD = 14; /** *...
@test "no failure prints no output" { run echo success } bats_require_minimum_version 1.5.0 # don't be fooled by order, this will run before the test above! @test "failure prints output" { run -1 echo "fail hard" } @test "empty output on failure" { false }
<reponame>goistjt/CSSE490-Hadoop package edu.rosehulman.goistjt; import org.apache.hadoop.hive.ql.exec.UDF; import org.apache.hadoop.io.Text; public final class Upper extends UDF { public Text evaluate(final Text t) { if (t == null) { return null; } return new Text(t.toString...
package com.netflix.dyno.contrib; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.netflix.dyno.connectionpool.impl.CountingConnectionPoolMonitor; import com.netflix.servo.DefaultMonitorRegistry; import com.netflix.servo.annotations.DataSourceType; import com.netflix.servo.annotations.Monitor; impo...
<reponame>jimmidyson/pemtokeystore // Copyright 2016 Red Hat, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless ...
<gh_stars>10-100 // import { useState } from "react"; import { useTheme, useMediaQuery } from "@material-ui/core"; // import { isMobileFromRdd } from "../Utils/device"; export default function useIsMobile(callback, delay) { // const [isMobile] = useState(isMobileFromRdd()); const theme = useTheme(); const isMo...
<reponame>firmanjabar/restaurant-app<gh_stars>10-100 import 'regenerator-runtime'; import './components/app-bar'; import './components/hero'; import './components/footer-ku'; import 'lazysizes'; import 'lazysizes/plugins/parent-fit/ls.parent-fit'; import '../styles/main.css'; import '../styles/responsive.css'; import '...
<filename>Dungeon_Offline_backend/db/migrate/20190819142539_create_world_characters.rb class CreateWorldCharacters < ActiveRecord::Migration[5.2] def change create_table :world_characters do |t| t.integer :character_id t.integer :world_id t.timestamps end end end
import re def count_word_occurrences(file_path): word_counts = {} with open(file_path, 'r') as file: for line in file: words = re.findall(r'\b\w+\b', line.lower()) for word in words: if word in word_counts: word_counts[word] += 1 ...
def largest_string(list_of_strings): longest = "" for string in list_of_strings: if len(string) >= len(longest): longest = string return longest
export class OAuthProvider { constructor() { } obj_to_query(obj) { var parts = []; for (var key in obj) { if (obj.hasOwnProperty(key)) { parts.push(encodeURIComponent(key) + '=' + encodeURIComponent(obj[key])); } } return "?" + parts.join('&'); } }
public class ExpressionEvaluator { public static int eval(String expression) { String[] tokens = expression.split(" "); Stack<Integer> stack = new Stack<>(); int result = 0; for (String token : tokens) { if (token.equals("+") || token.equals("-") || token.equals("*") || t...
<reponame>snowcrystall/gitaly_emg package cgroups import ( "fmt" "hash/crc32" "os" "strings" "github.com/containerd/cgroups" specs "github.com/opencontainers/runtime-spec/specs-go" "gitlab.com/gitlab-org/gitaly/v14/internal/command" cgroupscfg "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config/cgroups" ...
#!/usr/bin/env bash CHECKPOINT_DIR=$(dirname $0)/'../../checkpoints' mkdir -p $CHECKPOINT_DIR && cd $CHECKPOINT_DIR wget --content-disposition https://cloud.tsinghua.edu.cn/f/9ea515945bb2452696e8/?dl=1 echo "downloaded the checkpoint and putting it in: " $CHECKPOINT_DIR
const splitIntoTwoParts = (arr) => { const midpoint = Math.floor(arr.length / 2); const part1 = arr.slice(0, midpoint); const part2 = arr.slice(midpoint, arr.length); return [part1, part2] }; splitIntoTwoParts([5, 12, 18, 25]); // [[5, 12], [18, 25]]
/** * The GUI elements for the OGC-Server plugin. */ package io.opensphere.server.display;
#!/usr/bin/env bash # https://github.com/raycast/script-commands # dotfiles folder DOTFILES_FOLDER="$(pwd | grep -o '.*dotfiles')" # Load helper functions #shellcheck source=/dev/null source "$DOTFILES_FOLDER/lib/functions" SCRIPT_COMMANDS_FOLDER="$HOME"/Documents/Thiago/Repos/script-commands # Clone Scripts repos...
sudo apt-get install python3-tk
<reponame>adarshaacharya/csoverflow import { AuthActions, AuthState, AuthActionTypes } from './auth.types'; const initialState: AuthState = { token: localStorage.getItem('cstoken'), isAuthenticated: null, loading: false, user: null, }; export const authReducer = (state: AuthState = initialState, action: AuthA...
def downgrade(engine_name): globals()[f"downgrade_{engine_name}"]() def downgrade_registrar(): # Implement the schema downgrade for the 'registrar' database engine # Example: Revert changes made by upgrade_registrar function pass def downgrade_analytics(): # Implement the schema downgrade for the ...
package io.casperlabs.casper import cats.Monad import cats.syntax.functor._ import io.casperlabs.catscontrib.TaskContrib.TaskOps import io.casperlabs.shared.LogStub import monix.execution.Scheduler import monix.eval.Task import org.scalatest.{Assertion, Assertions, Matchers} import org.scalactic.source object scalate...
package com.napier.sem.queries; import com.napier.sem.objects.City; import com.napier.sem.objects.Continent; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import java.util.List; public class CityQueries { private C...
def compare_lists(lst1, lst2): if len(lst1) != len(lst2): return False for i in range(len(lst1)): if lst1[i] != lst2[i]: return False return True
import json def extract_state_and_msg(response): data = json.loads(response) state = data.get('state') msg = data.get('msg') return state, msg
sudo apt-get update # Install CodeDeploy Agent sudo apt-get install wget ruby-full -y cd /home/ubuntu wget https://bucket-name.s3.region-identifier.amazonaws.com/latest/install chmod +x ./install sudo ./install auto > /tmp/logfile sudo service codedeploy-agent status rm install # Install AWS CLI curl "https://awscli....
#!/bin/sh cd ../costaclub-web git pull https://nathan-costa:PDZAKT3b4@github.com/costacruise/costaclub-web.git master phraseapp pull var=( $(ls -t /www) ) gulp sudo \cp --verbose src/resources/core/*.* /www/${var[0]}/resources/core
import React from "react" const NewsletterTagLine = ({ content }) => ( <div className="c-newsletter__tagline">{content}</div> ) export default NewsletterTagLine
<gh_stars>1-10 package tftest import ( "context" "encoding/json" "fmt" "io" "log" "os" "os/exec" "os/signal" "path" "sync" "syscall" "testing" "golang.org/x/sys/unix" ) const ( tfstateFilename = "terraform.tfstate" planFilename = "plan.tf" ) // TerraformPluginCacheDir is where the plugins we downl...
#!/bin/sh dos2unix rc.local conf/serial-starter.d etc/dbus-serialbattery/service/run etc/dbus-serialbattery/service/log/run etc/dbus-serialbattery/LICENSE etc/dbus-serialbattery/README.md etc/dbus-serialbattery/start-serialbattery.sh etc/dbus-serialbattery/disabledriver.sh etc/dbus-serialbattery/installlocal.sh etc/dbu...
# Create Resource Group for Terraform Remote State groupName='demo-tfstate' groupLocation='Australia East' group=$(az group create --name ${groupName} --location "${groupLocation}" --verbose) # Create Storage Account for Terraform Remote State accountName=$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 12 | head -n 1) ...
var redback = require('../'); exports.createClient = function (options) { return redback.createClient('redis://localhost/11', options); };
<filename>tailwind.config.js module.exports = { theme: { extend: { colors: { primary: { lighter: '#fecdd3', default: '#f43f5e', darker: '#be123c', 50: '#fff1f2', 100: '#ffe4e6', 200: '#fecdd3', 300: '#fda4af', 400: '#fb...
import datetime import tempfile import json from pathlib import Path from telegram.client import Telegram def send_telegram_message(config_file): # Read configuration from the JSON file with open(config_file, 'r') as file: config = json.load(file) # Extract configuration values api_id = config...
<filename>open-sphere-base/mantle/src/main/java/io/opensphere/mantle/crust/DataUtil.java package io.opensphere.mantle.crust; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeMap; import java.util.TreeSet; import java.util.concurrent.atomic.AtomicInteger; import io.ope...
package com.st.map; import java.util.ArrayList; import java.util.HashMap; import java.util.Set; /* 需求: 创建一个ArrayList集合,存储三个元素,每一个元素都是HashMap,每一个HashMap的键和值都是String,并遍历 思路: 1:创建ArrayList集合 2:创建HashMap集合,并添加键值对元素 3:把HashMap作为元素添加到ArrayList集合 4:遍历ArrayList集合 给出如下的数据...
<gh_stars>0 const bodyParser = require('body-parser'); const cors = require('cors'); const express = require('express'); // local imports const authMiddleware = require('./middlewares/auth'); const containsSQLMiddleware = require('./middlewares/contains-sql'); const logger = require('../config/logger')(__filename); c...
<gh_stars>0 import * as path from 'path'; import * as fs from 'fs'; import { AbsoluteUrlMapper } from './mapper'; import { ImageCache } from '../util/imagecache'; export const relativeToOpenFileUrlMapper: AbsoluteUrlMapper = { map(fileName: string, imagePath: string) { let absoluteImagePath: string; ...
#!/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 ...
import {stdout, stderr} from 'node:process'; import {expectType} from 'tsd'; import supportsColor, {createSupportsColor, Options, ColorInfo} from './index.js'; const options: Options = {}; expectType<ColorInfo>(supportsColor.stdout); expectType<ColorInfo>(supportsColor.stderr); expectType<ColorInfo>(createSupportsCo...
# -*- coding: utf-8 -*- # Librerias Django: # Urls from django.conf.urls import url from .views import FixAlmacenView app_name = "ti" urlpatterns = [ url( r'^fix/almacen/$', FixAlmacenView.as_view(), name='fix_almacen' ), ]
<filename>com.ensoftcorp.open.dynadoc.core/src/com/ensoftcorp/open/dynadoc/core/wrapper/ClassMethodsWrapper.java package com.ensoftcorp.open.dynadoc.core.wrapper; import java.nio.file.Path; import java.util.List; import com.ensoftcorp.atlas.core.db.graph.Node; import com.ensoftcorp.atlas.core.xcsg.XCSG; import com.en...
# Copyright 2014 <NAME> # # 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, software ...
<reponame>janothan/Evaluation-Framework<filename>evaluation_framework/abstract_taskManager.py from abc import ABCMeta, abstractmethod """ It abstracts the behavior of a Task manager. It should be extended by each task manager. """ class AbstractTaskManager(metaclass=ABCMeta): def __init__(self): super()....
class Person { name: string; age: number; address: string; hobbies: string[]; constructor(name: string, age: number, address: string, hobbies: string[]) { this.name = name; this.age = age; this.address = address; this.hobbies = hobbies; } }
const compareStrings = (str1, str2) => { const str1Length = str1.length; const str2Length = str2.length; if (str1Length > str2Length) { return 1; } else if (str1Length < str2Length) { return -1; } else { for (let i = 0; i < str1Length; i++) { let result = str1.charCodeAt(i) - str2.charCodeAt(i); if (...
# Install ripgrep (grep but better) apt-get install ripgrep # General kernel and system information, all flags. uname -a # Information about the distro and its version. cat /etc/os-release head -n 2 /etc/os-release # Login and out login logout exit # CTRL+D # Shutdown is safer than poweroff shutdown now reboot now ...
def update_django_settings(settings: dict, debug: bool) -> dict: updated_settings = settings.copy() updated_settings['DEBUG'] = debug updated_settings['TEMPLATES'][0]['OPTIONS']['debug'] = debug if debug: updated_settings['INSTALLED_APPS'].append('debug_toolbar') return updated_settings
# # Copyright (c) Dell Inc., or its subsidiaries. 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 # export pravega_clie...
import sqlite3 from structures.ExperimentInfo import ExperimentInfo def create_connection(db_file): """ create a database connection to the SQLite database specified by db_file :param db_file: database file :return: Connection object or None """ conn = None try: conn = sqlite3...
#!/bin/sh -e # # Copyright (c) 2012, Intel Corporation. # Copyright (c) 2020, Foundries.IO Ltd # All rights reserved. # # install.sh [device_name] [rootfs_name] # PATH=/sbin:/bin:/usr/sbin:/usr/bin # minimal ESP partition size is 100mb boot_size=100 # Get a list of hard drives hdnamelist="" live_dev_name=`cat /proc/...
# /usr/share/console-login-helper-messages/profile.sh # Originally from https://github.com/coreos/baselayout/blob/master/baselayout/coreos-profile.sh # Only print for interactive shells. if [[ $- == *i* ]]; then FAILED=$(systemctl list-units --state=failed --no-legend --plain) if [[ ! -z "${FAILED}" ]]; then COU...
#!/bin/bash # This script parses in the command line parameters from runCust, # maps them to the correct command line parameters for DispNet training script and launches that task # The last line of runCust should be: bash $CONFIG_FILE --data-dir $DATA_DIR --log-dir $LOG_DIR # Parse the command line parameters # tha...
<reponame>TimCrooker/sao import { colors, logger } from 'swaglog' export class Terror extends Error { grit: boolean cmdOutput?: string constructor(message: string) { super(message) this.grit = true this.name = this.constructor.name if (typeof Error.captureStackTrace === 'function') { Error.captureStackT...
<filename>modules/component-web-core/src/main/java/com/nortal/spring/cw/core/web/component/element/FormDataElement.java package com.nortal.spring.cw.core.web.component.element; import java.util.Collection; /** * Tegemist on liidese kirjeldusega, mis täiendavalt implementeerib liidest {@link FormElement}. Antud liide...
package com.example.apahlavan1.flickrbrowser; import android.os.AsyncTask; import android.util.Log; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; /** * Created by apahlavan1 on 1/9/2016...
<reponame>ioitiki/hair_salon export class Team { constructor(public name: string, public game: string, public players: any[], public description: string, public image_src: string) {} }
pip uninstall pyindigo -y sudo rm -rf ./build ./dist ./src/pyindigo.egg-info cd src/pyindigo_client make reinstall cd ../.. python setup.py install
#! /bin/bash git clone -b monolith https://github.com/express42/reddit.git cd reddit && bundle install
import re from typing import List def extract_module_names(code: str) -> List[str]: module_names = set() import_regex = r"from\s+\.\s+import\s+(\w+)\s+#\s*noqa" matches = re.findall(import_regex, code) for match in matches: module_names.add(match) return list(module_names)
#!/bin/bash # Copyright 2019 Tsinghua University (Author: Zhiyuan Tang) # Apache 2.0. # This script for oriental language recognition is based on ../../sre16/v2/run.sh which is used for speaker recognition. . ./cmd.sh . ./path.sh stage=1 set -eu ###### Bookmark: basic preparation ###### # Prepare training set ...
import React from "react"; const SpecialButton = props => { return <button className="button specialButton">{props.special}</button>; }; export default SpecialButton;
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. GLSA_WHITELIST=( 201412-09 # incompatible CA certificate version numbers 201908-14 # backported both CVE fixes 201909-01 # Perl, SDK only 201909-0...
import styled from "styled-components"; import { spacingScale } from "../../utils/spacing"; export const Wrapper = styled.section` display: flex; justify-content: center; margin: ${spacingScale.spacing_xxl}; `; export const InnerWrap = styled.div` display: flex; flex-direction: column; align-items: center...
curl -o 20170101.html 'http://likumi.lv/body_print.php?id=89648&version_date=01.01.2017&grozijumi=1&pielikumi=0&saturs=1&piezimes=0&large_font=0' -H 'DNT: 1' -H 'Accept-Encoding: gzip, deflate, sdch' -H 'Accept-Language: en-US,en;q=0.8,de;q=0.6,lv;q=0.4,ru;q=0.2' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozill...
#!/bin/bash g++ -I../src ../src/md5.c ../src/sha1.c ../src/sha2.c hash_test.c -o hash_test g++ -I../src ../src/hmac_sha1.c ../src/sha1.c hmac_test.c -o hmac_test g++ -I../src ../src/pbkdf2.c ../src/hmac_sha1.c ../src/sha1.c pbkdf_test.c -o pbkdf_test g++ -I../src ../src/aes.c aes_test.c -o aes_test
#!/bin/sh name=${1%_service} echo "Redeploying $name" kubectl config use-context kind-experimental kubectl rollout restart deployment "$name" -n uc4-lagom