text
stringlengths
1
1.05M
# Generated by Powerlevel10k configuration wizard on 2021-04-09 at 23:20 CEST. # Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 43791. # Wizard options: nerdfont-complete + powerline, small icons, unicode, lean, 1 line, # compact, many icons, fluent, transient_prompt, instant_prompt=quiet. # Type `p10k c...
<gh_stars>0 /** * @fileoverview Check whether the given variable is an object or not. * */ 'use strict'; /** * Check whether the given variable is an object or not. * If the given variable is an object, return true. * @param {*} obj - Target for checking * @returns {boolean} Is object? * @memberof module:typ...
/** * Default JDClient options * @typedef {Object} DefaultOptions * @property {string} token Discord api token * @property {string} [trigger='.'] The string required to invoke a command * @property {boolean} [autoconnect=true] Indicates if the client should automatically connect * @property {boolean} [debug...
<gh_stars>0 /* * RadioManager * RadioManager * * OpenAPI spec version: 2.0 * Contact: <EMAIL> * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.pluxbox.radiomanager.api.models; ...
<reponame>weareopensource/roMEANet-SOOS (function () { 'use strict'; angular .module('core') .controller('SidenavController', SidenavController); SidenavController.$inject = ['$scope', '$state', 'Authentication', 'sideNavs']; function SidenavController($scope, $state, Authentication, sideNavs) { ...
public class Bird { private String name; private int wingspan; private int age; public Bird(String name, int wingspan, int age) { this.name = name; this.wingspan = wingspan; this.age = age; } public String getName() { return name; } public int getWings...
<gh_stars>0 package gov.samhsa.c2s.trypolicy.service.dto; import lombok.Data; import java.nio.charset.StandardCharsets; @Data public class UploadedDocumentDto { private Long id; private String patientMrn; private byte[] contents; private String fileName; private String documentName; private ...
package com.ddd_example.domain; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; public class Cart { private final List<CartItem> cartItems = new ArrayList<>(); private final List<CartItem> removedCartItems = new ArrayList<>(); public boolean...
from enum import Enum HOUSE = 'House' HOTEL = 'Hotel' class Card(): def __init__(self, index, value): self.index = index self.value = value class Cashable(Card): pass class CashCard(Cashable): def __repr__(self): return f'<CashCard (${self.value})>' class ActionCard(Cashable)...
package vec import "math/cmplx" type Mass struct { Sum Value N int } func Combine(m, n Mass) Mass { return Mass{m.Sum + n.Sum, m.N + n.N} } func Subtract(m, n Mass) Mass { return Mass{m.Sum - n.Sum, m.N - n.N} } func (m Mass) Center() Value { if m.N <= 0 { return Value(cmplx.NaN()) } return m.Sum.Scale(...
use std::ffi::CStr; fn validate_pattern(pattern: &str, input: &str) -> bool { let pattern_start = "r#"; if pattern.starts_with(pattern_start) { let pattern = &pattern[pattern_start.len()..]; let pattern = pattern.replace("\\", "\\\\"); // Escape backslashes in the pattern let pattern = ...
package repository import "context" type HelpersRepo interface { Tes(ctx context.Context) bool }
<reponame>ae0000/dbdiff package main import ( "testing" ) const ( addressSQLProd = "./sql/address_prod.sql" addressSQLDev = "./sql/address_dev.sql" prod = "./sql/prod.sql" dev = "./sql/dev.sql" ) func TestAddress(t *testing.T) { diff(addressSQLProd, addressSQLDev) diff(prod, dev) t.Er...
#!/bin/bash # Yangwenhao 2019-12-16 20:27 model=SuResCNN10 train_cmd="Vector_Score/run.pl --mem 8G" logdir=Log/PLDA/${model} feat_dir=Data/checkpoint/${model}/soft/kaldi_feat data_dir=Data/dataset/voxceleb1/kaldi_feat/voxceleb1_test trials=$data_dir/trials test_score=$feat_dir/scores_voxceleb1_test $train_cmd $log...
<reponame>nimbus-cloud/cli package service_test import ( "cf/api" . "cf/commands/service" "cf/models" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" testapi "testhelpers/api" testassert "testhelpers/assert" testcmd "testhelpers/commands" testconfig "testhelpers/configuration" testreq "testhelpers/requ...
<filename>commands/fun/gender.js const fetch = require("node-fetch"); const runner = firstName => fetch(`https://api.genderize.io/?name=${firstName}`).then(response => response.json() ); module.exports = { runner, name: "gender", description: "Check gender from a name", args: true, usage: "john", ...
def sort_list(lst): for i in range(1, len(lst)): for j in range(0, len(lst)-i): if lst[j] > lst[j+1]: lst[j], lst[j+1] = lst[j+1], lst[j] return lst
#!/bin/bash set -eo pipefail function download_release() { ver=$1 dirname=binaries/"$ver" mkdir "$dirname" basename=dolt-"$PLATFORM_TUPLE" filename="$basename".tar.gz filepath=binaries/"$ver"/"$filename" url="https://github.com/liquidata-inc/dolt/releases/download/$ver/$filename" curl -L -o "$filepath...
import React, { PureComponent } from 'react'; import moment from 'moment'; import { Row, Col, Card, Table, Form, Button, Input, DatePicker, Checkbox, Divider, Modal, message, Tabs, Select, InputNumber, Icon, } from 'antd'; import PageHeaderLayout from '../../../layouts/PageHeaderLayout';...
#!/bin/sh # Stops script execution if a command has an error set -e INSTALL_ONLY=0 # Loop through arguments and process them: https://pretzelhands.com/posts/command-line-flags for arg in "$@"; do case $arg in -i|--install) INSTALL_ONLY=1 ; shift ;; *) break ;; esac done if ! hash pgadmin4 2>/...
from flask_principal import Permission, RoleNeed def get_permission_for_role(role: str) -> Permission: if role == 'admin': return Permission(RoleNeed('admin')) elif role == 'employee': return Permission(RoleNeed('employee')) elif role == 'employeer': return Permission(RoleNeed('empl...
def sort_strings(strings): # Create a copy of the input list to modify sorted_strings = strings.copy() # Use Bubble Sort algorithm to sort the list for i in range(len(sorted_strings)): for j in range(0, len(sorted_strings)-i-1): if sorted_strings[j] > sorted_strings[j+1] : ...
package com.jinke.kanbox; import android.content.Context; import android.content.SharedPreferences; /** * Save Data To SharePreference Or Get Data from SharePreference * * @author liweilin * */ public class PushSharePreference { private Context ctx; private String fileName; public PushSharePreference(...
/* * Copyright 2020 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 applicable law or agreed ...
<reponame>pjmolina/event-backend<filename>public/app/services/domain/sessionTalkService.js<gh_stars>10-100 angular.module('myApp').service('SessionTalkService', ['$http', '$q', 'baseApi', 'QueryBuilderService', 'EntityUtilService', function ($http, $q, baseApi, QueryBuilderService, EntityUtilService) { var SessionT...
#!/bin/sh py.test "$@" test/integration --junitxml results.xml
<reponame>DuneRoot/BPL-python from bpl_lib.network.Network import Network
<gh_stars>1-10 import inspect import ipaddress import json from rich import box, print from rich.console import Console from rich.table import Table from ..config.settings import configfile # noqa: E402 from ..config.settings import save_output_dir, settings console = Console() def display_output(output, save=Non...
/** * Created by Home on 1/8/2018. */ module.exports = { url : 'mongodb://localhost/tutorial' };
package codecheck.github.app case class CommandSetting(repo: Option[Repo] = None) { def repositoryOwner = repo.map(_.owner) } case class Repo(owner: String, name: String)
export const Header = { QRType: 'SPC', // swiss payment code Version: '0200', Coding: '1' }; export const createJson = (CdtrInf, CcyAmt, RmtInf, UltmtDtr = undefined, UltmtCdtr = undefined, AltPmtInf = undefined) => { return { Header, CdtrInf, CcyAmt, RmtInf, UltmtCdtr, UltmtDtr, A...
from hashlib import sha256 from random import choice, randrange from uuid import uuid4 from multihash import SHA2_256 from geostore.dataset_properties import DATASET_KEY_SEPARATOR, TITLE_CHARACTERS from geostore.types import JsonObject from .general_generators import ( _random_string_choices, any_description...
import React, { Component } from 'react'; import { Image } from 'semantic-ui-react'; import './Spinner.css'; /** * Simple wrapper for a react loader component, * so that we can style it consistenty across components */ export default class Spinner extends Component { render() { return ( <div...
#!/bin/sh make -C /Users/chushoutv/Desktop/opencv-3.3.1/bulid/modules/imgproc -f /Users/chushoutv/Desktop/opencv-3.3.1/bulid/modules/imgproc/CMakeScripts/opencv_imgproc_postBuildPhase.make$CONFIGURATION all
<reponame>BIGCATDOG/communityBackend<filename>src/vess-service/main.go<gh_stars>0 package main import ( "github.com/asim/go-micro/v3" pb "github.com/vess-service/proto/vess" "log" "os" ) const ( DEFAULT_HOST = "localhost:27017" ) func main() { // 获取容器设置的数据库地址环境变量的值 dbHost := os.Getenv("DB_HOST") if dbHost =...
from typing import ( Any, Dict, ) import logging from urllib.parse import urljoin import requests logger = logging.getLogger(__name__) class HttpClient: def __init__( self, base_url: str, api_token: str, timeout: float = None, verify_tls: bool = True, user...
#!/usr/bin/env bash set -e set -x pwd if [ -z "$GH_ACCESS_TOKEN" ] then echo "ERROR: no GH_ACCESS_TOKEN env var defined for kind/ci.sh" else echo "has valid git token for kind/ci.sh" fi export WORKING_DIR=/home/runner/work/jx3-versions export JX_KUBERNETES="true" export NO_JX_TEST="true" export KIND_V...
#!/bin/bash # source build rm -rf node_modules npm install npm run build # pulish to apache/asf-site rm -rf .deploy_git mkdir .deploy_git cd .deploy_git # git init # git remote add apache git@github.com:apache/incubator-weex-site.git # git fetch apache asf-site # git reset apache/asf-site mv ../docs/.vuepress/dist/* ...
<reponame>narahari92/loki /* 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 { isPlainObject, isFunction, nextTick, merge, invariant, getDiffProps, } from '../src/utils'; describe('isPlainObject', () => { it('true', () => { expect(isPlainObject({})).toBe(true); expect(isPlainObject({ a: 'a' })).toBe(true); expect(isPlainObject({ foo: 'foo' })).toBe(true); e...
<filename>src/main/java/evilcraft/api/render/IMultiRenderPassBlock.java package evilcraft.api.render; import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; /** * Interface for blocks that can render with connected textures, use together * with {@link ConnectableIcon}. * @author rubensworks * @...
<filename>app/view1/view1.js<gh_stars>0 'use strict'; angular.module('myApp.view1', ['ngRoute']) .config(['$routeProvider', function ($routeProvider) { $routeProvider.when('/view1', { templateUrl: 'view1/view1.html', controller: 'View1Ctrl', activetab: 'view1' })...
#!/bin/bash -e install -m 644 files/qtum.list "${ROOTFS_DIR}/etc/apt/sources.list.d/" on_chroot apt-key add - < files/qtum.gpg.key on_chroot << EOF apt install ca-certificates -y apt-get update EOF
package stroeerCore import ( "encoding/json" "fmt" "github.com/eugene-fedorenko/prebid-server/config" "github.com/mxmCherry/openrtb" "github.com/eugene-fedorenko/prebid-server/adapters" "github.com/eugene-fedorenko/prebid-server/errortypes" "github.com/eugene-fedorenko/prebid-server/openrtb_ext" "net/http" ) ...
package com.hapramp.steem; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.hapramp.models.CommunityModel; import java.util.List; public class CommunityListWrapper { @Expose @SerializedName("communities") List<CommunityModel> communityModels; public C...
<reponame>andersonzup/orange-talents-07-template-ecommerce package br.com.zup.mercadolivre.usuario; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.Optional; @Repository public interface UsuarioRepositori extends JpaRepository<Usuario, ...
<reponame>horowitz2009/BBGun<filename>src/com/horowitz/bigbusiness/model/Contract.java package com.horowitz.bigbusiness.model; import com.horowitz.mickey.Pixel; public class Contract { private Product _product; private long _start; private Building _building; private Pixel _coordinates; public long getStart(...
<filename>Select.hpp<gh_stars>1-10 /* * Select.hpp * * * Copyright (C) 2019 <NAME> <<EMAIL>> * */ #ifndef SELECT_HPP #define SELECT_HPP template <bool c, class T, class F> struct Select { typedef T Result; }; template <class T, class F> struct Select<false, T, F> { typedef F Result; }; #endif /* SELECT_H...
package simulation; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; /** * * @author exponential-e * 백준 1952번: 달팽이2 * * @see https://www.acmicpc.net/problem/1952/ * */ public class Boj1952 { private static final int[][] DIRECTIONS = {{0, 1}, {1, 0}, {0, -1}...
#!/bin/bash FLACFILE=$1 CUEFILE=${FLACFILE%.*}.cue cuebreakpoints $CUEFILE | shnsplit -o flac -O always $FLACFILE cuetag.sh $CUEFILE split-track*.flac # Read titles from .cue-file TRACKLIST=`grep TITLE $CUEFILE | sed -e 's/.*TITLE.*\"\(.*\)\"/\1/g' | sed -e 's/[[:space:]]/___/g'` COUNT=0 TRACKNUM=0 for T in $TRACKLIST ...
<gh_stars>1000+ package middleware import ( "github.com/keptn/keptn/api/models" "os" "reflect" "testing" ) func TestValidateToken(t *testing.T) { type args struct { token string } tests := []struct { name string args args want models.Principal configuredToken string ...
#include <boost/program_options.hpp> #include <filesystem> // C++17 #include <iostream> #include <opencv2/opencv.hpp> #include "cascade_model.cpp" using namespace boost::program_options; using namespace cv; namespace po = boost::program_options; namespace fs = std::filesystem; int main(int argc, char **argv) { s...
// styles import { Container, Avatar } from './styles'; interface Props { nickName: string; isBot?: boolean; } export function UserRow({ nickName, isBot }: Props){ return( <Container> <Avatar className={isBot ? 'bot' : ''} /> <strong>{nickName}</strong> {isBot &...
package com.atjl.email.dto; import com.atjl.email.api.MailException; import org.apache.commons.mail.Email; import org.apache.commons.mail.MultiPartEmail; import javax.activation.DataHandler; import javax.mail.MessagingException; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMultipart;...
<reponame>anotaai/anotaai package br.com.alinesolutions.anotaai.rest; import javax.annotation.security.PermitAll; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax...
#!/bin/bash # find all the examples with changed code # run the tests in that directory set -ex gpu_folders=() root=`pwd` for changed_file in $CHANGED_FILES; do file_base_dir=$(dirname $changed_file) # Test folder changes if [ $(basename $file_base_dir) = "tests" ]; then file_base_dir=$(dirname "$file_base...
cd build for PY_VERSION in 3.5 3.6 3.7 3.8 3.9 do CXX=/usr/bin/clang++-11 CC=/usr/bin/clang-11 cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DRAISIM_MATLAB=OFF -DRAISIM_PY=ON -DRAISIM_EXAMPLE=OFF -DRAISIM_DOC=OFF -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python${PY_VERSION} make -j done CXX=/usr/bin/clang++-11 CC=/usr/bin/cl...
-- 5000 records -- SELECT id, nickname FROM users WHERE id = ? -- SELECT * FROM users WHERE login_name = ?' -- INSERT INTO users (login_name, pass_hash, nickname) VALUES (?, SHA2(?, 256), ?) -- SELECT id, nickname FROM users WHERE id = ? CREATE TABLE IF NOT EXISTS users ( id INTEGER UNSIGNED PRIMARY KEY AU...
const express = require('express'); const router = express.Router(); router.get('/', async (req, res) => { try { const query = "SELECT * FROM users"; const results = await query(query); res.json(results); } catch (err) { console.error(err); res.status(500).send(err); } }); module.exports = router;
/* * Copyright (c) 2004-2009, University of Oslo * 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 ...
module.exports = { name: "淘宝柠檬鱼科技", uniacid: "2", acid: "2", multiid: "0", version: "1.21", siteroot: "https://shop486845690.taobao.com/app/index.php", design_method: "3" };
#!/bin/sh if [[ -z $1 ]]; then mpc lsp | sort else mpc clear mpc load "$1" mpc toggle fi
/* * security.c * * Created on: Mar 17, 2017 * Created by: <NAME> <<EMAIL>> * * One MMT-Probe worker thread will create n security thread by calling security_worker_alloc_init. * Number of security thread is designed by config->threads_size when passing to the function above. * * +--------+ +------...
SELECT COUNT(*) FROM products WHERE status = 'active';
#!/bin/bash set -ex source variables.env docker login $REGISTRY -u $REGISTRY_USER -p $REGISTRY_PASSWORD if [ -z ${PLATFORM} ]; then docker tag $IMAGE:$VERSION $REGISTRY/$IMAGE:$VERSION docker push $REGISTRY/$IMAGE:$VERSION else docker buildx build --push --platform $PLATFORM --pull --tag $REGISTRY/$IMAGE...
<filename>kastking-salesforecast-server/src/main/java/com/kastking/warehouse/service/IWarehouseService.java package com.kastking.warehouse.service; import com.kastking.warehouse.domain.Warehouse; import java.util.List; /** * 仓库Service接口 * * @author Michael * @date 2020-02-28 */ public interface IWarehouseServic...
package com.huatuo.bean; import java.util.ArrayList; /** * 获取时间轴内容列表 ,包括秒杀活动,活动专题,广告表,推荐服务 * */ public class SecKillActivityListItemBean { public String ID = "";// 秒杀活动ID public String name = "";// 秒杀活动名称 public String servID = "";// 服务ID public String servName = "";// 服务名称 public String icon = "";// 服务Icon ...
#!/usr/bin/env bash NAME='Prismo' VERSION='1.0.0' OPTION_HELP='h' OPTION_VERSION='v' OPTION_LOAD_KERNEL='l' OPTIONS="$OPTION_HELP$OPTION_VERSION$OPTION_LOAD_KERNEL" DESCRIPTION_HELP='Print this help.' DESCRIPTION_VERSION="Print the version of $NAME." DESCRIPTION_LOAD_KERNEL='Load a new kernel.' declare -A BOOT_ENTR...
import numpy as np from scipy import special, optimize, spatial import matplotlib.pyplot as plt from sklearn import mixture from sklearn import preprocessing from sklearn.decomposition import PCA from MulticoreTSNE import MulticoreTSNE as TSNE from umap import UMAP def stratefied_sampling(index, label, prob, size): ...
<filename>lib/code_mapper/output/png.rb require 'ruby-graphviz' module CodeMapper module Output class Png def initialize(file) @file = file @stack = [] @graph = GraphViz.new(:G, type: :digraph, rankdir: "LR") end def push(tp, normalized_class_name) node = @grap...
<filename>uvicore/database/provider.py from uvicore.support.dumper import dump, dd from uvicore.support.module import location from uvicore.database import Connection from uvicore.typing import Dict, List class Db: """Database Service Provider Mixin""" #def _add_db_definition(self, key, value): # if ...
#!/bin/bash PYTHON=/home/przy/projects/rrg-mageed/MT/code/anaconda3/bin/python dataset=dataset_IWSLT_de-en $PYTHON main.py --combine_results $dataset
<reponame>M-zg/azure-cli-extensions # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------...
<filename>library/src/main/java/com/bumptech/glide/load/data/HttpUrlFetcher.java package com.bumptech.glide.load.data; import android.text.TextUtils; import com.bumptech.glide.Priority; import com.bumptech.glide.load.model.GlideUrl; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConne...
def is_palindrome(input_string): # Reverse the string and see if it matches the original string reversed_string = input_string[::-1] if reversed_string == input_string: return True else: return False # Test the program test_string = 'bob' if is_palindrome(test_string): print(...
# django initial stuff import os # Django specific settings os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") from django.core.wsgi import get_wsgi_application get_wsgi_application() #library imports import json from tangerine import Tangerine import arxiv from django.utils.timezone import now from datetime ...
#include "NXTControl.h" NXTControl::NXTControl(){ _serial = &Serial; } NXTControl::NXTControl(Stream &serial){ _serial = &serial; } void NXTControl::StartProgram(String name){ byte size = name.length() + 5; byte commandToSend[size]; commandToSend[0] = size-2; commandToSend[1] = 0x00; commandToSend[2] = DIR...
<reponame>ColonialDagger/PublixSubSaleNotifier<filename>run.py import time import requests import config import sys from bs4 import BeautifulSoup from twilio.rest import Client def pullrequest(): # Defines pullrequest() to pull source from url print("\n\n\nPulling new web page at %s...") % (time.time()) pul...
<gh_stars>10-100 var searchData= [ ['lightuserdata',['LightUserdata',['../namespacelua.html#ad9971b6ef33e02ba2c75d19c1d2518a1a6e4c577b4d0b098de1e834d2ccc96928',1,'lua']]] ];
import Cocoa struct Color { let colorName: String let colorCode: String let color: NSColor var selected: Bool init(colorName: String, colorCode: String, color: NSColor, selected: Bool) { self.colorName = colorName self.colorCode = colorCode self.color = color self.s...
function checkUserEmailVerification(context) { if (!context.params.user || !context.params.user.isVerified) { throw new errors.BadRequest("User's email is not yet verified."); } }
def get_currency(list_of_countries_and_currencies, country_name): for country_and_currency in list_of_countries_and_currencies: if country_name == country_and_currency[0]: return country_and_currency[1] return None
#!/usr/bin/env bash set -ev # Run 'blt' phpunit tests, excluding deploy-push tests. phpunit ${BLT_DIR}/tests/phpunit --group blt --exclude-group deploy-push set +v
#!/bin/bash PROGNAME="$( basename $0 )" # Usage function usage() { cat << EOS >&2 Usage: ${PROGNAME} Options: -c, --coverage Minimum read coverage allowed for the predicted transcripts. (default: 5) -l, --length Minimum length allowed for the predicted transcripts. (default: 74) -h, --help ...
<gh_stars>10-100 /* * Copyright (C) 2022 HERE Europe B.V. * * 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 ap...
<reponame>skylark-integration/skylark-browserfs define(['../core/global'], function (global) { 'use strict'; /** * @hidden */ let bfsSetImmediate; if (typeof (setImmediate) !== "undefined") { bfsSetImmediate = setImmediate; } else { const gScope = global; const ...
<filename>experimental/pqcrypto/cc/subtle/cecpq2_hkdf_sender_kem_boringssl_test.cc // 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/sh # 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...
#!/usr/bin/env bash shopt -s -o pipefail set -e # Exit on error PKG_NAME="coreutils" PKG_VERSION="8.31" TARBALL="${PKG_NAME}-${PKG_VERSION}.tar.xz" SRC_DIR="${PKG_NAME}-${PKG_VERSION}" LINK="http://ftp.gnu.org/gnu/$PKG_NAME/$TARBALL" function showHelp() { echo -e "------------------------------------------------...
<reponame>despo/apply-for-teacher-training<gh_stars>0 require 'rails_helper' RSpec.feature 'Entering their work history' do include CandidateHelper around do |example| Timecop.freeze(Time.zone.local(2019, 11, 1)) do example.run end end scenario 'Candidate deleting their only job entry should al...
<!DOCTYPE html> <html> <head> <title>Form</title> </head> <body> <form action="" method="POST"> <label for="name">Name:</label> <input type="text" name="name"> <br> <label for="email">Email:</label> <input type="email" name="email"> <br> <input type="submit" valu...
<?php $sentence = "Hello world!"; $numWords = str_word_count($sentence); echo $numWords; ?>
echo 'echo $1 $2' | sh -s a b
import sys from os import path from LDA import TCVB0 sys.path.append(path.abspath(path.join(path.dirname(__file__), ".."))) def show_usage(): print('Usage: demo1.py path_to_dataset [alpha beta]') sys.exit(1) def main(): if len(sys.argv) < 2 or len(sys.argv) > 4: show_usage() dataset_path = s...
import java.util.Random; public class RandomArray { public static int[] generateRandomArray(int size) { Random rand = new Random(); int[] randomArray = new int[size]; for (int i = 0; i < size; i++) { randomArray[i] = rand.nextInt(11); } return randomArray; ...
<reponame>gogui63/GPXWriter package fr.gautierragueneau.gpxwriter; import android.location.Location; import java.util.ArrayList; import java.util.List; /** * Created by gautier on 11/01/2017. */ public class GPX { private final String name; private final String description; private final String autho...
<filename>Project/SimuladorEnigma/src/simuladorenigma/Converter.java /* Classe que implementa so metodos Encripta() e converter(); Encripta agrupa e utiliza todos os outros componentes da maquina, em ordem para fazer a criptografia da letra. Converter converte o numero(int) para a letra correspondente(char...
#!/usr/bin/env bash set -e os=$(uname -s | tr "[:upper:]" "[:lower:]") case $os in linux) os="lnx" ;; darwin) os="mac" ;; *) printf "%s doesn't supported by bash installer" "$os" exit 1 ;; esac version="v0.1.16" curl -L -o svls-$version-x86_64-$os.zip "https://github.com/dalance/svls/releases/download...
<gh_stars>0 import { NgModule } from '@angular/core'; // Routing import { RouterModule, Routes } from '@angular/router'; // Shared import { SharedModule } from './shared/shared.module'; export const ROUTES: Routes = [ { path: '', loadChildren: './root/website-root.module#WebsiteRootModule' } ]; @NgModule({ ...
function isCouncilMember(address) { let members = app.sdb.getAll('CouncilMember') || [] members = members = members.sort((a, b) => b.votes - a.votes).slice(0, 3) return members.find(i => i.address === address) } module.exports = { async register(website) { if (!website || typeof website !== 'string' || we...