text
stringlengths
1
1.05M
/* * Copyright (c) Open Source Strategies, Inc. * * Opentaps is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published * by the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Opentap...
#!/usr/bin/env bash SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink scriptroot="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$scriptroot/$SOURCE" # if $SOURCE was a relative symlink, we need...
<gh_stars>1-10 package demo._42.event; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.context.event.ContextStartedEvent; import org.springframework.context.event.Even...
# optimized code snippet to sort the given array arr = [5, 4, 3, 2, 1] arr.sort() print(arr) # arr is now sorted in ascending order as [1, 2, 3, 4, 5]
<reponame>toni240598/ems-angular2 import { Injectable } from '@angular/core'; import { Http } from "@angular/http"; import { Observable } from "rxjs/Observable"; import "rxjs/add/operator/map"; @Injectable() export class LoopbackService { constructor(private http:Http) { } dataSet = { location : { type:"G...
const webpack = require('webpack'); const path = require('path'); const fs = require('fs'); const cheerio = require('cheerio'); const getDllConfig = require('./config/webpack.dll'); async function checkRebuildDll(outputDir, dependencies, log) { // Generate dependencies.json or compare dependencies const dependenci...
# Linux Shell > Text Processing > Tail of a Text File #1 # Introduction to the 'tail' command. # # https://www.hackerrank.com/challenges/text-processing-tail-1/problem # tail -20
Turnout.configure do |config| config.app_root = '.' config.named_maintenance_file_paths = { default: config.app_root.join('tmp', 'maintenance.yml').to_s } config.maintenance_pages_path = config.app_root.join('public').to_s config.default_maintenance_page = Turnout::MaintenancePage::HTML config.default_reason ...
#version 300 es precision mediump float; in vec2 mcLongLat;//接收从顶点着色器过来的参数 out vec4 fFragColor;//输出的片元颜色 void main() { vec3 bColor=vec3(0.678,0.231,0.129);//砖块的颜色 vec3 mColor=vec3(0.763,0.657,0.614);//水泥的颜色 vec3 color;//片元的最终颜色 //计算当前位于奇数还是偶数行 int row=i...
package hudson.plugins.accurev; import java.io.Serializable; public class RefTreeExternalFile implements Serializable { private final String location; private final String status; public RefTreeExternalFile(String location, String status) { this.location = location; this.status = status; } /** ...
./deploytemplate.py -u https://raw.githubusercontent.com/gbowerman/azure-minecraft/master/azure-marketplace/minecraft-server-ubuntu/mainTemplate.json -f parameters.json -p adminPassword,dnsNameForPublicIP -l westus2 -w
<reponame>abhija77/book_store_back /* eslint-disable prettier/prettier */ import { HttpService, Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import axios, { Axios, AxiosResponse } from 'axios'; import { Observable, timeout } from 'rxjs'; import { Connection, getConnection, Rep...
import sqlite3 dbname = 'userdata.db' conn = sqlite3.connect(dbname) c = conn.cursor() # Create a table for user data c.execute("""CREATE TABLE IF NOT EXISTS user (name TEXT, age INTEGER, email TEXT) """) # Add a single record record = ('John', 28, 'john@example.com') c.execute('INSERT INTO user VALUES (?,?,?)', ...
require 'thor' require 'terminal-table' require 'pathname' require 'phantomblaster/generators/script' module Phantomblaster class CLI < Thor package_name 'phantomblaster' desc 'account', 'Displays information about the account' def account title = 'Phantombuster Account' headings = ['Email',...
package leetCode;//假设有打乱顺序的一群人站成一个队列,数组 people 表示队列中一些人的属性(不一定按顺序)。 // 每个 people[i] = [hi, ki] 表示第 i个人的身高为 hi ,前面 正好 有 ki 个身高大于或等于 hi 的人。 // // 请你重新构造并返回输入数组 people 所表示的队列。返回的队列应该格式化为数组 queue ,其中 queue[j] = [hj, kj] 是队列中第 // j 个人的属性(queue[0] 是排在队列前面的人)。 // // // // // // // 示例 1: // // //输入:people = [[7,0],[4,4],[7,1],...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.u1F508 = void 0; var u1F508 = { "viewBox": "0 0 2600 2760.837", "children": [{ "name": "path", "attribs": { "d": "M1999 1779.5q-41 207.5-105.5 343.5T1776 2259q-96 0-170-153t-106-428q62-6 109.5-96t47.5-207q0-132-46....
A basic clustering algorithm can be structured as follows: 1. Select a starting point for the algorithm. 2. Calculate the distance between the starting point and each of remaining data points. 3. Select the nearest data points as the first cluster. 4. Repeat step 2 and 3 for the remaining data points by selecting the n...
#include <stdio.h> #define DEBUG_MSG(format, ...) printf("[%s:%d] " format "\n", __FILE__, __LINE__, ##__VA_ARGS__) int main() { int errorCode = 404; DEBUG_MSG("Error code: %d", errorCode); char* functionName = "exampleFunction"; DEBUG_MSG("Error occurred at function %s", functionName); return 0...
import { NotImplementedError } from '../extensions/index.js'; /** * Given matrix, a rectangular matrix of integers, * just add up all the values that don't appear below a "0". * * @param {Array<Array>} matrix * @return {Number} * * @example * matrix = [ * [0, 1, 1, 2], * [0, 5, 0, 0], * [2, 0, 3, 3] * ]...
#!/bin/bash rm -f result-base cp result-base.template result-base export submissions_root="/ITSP-experiments/dataset-base" export test_dir=${submissions_root}/test export prog_name="prog" export result_file=$(pwd)/result-base export wrapper_name="wrapper-repair" export repair_src_name="repair" export ref_dir="ref" ex...
class User: def __init__(self, id: int): self.id = id def add_transaction(amount: float, currency: str, payment_type: str, user_id: int, storage_user: User) -> None: assert storage_user assert storage_user.id == user_id # Your implementation to store the transaction in the storage system #...
#!/bin/bash export PYTHONPATH='/home/ubuntu/git/GUDHI/cython/' for file in camel.csv lion.csv flam.csv elephant.csv gesture_a1_va3.csv Circles.csv twoMoons.csv twoCircles.csv mergeda9leftlegMAG.csv mergeda13leftlegMAG.csv mergeda14leftlegMAG.csv mergeda18leftlegMAG.csv seeds_dataset_cleansed.txt water-treatment.data_...
# usage: # sudo -E ./scripts/create_env.sh PROJDIR=`pwd` ME=`ls -ld $PROJDIR | awk 'NR==1 {print $3}'` MYGROUP=`ls -ld $PROJDIR | awk 'NR==1 {print $4}'` echo "ME:$ME MYGROUP:$MYGROUP" VENVDIR="venv" ENVNAME="image-enhancer-awsrn" # # install python 5 # echo "*** install python 3.5 ****" if hash python3.5; then ...
<gh_stars>1-10 /** * Author: <NAME> <<EMAIL>> * Copyright (c) 2020 Gothel Software e.K. * Copyright (c) 2020 ZAFENA AB * * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated document...
/* * * Copyright © 2017 <NAME>(<NAME>)/<EMAIL>. * * 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 ...
function mergeSort(array) { if (array.length <= 1) return array; const array1 = mergeSort(array.slice(0, array.length / 2)); const array2 = mergeSort(array.slice(array.length / 2, array.length)); return merge(array1, array2); } function merge(array1, array2) { const result = []; let i = 0; let j = 0; ...
# bu.plugin.sh # Author: Taleeb Midi <taleebmidi@gmail.com> # Based on oh-my-zsh AWS plugin # # command 'bu [N]' Change directory up N times # # Faster Change Directory up function bu () { function usage () { cat <<-EOF Usage: bu [N] N N is the number of level to move back up to, this...
module.exports = [ require("./rendering-info/web.js"), require("./rendering-info/web-svg.js"), require("./stylesheet.js"), require("./script.js"), require("./option-availability.js"), require("./dynamic-enum.js"), require("./dynamic-schema.js"), require("./health.js"), require("./fixtures/data.js"), ...
# Script to install the TFODAPI on a Linux VM or a Docker container. # It carries out the installation steps described here: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md # This script was modified from set_up__object_detection_api.sh. #this block was added to turn o...
<filename>src/lib/index.ts<gh_stars>1-10 export * from "./rules/noImportZonesRule";
#!/bin/bash xclip -sel clip -o >in.in
<filename>src/main/java/br/com/zupacademy/gabrielf/casadocodigo/config/validacao/ErroHandlerValidation.java package br.com.zupacademy.gabrielf.casadocodigo.config.validacao; import org.springframework.http.HttpStatus; import org.springframework.validation.FieldError; import org.springframework.web.bind.MethodArgument...
<gh_stars>0 var fs = require('fs'), path = require('path'), _ = require('underscore'), data = [], result = {}, skipDir = [], configPath = './judoc.config.js', tpl, filenames, matchs, name, html, eachFile, fixDir, config, srcPath, distPath; // 读取目录 process.argv.forEach(function(argv, i) { if (argv ===...
<filename>app/src/main/java/com/sereno/math/Quaternion.java package com.sereno.math; /** Quaternion class*/ public class Quaternion { /** The x (i) component*/ public float x; /** The y (j) component*/ public float y; /** The z (k) component*/ public float z; /** The w (real) component*/...
<gh_stars>0 package org.gi.groupe5.dao; import org.gi.groupe5.manager.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class DaoFactory { private String url = "jdbc:mysql://localhost:3306/park"; private String username = "root"; private String password = ...
<reponame>tabris233/go_study package main import ( "fmt" "os" "runtime" ) func f(x int) { fmt.Printf("f(%d)\n", x+0/x) defer fmt.Printf("defer f(%d)\n", x) f(x - 1) } func main2() { defer printStack() defer fmt.Printf("------") f(3) } func printStack() { var buf [4096]byte n := runtime.Stack(buf[:], fals...
<reponame>mjburling/beneficiary-fhir-data package gov.cms.bfd.server.war.r4.providers.preadj; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.rest.client.api.IGenericClient; import ca.uhn.fhir.rest.param.DateParam; import ca.uhn.fhir.rest.param.ReferenceParam; import com.google.common.collect.ImmutableMap; ...
class HttpResponse: def __init__(self, status_code, status_text): self.status_code = status_code self.status_text = status_text self.headers = {} def set_header(self, name, value): self.headers[name] = value def generate_response(self): headers_str = '\n'.join([f"{n...
<filename>tests/test_basics.py import json import unittest import numpy as np from pybx.basics import mbx, bbx, MultiBx, jbx, stack_bxs, get_bx, BaseBx from pybx.excepts import BxViolation np.random.seed(1) params = { "annots_rand_file": './data/annots_rand.json', "annots_iou_file": './data/annots_iou.json'...
import React, { Component } from 'react'; class FeedPage extends Component { render() { const posts = this.props.posts.map(post => { return ( <div key={post.id}> <b>{post.author}</b><br/> {post.text}<br/> </div> ); }); ...
<reponame>kjhx-hw/app_comp4300_othello<filename>src/application/App.js<gh_stars>0 import React, { Component } from 'react'; import Game from '../components/Game/Game'; import GameOver from '../components/GameOver/GameOver'; import GameStart from '../components/GameStart/GameStart'; import './App.css'; class App ...
<reponame>natflausino/cub3D<gh_stars>1-10 #ifndef CUB3D_BONUS_H # define CUB3D_BONUS_H /****************************************************************************** ** LIBRARIES ******************************************************************************/ # include <math.h> # include <stdio.h> # include <float.h> ...
import {Queue} from 'queue-typescript' import {BasicGraphOnEdges} from '../../structs/basicGraphOnEdges' import {IEdge} from '../../structs/iedge' export function* GetConnectedComponents<TEdge extends IEdge>( graph: BasicGraphOnEdges<TEdge>, ): IterableIterator<number[]> { const enqueueed = new Array(graph.nodeCou...
""" Create a web service that takes textual input and outputs a list of categories that the input text belongs to. """ import flask from nltk.corpus import wordnet # Create a web service app = flask.Flask(__name__) @app.route('/', methods=['POST']) def classify(): # Get the text from the request text = flask...
#include "duckdb/catalog/catalog_entry/sequence_catalog_entry.hpp" #include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp" #include "duckdb/common/exception.hpp" #include "duckdb/common/serializer.hpp" #include "duckdb/parser/parsed_data/create_sequence_info.hpp" #include <algorithm> using namespace duckdb;...
import numpy as np from nba.ios.gadget_reader import is_parttype_in_file, read_snap from pygadgetreader import readsnap import nba.com as com def load_snapshot(snapname, snapformat, quantity, ptype): """ Load all the particle data of a specific dtype and the required quantity. Readers from other codes nee...
rm -rf fused_resnet_block_inference_generator_tiramisu fused_resnet_block_generator_tiramisu.o fused_resnet_block_generator_tiramisu.o.h wrapper_nn_block_fused_resnet_inference fused_resnet_block_generator_tiramisu fused_resnet_block_mkldnn_result fused_resnet_block_mkl_result tiramisu_result.txt mkl_result.txt tf_mode...
/* * dbtype_Guest.cpp */ #include <string> #include "dbtype_Guest.h" #include "dbtype_Entity.h" #include "dbtypes/dbtype_Id.h" #include "dbtype_Player.h" #include "concurrency/concurrency_ReaderLockToken.h" #include "concurrency/concurrency_WriterLockToken.h" #include "concurrency/concurrency_LockableObject.h" n...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.u1F1EF = void 0; var u1F1EF = { "viewBox": "0 0 2600 2760.837", "children": [{ "name": "path", "attribs": { "d": "M2002 495q17 0 27.5 11t10.5 28v762q0 370-27 548.5t-138 291-262.5 166.5-327.5 54q-295 0-495.5-142.5T5...
#!/bin/bash echo "[+] Starting Meteor App!" if [ "$1" = "" ] then echo "[-] Usage: <dir>" echo "[!] Path needed for the containing project folder" exit 0 fi if [ ! -d $1 ] then echo "[!] Could not enter the dir: $1" exit 0 fi cd $1 echo "[+] Running NPM" npm inst...
import Game from './Game.js'; import PasswordInputScreen from './PasswordInputScreen.js'; import KeyListener from './KeyboardListener.js'; import Scene from './Scene.js'; export default class UserInputScreen extends Scene { mainLogo; usernameInfo; glassplane; glassplane2; wrongAlert; inputUser; ...
<reponame>kevinwaxi/eanno_gaming require("./bootstrap"); window.Vue = require("vue").default; import VueRouter from "vue-router"; import common from "./modules/common"; import router from "./routes/index"; import store from "./store/index"; import Vuesax from "vuesax"; import "vuesax/dist/vuesax.css"; Vue.use(Vuesa...
package com.ruoyi.ceshi.controller; import java.util.List; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotatio...
# Node class class Node: # Function to initialize the node object def __init__(self, data): self.data = data # Assign data self.next = None # Initialize next as null # Linked List class class LinkedList: # Function to initialize the Linked # List object def __init__...
""" Implement an algorithm to multiply a given matrix by a scalar. """ def multiply_matrix_by_scalar(matrix, scalar): """Multiply a given matrix by a scalar. Parameters: matrix (list): A list of lists containing the matrix values scalar (int/float): The scalar value to multiply the matrix by Retu...
var mainCtrl = angular.module('mainCtrl', []); /*----------------------------item management dashboard -----------------------------*/ mainCtrl.controller('loginCtrl',function($scope, $http) { $scope.login = function() { var data = $.param({ email: $scope.email, ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/type/latlng.proto package latlng import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This ...
<reponame>zonesgame/StendhalArcClient<gh_stars>1-10 /* $Id$ */ /*************************************************************************** * (C) Copyright 2003-2014 - Stendhal * *************************************************************************** *************************...
function simulateEmailSession(session, email) { sendAndReceiveLoop(session); if (session.hasResponseCode(221)) { return getMailBox(email); } }
THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 nkerns_1=64 nkerns_2=96 first_drop=1 last_drop=1 opt_med=adam std=1e-1 pattern='hinge' Loss_L=10 python cnn_6layer_svhn.py relu 1 1e-3 2e-6 lcn
<reponame>w2ogroup/titan<filename>titan-cassandra/src/test/java/com/thinkaurelius/titan/graphdb/astyanax/InternalAstyanaxGraphConcurrentTest.java package com.thinkaurelius.titan.graphdb.astyanax; import com.thinkaurelius.titan.CassandraStorageSetup; import com.thinkaurelius.titan.diskstorage.cassandra.CassandraProcess...
<gh_stars>0 const heading = { fontSize: '72px', color: 'blue' } export default function InLine(){ return( <div> <h1 style={heading}>Đây là InLine</h1> <h1 className="error"> Lỗi màu xanh hôm bữa</h1> </div> ) }
#!/bin/sh echo "Starting Docker Daemon from dockerd-cmd.sh" dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=vfs& sleep 3; echo "Starting minikube"; minikube start echo "Sleeping forever!"; while :; do read; done
#!/bin/bash # Copyright 2020 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # Checks for tabs in files modified vs the specified reference commit (default # "main") ...
export rv cfg_file_mkdir() { if [ -d "$1" ] ; then cfg_tty_notice "Directory $1 already exists" else mkdir -p "$1" >/dev/null 2>&1 rv=$? if [ "$rv" -eq 0 ] ; then cfg_tty_info "Directory $1 created" else cfg_tty_alert "Failed to create directory $1" exit fi fi } cfg_file_rm() { if [ -f "$1"...
class SbankenAPI def self.get_accounts(access_token, source_id, nin) Rails.cache.fetch(['accounts', Sbanken.name, source_id], expires_in: 1.second) do SbankenAPI.http_get('https://api.sbanken.no/exec.bank/api/v1/Accounts', access_token, nin)['items'] end end def self.get_transactions(ext_account_id...
CREATE USER 'info'@'localhost' IDENTIFIED BY 'g4sGfdTbT23'; CREATE USER 'info'@'%' IDENTIFIED BY 'g4sGfdTbT23'; CREATE DATABASE info CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL PRIVILEGES ON info.* TO 'info'@'localhost'; GRANT ALL PRIVILEGES ON info.* TO 'info'@'%'; CREATE USER 'info_user'@'localhost' IDEN...
#!/usr/bin/env bash #SBATCH -J variant_calling_batch_array_job #SBATCH -N 1 #SBATCH -n 1 #SBATCH --array=1-3 #SBATCH --mem=6G set -e ## Load the required modules module load BWA module load freebayes module load SAMtools module load VCFtools module load annovar # Extract the nth line of file_list.txt # and assign th...
#!/bin/bash sudo apt update sudo apt install -y nginx sox libsox-fmt-mp3 rws ffmpeg gstreamer1.0-plugins-good gstreamer1.0-tools sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/default.bak sudo cp etc/nginx.conf /etc/nginx/sites-available/default sudo cp etc/car.service /etc/systemd/system/ su...
parallel --jobs 6 < ./results/experiment_disks/run-1/sea_cp_5n_6t_6d_1000f_617m_5i/jobs/jobs_n3.txt
<gh_stars>0 package util import ( "crypto/md5" "crypto/rand" "encoding/hex" "io" "mime/multipart" ) // 生成32位MD5 func MD532(text string) string { ctx := md5.New() ctx.Write([]byte(text)) return hex.EncodeToString(ctx.Sum(nil)) } // MD5file 生成32位MD5file func MD5file(file multipart.File) string { var returnMD5...
#include "ruby.h" #include "util.h" #include "st.h" VALUE rb_cArray; static ID id_cmp; #define ARY_DEFAULT_SIZE 16 #define ARY_MAX_SIZE (LONG_MAX / sizeof(VALUE)) void rb_mem_clear(mem, size) register VALUE *mem; register long size; { while (size--) { *mem++ = Qnil; } } static inline void memfill(m...
#!/bin/sh # Base16 Twilight - Shell color setup script # David Hart (http://hart-dev.com) if [ "${TERM%%-*}" = 'linux' ]; then # This script doesn't support linux console (use 'vconsole' template instead) return 2>/dev/null || exit 0 fi color00="1e/1e/1e" # Base 00 - Black color01="cf/6a/4c" # Base 08 - Red c...
import { HasPropsHandlers, PropsHandler } from "./PropsHandler" /** * TODO: Integrate this into the generated code, which duplicates for every class. */ export default class BasePropsHandler<T, U> implements HasPropsHandlers<T, U> { private propsHandlers: PropsHandler<T, U>[] constructor(propsHandlers: PropsHan...
macro_rules! generate_output { ($input:literal) => { { let input_str = $input; let trimmed_str = input_str.trim_start_matches("#[").trim_end_matches("]"); let parts: Vec<&str> = trimmed_str.split("=").map(|s| s.trim()).collect(); if parts.len() != 2 { ...
#! /bin/bash # Copyright 2020 Intel Corporation # # 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 ag...
#!/bin/bash # Copyright 2019 Marc-Antoine Ruel. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. # Only update code, not data. set -eu cd "$(dirname $0)" ./setup.sh source .venv/bin/activate echo "- Flashing code" pio run --t...
#!/usr/bin/env bash echo "Autoremoving..." apt-get -y autoremove
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
#!/bin/bash function display_help() { readonly script_name="./$(basename "$0")" echo "This script uploads the documentation and distribution.zip to the filemgmt.jboss.org." echo echo "Usage:" echo " $script_name PROJECT_VERSION SSH_KEY" echo " $script_name --help" } function create_latest_symlinks() { ...
import jax import jax.numpy as jnp @jax.jit def _linear(x, y): n = len(x) sum_x = jnp.sum(x) sum_y = jnp.sum(y) sum_xy = jnp.sum(x * y) sum_x_squared = jnp.sum(x ** 2) m = (n * sum_xy - sum_x * sum_y) / (n * sum_x_squared - sum_x ** 2) c = (sum_y - m * sum_x) / n return m, c
var classarmnn_1_1optimizations_1_1_permute_and_batch_to_space_as_depth_to_space_impl = [ [ "Run", "classarmnn_1_1optimizations_1_1_permute_and_batch_to_space_as_depth_to_space_impl.xhtml#a5a8476ffc04ce7460bb09ad50d1d23de", null ] ];
export { default } from "./FilterSliderBank.jsx";
#!/bin/sh export DIR_DATA_PATH="$PWD" export CONTAINER_COMMAND="npm run start:dev" export CONTAINER_SCALE="1" export APP_PORT="7070" export CONTAINER_PORT="3000" export GQL_PLAYGROUND="true" docker-compose up --build
<reponame>Remolten/ld33<filename>assets/js/ecs/components.js var components = {}; var Component = {}; Component.prototype = {}; var Sprite = {}; Sprite.prototype = Object.create(Component.prototype); Sprite.prototype.id = 'sprite'; Sprite.prototype.init = function(x, y, img, frm) { this.sprite = game.add.sprite(x...
<filename>core/impl/service/types.go /* * Copyright © 2019 <NAME>. */ package service import ( "context" "github.com/golang/protobuf/proto" "github.com/hedzr/voxr-api/api/v10" "github.com/labstack/echo" ) const ( LoginMethod = "Login" RefreshTokenMethod = "RefreshToken" ) type ( BuildInf struct { ...
#!/bin/bash #Running Database scripts for WSO2-IS echo "Running DB scripts for WSO2-IS..." #Define parameter values for Database Engine and Version DB_ENGINE='CF_DBMS_NAME' DB_ENGINE_VERSION='CF_DBMS_VERSION' WSO2_PRODUCT_VERSION='CF_PRODUCT_VERSION' USE_CONSENT_DB=false #Select product version if [ $WSO2_PRODUCT_V...
import type { IncomingMessage, ServerResponse } from "http"; import { assertMethod, useBody } from "h3"; import axios, { AxiosError } from "axios"; import config from "#config"; import _ from "lodash"; const defaultQuery = ` query ($groupId: ID) { group(id: $groupId) { id name description link lo...
// generated from rosidl_generator_c/resource/idl__functions.c.em // with input from policy_translation:srv/NetworkPT.idl // generated code does not contain a copyright notice #include "policy_translation/srv/network_pt__functions.h" #include <assert.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> // ...
class Reason: def __init__(self, name): self.name = name def get_reason_name(self): return self.name # Example usage reason = Reason("Invalid input") print(reason.get_reason_name()) # This will print "Invalid input"
<filename>croslog/log_line_reader.cc // Copyright 2020 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "croslog/log_line_reader.h" #include <algorithm> #include <string> #include <utility> #include <fcntl.h...
<filename>cplusplus/FuelSpent.cpp #include <iostream> class FuelSpent{ private: const static float km_l; int time_spent; int average_velocity; public: //constructor FuelSpent(); FuelSpent(int, int); //Functions float computeLitersHour();...
kubectl get nodes cd ~/hello-kubernetes/ git status git remote -v echo $JENKINS_HOOK_URL echo $GIT_REPO_URL
<filename>traveldb/oracle/dbe_tdbsp.sql /*D************************************************************/ /* project: travelDB stored procedures for DataSet */ /* upd/del/ins */ /* ATTENTION !! types are hardcoded here !!! */ /* see td...
import React, {Component} from 'react' import { connect } from 'react-redux' import {fetchCards, deleteCard} from 'actions/account/CreditCard' import AccountCreditCard from 'components/account/AccountCreditCard' import AjaxLoader from 'components/gui/Loaders/Ajaxloader' class StripeCards extends Component { rend...
// Algorithm to decide which stores should be open in a certain area. // Step 1: Collect data on the population density of the stores. // Step 2: Calculate the total number of people living within a certain distance from each store. // Step 3: Define a threshold population density to allow stores to open. // Step 4:...
<reponame>yogo/yogo class SystemRolesController < InheritedResources::Base respond_to :html, :json defaults :resource_class => SystemRole, :collection_name => 'system_roles', :instance_name => 'system_role' def create create! do |format| format.html { redirect_...
package com.learn.demomarket.coupon.dao; import com.learn.demomarket.coupon.entity.SpuBoundsEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品spu积分设置 * * @author 996worker * @email * @date 2021-11-29 15:42:53 */ @Mapper public interface SpuBou...
/* eslint-disable no-console */ const logger = require('winston'); const app = require('./app'); const port = process.env.PORT || app.get('port'); const server = app.listen(port); import queryGasPrice from './blockchain/gasPriceService'; import { queryEthConversion } from './services/ethconversion/getEthConversionSer...
<gh_stars>10-100 import * as ms from "milliseconds"; import { h } from "preact"; import { isNull } from "ts-type-guards"; import { disable } from "userscripter/lib/stylesheets"; import * as CONFIG from "~src/config"; import * as darkTheme from "~src/dark-theme"; import iconDarkThemeToggle from "~src/icons/dark-theme-t...