text
stringlengths
1
1.05M
import Head from 'next/head'; export const PageLayout = ({ children }) => { return ( <> <Head> <title>Diazno 2.0</title> <link rel='icon' href='/favicon.ico' /> </Head> <div className='bg-scorpion'>{children}</div> </> ); };
def reverse_string(string): new_words = [] words = string.split(' ') for word in words: rev_word = word[::-1] new_words.append(rev_word) rev_string = ' '.join(new_words) return rev_string reverse_string("The quick brown fox jumps over the lazy dog.")
<reponame>comediadesign/uniforms import FormControl from '@material-ui/core/FormControl'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormHelperText from '@material-ui/core/FormHelperText'; import FormLabel from '@material-ui/core/FormLabel'; import Radio from '@material-ui/core/Radio'; im...
<reponame>LuJie0403/iterlife-zeus package com.iterlife.zeus.demo.service.impl; public class ByeServiceImpl { public void bye(String name) { System.out.println("Bye:" + name); } }
mix test --exclude pendong mix coveralls --exclude pendong mix credo mix dogma
from typing import List def calculate_average(nums: List[str]) -> float: total = 0 count = 0 for num in nums: if num: try: total += float(num) count += 1 except ValueError: pass return total / count if count > 0 else 0
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004 <NAME> // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <algo...
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" . "$DIR/../prelude.sh" cd src set -o errexit mongo_binary=dist-test/bin/mongo${exe} activate_venv bin_ver=$($python -c "import yaml; print(yaml.safe_load(open('compile_expansions.yml'))['version']);" | tr -d '[ \r\n]') # Due to SERVER-23810, we cann...
<reponame>smartxyh/moose<filename>renderer/components/FilesList/index.ts<gh_stars>100-1000 export * from "./FilesList";
#!/bin/bash python RunSimulation.py --Geo 1.0 --sim_num 83
#!/bin/bash # This script installs MongoDB on your machine. This will require editing, depending on where you want to install # MongoDB, or if have already installed MongoDB. export SCRIPT_FOLDER="$( dirname "$(readlink -f -- "$0")" )" source $SCRIPT_FOLDER/set_tcapy_env_vars.sh if [ $DISTRO == "ubuntu" ]; then ...
import MergeResult from './merge-result'; import { JoinFunction, ConflictFunction } from './collater'; export interface DiffOptions { splitFunction: (s: string) => string[]; joinFunction: JoinFunction; conflictFunction: ConflictFunction; } export default function merge(left: string, base: string, right: str...
<reponame>joshiejack/Husbandry package uk.joshiejack.husbandry.entity.ai; import net.minecraft.entity.MobEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.tags.ITag; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft...
module.exports = { transform: { "\\.[jt]sx?$": "babel-jest" }, moduleNameMapper: { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js", "\\.(css|less|scss)$": "<rootDir>/__mocks__/styleMock.js" //webpack aliases } };
#!/bin/sh if [ -n "$DESTDIR" ] ; then case $DESTDIR in /*) # ok ;; *) /bin/echo "DESTDIR argument must be absolute... " /bin/echo "otherwise python's distutils will bork things." exit 1 esac DESTDIR_ARG="--root=$DESTDIR" fi echo_and_run() { e...
#!/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...
CREATE TABLE users ( name VARCHAR(255) NOT NULL PRIMARY KEY, city VARCHAR(255) );
def largest_element_matrix(matrix): # set largest element to the first element in matrix largest_element = matrix[0][0] for row in matrix: for elem in row: if elem > largest_element: largest_element = elem return largest_element
package com.github.johanbrorson.zebroid.configuration; import java.io.File; import java.lang.invoke.MethodHandles; import java.net.URL; import com.github.johanbrorson.zebroid.utils.PropertyHelper; import org.apache.commons.configuration2.CombinedConfiguration; import org.apache.commons.configuration2.FileBasedConfig...
/* * Copyright 2021 HM Revenue & Customs * * 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...
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.linear_model import LogisticRegression # Load data data = pd.read_csv('data.csv') # Split data into feature and target features = data.drop('Target', axis=1) target = data['Target']...
#!/bin/bash #SBATCH -J Act_tanhrev_1 #SBATCH --mail-user=eger@ukp.informatik.tu-darmstadt.de #SBATCH --mail-type=FAIL #SBATCH -e /work/scratch/se55gyhe/log/output.err.%j #SBATCH -o /work/scratch/se55gyhe/log/output.out.%j #SBATCH -n 1 # Number of cores #SBATCH --mem-per-cpu=6000 #SBATCH -t 23:59:00 # Hours, minutes ...
#!/bin/bash ECR_REPO="dropwizard" AWS_ACCOUNT_ID="XXXXXXXXXX" REGION="eu-west-1" docker build -t $ECR_REPO . aws ecr get-login --no-include-email --region ${REGION} docker tag $ECR_REPO:latest $AWS_ACCOUNT_ID.dkr.ecr.$REGION.amazonaws.com/$ECR_REPO:latest docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com...
/* * Merlin * * API Guide for accessing Merlin's model management, deployment, and serving functionalities * * API version: 0.14.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package client import ( "context" "io/ioutil" "net/http" "net/url" "strings" "github....
import { NextApiRequest, NextApiResponse } from "next" import { tracktryRes } from "../../lib/tracktry" export default async function (req: NextApiRequest, res: NextApiResponse) { const { query } = req console.log("hi") try { var postData = { tracking_number: "RA018458445JP" } var url = "http://api.track...
<gh_stars>0 package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 场馆查询子场馆详情 * * @author auto create * @since 1.0, 2021-11-29 20:37:19 */ public class SubV...
let player1 = 0; let player2 = 0; let turn = 0; while (player1 != 6 && player2 != 6) { let roll = Math.floor(Math.random() * 6) + 1; if (turn == 0) { player1 = roll; console.log("Player1 rolled a " + roll); } else { player2 = roll; console.log("Player2 rolled a " + roll);...
<filename>docs/theme/components/shared/Header/HeaderDropDown/Basic.js /** * 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 ...
#!/usr/bin/env python import click as ck import numpy as np import pandas as pd from tensorflow.keras.models import load_model, Model from subprocess import Popen, PIPE import time from utils import Ontology, NAMESPACES, FUNC_DICT from aminoacids import to_onehot import math from collections import Counter MAXLEN = 2...
const Request = require('../Request'); const assignementBase = { list(projectID, cb) { this.options.url = this.baseUri + projectID + '/' + this.name; new Request(this.options, cb); }, retrieve(projectID, taskAssignmentsID, cb) { this.options.url = this.baseUri + projectID + '/' + this.name + '/' +...
/* eslint-disable no-param-reassign */ import { GCD } from './gcd'; export default (servings: number, customServings: number, numerator: number, denominator: number): string => { // If there isn't a denominator. // We can assume the user wants to display // the recipe ings as decimals. if (denominator <= 1) { ...
#!/bin/bash # (c) Copyright [2021] Micro Focus or one of its affiliates. # 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 a...
import { Schema, Validator, ValidatorResult } from 'jsonschema'; import values = require('lodash.values'); import { schemas } from './schemas'; /** * A validator for [JSON-schemas](http://json-schema.org/) */ export class SchemaValidator { private _validator: Validator; /** * Instantiates a SchemaValid...
<reponame>freenet-233/finance-gateway package pacs008; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * Information related to a proxy identification of the account. * *...
<reponame>DatOneLefty/wot-in-conjugation<filename>conj.js function process() { var verb = document.getElementById("verb").value; var noun = document.getElementById("n").value; if (noun == "") { con(0, verb); } else { con(1, verb); } } function con(type, verb) { var end = verb.slice(-2, verb.length); console.log(en...
<gh_stars>1-10 import random a = [str(random.randrange(1, 8))] + [str(random.randrange(0, 8)) for _ in range(333333)] print(''.join(a))
SELECT * FROM Defects WHERE Status = 'Open' AND Category = 'Bug'
#!/bin/sh for i in $(seq 0 $(($(nproc --all)-1))); do julia --threads auto server.jl & done while : ; do sleep 1 ; done
package sdk import ( "context" "errors" "fmt" "github.com/chmurakrajowa/terraform-provider-ochk/ochk/sdk/gen/client/firewall_rules_e_w" "github.com/chmurakrajowa/terraform-provider-ochk/ochk/sdk/gen/models" "github.com/go-openapi/strfmt" "net/http" ) type FirewallEWRulesProxy struct { httpClient *http.Client ...
const express = require('express'); const router = express.Router(); const multer = require("multer"); const File = require('../../models/pdf_files'); const date = Date.now(); let file_path = '' const storage = multer.diskStorage({ destination: "./upload/", filename: function(req, file, cb){ file_path = date...
const object = { "Apple": "", "Orange": "", "Carrot": "" };
<reponame>CodingMankk/16-BRVAHDemo package com.oztaking.www.a16_brvahdemo.BRVADLoadMoreDemo; import android.os.Handler; import android.os.Looper; import com.oztaking.www.a16_brvahdemo.BRVADDemo.DataServer; /*********************************************** * 文 件 名: * 创 建 人: OzTaking * 功 能: * 创建日期: * 修改时间: *...
import * as NS from '../../namespace'; import {makeCommunicationActionCreators} from 'shared/helpers/redux'; export const { execute: openChannel, completed: openChannelSuccess, failed: openChannelFailed} = makeCommunicationActionCreators<NS.IOpenChannel, NS.IOpenChannelSuccess, NS.IOpenChannelFail>( 'CHAT:OPEN_C...
#!/bin/bash EXODUS_VERSION=$1 echo EXODUS_VERSION=$EXODUS_VERSION #./googlecode_upload.py --help #Usage: googlecode-upload.py -s SUMMARY -p PROJECT [options] FILE # #Options: # -h, --help show this help message and exit # -s SUMMARY, --summary=SUMMARY # Short description of the fil...
/*******************************************************/ /* "C" Language Integrated Production System */ /* */ /* CLIPS Version 6.30 08/22/14 */ /* */ /* ...
#!/bin/sh #sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 #sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list' # #sudo apt update #sudo apt install -y mongodb-org # sudo sed -i.bak 's/bindIp: 127.0.0.1...
package com.kinstalk.satellite.service.api; import com.kinstalk.satellite.domain.Menu; import java.util.List; public interface MenuService { public Menu queryMenu(Long id); public long deleteMenu(Long id); public long saveMenu(Menu menu); public void removeMenuCache(); public void moveUpMen...
#!/usr/bin/env -S bash -euET -o pipefail -O inherit_errexit SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- mkdir -p log rm -R -f log/* touch log/stderror.err ktools_monitor.sh $$ & pid0=$! exit_handler(){ exit_code=$? kill -9 $pid0 2> /dev/null if [ "$exit_code" -gt 0 ]; then ...
import { Helper } from "./helper"; //storage functions export class Storage { helper: any; constructor(config) { this.helper = new Helper(config); } async list(callback) { const data = {}; const url = '/storage'; return await thi...
#!/bin/bash for i in `seq 1 2` do awk -v snp=$snp -F" " '$1 == "'"$snp"'" {print}' phasedPO_g0.15_AD_gexppl.tped | awk '{for(i=2;i<=NF;i=i+2){printf "%s ", $i}{printf "%s", RS}}' > 'chr'$snp'_phased' done
import nltk from flask import Flask, request, jsonify from nltk.sentiment.vader import SentimentIntensityAnalyzer app = Flask(__name__) sid = SentimentIntensityAnalyzer() @app.route('/', methods=['POST']) def sentiment(): text = request.data ss = sid.polarity_scores(text) return jsonify(ss) if __name__ == '__...
#include <vector> std::vector<int> cumulativeSum(const std::vector<int>& input, std::size_t limit, unsigned long count, bool copy) { std::vector<int> result; std::size_t actualLimit = (limit < input.size()) ? limit : input.size(); if (copy) { std::vector<int> inputCopy = input; for (st...
int sellMarket(double tradingLots,double stopLoss,double takeProfit,int expiration=0,color tradeColor=Red) { int ticket=OrderSend(Symbol(),OP_SELL,tradingLots,Bid,3,NormalizeDouble(stopLoss,Digits),NormalizeDouble(takeProfit,Digits),"Sell market trade",16384,expiration,tradeColor); if(ticket>0) { if...
#!@bash@/bin/bash set -eo pipefail shopt -s nullglob export PATH=@path@ usage() { echo "usage: $0 -t <timeout> -c <path-to-default-configuration> [-d <boot-dir>] [-g <num-generations>]" >&2 exit 1 } timeout= # Timeout in centiseconds default= # Default configuration target=/boo...
#!/bin/sh set -e set -u set -o pipefail if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the script phase was successful). exit 0 fi echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_P...
<reponame>soonitoon/dwitter import React, { useState } from "react"; import { AuthService } from "mybase"; import AuthWithSocial from "components/AuthWithSocial"; import { BsPeople, BsSearch } from "react-icons/bs"; import { IoLogoTwitter } from "react-icons/io5"; const AuthForm = () => { const [error, setError] = u...
#!/bin/bash -l ############################################################## # # Shell script for submitting parallel python jobs on SLURM # cluster with nodes, CPUS, tasks, GPUs # ############################################################## # ml python/3.6.0 # ml cuda/9.0 module unload git ml anaconda-python/3.6 ...
#!/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...
<gh_stars>10-100 /*! Copyright (c) 2013 <NAME>. License: BSD 3-Clause. */ (function(){ var body = document.querySelector('body'), advertisement = body.querySelector('.advertisement'), adCloseButton = advertisement.querySelector('.close-button'); body.style.overflow = 'hidden'; adCloseButton...
<reponame>Antloup/workflow-js import Action from './Action'; import Comparator from './Comparator'; import Condition from './Condition'; import ParentType from './ParentType'; import Rule from './Rule'; export {Action, Comparator, Condition, ParentType, Rule};
#!/bin/bash echo 'BWCE-AWS: Start of EC2 Instance UserData execution...' export PATH=/home/ec2-user/.local/bin:$PATH export PYTHONPATH=$PYTHONPATH:/home/ec2-user/.local/lib/python2.7/site-packages echo 'BWCE-AWS: Install Docker-ce...' sudo yum install -y yum-utils device-mapper-persistent-data lvm2 sudo yum-config-mana...
import React from 'react' import { Plain, types, uuid } from 'react-bricks' import BlockNames from '../BlockNames' import styles from './Features.module.css' //============================= // Colors enum //============================= const Colors = { white: { value: '#fff', label: 'White' }, lightGray: { value...
/* eslint-env webextensions */ let linkElements chrome.runtime.onMessage.addListener((message, sender, sendResponse) => { switch (message.type) { case 'HREFS_REQUEST': linkElements = Array.from(document.querySelectorAll('[href]')) const hrefs = linkElements .map(link => link.href) .fil...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../../multiplex')) : typeof define === 'function' && define.amd ? define(['../../multiplex'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.mx)...
<filename>src/models/token/RefreshTokenRepository.ts import { EntityRepository, Repository } from 'typeorm'; import { User } from '../user/User'; import { AbstractTokenHelper } from './AbstractTokenHelper'; import { IAbstractTokenRepository } from './IAbstractTokenRepository'; import { RefreshToken } from './RefreshTok...
package com.misakiga.husky.provider.domain; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; /** * @author...
<reponame>thexdesk/ipfs-companion 'use strict' /* eslint-env browser, webextensions */ require('./quick-import.css') const browser = require('webextension-polyfill') const choo = require('choo') const html = require('choo/html') const logo = require('./logo') const drop = require('drag-and-drop-files') const fileRead...
import React from "react"; import { connect } from "react-redux"; import { getSpotifyTokenThunk } from "../store/spotifyAuth"; import { getAllSongsThunk } from "../store/allSongs"; class FavoriteSongs extends React.Component { async componentDidMount() { await this.props.getSpotifyToken(); await this.props.g...
#include <iostream> int add(int a, int b) { while (b != 0) { int carry = a & b; a = a ^ b; b = carry << 1; } return a; } int main() { int a = 5, b = 7; std::cout << add(a, b) << std::endl; return 0; }
<filename>src/gapp/Hits.hpp<gh_stars>1-10 /** * @file Hits.hpp * * Created on: 23.07.2013 * @author: <NAME> (<EMAIL> at gmail dot com) */ #ifndef ZMIJ_GAPP_HITS_HPP_ #define ZMIJ_GAPP_HITS_HPP_ #include <gapp/Types.hpp> namespace gapp { struct SystemInfo { /** * Screen Resolution * * Optional. *...
#!/usr/bin/env bash set -eu -o pipefail STACK_ARGS=( --ghc-options -Werror ) if [[ "$*" != *--local-bin-path* ]]; then STACK_ARGS+=(--local-bin-path /usr/local/bin) fi # tasty-discover-3.0.2 does not discover all modules by default, but this # flag is deprecated in newer versions if [[ "${STACK_YAML}" == "s...
<gh_stars>1-10 #pragma once #include <iostream> #include <vector> #include <string> #define COMMENT_CHAR "#" #define WHITESPACE " \t" namespace lines { struct line { int number; std::string text; }; void trim_line(line &input); using lines = std::vector<line>; lines lines_from_cin(); lines clean_lines(line...
/** * 中科方德软件有限公司<br> * june.web.service:com.june.web.service.CXF.CalculateServer.java * 日期:2017年3月26日 */ package com.june.web.service.CXF; import org.apache.cxf.frontend.ServerFactoryBean; import org.apache.cxf.jaxws.JaxWsServerFactoryBean; /** * CalculateServer <br> * 服务端使用JaxWsServerFactoryBean类,来提供WebService...
func invertTree(root *TreeNode) *TreeNode { if root == nil { return nil } right := invertTree(root.Right) left := invertTree(root.Left) root.Left = right root.Right = left return root } func main() { tree := &TreeNode{ Val: 4, Left: &TreeNode{ ...
#!/bin/csh # generated by BIGNASim metatrajectory generator #$ -cwd #$ -N BIGNaSim_curl_call_NAFlex55cd8ec1d0e35 #$ -o CURL.NAFlex55cd8ec1d0e35.out #$ -e CURL.NAFlex55cd8ec1d0e35.err # Launching CURL... # CURL is calling a REST WS that generates the metatrajectory. curl -i -H "Content-Type: application/json" -X GET -...
#!/bin/sh SERIAL_PORT="$1" logger -p local0.info -t mtrservice "Starting MTR Log Extractor on port $SERIAL_PORT" /home/pi/mtr-log-extractor/venv/bin/python3 /home/pi/mtr-log-extractor/mtr-log-extractor.py -p $SERIAL_PORT -t 120 -f /home/pi/extracts/mtr-{}.log -d dropbox /home/pi/dropbox.token
//##################################################################### // Copyright 2009, <NAME>, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //###################################################################...
#!/bin/bash python exploit13/exploit13.py &> exploit13/exploit13.log
#!/bin/bash set -eo pipefail shopt -s expand_aliases _log="[$(date) $(whoami)] " _red=${_log}'\033[0;31m'; _green=${_log}'\033[0;32m'; _yellow=${_log}'\033[1;33m'; _nocol='\033[0m'; function usage() { echo $" USAGE: [ -a <T|TN> -c _condaenv -m <run|config|all> -t <panel|WGS> -r ] -a [required] T: Tumor only, T...
#!/bin/bash TASK=18 MODEL=ctrl_vl-bert MODEL_CONFIG=ctrl_vl-bert_base TASKS_CONFIG=xm-influence_test_tasks PRETRAINED=/science/image/nlp-datasets/emanuele/checkpoints/mpre-unmasked/conceptual_captions_s93/volta/ctrl_vl-bert/ctrl_vl-bert_base/pytorch_model_9.bin OUTPUT_DIR=/science/image/nlp-datasets/emanuele/results/x...
<filename>src/pk/helper/license.go package helper import ( "crypto/aes" "crypto/cipher" "crypto/md5" "crypto/rand" "encoding/hex" "encoding/json" "errors" "fmt" "github.com/denisbrodbeck/machineid" "io" "io/ioutil" "os" "path" "path/filepath" "regexp" "time" ) type LicenseInfo struct { Email string...
public class DcpEvent { // Properties and methods for DCP event } public class ClientFixture { // Setup and configuration for interacting with the database } public class DcpEventService { private readonly ClientFixture _fixture; public DcpEventService(ClientFixture fixture) { _fixture = ...
<reponame>frc1418/2014<gh_stars>1-10 # # This file is part of Team 1418 Dashboard # # Team 1418 Dashboard is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3. # # Team 1418 Dashboard is di...
python3 $DEFFE_DIR/framework/run_deffe.py -config $DEFFE_DIR/example/config_matmul_tl_samples.json -icp ../../kmeans.hdf5 -only-preloaded-data-exploration -epochs 1000 -batch-size 256 -train-test-split 1.0 -validation-split 0.23 python3 $DEFFE_DIR/framework/run_deffe.py -model-extract-dir checkpoints -config $DEFFE_DI...
#!/bin/bash device=`xinput list | grep TouchPad | egrep -o 'id=[0-9]?{3}' |\ egrep -o "[0-9]?{3}"` state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"` if [ $state == '1' ];then xinput --disable $device && notify-send "Touchpad disabled" -u low else xinput --enable $device && noti...
<reponame>smagill/opensphere-desktop<gh_stars>10-100 // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompi...
<filename>vnpy/api/gateio/__init__.py<gh_stars>10-100 # encoding: UTF-8 from .vngate import Gate_DataApi,Gate_TradeApi
var fs = require('fs'), path = require('path'), omxplayer = require('./modules/omxplayer/omxplayer'); var commandMap = omxplayer.commandMap, playerCommand = omxplayer.command, playerPlay = omxplayer.play, playerStop = omxplayer.stop; exports.setup = omxplayer.setup; exports.cleanup = omxplayer.cle...
<filename>examples/maiorNotaAlunos/frontend/src/app/core/interface/base-model.component.ts import { OnInit } from '@angular/core'; import { BaseComponent } from './base.component'; import { AppInjector } from '../../app.injector'; import { CrudService } from '../service/crud.service'; import { ActivatedRoute } from '@...
const fileUrl = require('file-url') const mathjaxFileUrl = fileUrl(require.resolve('mathjax/unpacked/MathJax.js')) module.exports = { content: (node) => { // logic borrowed from Asciidoctor HTML5 converter if (node.getAttribute('stem') !== undefined) { let eqnumsVal = node.getAttribute('eqnums') ...
#!/usr/bin/env bash #MIT License # #Copyright (c) 2017 Aleksandar Babic # #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, including without limitation the rights #to use, c...
<filename>include/re/lib/fft/hann_window.hpp // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. #pragma once #include <c...
#!/bin/bash set -e set +x ##################################################################################################### # 1. global variables, you can change them according to your requirements ##################################################################################################### # armv7 or armv8...
/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * 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 ...
<reponame>lujanan/leetcode //给定一个数组 prices ,其中 prices[i] 是一支给定股票第 i 天的价格。 // // 设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易(多次买卖一支股票)。 // // 注意:你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 // // // // 示例 1: // // //输入: prices = [7,1,5,3,6,4] //输出: 7 //解释: 在第 2 天(股票价格 = 1)的时候买入,在第 3 天(股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5-1 = 4 。 // 随后,在第 4 天(股...
function install_brew_bundle() { # [bundle_name ...] local bundle_name_list=( "$@" ) local x1 ## for x1 in "${bundle_name_list[@]}" ; do xx : xx brew bundle install --file="${x1}" done }
# ETCD v3, using v2 API # Generate certs tee bootstrap-certs.py <<-'EOF' #!/opt/mesosphere/bin/python import sys sys.path.append('/opt/mesosphere/lib/python3.6/site-packages') from dcos_internal_utils import bootstrap if len(sys.argv) == 1: print("Usage: ./bootstrap-certs.py <CN> <PATH> | ./bootstrap-certs.py et...
import { delay } from "./utils"; import { rpc, DELAY_MS } from "./config"; import { EosioDelband } from "./interfaces"; /** * Get Table `eosio::delband` */ export async function get_table_delband(scopes: Set<string>) { const delband: EosioDelband[] = []; for (const scope of Array.from(scopes)) { cons...
from typing import List def get_unique_elements(input_list: List[int]) -> List[int]: unique_elements = [] seen = set() for num in input_list: if num not in seen: unique_elements.append(num) seen.add(num) return unique_elements
def convert_dict_to_list(d): l = [] for key, value in d.items(): l.append([key,value]) return l