text
stringlengths
1
1.05M
import { format, parse } from './kustomize-image'; test('parse image version override', () => { const image = parse('foo/bar:v1.0.0'); expect(image.name).toBe('foo/bar'); expect(image.newTag).toBe('v1.0.0'); }); test('format image version override', () => { const formatted = format({ name: 'foo/bar',...
#!/usr/bin/env bash # set -e: exit asap if a command exits with a non-zero status set -e echoerr() { printf "%s\n" "$*" >&2; } # print error and exit die () { echoerr "ERROR: $1" # if $2 is defined AND NOT EMPTY, use $2; otherwise, set to "150" errnum=${2-110} exit $errnum } # Required params (some) [ -z "$...
#!/bin/bash export KSI_CONF=test/test.cfg @test "CDM test: use invalid stdin combination" { run src/logksi verify --log-from-stdin --input-hash - test/resource/interlink/ok-testlog-interlink-1.logsig [ "$status" -eq 3 ] [[ "$output" =~ "Error: Multiple different simultaneous inputs from stdin (--input-hash -, --lo...
/* * 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 colegio; import java.awt.HeadlessException; import javax.swing.JOptionPane; /** * * @author CesarCuellar */ public class ...
package com.inner.lovetao.loginregister.di.module; import com.inner.lovetao.loginregister.mvp.contract.BindPhoneActivityContract; import com.inner.lovetao.loginregister.mvp.model.BindPhoneActivityModel; import dagger.Binds; import dagger.Module; /** * desc: * Created by xcz * on 2019/01/28 */ @Module public abs...
<gh_stars>10-100 import React, {Component} from 'react' import {Map} from 'immutable' import {List, Icon, Tag} from 'antd' import {send} from 'sockets/socket-actions' import {API_ACTIONS} from 'consts' import {connect} from 'react-redux' import {createStructuredSelector} from 'reselect' import {filesSelector, filterSel...
REMOTE_URL="https://git.webkit.org/git/WebKit.git" BASE_BRANCH="master" BASE_REVISION="633b5f0dd3b32d0cfdcae97e191c5b010e18a0e0"
#!/bin/bash # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributi...
import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam # prepare data X = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) y = np.array([0.5, 3.5, 6.5]) # build model model = Sequential() model.add(Dense(1, input_dim=3)) # compile model model.compile(optimi...
<filename>src/benchmarks/ReactBenchmark.js import React, { Component } from "react"; import ButtonsRow from "../ButtonsRow"; const N = 1000; class ReactBenchmark extends Component { beforeTime = 0; afterTime = 0; times = []; state = { nodes: [] }; componentWillUpdate() { this...
#!/bin/bash # ------------------------------------------------------- # (1) setup orderer-ca # ------------------------------------------------------- # create install dir mkdir -p ca/server mkdir -p ca/client/admin # start ca docker-compose up -d cp ./ca/server/crypto/ca-cert.pem ./ca/client/admin/tls-ca-cert.pem ...
#!/usr/bin/env bash # Install goenv reset_goenv() { eval "$(goenv init -)" GO_VER="$(goenv install --list | grep -v [a-z] | grep 1.11 | tail -n1 | awk '{ print $1 }')" if [ ! -d ${HOME}/.goenv/versions/${GO_VER} ]; then goenv install ${GO_VER} goenv global ${GO_VER} fi } # Source for jenv from ~/.extr...
#!/bin/bash # -------------------------------------------------------------------------------- # Assignment 1 finder.sh script # Make executable with chmod u+x and run with ./finder.sh <filedir> <searchstr> # Author: Jake Michael # -------------------------------------------------------------------------------- # ensu...
from alembic.config import Config from alembic.runtime.migration import MigrationContext from alembic.autogenerate import produce_migrations from alembic.operations import Operations from alembic import command def generate_alembic_migration_script(base_dir, database_uri): alembic_cfg = Config() alembic_cfg.se...
export OCUSER=$1 export OCPASSWD=$2 export MASTERPUBLICHOSTNAME=$3 export NAMESPACE=$4 export APIKEYUSERNAME=$5 export APIKEY=$6 export STORAGEOPTION=$7 export ARTIFACTSLOCATION=${8::-1} export ARTIFACTSTOKEN="$9" export HOME=/root # Download Installer files assembly="wml" version="2.1.0.0" storageclass=$STORAGEOPTION...
<gh_stars>1-10 /* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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 * * h...
import { ClipPath } from '../../vector/clippath/clippath' import { SVGWrapperAnimator } from './wrapper' @SVGClipPathAnimator.register('ClipPath') export class SVGClipPathAnimator extends SVGWrapperAnimator< SVGClipPathElement, ClipPath > {}
#!/bin/bash # Created by: Emanuele Bugliarello (@e-bug) # Date created: 9/4/2019 # Date last modified: 9/4/2019 PROJDIR=$HOME/pascal INDIR=$PROJDIR/data/wmt17deen/corpus OUTDIR=$PROJDIR/data/wmt17deen/tags_root lang=en TRAIN=train.tok.tok.bpe.32000.$lang VALID=valid.tok.tok.bpe.32000.$lang TEST=test.tok...
/* * 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.curso.factorialwsmvn; import java.util.stream.Stream; import javax.jws.WebService; import javax.jws.WebMethod; import java...
<reponame>tabris233/go_study package main import ( "fmt" "net/http" "os" "strings" "golang.org/x/net/html" ) // forEachNode针对每个结点x,都会调用pre(x)和post(x)。 // pre和post都是可选的。 // 遍历孩子结点之前,pre被调用 // 遍历孩子结点之后,post被调用 func forEachNode(n *html.Node, pre, post func(n *html.Node)) { if pre != nil { pre(n) } for c := n....
<filename>metals/src/main/scala/scala/meta/metals/providers/DefinitionProvider.scala<gh_stars>0 package scala.meta.metals.providers import scala.meta.metals.ScalametaEnrichments._ import scala.meta.metals.Uri import org.langmeta.lsp.Location import org.langmeta.lsp.Position import scala.meta.metals.search.SymbolIndex ...
#!/bin/sh # Many of neutron's repos suffer from the problem of depending on neutron, # but it not existing on pypi. # This wrapper for tox's package installer will use the existing package # if it exists, else use zuul-cloner if that program exists, else grab it # from neutron master via a hard-coded URL. That last c...
package dk.kvalitetsit.hjemmebehandling.service; import dk.kvalitetsit.hjemmebehandling.service.access.AccessValidator; import dk.kvalitetsit.hjemmebehandling.service.exception.AccessValidationException; import org.hl7.fhir.r4.model.DomainResource; import java.util.List; public abstract class AccessValidatingService...
import { Component, ChangeDetectionStrategy, forwardRef } from "@angular/core"; import { MjDynamicFormBase, provideFormGroupDirective } from "@mjamin/dynamic-form"; @Component({ selector: "mj-dynamic-card-form", templateUrl: "./card-form.component.html", styleUrls: ["./card-form.component.scss"], chan...
#!/bin/bash # source: https://docs.gitlab.com/ee/ci/examples/php.html # We need to install dependencies only for Docker [[ ! -e /.dockerenv ]] && exit 0 set -xe # Install git (the php image doesn't have it) which is required by composer apt-get update -yqq apt-get install git unzip -yqq (pecl install xdebug-2.9.8 |...
#!/bin/bash set -e RETCODE=$(fw_exists $IROOT/mono.installed) [ ! "$RETCODE" == 0 ] || { return 0; } # what do we want? latest mono # how do we want it? already compiled from packages but without sudo # save environment cat > $IROOT/mono.installed <<'END' export SNAPDATE=20141220092712 export MONO_HOME=$IROOT/mono-...
<reponame>ralfbox/AndroidQuickDialog package com.ralfbox.quickdialog.core; import android.content.DialogInterface; import android.util.Log; import com.ralfbox.quickdialog.QuickDialog; /** * @author <NAME> * Created by Admin on 30.08.2016. */ public class CallResultQuickDialogEngineer { private static...
<reponame>IanGClifton/MoreEssentials<filename>complete-project/app/src/main/java/com/iangclifton/moreessentials/LessonDetailActivity.java package com.iangclifton.moreessentials; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import android....
CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); CREATE UNIQUE INDEX users_username_uindex ON users (username);
export const enum FilterValue { All = "All", Active = "Active", Completed = "Done", } export class Filter { private _selected = FilterValue.All; get selected(): FilterValue { return this._selected; } set selected(value: FilterValue) { this._selected = value; } get all(): FilterValue { ...
<filename>node_modules/discord-youtube-api/src/Video.js const duration = require("iso8601-duration"); class Video { constructor(data) { const durationObj = duration.parse(data.items[0].contentDetails.duration); this.duration = durationObj; this.durationSeconds = duration.toSeconds(durationObj); this.title = ...
#!/bin/bash vendor/bin/phpcbf
package com.cjy.flb.event; import java.util.HashMap; /** * Created by Administrator on 2015/12/25 0025. */ public class PerodOfDayEvent { private String week; private HashMap<String, Boolean> hasMap; public PerodOfDayEvent() { } public PerodOfDayEvent(String week, HashMap<String, Boolean> hasM...
<filename>app/components/BackgroundButton.js<gh_stars>0 import React from 'react'; import { View, Text, Image, Button } from 'react-native'; export default class BackgroundButton extends React.Component { constructor(props){ super(props); } _renderIcon(){ if(this.props.icon){ return <Image sourc...
<filename>src/main/java/com/devaneios/turmadeelite/entities/ExternalClassConfig.java package com.devaneios.turmadeelite.entities; import lombok.*; import javax.persistence.*; @Entity @Table(name = "external_class_config") @NoArgsConstructor @AllArgsConstructor @Getter @Setter @Builder public class ExternalClassConfi...
<reponame>GigaMax007/PersonalFinance<filename>src/personalfinance/model/Transfer.java package personalfinance.model; import personalfinance.exception.ModelException; import personalfinance.saveload.SaveData; import java.util.Date; public class Transfer extends Common { private Account fromAccount; // откуда пер...
'use strict'; import ComponentHelper from '../helpers/ComponentHelper.js'; import EventMappers from '../helpers/EventMappers.js'; import {Surface} from 'js-surface'; import {SurfaceX} from 'js-surface-x'; import {Arrays, Seq, Strings} from 'js-prelude'; const dom = Surface.createElement; export default SurfaceX.cre...
// // ViewController.h // NewProjectPrepareDemo // // Created by KDB on 16/7/27. // Copyright © 2016年 Will-Z. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
import React, { useCallback } from 'react'; import FlashMessage, { showMessage } from 'react-native-flash-message'; import IToastContext from 'shared/domain/providers/IToastContext'; import { ToastContextProvider } from 'shared/view/contexts/ToastContext/hooks/useToastContext'; const FlashMessageToastContext: React....
/*RTL8188E PHY Parameters*/ #define SVN_COMMIT_VERSION_8188E 65 #define RELEASE_DATE_8188E 20150610 #define COMMIT_BY_8188E "BB_LUKE" #define RELEASE_VERSION_8188E 63
/* * Copyright 2015 Groupon.com * * 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.hedera.services.bdd.suites.token; /*- * ‌ * Hedera Services Test Clients * ​ * Copyright (C) 2018 - 2021 <NAME>, 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 * ...
/* * BDSup2Sub++ (C) 2012 <NAME>. * Based on code from BDSup2Sub by Copyright 2009 <NAME> (0xdeadbeef) * and Copyright 2012 <NAME> (mjuhasz) * * * 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...
<filename>app/models/eligibility_determination.rb class EligibilityDetermination include Mongoid::Document include Mongoid::Timestamps embedded_in :tax_household include HasFamilyMembers PDC_STATUSES = %w{active approved submitted open suspended pending_closure planned canceled_planned dela...
const messages = { "app": { "name": "企鹅物流数据统计", "name_line1": "企鹅物流数据统计", "name_line2": "" }, "server": { "name": "服务器", "switch": "服务器切换", "selected": "已选择", "servers": { "CN": "国服", "US": "美服", "JP": "日服", "KR": "韩服" } }, "menu": { "_beta": "公测", ...
<gh_stars>0 /* import {isObjectInclude} from './object'; export function arrayMove(list: Array<unknown>, fromIndex: number, toIndex: number): void { const item = list[fromIndex]; list.splice(fromIndex, 1); list.splice(toIndex, 0, item); } export function findInArray<ItemType>(list: Array<ItemType>, query...
<gh_stars>1-10 const SpritesmithPlugin = require('webpack-spritesmith') module.exports = (api, projectOptions) => { const { sprite } = projectOptions.pluginOptions || {} const { enabled, ...options } = sprite if (enabled) return api.configureWebpack(webpackConfig => { // 修改 webpack 配置 // 或返回通过 ...
# Setup XiangShan environment variables export XS_PROJECT_ROOT=$(pwd) export NEMU_HOME=$(pwd)/NEMU export AM_HOME=$(pwd)/nexus-am export NOOP_HOME=$(pwd)/XiangShan export WAVE_PATH=$(pwd)/wave # export NOOP_HOME=$(pwd)/NutShell
import { hasMany, Model } from 'miragejs'; export default Model.extend({ followedCrates: hasMany('crate'), });
package com.home.demo.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.home.demo.bean.User; import com.home.demo.dao.UserDao; import com.home.demo.service.UserService; import com.home.demo.util.Result; import com.home.demo....
<!DOCTYPE html> <html> <head> <title>Blog Post Form</title> </head> <body> <h1>Submit New Blog Post</h1> <form action="new-post.php" method="POST"> <label for="title">Title:</label><br> <input type="text" name="title" id="title"><br><br> <label for="content">Content:</label><br> <textarea name="c...
package cyclops.container.traversable; import static cyclops.container.immutable.tuple.Tuple.tuple; import static java.util.Arrays.asList; import static java.util.Comparator.comparing; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.hasI...
package net.bambooslips.demo.jpa.service.Impl; import net.bambooslips.demo.exception.CompetitionEntireNotFoundException; import net.bambooslips.demo.exception.LegalRepresentativeNotFoundException; import net.bambooslips.demo.exception.PostNotFoundException; import net.bambooslips.demo.jpa.model.CompetitionEntire; impo...
#!/bin/bash # credit: https://gist.github.com/oneohthree/f528c7ae1e701ad990e6 function slugify () { echo "$1" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr '[:upper:]' '[:lower:]' } title="${1:-'title'}" slug="$(slugify "$title")" folder="./content/posts/$(date +%F)--$slug" # ...
#!/bin/bash # Copyright 2020 Xilinx 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 agreed t...
<table> <tr> <th>Name</th> <th>Age</th> <th>Location</th> </tr> <tr> <td>John</td> <td>30</td> <td>New York</td> </tr> <tr> <td>Mary</td> <td>25</td> <td>Chicago</td> </tr> </table>
<reponame>wolfchinaliu/gameCenter package weixin.mailmanager.Service.impl; import org.jeecgframework.core.common.service.impl.CommonServiceImpl; import weixin.mailmanager.Service.MailManagerServiceI; import weixin.mailmanager.entity.OperationData; import java.io.Serializable; /** * Created by aa on 2016/6/6. */ pub...
<reponame>th3r3alandr3/Sudoku import javax.swing.JTextField; import javax.swing.text.AttributeSet; import javax.swing.text.BadLocationException; import javax.swing.text.Document; import javax.swing.text.PlainDocument; public class JTextFieldLimit extends JTextField { private int limit; JTextFieldLimit(int limit)...
#! /bin/bash usage() { echo " build <options> -b build code -i install as a product in $PRODUCTDIR/codetools/$VERSION -v VERSION -d PRODUCTDIR -h print this help " } build() { echo " This product is only scripts, so does not ned building " return 1 } install() { local RC local...
#!/usr/bin/env python3 import argparse import math from collections import defaultdict from src.backend.common.nttxtraction import * from src.backend.common.dbmanager import DBManager import numpy as np logger = logging.getLogger(__name__) def main(): parser = argparse.ArgumentParser(description="Script to ca...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.repoTemplate = void 0; var repoTemplate = { "viewBox": "0 0 14 16", "children": [{ "name": "path", "attribs": { "fill-rule": "evenodd", "d": "M12 8V1c0-.55-.45-1-1-1H1C.45 0 0 .45 0 1v12c0 .55.45 1 1 1h2v2l1....
#!/bin/bash kubectl exec -n spire spire-server-0 -- \ /opt/spire/bin/spire-server entry create \ -registrationUDSPath /run/spire/sockets/registration.sock \ -spiffeID spiffe://example.org/ns/spire/sa/spire-agent \ -selector k8s_sat:cluster:demo-cluster \ -selector k8s_sat:agent_ns:spire \ -sele...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { Component } from '@angular/core'; import { NbThemeService } from '@nebular/theme'; @Component({ selector: 'ngd-home', templateUrl: './home.component...
""" __init__ creates a Blueprint component for use in the views and error files which makes it easier to make different URLs Returns: main is returned as the Blueprint Component """ from flask import Blueprint # pylint: disable=invalid-name main = Blueprint('main', __name__) from . import views, errors
<reponame>wangmengcn/JavaLearning package com.eclipsesv.controller; import com.eclipsesv.model.Member; import com.eclipsesv.model.MemberRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springf...
#!/bin/bash # Codesign and build a dmg file if [ $# -lt 1 ]; then echo "usage: $0 <app_path>" exit 1 fi SRC_APP_PATH="${1}" APP_NAME=`basename "${SRC_APP_PATH}"` if [ "${APP_NAME}" != "JoyKeyMapper.app" ]; then echo "error: App name must be 'JoyKeyMapper.app'" exit 2 fi VERSION=`git describe --tags --abbrev...
<gh_stars>10-100 // Autogenerated from library/elements.i package ideal.library.elements; public interface function2<R, A0, A1> extends procedure2<R, A0, A1>, deeply_immutable_data { }
#! /bin/bash npm install npm run build:demo docker build -t mathijsblok/ngx-alerts-demo:latest . rm -rf ./node_modules rm -rf ./dist docker-compose up -d
<reponame>darddan/libelektra<gh_stars>0 "use strict"; module.exports = function( $stateProvider, $urlRouterProvider, $locationProvider, webStructure ) { var self = this; // configure html5mode for URLs (no #) $locationProvider.html5Mode({ enabled: true }); // configure default route $urlRoute...
#!/bin/bash # Module specific variables go here # Files: file=/path/to/file # Arrays: declare -a array_name # Strings: foo="bar" # Integers: x=9 ############################################### # Bootstrapping environment setup ############################################### # Get our working directory cwd="$(pwd)"...
import sys import click def choose(items): click.echo( "####################################################################") for i in range(0, len(items)): j = i + 1 click.echo(str(j) + ": " + items[i]) click.echo( "#######################################################...
/* * This software is licensed under the Apache 2 license, quoted below. * * Copyright (c) 1999-2021, Algorithmx 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.a...
<filename>com/firax/tetris/bricks/OBrick.java<gh_stars>0 package com.firax.tetris.bricks; import java.util.ArrayList; import java.util.List; public class OBrick extends Brick { private List<int[][]> brickMatrix = new ArrayList<>(); public OBrick() { super(O_BRICK_ID); brickMatrix....
/* * Copyright (c) 2014, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of condition...
package com.zte.zakker.find; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.support.annotation.Nullable; import android.view.View; import android.widget.ImageView; public class StoreDeviceChooseDetailActivity extends Activity { private ImageView mAddShoppingCa...
using UnityEngine; using UnityEditor; [CustomEditor(typeof(YourScript))] public class YourScriptEditor : Editor { SerializedObject serializedObject; SerializedProperty disableOnMobilePlatforms; private void OnEnable() { serializedObject = new SerializedObject(target); disableOnMobilePl...
def countDigitOnes(n: int) -> int: count = 0 for digit in str(n): if digit == '1': count += 1 return count
<gh_stars>0 package br.com.zup.mercadolivre.categoria; import br.com.zup.mercadolivre.config.validacao.annotation.ExistsId; import br.com.zup.mercadolivre.config.validacao.annotation.UniqueValue; import com.fasterxml.jackson.annotation.JsonCreator; import org.springframework.util.Assert; import javax.persistence.Ent...
def count_words(sentence): # Split the sentence into words words = sentence.split() # Set initial result to 0 result = 0 # Iterate all the words for word in words: # Add the number of words result += 1 # Return the result return result # Call the function result = count_...
import java.util.Scanner; public class Reverse { public static void main(String[] args){ // Declare the array int[] num_array = new int[5]; // Get user input Scanner scanner = new Scanner(System.in); for (int i = 0; i < num_array.length; i++){ System.out.print("...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.arrowsH = void 0; var arrowsH = { "viewBox": "0 0 1792 1792", "children": [{ "name": "path", "attribs": { "d": "M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-1024v128q0 26-19 45t-45 19-45-19l-256-25...
package cz.metacentrum.perun.spRegistration.persistence.models; import com.fasterxml.jackson.annotation.JsonIgnore; import cz.metacentrum.perun.spRegistration.persistence.enums.RequestAction; import cz.metacentrum.perun.spRegistration.persistence.enums.RequestStatus; import org.json.JSONArray; import org.json.JSONObje...
#!/usr/bin/env bash PWD_DIR=$(pwd) function cleanup { cd "$PWD_DIR" } trap cleanup EXIT # Feth the three required files if ! wget --no-check-certificate https://raw.githubusercontent.com/noloader/cryptopp-cmake/master/CMakeLists.txt -O CMakeLists.txt; then echo "CMakeLists.txt download failed" [[ "$0" = "${BASH...
package com.telenav.osv.manager.network; import android.content.Context; import androidx.annotation.NonNull; import com.android.volley.DefaultRetryPolicy; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.VolleyLog; import com.telenav.osv.R; import com.telenav.osv.a...
pkg_name=openresty-noroot pkg_origin=chef pkg_version=1.13.6.2 pkg_description="Scalable Web Platform by Extending NGINX with Lua" pkg_maintainer="The Chef Server Maintainers <support@chef.io>" pkg_license=('BSD-2-Clause') pkg_source=https://openresty.org/download/openresty-${pkg_version}.tar.gz pkg_dirname=openresty-$...
#!/usr/bin/env bats readonly cdf=$BATS_TEST_DIRNAME/../cdf readonly tmpdir=$BATS_TEST_DIRNAME/../tmp readonly stdout=$BATS_TEST_DIRNAME/../tmp/stdout readonly stderr=$BATS_TEST_DIRNAME/../tmp/stderr readonly exitcode=$BATS_TEST_DIRNAME/../tmp/exitcode setup() { mkdir -p -- "$tmpdir" export PATH=$PATH:$(dirname "$...
<gh_stars>0 // This is the starting point for the application // This module starts executing as soon as parsing of the HTML has finished // We will bootstrap the app and start the loading process for all components // The CSS module import './main.css' // Logging support import { log } from "./log"; // Th...
/** * Created by root on 7/12/17. */ class RequestsInfo { constructor () { this.count = { in: 0, out: 0 } this.delay = { send: 0, reply: 0, process: 0 } this.timeouted = 0 } sendRequest () { this.count.out++ } gotRequest () { this.count.in++ }...
class Solution { public String reverseWords(String s) { ArrayList<String> res = new ArrayList<String>(); String[] words = s.trim().split(" "); for (String x: words){ if (x == null || x.trim().isEmpty()){ continue; } else{ ...
#!/bin/bash # ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- # # This script starts a series of Layer-3 connections across a series of stations # # each station will wait $nap seconds, download $quantity KB and then remove # # its old CX. ...
<reponame>c-dante/thr33 import { BoxGeometry, PlaneGeometry, MeshBasicMaterial, MeshNormalMaterial, MeshLambertMaterial, } from 'three'; export const newBox = (l = 100, w = l, h = l, ...rest) => new BoxGeometry(l, w, h, ...rest); export const newPlane = (w = 10000, h = w, ws = 1, hs = ws) => new PlaneGeometry(w...
<filename>IDE/src/components/login/Auth.js import auth0 from 'auth0-js'; import { AUTH_CONFIG } from './auth0-variables'; import { browserHistory } from 'react-router'; export default class Auth { auth0 = new auth0.WebAuth({ domain: AUTH_CONFIG.domain, clientID: AUTH_CONFIG.clientId, redirectUri: AUTH_CONFIG.ca...
// Expense model struct Expense { let amount: Double let date: Date let category: String } // Model controller class ExpensesController { private var expenses = [Expense]() func addExpense(expense: Expense) { expenses.append(expense) } func deleteExpenseAtIndex(index: Int) { expenses.remove(at: index) ...
package io.opensphere.core.pipeline.renderer.buffered; import java.awt.Color; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import javax.media.opengl.GL; import javax.media.opengl.GL2; import javax.media.opengl.GL2ES1; ...
import React from 'react'; import ReactDOM from 'react-dom'; function Clients() { return ( <div className="bg-gray bg-gray-900 p-20 justify-items-stretch flex col-2 ...
#!/bin/bash # Tells the script to exit if a command fails instead of continuing set -e if [ "$1" == "backend" ]; then echo "Starting backend..." source .venv/bin/activate cd backend # Set the Django secret key and save as an environment variable if command -v gp &> /dev/null; then gp env SECRET_KEY=$RAN...
export VISUAL=atom export EDITOR=$VISUAL
<filename>egov/egov-ptis/src/main/java/org/egov/ptis/domain/service/notice/RecoveryNoticeService.java /* * eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2017 eGovernment...
#!/bin/bash # chronos test echo "Chronos test start" dir=${ANALYTICS_ZOO_HOME}/docs/docs/colab-notebook/chronos pytorchFiles=("chronos_nyc_taxi_tsdataset_forecaster") index=1 set -e for f in "${pytorchFiles[@]}" do filename="${dir}/${f}" echo "#${index} start example for ${f}" #timer start=$(date "+%s") #...
<gh_stars>1-10 var searchData= [ ['noproxy_0',['Noproxy',['../classproxen_1_1sysproxy_1_1_noproxy.html',1,'proxen::sysproxy']]] ];