text
stringlengths
1
1.05M
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * 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 requ...
<reponame>trulyronak/bot module.exports = { name: '/matcha', description: 'Role!', execute(msg, args) { msg.reply(JSON.stringify(args)); const guild = msg.member.guild; const role = guild.roles.find(role => role.name === 'Matcha'); const member = msg; console.log(member); member.roles.add(role); ...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-N-VB-ADJ/model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-N-VB-ADJ/512+512+512-shuffled-N-VB-first-256 --d...
<filename>src/myConfig.js var siteInfo = { uniacid: '4',//公众号id t:4,//公众号id i:4,//公众号id homeid:30,//首页id mid:localStorage.getItem('userid'), openid:localStorage.getItem('openid'), baseUrl:'/api', acid: '2004', multiid: '2004', siteroot: 'http://cscs.ylhhyk.com/app/index.php', domain: 'http://cscs...
<filename>c2d-core/src/main/java/info/u250/c2d/box2d/model/fixture/b2CircleFixtureDefModel.java package info.u250.c2d.box2d.model.fixture; import info.u250.c2d.box2d.model.b2FixtureDefModel; /** * @author xjjdog */ public class b2CircleFixtureDefModel extends b2FixtureDefModel { private static final l...
import React from 'react' import PropTypes from 'prop-types' import { makeStyles } from '@material-ui/core/styles' import Tabs from '@material-ui/core/Tabs' import Tab from '@material-ui/core/Tab' import Typography from '@material-ui/core/Typography' import Box from '@material-ui/core/Box' import './VerticalTabs.css' i...
<gh_stars>0 from zbunker import app, db from flask import render_template, redirect, flash, url_for, request from zbunker.forms import LoginForm, RegistrationForm from zbunker.models import User from flask_login import login_user, current_user, logout_user, login_required @app.route("/") def landing(): return ren...
<reponame>Sparkyxs/spark /* * 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 * ...
<filename>site/componentExample/CheckboxExample/index.ts<gh_stars>1-10 export { default } from './checkbox.example';
#!/bin/bash ## Returns appropriate symfony console location function sf() { if [ "${OSTYPE}" = 'msys' ]; then if [ -f ./app/console ]; then echo_info "./app/console \"$*\"" ./app/console "$@" elif [ -f ./bin/console ]; then echo_info "./bin/console \"$*\"" ...
<reponame>jamacanbacn/splits-io StrongMigrations.start_after = 20200207203633
find_median <- function(vec) { vec <- sort(vec) mid <- ceiling(length(vec)/2) if (length(vec)%%2 == 0){ return((vec[mid] + vec[mid+1])/2) } else { return(vec[mid]) } } med <- find_median(c(2, 3, 4, 7)) print(med)
const { Command } = require('klasa'); const { MessageEmbed } = require('discord.js'); const moment = require('moment'); module.exports = class extends Command { constructor(...args) { super(...args, { enabled: true, runIn: ['text'], aliases: [], cooldown: 2, permissionLevel: 0, description: 'Brie...
def filter_strings(strings, filter_function): filtered = [] for string in strings: if filter_function(string): filtered.append(string) return filtered
/* * Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the Li...
/* * Copyright (c) 2021 Huawei Device 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 or a...
#!/usr/bin/env bash PROJECT_ROOT=$(realpath $(dirname "$BASH_SOURCE")) PROJECT_ROOT_DOCKER="//ts-proto" # double slash to support git bash on windows # Alias docker-compose to make it usable from anywhere. function _docker-compose() { if [ uname -a | grep arm64 ] then ARCH=aarch_64 fi docker-compose -f $P...
import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core'; import {MdcTextField} from './text-field'; @Component({ selector: 'mdc-textarea', exportAs: 'mdcTextarea', host: { 'class': 'mdc-text-field', '[class.mdc-text-field--textarea]': 'true', '[class.mdc-t...
# test compile builtin def have_compile(): try: compile return True except NameError: return False def test(): global x c = compile("print(x)", "file", "exec") try: exec(c) except NameError: print("NameError") # global variable for compiled code t...
#!/bin/sh set -e # validate required variables are set if [ -z "$UspLicenseKey" ] && [ -z "$USP_LICENSE_KEY" ] then echo >&2 "Error: UspLicenseKey environment variable is required but not set." exit 1 elif [ -z "$UspLicenseKey" ] then export UspLicenseKey=${USP_LICENSE_KEY} fi # first arg is `-f` or `...
#!/bin/bash function new { sudo certbot --nginx if [ $? -eq 0 ] then echo "Obtained Certificate Successfully :)" else echo "Error while attempting to Obtain a new Certificate :(" fi } function renew { sudo certbot renew --nginx if [ $? -eq 0 ] then echo "Certificate Renewal Successful:)...
import { Component, OnInit,ViewContainerRef } from '@angular/core'; import { LocalDataSource } from 'ng2-smart-table'; import {CustomerService} from '../../services/customer.service'; import {AuthenticateService} from '../../services/authenticate.service'; import { ToastsManager } from 'ng2-toastr/ng2-toastr'; @Co...
# install packages install.packages("ggplot2") install.packages("shiny") # load packages library(ggplot2) library(shiny) # create bar chart fruit <- c("Apples", "Bananas", "Oranges", "Kiwis") number <- c(10, 8, 5, 3) dataset <- data.frame(fruit, number) ggplot(dataset, aes(x = fruit, y = number)) + geom_bar(stat="id...
/******************************************************************************* * Copyright (c) 2008 SAP AG. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http:...
def repeat_char(string, iterations): repeated_string = '' for char in string: repeated_string += char * iterations return repeated_string print(repeat_char("Hello", 5)) # Outputs: # Hhhhhheeeeeellllllllooooo
class RunCleanupJob < ApplicationJob # Adding or deleting a job? Reflect the change in the QUEUES environment variable in docker-compose.yml and # docker-compose-production.yml. queue_as :cleanup_runs def perform(run) return if run.nil? return unless run.file.nil? run.destroy end end
#!/bin/bash mkdir -p "$PREFIX/bin" if [ "$(uname)" == "Darwin" ]; then cp mafSplitPos "$PREFIX/bin" else export MACHTYPE=x86_64 export BINDIR=$(pwd)/bin mkdir -p "$BINDIR" (cd kent/src/lib && make) (cd kent/src/htslib && make) (cd kent/src/jkOwnLib && make) (cd kent/src/hg/lib && make) ...
<filename>components/enclave/index.js const config = require("../../config"); const {headersMiddleware, responseModifierMiddleware, requestBodyJSONMiddleware} = require("../../utils/middlewares"); const path = require("path"); function DefaultEnclave(server) { const { headersMiddleware, responseMod...
module AssetTemplate class SimpleMarkdownTemplate < Tilt::Template self.default_mime_type = 'text/html' # self.metadata[:mime_type] = 'text/html' def prepare load 'markdown_extensions.rb' end def evaluate(scope, locals, &block) SimpleMarkdown.convert...
<filename>node_modules/react-icons-kit/md/ic_sports_mma.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_sports_mma = void 0; var ic_sports_mma = { "viewBox": "0 0 24 24", "children": [{ "name": "g", "attribs": {}, "children": [{ "name": "rect", "...
<filename>MK/module/MK_Main.cpp /** * MK & MK4due 3D Printer Firmware * * Based on Marlin, Sprinter and grbl * Copyright (C) 2011 <NAME> / <NAME> * Copyright (C) 2013 - 2016 <NAME> @MagoKimbra * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public...
#!/bin/bash docker build -t miniants/tomcat:8.0.33_jdk .
#!/bin/bash # # MIT License # Copyright (c) 2016-2020 Pierre-Yves Lapersonne (Mail: dev@pylapersonne.info) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, ...
<filename>src/components/PostLink.js import React from "react" import { Link } from "gatsby" import * as styles from "../styles/writings.module.css" const PostLink = ({ post }) => { console.log(`"tag" class name in 'post-link.js': ${styles.tag}`) let tags = post.frontmatter.tags.map(tag => ( <span className={s...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
<filename>automation.py from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import...
public class PalindromeChecker { public static boolean isPalindrome(String str) { str = str.replaceAll("[^a-zA-Z0-9]", "").toLowerCase(); // Remove non-alphanumeric characters and convert to lowercase int left = 0; int right = str.length() - 1; while (left < right) { if ...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/1024+0+512-N-IP/13-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/1024+0+512-N-IP/13-1024+0+512-N-1 --do_eval --per_device_eval_...
// // WebViewBaseViewController.h // WebViewTests // // Created by <NAME> on 28/11/17. // Copyright © 2017 jcesarmobile. All rights reserved. // #import <UIKit/UIKit.h> @interface WebViewBaseViewController : UIViewController <UIGestureRecognizerDelegate> @property (strong, nonatomic) NSString * fileName; @end
#!/bin/bash echo "Clearing caches." sync && echo 3 | tee /host_proc/sys/vm/drop_caches cd /root common_opt="" start_fmt=$(date +%Y-%m-%d\ %r) echo "STARTING RUN AT $start_fmt" cd /mlperf python python/main.py $opts --output /output end_fmt=$(date +%Y-%m-%d\ %r) echo "ENDING RUN AT $end_fmt"
import numpy as np def is_float(dtype): """Return True if datatype dtype is a float kind""" return np.issubdtype(dtype, np.floating) def is_number(dtype): """Return True if datatype dtype is a number kind""" return np.issubdtype(dtype, np.number)
#!/bin/bash BLUE='\033[1;34m' GREEN='\033[0;32m' NC='\033[0m' # No Color echo -e "${GREEN}Retrieving the Control Machine${NC}" control=$(vagrant global-status | grep odin0 | cut -d " " -f1) echo -e "${GREEN}Making hosts ssh accessible" vagrant ssh "$control" -c "sudo apt install sshpass" vagrant ssh "$control" -c "ss...
def multiply_matrix(matrix_1, matrix_2): """Multiply two given matrices and returns the resulting matrix""" # Initialize the resulting matrix result_matrix = [] # For each row in matrix 1 for i in range(len(matrix_1)): # Initialize the row of the result matrix result_row = [] ...
#include <iostream> #include "gtest/gtest.h" #include "mvlc_readout_config.h" #include "vme_constants.h" using std::cout; using std::endl; using namespace mesytec::mvlc; TEST(mvlc_readout_config, CrateConfigYaml) { CrateConfig cc; { cc.connectionType = ConnectionType::USB; cc.usbIndex = 42;...
function toggleVisibility(id){ var e = document.getElementById(id); if(e.style.display === 'none') e.style.display = 'block'; else e.style.display = 'none'; }
$number = 25; if ($number % 5 == 0 && $number % 7 == 0) { echo "$number is divisible by both 5 and 7"; }
name = input("What is your name? ") print("Hello, my name is", name + ".")
echo -e "\n### Provisioning... ###\n\n" apt-get update --fix-missing 2> /dev/null apt-get install -y net-tools \ curl \ git \ vim \ tmux \ docker.io \ sysdig \ nodejs \ npm echo -e "\n### Enable tab-completion for Docker ####\n\n" source /etc/bash_completion.d/docker.io echo -e "\n### Update to latest Docke...
# # Example shell file for starting PhoenixMiner.exe to mine ETC # # IMPORTANT: Replace the ETC address with your own ETC wallet address in the -wal option (Rig001 is the name of the rig) ./PhoenixMiner -pool ssl://eu1-etc.ethermine.org:5555 -wal 0xBd8651614297aBfB7eb5BE63D70A2856696Ef7DC.Rig001 -coin etc
#!/usr/bin/env bash # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #...
#!/bin/bash if [ -z "${MACHINE}" ]; then echo "Environment variable MACHINE not set" echo "Example: export MACHINE=raspberrypi2 or export MACHINE=raspberrypi" exit 1 fi if [ "${MACHINE}" != "raspberrypi2" ] && [ "${MACHINE}" != "raspberrypi" ]; then echo "Invalid MACHINE: ${MACHINE}" exit 1 fi BOOTLDRFILES="boo...
#!/bin/bash -e # vim: set ft=sh ff=unix fileencoding=utf-8 expandtab ts=4 sw=4 : # -------------- # TEMPLATE START # -------------- source env.source if [ "${USER}" != "" ] && [ "${PASS}" != "" ]; then MY_USER_PASS="${USER}:${PASS}@" else if [ "${USER}" != "" ] && [ "${PASS}" == "" ]; then echo "val...
#!/bin/bash # # Script original développé par BarracudaXT (BXT) # Modifié par ex_rat # # cd /tmp # git clone https://github.com/exrat/Script-Debug-MonDedie # cd Script-Debug-MonDedie # chmod a+x Script-Debug-Mondedie.sh && ./Script-Debug-Mondedie.sh # # Possibilité de lancer avec un nom d'user en argument # ./Script-De...
<reponame>yamamoto-febc/devops-example-client // This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. document.querySelector('#btn').addEventListener('click', getData); function getData() { // TODO i...
#!/bin/sh set -ev cd $(dirname "$0") # Only argument is ProjectId or Bucket Name (deprecated) # When running as a GitHub action, building and pushing are separated. if [ "$DONT_BUILD" != "true" ]; then rm -rf staticContentBuild npm run prepare-static-serving fi if [ "$DONT_PUSH" != "true" ]; then BUCKET=$1 ...
<gh_stars>1-10 package com.newegg.ec.redis.service; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.newegg.ec.redis.entity.Cluster; import com.newegg.ec.redis.entity.RDBAnalyze; import com.newegg.ec.redis.entity.RDBAnalyzeResult; import com.newegg.ec.redis.entity.Report...
def euclidean_distance(p1, p2): x1, y1, z1 = p1 x2, y2, z2 = p2 return ((x1 - x2)**2 + (y1 - y2)**2 + (z1 - z2)**2)**0.5 # Compute the Euclidean distance between Point 1 and Point 2 dist = euclidean_distance((1, 2, 3), (4, 5, 6)) print(dist) # Output: 5.196152422706632
package com.github.saphyra.authservice.common; import javax.servlet.http.HttpServletRequest; import org.springframework.http.HttpMethod; import org.springframework.stereotype.Component; import lombok.RequiredArgsConstructor; @Component @RequiredArgsConstructor public class RequestHelper { private final CommonAu...
import { ThemeOptions } from '@material-ui/core'; export const Light: ThemeOptions = { palette: { type: 'light', background: { default: '#F0F0F0', }, }, };
<filename>src/modules/user/services/ListAllGamesService.ts<gh_stars>0 import IGame from 'shared/domain/entities/IGame'; import IGamesRepository from 'shared/domain/repositories/IGamesRepository'; interface IExecute { games?: IGame[]; error?: string; shouldLogout?: boolean; } export default class ListAllGamesSer...
#!/bin/sh COMPONENTS=pretix/pretix-plugin-pretix-cinesend DIR=pretix_cinesend/locale # Renerates .po files used for translating the plugin set -e set -x # Lock Weblate for c in $COMPONENTS; do wlc lock $c; done # Push changes from Weblate to GitHub for c in $COMPONENTS; do wlc commit $c; done # Pull changes from G...
func getMessages(count: Int, allowedSenders: [MockUser], completion: ([MockMessage]) -> Void) { var messages: [MockMessage] = [] // Disable Custom Messages UserDefaults.standard.set(false, forKey: "Custom Messages") for _ in 0..<count { let uniqueID = UUID().uuidString let user = allowed...
def _base_transaction(transaction: dict) -> dict: base_info = { "event_id": transaction.get("event_id"), "contexts": { "trace": transaction.get("contexts", {}).get("trace", {}) } } return base_info
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-N-VB-ADJ-ADV/13-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-N-VB-ADJ-ADV/13-1024+0+512-shuffled-1 --d...
from random import randint import time temperatura = [randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40), randint(10,40)] umidade = [randint(50,80),...
<reponame>bus-detective/bus_detective_ng /* global HTMLElement */ import Leaflet from 'leaflet'; Leaflet.Control.Attribution.prototype.options.prefix = ' Leaflet'; Leaflet.Icon.Default.imagePath = '/images/'; class StopMap extends HTMLElement { constructor () { super(); this.busMarkers = {}; this.shapeL...
<reponame>mscienski/code-challenge-starter-js<filename>scripts/dev/index.js #!/usr/bin/env node_modules/.bin/babel-node import colors from 'colors'; import exec from '../helpers/exec'; console.log(''); console.log('Running Development Server'.blue); const execCmd = 'node server'; console.log(execCmd.yellow); exec(ex...
// // TwoViewController.h // Task8_3 // // Created by <NAME> on 04.06.2022. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface TwoViewController : UIViewController @end NS_ASSUME_NONNULL_END
#!/usr/bin/env bash # ----------------------------------------------------------------------------- # Safety settings (see https://gist.github.com/ilg-ul/383869cbb01f61a51c4d). if [[ ! -z ${DEBUG} ]] then set ${DEBUG} # Activate the expand mode if DEBUG is anything but empty. else DEBUG="" fi set -o errexit # Ex...
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["UserNewView"],{ /***/ "./node_modules/ts-loader/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/Views/Users/EditUser.vue?vue&type=script&lang=ts&": /*!***************************************************************************************...
<reponame>zexho994/BloomFilter<gh_stars>0 package BloomFilter import ( "fmt" "strconv" "testing" ) func TestBloomFilter_add(t *testing.T) { bf := NewBloomFilter(1000, 0.01) bf.addString("hello") bf.addString("zexho") bf.addString("lishan") bf.addString("caohen") bf.addString("liangzai") bf.add([]byte{byte(1...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.controladores; import java.io.IOException; import java.io.PrintWriter; import java.util.Collections; import java...
DIR="samples/server/*.py" epydoc $DIR --no-private -o 'docs' -n 'StitchingBox Python Server documentation'
#!/bin/bash set -eu -o pipefail outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $outdir mkdir -p $PREFIX/bin cp -R * $outdir/ cp $RECIPE_DIR/msgf_plus.py $outdir/msgf_plus ls -l $outdir ln -s $outdir/msgf_plus $PREFIX/bin chmod 0755 "${PREFIX}/bin/msgf_plus"
/* Copyright 2019 The Ceph-CSI 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, so...
const path = require('path'); const rule = require('../../../lib/rules/no-get'); const RuleTester = require('eslint').RuleTester; const { ERROR_MESSAGE_GET, ERROR_MESSAGE_GET_PROPERTIES } = rule; const ruleTester = new RuleTester({ parser: require.resolve('@babel/eslint-parser'), parserOptions: { ecmaVersion:...
apt install \ build-essential \ cmake \ curl \ zip unzip tar \ libglu1-mesa-dev \ mesa-utils \ xorg-dev \ libx11-dev \ libwayland-dev \ uuid-dev \ libsdl2-dev \
#!/bin/bash # Imports source ./src/config.sh; SERVICE_PATH="$SERVICES_DIR/$SERVICE_NAME"; # Uninstall if [ "$1" == "uninstall" ]; then rm -rf $INSTALL_DIR; rm -f $BINARY; rm -f $SERVICE_PATH; echo "Uninstalled battery-watcher"; exit 0; fi script_contents=" #!/bin/bash\n cd $INSTALL_DIR && ./battery.sh \"\...
<filename>spec/requests/bookmarklet_spec.rb require "spec_helper" describe "the simple bookmarklet" do it "should add 'Foo vs. Baz' to the page", :js => true do visit "/" page.should have_content 'FooBaz Insert' page.should_not have_content 'Foo vs. Baz' click_on 'FooBaz Insert' page.should ...
<reponame>Teles1/LuniaAsio #pragma once #include "NonPlayerModifierManager.h" namespace Lunia { namespace XRated { namespace Database { namespace Info { const NonPlayerModifierInfo::ModifierInfo* NonPlayerModifierTable::GetModifierInfo(NonPlayerData::NpcType type, int userCnt, int nonPlayerLevel) const {...
#!/usr/bin/env bash # Install the repository configuration. Replace <release> with 16.04 or 18.04 as appropriate for your release of Ubuntu curl https://packages.microsoft.com/config/ubuntu/__release/prod.list > ./microsoft-prod.list # Copy the generated list sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/ #I...
# platform = Red Hat Enterprise Linux 7 # Include source function library. . /usr/share/scap-security-guide/remediation_functions package_command install firewalld
#!/bin/bash -eu # Copyright 2019 Google 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 required by applicable law or agree...
import React from 'react'; import { action } from '@storybook/addon-actions'; import SelectList from '@ichef/gypcrete-form/src/SelectList'; import SelectOption from '@ichef/gypcrete-form/src/SelectOption'; export default { title: '@ichef/gypcrete-form|SelectList', component: SelectList, subcomponents: { SelectO...
export default (store) => ({ path : 'checkout', getComponent (nextState, cb) { require.ensure([], (require) => { const Checkout = require('./containers/CheckoutContainer').default cb(null, Checkout) }, 'checkout') } })
const fs = require("fs"); const path = require("path"); const glob = require("glob"); const _get = require("lodash/get"); const filenameMatchesPattern = require("../graph-utl/match-facade") .filenameMatchesPattern; const pathToPosix = require("./utl/path-to-posix"); const transpileMeta = require("./transpile/meta"); ...
#!/usr/bin/env bash echo "update" sudo apt-get update echo "install requirements" sudo apt-get install -y build-essential sudo apt-get install -y checkinstall sudo apt-get install -y libreadline-gplv2-dev sudo apt-get install -y libncursesw5-dev sudo apt-get install -y libssl-dev sudo apt-get install -y libsqlite3-dev...
<filename>src/core/map/soldier_spawn_target.h #ifndef INCLUDED_CORE_MAP_SOLDIER_SPAWN_TARGET_H #define INCLUDED_CORE_MAP_SOLDIER_SPAWN_TARGET_H #include "platform/i_platform.h" #include "i_target.h" #include "../scene.h" namespace map { class SoldierSpawnTarget: public ITarget { public: SoldierSpawnTarget( int32...
# ResNet34 x-vector with linear filter bank and binary multi-head attention pooling # acoustic features feat_config=conf/linfbank64_stmn_8k.yaml feat_type=linfbank64_stmn # x-vector training nnet_data=alllangs_nocv_nocnceleb nnet_num_augs=4 aug_opt="--train-aug-cfg conf/reverb_noise_aug.yaml --val-aug-cfg conf/reve...
package com.cyosp.mpa.api.rest.homebank.v1dot2.response; import lombok.Getter; import lombok.Setter; /** * Created by CYOSP on 2017-07-26. */ @Getter @Setter public class OperationResponse extends RootResponse { private Long date; private String dateFormatted; private String amount; private Stri...
#!/bin/sh isThunderSecurityEnabled="0" command -v tr181 2&>/dev/null if [ $? -eq 0 ] then echo "checking thunder security" THUNDER_SECURITY_ENABLED=`tr181 -g Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.ThunderSecurity.Enable 2>&1` if [ $THUNDER_SECURITY_ENABLED = "true" ]; then echo "Thunder security is e...
#!/bin/bash # # 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 # distr...
import React from 'react'; import { StyleSheet, Text, View, ViewStyle } from 'react-native'; import Touchable from 'react-native-platform-touchable'; import { CustomIcon } from '../lib/Icons'; import { themes } from '../constants/colors'; import sharedStyles from '../views/Styles'; import { useTheme } from '../theme';...
using Examine.Search; namespace DocumentManagementSystem { public class DocumentSearchValue : IExamineValue { public string DocumentId { get; set; } public string Title { get; set; } public string Content { get; set; } public string Name => "DocumentSearchValue"; publi...
#!/usr/bin/env bash sudo -v CWD="$( cd "$( dirname "$0" )" && pwd )" CASK="docker" source "${CWD}/../../.lib.sh" case $1 in install) run "brew cask install ${CASK}" ;; uninstall) $OSASCRIPT -e 'quit application "Docker"' >> $LOG 2>&1 sleep 1s run "brew cask uninstall ${CASK}" brew cask z...
import { createSlice } from '@reduxjs/toolkit' const channelSlice = createSlice({ name: 'channelReducer', initialState: { currentChannelId: null }, reducers: { setCurrentChannelId: (state, action) => { state.currentChannelId = action.payload } } }) export const { setCurrentChannelId } = ch...
#!/bin/bash if [ $# -lt 4 ] then echo "Missing arguments. Execute: ./scripts/sh/steps/0_2_require_account_balances.sh network account_index min_dai_amount min_usdc_amount min_link_amount" echo "" echo "Example: ./scripts/sh/steps/0_2_require_account_balances.sh ropsten 0 DAI 1000 2000 3000" echo " It...
<gh_stars>1-10 /* SimpleProtocols - A protocol generator Copyright (C) 2017 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (...
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
#!/bin/bash X264_REPO="https://github.com/mirror/x264.git" X264_COMMIT="bfc87b7a330f75f5c9a21e56081e4b20344f139e" ffbuild_enabled() { [[ $VARIANT == lgpl* ]] && return -1 return 0 } ffbuild_dockerbuild() { git-mini-clone "$X264_REPO" "$X264_COMMIT" x264 cd x264 local myconf=( --disable-c...