text
stringlengths
1
1.05M
<gh_stars>1-10 package main.java.api.db; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import main.java.api.SaveAttendanceRequest; /** * Query to insert an item of attendance into the ...
const genericOperate = (name, operate) => (state, metric) => { return Object.assign( {}, state, { valueAt: i => operate(state.valueAt(i), metric.valueAt(i)), toString: () => `${state} ${name} ${metric}`, on: (type, listener = null) => { if (listener === null) return state.on(type...
#!/bin/bash # ============================== ⬇⬇⬇ 无需改动 ⬇⬇⬇ ============================== # 重载环境变量 . Init ENV || echo "Not initialized" && [ -z "$ENV_FILE" ] && exit 1 # 获取脚本名称 SELF_NAME=$(basename $BASH_SOURCE) # 获取脚本路径 SELF_PATH=$(cd `dirname $0` && pwd)/$SELF_NAME # ============================== ⬆⬆⬆ 无需改动 ⬆⬆⬆ =====...
#!/bin/bash ROOT=/opt/selenium CONF=$ROOT/config.json /opt/bin/generate_config >$CONF echo "starting selenium hub with configuration:" cat $CONF if [ ! -z "$SE_OPTS" ]; then echo "appending selenium options: ${SE_OPTS}" fi function shutdown { echo "shutting down hub.." kill -s SIGTERM $NODE_PID wait ...
import screenpoint import cv2 # Load input images. screen = cv2.imread('example/screen.png', 0) view = cv2.imread('example/view.jpg', 0) # Project centroid. x, y, img_debug = screenpoint.project(view, screen, True) # Write debug image. cv2.imwrite('example/match_debug.png', img_debug)
<filename>.dev2/ft_printf.h<gh_stars>0 #ifndef FT_PRINTF_H # define FT_PRINTF_H # include <stdio.h> # include <stdarg.h> # include <unistd.h> # include <stdlib.h> # define ERROR -1 # define OFF 0 # define ON 1 # define PLUS 2 # define MINUS -2 typedef struct { va_list args; size_t total_len; //char type; int st...
import { BaseProvider, LightTheme } from "baseui" import React from "react" import IconButton from "@material-ui/core/IconButton" import ThumbUpIcon from '@mui/icons-material/ThumbUp'; import ThumbDownIcon from '@mui/icons-material/ThumbDown'; import { withStreamlitConnection, StreamlitComponentBase, Streamlit, ...
<filename>test/node.ts const path = require("path"); const { exec } = require("child_process"); describe("autoRef option", () => { const fixture = (filename) => process.execPath + " " + path.join(__dirname, "fixtures", filename); it("should stop once the timer is triggered", (done) => { exec(fixture("unre...
#!/bin/bash # # SPARQL Build Script # @author Loreto Parisi (loretoparisi at gmail dot com) # v1.0.0 # @2018 Loreto Parisi (loretoparisi at gmail dot com) # # wikidata dump volume folder # it will contain the split folder # and the wikidata journal file: wikidata.jnl # example: /root/wikidata ROOT=/root/data converts...
<reponame>MichalPaszkiewicz/michals-react-components import * as React from 'react'; import {ReactProps} from "./reactprops"; import {ModalProps, Modal, ModalButton} from "./modal"; export class ConfirmProps extends ReactProps{ title: string; show: boolean; onConfirm: (e?: any) => void; onReject: (e?: ...
/* * Copyright 2015 Textocat * * 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 la...
/* * Copyright (C) 2018-2019 <NAME> (www.helger.com) * philip[at]helger[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
function findMembersMatchingName(members, name, recursive) { name = name.toLowerCase(); const result = []; members.forEach((member) => { if (member.name.toLowerCase().indexOf(name) >= 0) { result.push(member); } if (recursive && member.members) { const subMembers = findMembersMatchingNa...
#include "queens.h" #include "gtest/gtest.h" using std::cout; using std::endl; using nq::Queens; TEST(QueensTest, Two) { Queens q = Queens::Create(2); cout << "====(Initial)====" << endl << q << endl; EXPECT_EQ(2UL, q.num_attacks()); q.Swap(0, 1); cout << "====Swap(0,1)====" << endl << q << endl; EXPECT_E...
#!/usr/bin/env bash if [ "x${FEE_SCHEMA}" = "xZERO_FEE" ] ; then echo "[Config] Fee Schema: Zero Fee" cp -r config-template/zerofee/* config/ else echo "[Config] Fee Schema: With Fee" cp -r config-template/fee/* config/ fi echo "/usr/bin/tendermint node --proxy_app=${PROXY_APP}" /usr/bin/tendermint node --prox...
# ----------------------------------------------------------------------------- # # Package : thrift # Version : v0.13.0 # Source repo : https://github.com/apache/thrift # Tested on : UBI 8.5 # Script License: Apache License, Version 2 or later # Maintainer : Atharv Phadnis <Atharv.Phadnis@ibm.com> # # Disclaimer: This...
<gh_stars>1-10 /* * 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...
import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({ CliTest.class, ConstantParserTest.class, EvokeTest.class, ExampleEvokeTest.class, ExampleTest.class, GetValueTest.class, JDBCQueryTest.class }) public cla...
def cat_identifier(image): # pre-processing # convert image to numpy array image_np = np.array(image) # model building model = Sequential() model.add(Conv2D(32, (3, 3), activation='relu', input_shape=image_np.shape)) model.add(MaxPooling2D(2, 2)) model.add(Conv2D(64, (3, 3), activat...
<filename>request/alipay_trade_page_pay.go package request const AlipayTradePagePayMethod = "alipay.trade.page.pay" type AlipayTradePagePayRequest struct { OutTradeNo string `json:"out_trade_no"` ProductCode string `json:"product_code"` TotalAmount string ...
import { BaseController } from "./base-controller"; export class UserController extends BaseController { public constructor () { super(); } }
import typing def validate_functionalities(module, functionalities, type, MARA_XXX): if isinstance(functionalities, typing.Dict): functionalities = functionalities.values() if not isinstance(functionalities, typing.Iterable): raise TypeError( f'{module.__name__}.{MARA_XXX} should be...
#!/bin/bash source ./scripts/init.env function cleanup { cluster_name=${1} kubectl config delete-context ${cluster_name} } function get_credential_and_rename_context { cluster_name=${1} cluster_zone=${2} gcloud container clusters get-credentials ${cluster_name} --zone ${cluster_zone} kubectl config rename-cont...
<reponame>wetherbeei/gopar /* * Copyright © 2012 <NAME> * * This program 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, either version 3 of the License, or * (at your option) any later version. * * Th...
#!/bin/bash # Copyright (C) 2016 Nicolas Lamirault <nicolas.lamirault@gmail.com> # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
timetable = ["Tuesday", "Wednesday", "Thursday", "Friday"] for day in reversed(timetable): print(day)
/* The file contains what deals with content displayed in the HTML (injected in the DOM), thus it must run as the last script */ const estimateTime = ids => { let totalSeconds = Number(ids) * 12; let totalMinutes = 0; if (totalSeconds > 60) { totalMinutes = parseInt(totalSeconds / 60); totalSeconds -...
#!/bin/bash # Find a shared library in the system and copy it to a destination LIB_NAME=$1 INSTALL_DIR=$2 # Find the binary for the library (avoid symlinks) LIB=`find /usr/lib/ -name "$LIB_NAME*" -type f` # Get the SO-name since this is what the applications link to, # this is often not the same as the library binar...
def calcAverage(arr): sum = 0 count = 0 for i in range(len(arr)): if arr[i] > 0: sum += arr[i] count += 1 return (sum/count)
// try { // const cookieJar = await boxrec.login(TUAN_fish, Password12); // // successfully logged in // } catch (e) { // console.log('error ') // } // const gennadyGolovkin = await boxrec.getPersonById(cookieJar, 356831); // console.log(gennadyGolovkin.name); // <NAME> // console.log(gennadyGolovkin.division)...
#!/usr/bin/env bash function make_dir () { if [[ ! -d "$1" ]]; then mkdir $1 fi } SRC_DIR=../.. DATA_DIR=${SRC_DIR}/data MODEL_DIR=${SRC_DIR}/tmp SEED=1013 declare -A LANG_MAP LANG_MAP['en']='English' LANG_MAP['ar']='Arabic' LANG_MAP['zh']='Chinese' if [[ ! -d $DATA_DIR ]]; then echo "${DATA_DIR...
<reponame>Nelias/smashing-ui import React from 'react' import {storiesOf, addDecorator} from '@storybook/react' import {Select} from '@smashing/select' import {withA11y} from '@storybook/addon-a11y' import {SmashingThemeProvider} from '@smashing/theme' import styled from 'styled-components' const SpecimenContainer = s...
package com.java; import java.util.ArrayList; public class Class { public static void main(String[] args) { //for (int loopx=0;loopx<8;loopx++){ //for (int loop=0;loop<2;loop++){ //c.drawRect( x , y , w+x , h+y , paint); ArrayList arrl2 =new ArrayList(); int a=5 ; int b =6 ; int sens1 = 25; int jk = 25...
CREATE TABLE customers ( CustomerID char(10) PRIMARY KEY, Name varchar(255) NOT NULL, Address varchar(255) NOT NULL, PhoneNumber varchar(20) NOT NULL ); CREATE TABLE orders ( OrderID int PRIMARY KEY, OrderDate date NOT NULL, CustomerID char(10) NOT NULL, FOREIGN KEY (CustomerID) REFERENCES customers(Cu...
class NaiveBayesClassifier: """ A simple Naive Bayes classifier implementation """ def __init__(self): self.classes = [] self.word_counts = {} self.priors = {} def fit(self, X, y): """ Train the classifier X: List of documents y: List of labe...
/* * Copyright (c) 2012 Nordic Semiconductor ASA * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list...
package page_home import "net/http" func HandleHome(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello")) }
<filename>spec/horizontal_table_spec.rb # encoding: utf-8 require 'spec_helper' describe HorizontalTable do before(:all) do Person = Struct.new( :name, :address) @output = [ Person.new('<NAME>', 'Sesamestreet 1'), Person.new('<NAME>', 'Musterstroat 1'), ] end it "outputs a table for an ...
#!/bin/sh # # Vivado(TM) # runme.sh: a Vivado-generated Runs Script for UNIX # Copyright 1986-2017 Xilinx, Inc. All Rights Reserved. # if [ -z "$PATH" ]; then PATH=/opt/Xilinx/SDK/2017.4/bin:/opt/Xilinx/Vivado/2017.4/ids_lite/ISE/bin/lin64:/opt/Xilinx/Vivado/2017.4/bin else PATH=/opt/Xilinx/SDK/2017.4/bin:/opt/...
#!/bin/bash # This function takes no arguments # It tries to determine the name of this file in a programatic way. function _get_sourced_filename() { if [ -n "${BASH_SOURCE[0]}" ]; then basename "${BASH_SOURCE[0]}" elif [ -n "${(%):-%x}" ]; then # in zsh use prompt-style expansion to introspect...
#!/bin/sh -ex celery -A core worker -l info & celery -A core beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler & # celery -A core beat -l info & tail -f /dev/null
import { Component, OnInit } from '@angular/core'; import { PeopleService } from '../shared/people-service'; @Component({ selector: 'sfeir-home', templateUrl: 'home.component.html', styleUrls: ['home.component.css'] }) export class HomeComponent implements OnInit { person: any = {}; constructor(private read...
#!/bin/bash # Env vars required: # - METASHARE_DIR # - TEST_DIR # - PYTHON get_node_count() { local NODE_COUNT=`$PYTHON "$MSERV_DIR/get_node_count.py"` echo $NODE_COUNT } import_file_on_node() { local NODE_NUM="$1" ; shift local IMP_FILE="$1" ; shift local ID_FILE="$1" ; shift local NODE_NAME=`get_node_info $...
<gh_stars>0 package br.univille.felipedacs2021.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ModelAttribute; i...
# Environment variables for system tests. export GCLOUD_PROJECT=your-project-id export GCP_PROJECT=$GCLOUD_PROJECT export GOOGLE_CLOUD_PROJECT=$GCLOUD_PROJECT export FIRESTORE_PROJECT= export CLOUD_STORAGE_BUCKET=$GCLOUD_PROJECT export REQUESTER_PAYS_TEST_BUCKET="${CLOUD_STORAGE_BUCKET}-requester-pays-test" export API...
<filename>jackson/src/test/scala/com/twitter/finatra/json/tests/internal/caseclass/validation/validators/PastTimeValidatorTest.scala<gh_stars>0 package com.twitter.finatra.json.tests.internal.caseclass.validation.validators import com.twitter.finatra.json.internal.caseclass.validation.validators.PastTimeValidator._ im...
<gh_stars>0 import { Document } from 'mongoose'; export declare type UserDocument = User & Document; export declare class User { first_name: string; last_name: string; email: string; country_code: string; phone_number: string; verify_otp: string; gender: string; dob: string; professi...
@app.task(name="sdc.move12", bind=True) def task_2(self, y): time.sleep(2) return MoveApps(":move", y).bar()
from source.models.service import DockerService import subprocess import socket import json HOST = 'localhost' PORT = 65432 def check_docker_status(label: str) -> bytes: try: subprocess.check_output('systemctl status docker', shell=True) return format_response(label, True) except: retu...
def detect_biggest_square(matrix): '''This function takes a matrix and returns the coordinates for the biggest square in the matrix. If there are multiple squares with the same size, it will return the coordinates of any of them.''' max_size = 0 coords = None for i in range(len(matrix)): ...
<reponame>istxing/kgo package kgo import ( "bytes" "crypto" "crypto/aes" "crypto/cipher" "crypto/hmac" "crypto/rand" "crypto/rsa" "crypto/sha1" "crypto/sha256" "crypto/sha512" "crypto/x509" "encoding/base64" "encoding/hex" "encoding/pem" "errors" "fmt" "golang.org/x/crypto/bcrypt" "hash" "io" "math...
package benchmarks.bess.bessj.Eq; public class oldV { public static double snippet(double n, double x) { int IEXP=2 * 1024; double ACC=2.0; boolean jsum = false; int j = 0; int k = 0; int m = 0; double ax = 0; double bj = 0; double bjm = 0; ...
<reponame>J1Mtonic/venus-protocol-interface import React, { useEffect, useState } from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import BigNumber from 'bignumber.js'; import commaNumber from 'comma-number'; import { Row, Col, Icon } from 'antd'; import styled from 'styled-components';...
java -classpath L1.3-1.0-jar-with-dependencies.jar example.Main 8080
def fibonacci_sequence(n): sequence = [1] if n == 1: return sequence else: sequence.append(1) for i in range(2, n): sequence.append(sequence[i-1] + sequence[i-2]) return sequence n = 10 result = fibonacci_sequence(n) print(result)
#!/usr/bin/env bash # run in a container docker-compose \ --env-file $DIR/dev.env \ -force-recreate \ up
<gh_stars>1-10 import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.TreeMap; public class Boj1467 { private static int[] numbers = new int[10]; private static ArrayList<Integer>[] index = new ArrayList[10]; private stati...
ActiveAdmin.register User do permit_params [:name, :password, :email] end
package gv package isi package functional import language.higherKinds trait Traversable[F[_]] extends Any { def traverse[A, Z]: Z ⇒ ((Z, A) ⇒ Z) ⇒ F[A] ⇒ Z }
require 'fog/storm_on_demand' require 'fog/compute' module Fog module Compute class StormOnDemand < Fog::Service API_URL = 'https://api.stormondemand.com' requires :storm_on_demand_username, :storm_on_demand_password recognizes :storm_on_demand_auth_url model_path 'fog/storm_on_demand/...
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
var _optimize_inverse_permutes_8hpp = [ [ "OptimizeInversePermutesImpl", "classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl.xhtml", "classarmnn_1_1optimizations_1_1_optimize_inverse_permutes_impl" ], [ "OptimizeInversePermutes", "_optimize_inverse_permutes_8hpp.xhtml#aa31127c77d2117f78d43ca2958dcae...
import { dirname, join } from 'path'; import { fileURLToPath } from 'url'; import { rmSync, readFileSync, readdirSync } from 'fs'; import Inquirer from 'inquirer'; import init from './init.js'; import final from './final.js'; const __dirname = dirname(fileURLToPath(import.meta.url)); const buildPath = join(__dirna...
#!/bin/bash # dev go get -v -u github.com/divan/gofresh go get -v -u github.com/gravityblast/fresh go get -v -u github.com/derekparker/delve/cmd/dlv go get -v -u github.com/davecgh/go-spew/spew go get -v github.com/smartystreets/goconvey go get -u github.com/davecgh/go-spew/spew go get -u github.com/k0kubun/pp go ge...
<filename>node_modules/@reactivex/rxjs/dist/amd/scheduler/queue.js define(["require", "exports", './QueueScheduler'], function (require, exports, QueueScheduler_1) { "use strict"; exports.queue = new QueueScheduler_1.QueueScheduler(); }); //# sourceMappingURL=queue.js.map
(function () { 'use strict' var fnr = () => { const randomDate = randomDateBetween(new Date(1854, 1), new Date()); const dateISO = randomDate.toISOString(); const individsiffer = individsifferAsString(randomIndividsiffer(randomDate.getFullYear())); const d1 = dateISO.substring(...
import nltk from nltk.tokenize import word_tokenize from nltk.corpus import stopwords # Function to get the trending words of a topic def top_10_trending_words(text): # Tokenize into words tokens = word_tokenize(text) # Filter out the stopwords from the text words = [word for word in tokens if word ...
<filename>src/whoosh/minterm.py # Copyright 2021 <NAME> and <NAME>. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, #...
<filename>utilities/TileSetImporterApp.java import java.util.Scanner; import java.io.FileNotFoundException; /** This program is for taking a tile set made * with Tiled and generating Java code containing * the tile set data. It is a simple command line * app. It asks the user to enter in the file path * of the ti...
<gh_stars>0 var path = require('path'); module.exports = function (fox) { fox.load(path.join(__dirname, '/lib')); };
window.onscroll = function() { myFunction() }; var navbar = document.getElementById("nav-bar"); var offset = navbar.offsetTop; function myFunction() { if(window.pageYOffset >= offset) { navbar.classList.add("stick-on-top") } else { navbar.classList.remove("stick-on-top"); } }
echo "Conducting unit test" jest --coverage echo "Conducting end to end test" cd tests/end2end newman run bookmarks-collection.postman_collection.json cd ../../
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 <NAME> All rights reserved. # """ """ #__version__ = "$Id$" #end_pymotw_header def recurse(level): print 'recurse(%s)' % level if level: recurse(level-1) return def not_called(): print 'This function is never called.'
struct U256; struct State { stack: Vec<U256>, return_data: Vec<u8>, message: Message, } struct Message { depth: u32, // Other message attributes } enum ExecutionResult { Success, DepthExceededError, } fn executeInstruction(state: &mut State) -> ExecutionResult { state.stack.push(U256...
const ws = new WebSocket('ws://example.com/socket'); ws.onopen = () => { console.log('Successfully Connected'); }; ws.onmessage = (msg) => {     console.log(msg); }; ws.onclose = () => {     console.log('Connection Closed'); };
rm -rf build-pkg cp -r pkg-hildon build-pkg mkdir -p build-pkg/usr/bin mkdir -p build-pkg/usr/libexec strip spectool_hildon usbcontrol cp spectool_hildon build-pkg/usr/bin/spectool cp usbcontrol build-pkg/usr/libexec/usbcontrol for x in `find build-pkg -name .svn`; do rm -rf $x; done fakeroot dpkg -b build-pkg specto...
"""CONFIG file for web""" # pylint: disable=too-few-public-methods import os import sys import logging import json from datetime import timedelta as td from celery.task.control import rate_limit BASE_DIR = os.path.abspath(os.path.dirname(__file__)) class Config(object): """ Sets Config defaults Attribut...
import { Injectable } from '@angular/core'; import { HttpClient } from "@angular/common/http"; import { Observable } from "rxjs"; @Injectable({ providedIn: 'root' }) export class LoadDataService { api_url:string = "https://jsonplaceholder.typicode.com/comments"; constructor(private http:HttpClient) { } ...
<gh_stars>0 import "reflect-metadata"; import { GiftCard } from "../../../.."; import { DeleteResponse, PaginatedResponse } from "../../../../types/common"; declare const _default: (app: any) => any; export default _default; export declare const defaultAdminGiftCardFields: string[]; export declare const defaultAdminGif...
import datetime import math from tensorflow.keras import callbacks from tensorflow.keras.optimizers import Adam from nn_project.data import get_data_generator, get_vocabs, MAX_ROWS_TRAIN from nn_project.metrics import accuracy, word_error_rate from nn_project.model import EncoderDecoder from nn_project.utils import g...
<reponame>firatalcin/Patika-Java-Web-Development package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Bir sayı giriniz: "); int number = scanner.nextInt(),sum = ...
package main; /** * @author <NAME> * */ public class NByNMatrixOf0sAnd1s { public static void main(String[] args) { printMatrix(3); } /** * Prints a NxN matrix of random binary digits given the integer argument. * <ul> * <li> * If integer argument is less than 1, an error will be displayed. * <...
double balance = 3500; balance += 1000; balance -= 500; //balance is now 4000
<reponame>mcatmos/react-native-books import { create } from 'apisauce' import Base64 from '../Base64' const initializeAPI = () => { const api = create({ baseURL: 'https://openlibrary.org', timeout: 20000 }) requestSearch = (query) => { const params = { q: query } return api.get('/sear...
def triangle_area(a, b, c): # compute the semi-perimeter s = (a + b + c) / 2 # calculate the area area = (s*(s-a)*(s-b)*(s-c)) ** 0.5 return area a = 6 b = 8 c = 10 print(triangle_area(a, b, c)) # prints 24.0
A possible solution is to use the Monte Carlo integration to estimate the value of 𝜋. The algorithm works by randomly sampling points within a given area and then calculating the ratio of area of the sampled points within a circle to the total area of the rectangle that encompasses the circle. By making the area of th...
import './restaurant-listings.css' import React from "react"; import {Badge} from "react-bootstrap"; import {useDispatch, useSelector} from "react-redux"; import {fetchRestaurantsByTypeAndZip} from "../../store/restaurants"; import {RestaurantCard} from "./RestaurantCard"; export const RestaurantListings = ({location...
<gh_stars>1-10 "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o...
#!/bin/sh # # The olsr.org Optimized Link-State Routing daemon(olsrd) # Copyright (c) 2008, Hannes Gredler (hannes@gredler.at) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistri...
const mongoose = require('mongoose'); const adopterSchema = new mongoose.Schema({ genderPref: { type: String, required: true }, agePref: { type: Array, required: true }, sizePref: { type: Array, required: true }, breedPref: { type: Array, required: true }, outdoorSpac...
SELECT name, age FROM Employees WHERE age >= 25;
package mindustry.entities; import arc.*; import arc.func.*; import arc.graphics.*; import arc.graphics.g2d.*; import arc.math.*; import arc.math.geom.*; import arc.struct.*; import arc.util.Tmp; import arc.util.pooling.*; import arc.z.util.ISOUtils; import mindustry.entities.type.*; import static z.debug.ZDebug.enab...
<filename>tests/update.test.ts import { cleanVersion, getBugfixVersionString, getMinorVersionString, updateCheck, updateInfo } from "../src/utils/update"; import { OnlinePackageProvider } from "../src/providers/online"; import { createMockNpmServer, IMockServer } from "./server"; describe(`Update T...
#!/usr/bin/env bash go run ./cmd/generator/generator.go --out-dir=$PWD --tmpl-dir=$PWD/cmd/generator goimports -w $PWD
docker run -d --name switchdev --workdir /build/git -v "${PWD}:/build/git" devkitpro/devkita64:20210306 tail -f /dev/null curl -LOC - https://github.com/uyjulian/pacman-packages/releases/download/v2.2.3-1-pkgbuild-helpers/devkitpro-pkgbuild-helpers-2.2.3-1-any.pkg.tar.xz docker exec switchdev /bin/bash -c 'dkp-pacman ...
<reponame>GuRuGuMaWaRu/CodeProblems function circleOfNumbers(n, firstNumber) { if (firstNumber >= n / 2) { return firstNumber - n / 2; } return firstNumber + n / 2; }
<filename>test/modulemanager/TestModuleManager.py import pulsar as psr import os class MyPyBase(psr.TestModule): def __init__(self,myid): super(MyPyBase,self).__init__(myid) def run_test_(self): return def run_test(): tester=psr.PyTester("Testing ModuleManager Python Bindings") mm=psr....
use std::collections::HashMap; enum Error { PtraceError, KillError, ContextError, } fn manage_process(handle: &Handle) -> Result<(), Error> { // Close the process session if ptrace::close_session(handle.info.pid).is_err() { return Err(Error::PtraceError); } // Check and send SIGKI...
#!/usr/bin/env node /* Use this script for local development against a remote API without CORS issues. This script will launch a reverse proxy listening on localhost:5050 with all related API calls forwarding to http://localhost:9000 and all other requests forwarding to the local Angular development server at http://...
#!/bin/bash #SBATCH --account=def-dkulic #SBATCH --mem=8000M # memory per node #SBATCH --time=23:00:00 # time (DD-HH:MM) #SBATCH --output=/project/6001934/lingheng/Double_DDPG_Job_output/continuous_RoboschoolInvertedDoublePendulum-v1_ddpg_hardcopy_action_noise_seed2_run6_%N-%j.out # %N for node na...