text
stringlengths
1
1.05M
#include <iostream> #include <string> #include <stdexcept> #include "kaitai/kaitaistream.h" class rsm_t { public: rsm_t(kaitai::kstream* ks) : m__io(ks), m_scale_key_frames(0), m_volume_boxes(0) {} void read() { try { _read(); } catch (...) { _clean_up(); th...
#!/bin/bash set -e echo '===> DSE Configuration' # Default addresses to use for DSE cluster if starting in Docker dse_ip='dse' dse_external_ip=$KILLRVIDEO_DOCKER_IP dse_enable_ssl='false' # Create cql_options variable to consolidate multiple options into one # variable for easier reading cql_options='' # Use space v...
""" Generate a function for calculating the Euclidean distance between two points """ import numpy as np def euclidean_distance(point1, point2): """ Calculates the Euclidean distance between two n-dimensional points """ point1 = np.array(point1) point2 = np.array(point2) distance = np.li...
#!/bin/bash set -x export MYSQL_PWD=nuserv-demo get_data(){ # get = $(date +%Y-%m-%d --date='100 day ago') # DAYS="100" dt=$(date '+%d/%m/%Y %H:%M:%S'); file=$(date '+%d-%m-%Y'); onehundreddays="$(date +%m-%d-%Y --date='100 day ago')" current="$(date '+%m-%d-%Y')" if [ -f "remarks.*" ];...
#!/bin/bash set -euo pipefail # Make preinstall a no-op, we ship node as a tarball. echo '#!/bin/bash' > scripts/preinstall.bash yarn install yarn build cp ./lib/node/node $PREFIX/bin/node-nbin
import { User, UserProfile } from '../../../models'; export const schema = [ ` # User profile data for creating a new local database user account input UserProfile { # A display name for the logged-in user displayName: String! # A profile picture URL picture: String # The user's gender ...
def findMax(arr): maxNum = arr[0] for num in arr: if num > maxNum: maxNum = num return maxNum arr = [5, 10, 15, 20, 25] result = findMax(arr) print(result)
// Grab the articles as a json $.getJSON("/articles", function (data) { // For each one for (var i = 0; i < data.length; i++) { // Display the apropos information on the page var accordion = $("<div class = 'accordion' id = 'accordion'>").appendTo($("#articles")); var card = $("<div class = 'card'>").a...
// The solution provides a complete implementation of the BinFileOutputStream class with the required getter methods and error handling for file I/O operations.
#!/usr/bin/env bash # 装载其它库 ROOT=`dirname ${BASH_SOURCE[0]}` source ${ROOT}/file.sh # ------------------------------------------------------------------------------ nodejs 操作函数 # install Node Version Manager(nvm) installNvm() { local nvmVersion=0.35.2 if [[ $1 ]]; then local nvmVersion=$1 fi ...
#!/bin/bash # # build_android.sh # Copyright (c) 2012 Jacek Marchwicki # # 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 b...
<table border="1" width="100%"> <tr> <th></th> </tr> <tr> <td></td> </tr> </table>
<filename>JavaScript Algorithms and Data Structures Certification (300 hours)/Debugging/10. Catch Off By One Errors When Using Indexing.js /* Fix the two indexing errors in the following function so all the numbers 1 through 5 are printed to the console. (1) Your code should set the initial condition of the loop so i...
package net.silentchaos512.iconify.data.icon; import com.google.gson.JsonObject; import net.minecraft.util.ResourceLocation; import net.silentchaos512.iconify.icon.IconSerializers; public class ModIdIconBuilder extends IconBuilder { private final String modId; public ModIdIconBuilder(ResourceLocation id, Str...
int findMax(int arr[][N], int n) { int max = arr[0][0]; for (int i = 0; i < n; i++) for (int j = 0; j < n; j++) if (arr[i][j] > max) max = arr[i][j]; return max; }
<reponame>googleapis/googleapis-gen<gh_stars>1-10 # Generated by the protocol buffer compiler. DO NOT EDIT! # Source: google/cloud/dialogflow/v2beta1/context.proto for package 'google.cloud.dialogflow.v2beta1' # Original file comments: # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the...
<reponame>stalynbados/argon_lp2 export interface Curso { id: number; curso_nombre: string; curso_descripcion: string; curso_estado: number; }
<gh_stars>0 import tempfile import uuid from dagster import build_sensor_context, validate_run_config from dagster.core.instance import DagsterInstance from dagster.core.storage.pipeline_run import PipelineRun, PipelineRunStatus from hacker_news.pipelines.dbt_pipeline import dbt_pipeline from hacker_news.pipelines.dow...
<gh_stars>1-10 import { HardhatArguments, HardhatParamDefinitions, TaskArguments, TaskDefinition } from "../../types"; export declare class ArgumentsParser { static readonly PARAM_PREFIX = "--"; static paramNameToCLA(paramName: string): string; static cLAToParamName(cLA: string): string; parseHardhatArg...
<reponame>TSchlosser13/UOCTE<filename>src/converter.cpp #include "converter.hpp" namespace Converter { int load(const QString &path, oct_subject** mySubject) { if (path == "") return -1; else { try { *mySubject = new oct_su...
echo "-------------------------------Wine Quality Red AdaBoost----------------------------------" >> AdaBoost_wine_red for iter in 10 20 40 do for confidence in 0.125 0.25 0.5 do echo "------------------------------------------------------------------------------------------------" >> AdaBoost_wine_red echo "conf...
#!/usr/bin/env python3 ''' This scripts checks the metadata.json against a set of rules for allowed values. This allows degradation in results to be flagged as an error in the build. The rules file has the form { "rules": [ { "field" : "<name>", "value" : <numeric_value>, "...
#!/usr/bin/env bash # MIT License # Copyright (c) 2021 Martín Montes # 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, ...
def list_primes(start, end): primes = [] for num in range(start, end + 1): if num > 1: for i in range(2, num): if (num % i) == 0: break else: primes.append(num) return primes
import random def randomize(arr, n): # Start from the last element and # swap one by one. We don't need to # run for the first element # that's why i > 0 for i in range(n-1,0,-1): # Pick a random index j = random.randint(0,i+1) # Swap arr[i] with the element ...
const addLoggingToDispatch = (dispatch, getState) => { const rawDispatch = dispatch; if (!console.group) { return rawDispatch } return (action) => { console.group(action.type) console.log('%c prev state', 'color:gray', getState()) console.log('%c action', 'color:blue', ac...
<filename>src/tree/expressions/TPostfixExpressionA.java package tree.expressions; import tree.symbols.TSBracketLeft; import tree.symbols.TSBracketRight; public class TPostfixExpressionA extends TPostfixExpression { public TPostfixExpressionA(TPostfixExpressionA node) { super(node); } public TPostfixExpression...
<filename>src/main.js<gh_stars>0 import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import BootstrapVue from 'bootstrap-vue' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap-vue.css' import { library } from '@fortawesome/fontawesome-...
<gh_stars>10-100 /*------------------------------------------------------------------ * ossl_srv.h - Entry point definitions into the OpenSSL * interface for EST server operations. * * November, 2012 * * Copyright (c) 2012 by cisco Systems, Inc. * All rights reserved. *----------------------------...
#! /bin/bash set -ex if [[ "$target_platform" == "osx-arm64" ]]; then # Remove x86 specific flags. Upstream assumes Darwin is x86 sed -i.bak 's/-mfpmath=sse -msse2//g' src/CMakeLists.txt fi mkdir build cd build cmake ${CMAKE_ARGS} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_COLOR_MAKEFILE=OFF \ -DCMAKE_INSTALL_...
<filename>app/views/settings/settings-page.ts<gh_stars>0 import { EventData, Page, isIOS, PercentLength } from "tns-core-modules/ui/page/page"; import ViewModel from "./settings-page-vm"; export function onLoaded(args: EventData) { let page = <Page>args.object; if (isIOS) { const view = page.getViewByI...
#!/usr/bin/env bash set -e # Exit when any command fails. export REPO_PATH="$(pwd)/.." export BLUEPRINT_PATH="$(pwd)" export PYTHONPATH="$BLUEPRINT_PATH/py" export MYPYPATH="$PYTHONPATH" echo "Checking mypy" ./mypy.sh echo "Ok mypy" echo "Checking unit tests" python3 -m unittest unit_tests/*.py echo "Ok unit tests"...
#!/usr/bin/env sh # 当发生错误时中止脚本 set -e # 构建 npm run build # cd 到构建输出的目录下 cd dist # 部署到自定义域域名 # echo 'www.example.com' > CNAME git init git add -A git commit -m 'deploy' # 部署到 https://<USERNAME>.github.io # git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master # 部署到 https://<USERNAME>.github.io/<R...
#!/bin/sh . ~/.dzen-popup-config.sh for pid in `pgrep -f -x "/bin/sh /home/jln/.bin/dzen-kill-spawner.sh"` do kill "$pid" done SCREEN_WIDTH=$(sres -W) CAL_START=0 CAL_END=$((SCREEN_WIDTH/2)) #music_text=$(mpc current) #music_width=$(txtw -f $PANEL_FONT -s $PANEL_FONT_SIZE "$music_text") MUSIC_START=$((CAL_STA...
import { Component, Input, OnInit } from '@angular/core'; import { DbServiceService } from '../db-service.service'; import { ElectronService } from 'ngx-electron'; @Component({ selector: 'tree-branch', templateUrl: './tree-branch.component.html', styleUrls: ['./tree-branch.component.css'] }) export class TreeBra...
<filename>main.go //Copyright 2019 <NAME> //Licensed under the Apache License, Version 2.0 (the "License"); //you may not use this file except in compliance with the License. //You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 //Unless required by applicable law or agreed to in ...
import math def compute_area_of_the_circle(radius): return math.pi * (radius**2)
def flip_box(box): return [row[::-1] for row in box]
#!/bin/bash pip freeze | grep -v "^-e" | xargs pip uninstall -y
<gh_stars>0 """ Functions to read and write CSV file to / from numpy arrays. """ import csv import numpy as np comment = "#" # Comment delimeter def readCSV(file,cols = None,separ=",",headerskip = 0): """ Read simple csv file of floats with secified columns if supplied. :param file: the...
#!/usr/bin/env python # -*- coding: utf-8 -*- """This script has two purposes: 1. Apply the attributes from a cobra model to an existing Escher map. For instance, update modified reversibilities. 2. Convert maps made with Escher beta versions to valid jsonschema/1-0-0 maps. """ from __future__ import print_functi...
"use strict"; const chai = require('chai'); const expect = chai.expect; const CQL = require('../src/CQL'); describe('CQL', () => { describe('Select', () => { beforeEach( () => { this.select = (list) => CQL.select(list).from('kn', 'tb'); }); describe('.constructor(list)', () ...
/* * Copyright (c) 2013, 2015 Oracle and/or its affiliates. All rights reserved. This * code is released under a tri EPL/GPL/LGPL license. You can use it, * redistribute it and/or modify it under the terms of the: * * Eclipse Public License version 1.0 * GNU General Public License version 2 * GNU Lesser General ...
package org.dalol.magictooltipview; import android.content.Context; import android.graphics.drawable.BitmapDrawable; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.support.annotation.IdRes; import android.support.annotation.LayoutRes; import android.view.Gravity; import ...
#! /bin/bash # Runs the "345M" parameter model GPUS_PER_NODE=8 # Change for multinode config MASTER_ADDR=localhost MASTER_PORT=6000 NNODES=1 NODE_RANK=0 WORLD_SIZE=$(($GPUS_PER_NODE*$NNODES)) DATA_PATH=<Specify path and file prefix>_text_document CHECKPOINT_PATH=<Specify path> DISTRIBUTED_ARGS="--nproc_per_node $GP...
package org.sonatype.nexus.repository.protop.internal; import org.codehaus.groovy.runtime.DefaultGroovyMethods; import org.sonatype.nexus.repository.http.HttpStatus; import org.sonatype.nexus.repository.storage.MissingAssetBlobException; import org.sonatype.nexus.repository.storage.StorageFacet; import org.sonatype.ne...
<filename>planner/admin.py # coding=utf-8 # Python imports # Django imports from django.contrib import admin # Third party app imports # Local app imports from .models import Program, ProgramPhase, Workout, WorkoutDay, WorkoutSession class ProgramModelAdmin(admin.ModelAdmin): list_display = ["id", "name", "image", "...
#!/usr/bin/env bash # constants init_text=" WORKSPACE READY " status_work_text=" STATUS: WORKING " status_repose_text=" STATUS: REPOSE " init_padding=$(centerpad "$init_text") status_work_padding=$(centerpad "$status_work_text XX:XX:XX") status_repose_padding=$(centerpad "$status_repose_text XX:XX:XX")...
import streamlit as st import streamlit.components.v1 as components from pathlib import Path import pandas as pd import numpy as np import re from scipy.io.arff import loadarff import matplotlib.pyplot as plt import pydeck as pdk import wikipedia @st.cache() def load_mammals(): path_with_files = Path(r"C:\Users\...
#pragma once #include <KAI/Core/Config/Base.h> #include <KAI/Core/Pathname.h> #include <KAI/Core/Object/Object.h> KAI_BEGIN class Tree { public: typedef std::list<Object> SearchPath; private: SearchPath _path; Object _root, _scope; Pathname _current; public: void SetRoot(const Object &Q) { _roo...
<gh_stars>1-10 #ifndef ROSE_BinaryAnalysis_String_H #define ROSE_BinaryAnalysis_String_H #include <MemoryMap.h> #include <Sawyer/CommandLine.h> #include <Sawyer/Optional.h> namespace rose { namespace BinaryAnalysis { /** Suport for finding strings in memory. * * This namespace provides support for various kinds o...
<gh_stars>1-10 package Gray_Code; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Solution { public List<Integer> grayCode(int n) { if (n == 0) return Arrays.asList(0); if (n == 1) return Arrays.asList(0, 1); if (n == 2) return Arrays.asList(0, 1,...
<reponame>Raziel2244/nord nord.cartography = { // regions of the world regions: [ { name: "Kisarana", level: 0, chance: 95, advantages: ["chkd", "grfn", "pfwl", "stgl"], disadvantages: ["crvd", "inks", "orth", "pmkn", "unvs"], items: [ ["bkcl", "fthr", "sstk", "tnrk",...
#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR/.. DOCKER_IMAGE=${DOCKER_IMAGE:-lgcpay/lgcd-develop} DOCKER_TAG=${DOCKER_TAG:-latest} BUILD_DIR=${BUILD_DIR:-.} rm docker/bin/* mkdir docker/bin cp $BUILD_DIR/src/lgcd docker/bin/ cp $BUILD_DIR/src/lgc-cli docker/bin/ cp $BUILD_DIR/...
#!/usr/bin/env sh # # Ping Identity DevOps - Docker Build Hooks # #- Creates a message of the day (MOTD) file based on information prvoded by: #- * Docker Varibbles #- * Github MOTD file from PingIdentity Devops Repo #- * Server-Profile motd file # ${VERBOSE} && set -x # shellcheck source=pingcommon.lib.sh . "${HOOKS_...
#!/bin/bash echo '=============== Staring init script for My-eCommerce-AppAPI ===============' # save all env for debugging printenv > /var/log/colony-vars-"$(basename "$BASH_SOURCE" .sh)".txt echo '==> Installing Node.js and NPM' sudo apt-get update -y sudo apt install curl -y curl -sL https://deb.nodesource.com/se...
<gh_stars>1-10 /* * */ package net.community.chest.jfree.jfreechart.data; import net.community.chest.convert.DoubleValueStringConstructor; import org.jfree.data.Range; import org.w3c.dom.Element; /** * <P>Copyright 2008 as per GPLv2</P> * * @author <NAME>. * @since Jan 27, 2009 2:24:55 PM */ public class Base...
from typing import List def reorder_columns(col_list: List[str], col_order: List[int]) -> List[str]: return [col_list[i] for i in col_order]
package com.pinmi.react.printer.adapter; /** * Created by xiesubin on 2017/9/21. */ public class USBPrinterDeviceId extends PrinterDeviceId { private Integer vendorId; private Integer productId; public Integer getVendorId() { return vendorId; } public Integer getProductId() { ...
import tensorflow as tf def run_training_job(experiment_fn, arguments, output_dir): # Call the experiment function with the provided arguments experiment = experiment_fn(**arguments) # Create a run configuration for the training job run_config = tf.contrib.learn.RunConfig(model_dir=output_dir) ...
#!/bin/bash function parse_inputs { # required inputs if [ "${INPUT_KUSTOMIZE_VERSION}" != "" ]; then kustomize_version=${INPUT_KUSTOMIZE_VERSION} else echo "Input kustomize_version cannot be empty." exit 1 fi # optional inputs kustomize_build_dir="." if [ "${INPUT_...
<filename>Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx /* * 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 fil...
/* ISC license. */ #include <skabus/rpc.h> #include "skabus-rpc-internal.h" uint64_t skabus_rpc_sendv_withfds (skabus_rpc_t *a, char const *ifname, struct iovec const *v, unsigned int vlen, int const *fds, unsigned int nfds, unsigned char const *bits, tain_t const *limit, tain_t const *deadline, tain_t *stamp) { re...
<gh_stars>100-1000 package workflows import ( res "github.com/pikami/tiktok-dl/resources" fileio "github.com/pikami/tiktok-dl/utils/fileio" log "github.com/pikami/tiktok-dl/utils/log" ) // CanUseDownloadBatchFile - Check's if DownloadBatchFile can be used func CanUseDownloadBatchFile(batchFilePath string) bool { ...
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 (str.charAt(left) != str.charAt(right)) { retu...
#!/bin/bash # Author: Burak Himmetoglu # Date : 04-13-2017 # -- AlcNet -- # # Download data from PubChem repository wget ftp://ftp.ncbi.nlm.nih.gov/pubchem/Compound_3D/01_conf_per_cmpd/SDF/00000001_00025000.sdf.gz wget ftp://ftp.ncbi.nlm.nih.gov/pubchem/Compound_3D/01_conf_per_cmpd/SDF/00025001_00050000.sdf.gz wget ...
#!/bin/bash #DM*20151117 NotepadPlusPlusPortable(6.8.6) French version succesfully based #On Host: KUbuntu(15.10), Docker(1.9.0) through KRDC-VNC(4.14.1) #On Client with Root account: Ubuntu(14.10), Wine(1.17.50) #DM*20151117 downloadFilePath complex selection files #Specific Windows PortableApps registry winProgram...
/* Append. Along with C library Remarks: Return the number of copied bytes. */ # define CBR # include <conio.h> # include <stdio.h> # include <stdlib.h> # include "../../../incl/config.h" signed(__cdecl cli_append(signed char(*appendant),CLI_TYPEWRITER(*argp))) { /* **** DATA, BSS and STACK */ auto signed char ...
#include <cmath> #include "glass/Uniform" #include "glass/common.h" #include "glass/SpotLight" #include "glass/samplerCube" #include "glass/utils/transform.h" #include "glass/utils/helper.h" using namespace glass; SpotLight::SpotLight() { setCoverage(32); update_internal(); update_mat(); } void SpotLight::update...
class DashboardPortal extends TatorPage { constructor() { super(); this._loading = document.createElement("img"); this._loading.setAttribute("class", "loading"); this._loading.setAttribute("src", "/static/images/tator_loading.gif"); this._shadow.appendChild(this._loading); // ...
import torch from torch import nn from models import ResNeXtBottleneck, DownBlock, Flatten class Discriminator(nn.Module): def __init__(self, dim: int): super(Discriminator, self).__init__() self.main = nn.Sequential(*[ DownBlock(3, dim // 2, 4), DownBlock(dim // 2, dim //...
# define the list my_list = c(1, 2, 3, 4, 5) # compute the mean of the list mean_list = mean(my_list) # print the result print("The mean of the list is: " + mean_list)
<reponame>MiguelDelPinto/LCOM_TPs #ifndef _LCOM_SPRITE_H_ #define _LCOM_SPRITE_H_ /** @defgroup sprite sprite * @{ * * File for sprite type, holding functions and types to manage sprites */ /** * @brief struct Sprite * * @param x the x coordinate of the current position * @param y the y coordinate of thecur...
try: import wpilib except ImportError: from pyfrc import wpilib class MyRobot(wpilib.SimpleRobot): state = 1 def __init__ (self): super().__init__() print("Matt the fantastic ultimate wonderful humble person") wpilib.SmartDashboard.init() #self.digita...
ansible-playbook -i inventory create-kubeadm-cluster.yml --tags=init
<gh_stars>1-10 // Generated by script, don't edit it please. import createSvgIcon from '../createSvgIcon'; import WaitSvg from '@rsuite/icon-font/lib/flow/Wait'; const Wait = createSvgIcon({ as: WaitSvg, ariaLabel: 'wait', category: 'flow', displayName: 'Wait' }); export default Wait;
#!/bin/bash ## PREREQUISITES: ### install somehow bundletool DIR_KEYSTORE=~/src/dmsl/play-keystores KS=$DIR_KEYSTORE/anyplace.jks KS_PASS=$DIR_KEYSTORE/keystore.pwd KEY_PASS=$KS_PASS IN=logger-release.aab APKS=logger.apks bundletool build-apks \ --bundle=$IN --output=$APKS \ --ks=$KS --ks-pass=file:$KS_PASS \ ...
#!/usr/bin/env bash # # Copyright (c) 2019-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. export LC_ALL=C.UTF-8 export HOST=x86_64-apple-darwin16 export PIP_PACKAGES="zmq" export GOAL="install" e...
/*jshint -W079*/ var Promise = require('bluebird') /*jshint +W079*/ var _ = require('lodash') var fs = require('fs') var path = require('path') var rjConfig = require('../config/config').rjsConfig /** * 识别通配符下所有的文件 */ var detectWildcards = Promise.coroutine(function* (basePath, keys) { // 读取通配符下所有的文件 var fil...
function publishTweets(client, timestampMs) { const tweetsToPublish = []; const tweetQueue = []; client.lastId = client.tweets[0].id; for (let idx = 0; idx < client.tweets.length; idx++) { const tweet = client.tweets[idx]; if (tweet.timestamp_ms <= timestampMs) { tweetsToPublish.push(tweet); }...
package main // file generated by // github.com/mh-cbon/http-clienter // do not edit import ( "errors" httper "github.com/mh-cbon/httper/lib" "net/http" ) // HTTPClientControllerRPC is an http-clienter of *Controller. // Controller of some resources. type HTTPClientControllerRPC struct { Base string } // NewHTT...
#!/usr/bin/env bash echo stopping IotFrontend docker stop IotFrontend echo removing IotFrontend docker rm IotFrontend echo list active docker containers docker ps
$(() => { var totalexpenses = 0 var totalincome = 0 var theme = 0 //var balance = 0 $('#usernamebtn').on('click', () => { console.log('按到了喔') var name = $('#username').val() $('#title').text(name + "'s Money Manager") }) //change the theme $...
<filename>SRC/UTILS/LFDS/liblfds6.1.1/liblfds611/src/lfds611_abstraction/lfds611_abstraction_cas.c /* * Copyright (c) 2015, EURECOM (www.eurecom.fr) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
#!/bin/bash image_path="/home/lurps/ba_schraven/datasets/obj_detection_frames" result_path="/home/lurps/ba_schraven/results/yolo/obj_detection" WD="/home/lurps/catkin_ws/src/obj_detection/darknet" cmd="./darknet detector test custom/OfficeHomeDataset_smallv2.data custom/OfficeHomeDataset_smallv2/yolov2-tiny-deploy.cfg...
const net = require('net'); const pg = require('pg'); // PORT IN WHICH THE SERVER IS LISTENING const PORT = 3000; // DATABASE CONFIGURATION const config = { user: 'username', password: 'password', database: 'mydb', host: 'localhost', port: 5432 }; let pool; const initializePool = () => { // CREATE A CONNECTIO...
import { COLORS, TRANSPARENT_BLACK } from '../colors'; describe('COLORS', () => { it('should have expected values', () => { expect(COLORS).toMatchSnapshot(); }); }); describe('TRANSPARENT_BLACK', () => { it('should have expected values', () => { expect(TRANSPARENT_BLACK).toMatchSnapshot(); }); });
for i in {1..100}; do ../../bin/arcyon query > /dev/null done # ----------------------------------------------------------------------------- # Copyright (C) 2013-2014 Bloomberg Finance L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the...
#!/usr/bin/env bats load helpers image="${IMAGE_NAME}:${CUDA_VERSION}-devel-${OS}${IMAGE_TAG_SUFFIX}" function setup() { check_runtime } @test "check_architecture" { narch=${ARCH} if [[ ${ARCH} == "arm64" ]]; then narch="aarch64" fi docker pull ${image} docker_run --rm --gpus 0 ${ima...
import requests import re def fetch_emails(url): page = requests.get(url) emails = re.findall(r"[a-z0-9\.\-+_]+@[a-z0-9\.\-+_]+\.[a-z]+", page.text) for email in emails: print(email)
<reponame>brunohaveroth/leads2b-project /** * 400 (Bad Request) Response * * Usage: * return res.badRequest(); * return res.badRequest(data); * * @param {String|Object} data **/ module.exports = function sendBadRequest(data) { return this.res.status(400).send(data); };
#!/bin/bash dieharder -d 3 -g 403 -S 994591671
<filename>src/pcam5c/gpio.cpp /* * MIT License * * Copyright (c) 2021 <NAME> * * 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 rig...
$("element").mouseover(function(){ $(this).css("background-color", "red"); });
from setuptools import setup, find_packages setup( name='connectome_atrophy', version='0.1', description='A toolbox for mapping brain image analysis to a connectome', license='Apache License', maintainer='<NAME>, <NAME>, <NAME>', maintainer_email='<EMAIL>; <EMAIL>; <EMAIL>', include_package...
import requests def toggle_telemetry(domain, token, telemetry=True): headers = { 'Authorization': f'Bearer {token}', 'Content-Type': 'application/json' } url = f'https://{domain}/api/v2/tenants/settings' data = { 'flags': { 'enable_telemetry': telemetry } ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: edge.proto package com.ciat.bim.server.edge.gen; /** * Protobuf type {@code edge.ConnectRequestMsg} */ public final class ConnectRequestMsg extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_imp...
/* TKGTOOLS stands for Tgpp Key Generator Tools(MILENAGE defined in 3GPP TS 35.205). It implemente f1 - f5, f1*, f5* functions defined in 3GPP TS 35.205/35.206. These functions are also known as MILENAGE Algorithm Set. Test data could be find in TS 35.208. Specification is here: https://www.3gp...
exports.up = function(knex, Promise) { return knex.schema.createTable('auth', users => { users.increments('userId'); users.string('username', 128) .notNullable() .unique(); users.string('password', 128).notNullable(); }) .createTable('users', users => { ...
export interface Product { id?: number; name: string; franchise: string; price: number; description: string; height: number; width: number; weight: number; distributor: string; reference: string; stock: number; actual_stock?: number; image?: string; imagefull?: string; }