text
stringlengths
1
1.05M
#!/bin/bash # # 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");...
SELECT MIN(price) FROM product WHERE category_id = 'x'
package graphproc import ( "testing" "time" ) func TestNewAspect(t *testing.T) { dur := time.Duration(10 * time.Millisecond) NewAspect(testaspect, dur, 0, RETRY) } func testaspect(n string, m []byte, scope *Scope) error { return nil } func TestTrace(t *testing.T) { Level1() } func Lev...
def movie_recommender_system(user): """ This function uses a collaborative filtering algorithm to suggest movies to the given user """ # Get the list of rated movies by the user user_movies = user.get_rated_movies() # Get the list of ratings given by other users user_ratings = user.get...
#!/bin/sh # Script.sh # Primeri # # Created by ZhouQi on 14-7-20. # Copyright (c) 2014 Bither. All rights reserved. cp 1C6FiRktL3UPd4sywhyU5CYSeLdKhvHxhR.tx ~/Library/Application\ Support/iPhone\ Simulator/7.1-64/Documents/1C6FiRktL3UPd4sywhyU5CYSeLdKhvHxhR.tx mkdir -p ~/Library/Application\ Support/iPhone\ Simula...
#!/bin/bash NV_GPU=$1 nvidia-docker run -tid --rm --shm-size=20g --ulimit memlock=-1 -v /home/paulomann/workspace/practical-nlp-pytorch:/workspace/practical-nlp practical-nlp:latest
const parser = require('./parseOpenscad') // const parser = require('./openscadParser.js').parser var fs = require('fs') import { exec } from './parserBase.js' const input = fs.readFileSync(__dirname + '/test.scad', 'utf8') exec(parser, input, 'root' , function (data) { fs.writeFileSync(__dirname + '/../shaders/de...
<reponame>ch1huizong/learning #!/usr/bin/env python # -*- coding:UTF-8 -*- import fnmatch pattern='fnmatch_*.py' print'Pattern :',pattern print'Regex :',fnmatch.translate(pattern)
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next def reverseList(head): prev = None current = head while current is not None: nxt = current.next current.next = prev prev = curren...
package sse import ( "net/http" "time" "github.com/r3labs/sse" "github.com/stellar/go/services/bifrost/common" "github.com/stellar/go/support/log" ) func (s *Server) init() { s.eventsServer = sse.New() s.lastID = -1 s.log = common.CreateLogger("SSEServer") } func (s *Server) BroadcastEvent(address string, e...
#!/bin/bash set -e -x python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple -U -e .[dev] python setup.py webhost
<filename>b2b-nextjs/components/Nav.tsx import { signIn, useSession } from 'next-auth/react'; import Link from 'next/link'; import { Router, withRouter } from 'next/router'; import React, { Fragment, useEffect, useState } from 'react'; import AuthCheck from './AuthCheck'; import OrgContext from './OrgContext'; import ...
#!/bin/bash echo 'Copying script to /Applications/Adobe Photoshop CC 2017/Preset/Scripts/....' cp Create-iOS-icons.jsx /Applications/Adobe\ Photoshop\ CC\ 2017/Presets/Scripts/ cp Create-iMessage-icons.jsx /Applications/Adobe\ Photoshop\ CC\ 2017/Presets/Scripts/ cp Create-iMessage-stickers.jsx /Applications/Adobe\ P...
package employeeApp; public class Company{ private static int maxID = 0; // final = can't be changed public final static double match401K = 0.05; public int id; public String name; public int debt; public Company(String name, int debt){ maxID++; this.id = maxID; thi...
#!/bin/bash # # Creat Time :Sun 17 Nov 2013 03:00:10 AM GMT # Autoor : lili # i 插入 # 会将文本插入在数据流的前面 # [address]command\ # command : a追加 i插入 echo "______________echo "Test 11111111" | sed 'i\Test 22222222'" echo "Test 11111111" | sed 'i\Test 22222222' # a 追加 # 会将文本追加到数据流的后面 echo "______________echo "Test 11111111...
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 用户姓名模型 * * @author auto create * @since 1.0, 2021-07-28 12:10:09 */ public class TransferUserName extends AlipayObject { private static final long serialVersionUID = 3739783327...
#!/bin/bash #check if authentication is required isAuth=`mongo --eval "db.getUsers()" | grep "not auth"` #check if we have previous upgrade needed FEATVER=$(mongo admin --eval "printjson(db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } ).featureCompatibilityVersion)" --quiet); VER=$(mongod -versio...
import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {HttpClient, HttpClientModule} from '@angular/common/http'; import {TranslateHttpLoader} from '@ngx-translate/http-loader'; import {TranslateModule, TranslateLoader, MissingTranslationHandler, MissingTranslationHan...
module RubyIAR module ToolchainAPI end end
/* KataSpace * chat.js * * Copyright (c) 2010, <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: * * Redistributions of source code must retain the above copyright * no...
class ArrayManipulator { public function manipulateArray(array $array, bool $isStripe): array { $result = []; foreach ($array as $row) { if ($isStripe) { array_shift($row); // Remove the first element of the row } else { $result[] = array_r...
#include <iostream> #include <string> // Class to represent a message class CMessage { private: std::string content; public: CMessage(const std::string& msg) : content(msg) {} std::string GetContent() const { return content; } }; // Class representing a network server class CNetworkServer { ...
import { customElement } from '../../../../../../runtime'; @customElement({ name: 'about', template: `<template>ABOUT <input></template>` }) export class About { }
/* * Tencent is pleased to support the open source community by making IoT Hub available. * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the L...
#!/bin/bash BINARY=Trinity BINARY_HOME=$PREFIX/bin TRINITY_HOME=$PREFIX/bin/trinity-$PKG_VERSION TRINITY_EXE=$TRINITY_HOME/Trinity # go to trinity cd $SRC_DIR # remove the sample data rm -rf $SRC_DIR/sample_data # build source make # copy source to bin mkdir -p $TRINITY_HOME cp -R $SRC_DIR/* $TRINITY_HOME/ cd $TRI...
#!/bin/bash echo "Running migrations" ./manage.py makemigrations ./manage.py migrate echo "Creating admin user" ./manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'nkmurli99@gmail.com', 'adminpassword')" echo "Starting Django server" gunicorn vasuapp.wsgi:applica...
package de.unibi.agbi.biodwh2.drugbank.model; import com.fasterxml.jackson.annotation.JsonValue; public enum State { Solid("solid"), Liquid("liquid"), Gas("gas"); private State(String value) { this.value = value; } public final String value; @JsonValue public String toValue(...
package com.java110.things.adapt.car; import com.alibaba.fastjson.JSONObject; import com.java110.things.adapt.car.compute.IComputeTempCarFee; import com.java110.things.constant.SystemConstant; import com.java110.things.entity.app.AppAttrDto; import com.java110.things.entity.app.AppDto; import com.java110.things.entity...
#!/usr/bin/env zsh if (( $+functions[zpm] )); then #DO_NOT_INCLUDE_LINE_IN_ZPM_CACHE zpm load zpm-zsh/colors #DO_NOT_INCLUDE_LINE_IN_ZPM_CACHE fi #DO_NOT_INCLUDE_LINE_IN_ZPM_CACHE DIRCOLORS_CACHE_FILE="${TMPDIR:-/tmp}/zsh-${UID}/material-dircolors.zsh" # Dircolors source "${DIRCOLORS_CACHE_FILE}" 2>/dev/null || { ...
from pypy.interpreter.astcompiler import ast, consts, misc from pypy.interpreter.astcompiler import asthelpers # Side effects from pypy.interpreter import error from pypy.interpreter.pyparser.pygram import syms, tokens from pypy.interpreter.pyparser.error import SyntaxError from pypy.interpreter.pyparser import parsest...
#!/bin/bash # Script to run particle filter! # # # Run particle filter cd ./build ./particle_filter
<filename>tests/lib/api/index.js exports.error = require('./error.js') exports.path = require('./path.js') exports.response = require('./response.js')
#!/bin/bash java -classpath "/usr/share/java/*" druzy.jmita.JMita2 "$@"
#!/bin/bash # if your program creates an output file (e.g., output.txt) compare it to the file created just now and store the difference in diff.log touch diff.log ################################## export PYTHONPATH=${APP_DIR}/../../common/python:$PYTHONPATH ${APP_DIR}/tools/compare-output ${APP_DIR}/../../datasets/lb...
# There's no need to chroot and do this during initial # install, since there is a post-install script that # does the same thing, saving time. # Update X font indexes and the font cache: if [ -x /usr/bin/mkfontdir ]; then /usr/bin/mkfontscale /usr/share/fonts/TTF /usr/bin/mkfontdir /usr/share/fonts/TTF fi if [ -x ...
<filename>node_modules/react-icons-kit/md/ic_local_movies.js "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_local_movies = void 0; var ic_local_movies = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0z", "fill":...
@manager.command def run(): """ Run the server. """ # Start the server start_server() # Print a message indicating that the server has started print('[+] Server started successfully.')
<gh_stars>0 from django.apps import AppConfig class AdmzoneConfig(AppConfig): name = 'admZone'
function getNextSunday(date) { let curr = new Date(date); let weekDayNum = curr.getDay(); let diff = 7 - weekDayNum; curr.setDate(curr.getDate() + diff); let nextSunday = curr.toISOString().split('T')[0]; return nextSunday; } let result = getNextSunday(new Date("December 25, 2020")); console.log(result...
def validate_token(password: str) -> bool: encrypted_token = "MjM4NDk0NzU2NTIxMzc3Nzky.CunGFQ.wUILz7z6HoJzVeq6pyHPmVgQgV4" decrypted_token = "" shift = len(password) # Use the length of the password as the shift value for char in encrypted_token: if char.isalpha(): if char.islower(...
// // Created by Zhukov on 2020/7/23. // #ifndef MODBUSMASTER_FRAME_CONVERSION_H #define MODBUSMASTER_FRAME_CONVERSION_H uint8_t char_to_number(const uint8_t ch); uint8_t number_to_char(const uint8_t ch); void ascii_frame_to_standard_modbus(uint8_t* rx, uint16_t length, uint8_t* result, uint16_t* result_length); void...
def print_unique_characters(string): unique_characters = [] for char in string: if char not in unique_characters: unique_characters.append(char) unique_characters.sort() for char in unique_characters: print(char, end="")
<form action = "submit.php" method="post"> <label for="name">Name:</label> <input type="text" id="name" name="name"><br> <label for="email">Email Address:</label> <input type="email" id="email" name="email"><br> <label for="age">Age:</label> <input type="number" id="age" name="age"><br> <label for="gender">Gende...
#!/usr/bin/env sh set -e python -m validate $@
package io.github.pmckeown.dependencytrack.score; import io.github.pmckeown.dependencytrack.CommonConfig; import io.github.pmckeown.dependencytrack.AbstractDependencyTrackMojo; import io.github.pmckeown.dependencytrack.DependencyTrackException; import io.github.pmckeown.util.Logger; import org.apache.maven.plugin.Mojo...
// https://codeforces.com/contest/922/problem/D #include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(0), ios::sync_with_stdio(0); int n; cin >> n; vector<string> t(n); for (int i = 0; i < n; i++) cin >> t[i]; sort(t.begin(), t.end(), [&](string &i, string &j) -> bool { ...
<filename>packages/friends/src/index.ts export * from './FriendsList';
#!/usr/bin/env bash # this will create a directory '/etc/vagrant' if it doesn't exist # each vagrant provision step will create a file within this folder # to determine if it needs to run again # if you want to run a particular step on a subsequent 'vagrant up', simply remove the file # if you want to run all steps o...
<reponame>Jerrypiglet/Total3DUnderstanding import numpy as np import os.path as osp def read_cam_params(camFile): assert osp.isfile(str(camFile)) with open(str(camFile), 'r') as camIn: # camNum = int(camIn.readline().strip() ) cam_data = camIn.read().splitlines() cam_num = int(cam_data[0]) ...
<filename>js/sykepengesoknad/soknad-behandlingsdager/SoknadBehandlingsdager.js import React from 'react'; import PropTypes from 'prop-types'; import beregnSteg, { KVITTERING } from '../utils/beregnSteg'; import SoknadKvitteringSjekker from '../felleskomponenter/SoknadKvitteringSjekker'; import { soknadPt } from '../../...
def solveNQueens(n): # An empty board board = [[0 for x in range(n)] for y in range(n)] # Initialize result result = [] # Solve the problem solveNQueensUtil(board, 0, result) return result def solveNQueensUtil(board, col, result): if col >= len(board): result.appen...
import {MDCFormField} from '@material/form-field'; import {MDCCheckbox} from '@material/checkbox'; const checkbox = new MDCCheckbox(document.querySelector('.mdc-checkbox')); const formField = new MDCFormField(document.querySelector('.mdc-form-field')); formField.input = checkbox;
import { StyleSheet } from 'react-native' export const blue1 = '#d1dfed' export const darkBlue1 = '#146dc7' export const theme = StyleSheet.create({ background: { flex: 1, width: '100%', resizeMode: "cover", backgroundColor: blue1, }, header: { backgroundColor: dark...
def modify_statement(stocks): """ Modify the financial statement according to the new stocks. """ new_stocks = [] for stock in stocks: new_stocks.append(stock + 5) return new_stocks modify_statement(stocks)
/** * MailSlurp API * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - G...
def countLicenseComments(file_path: str) -> int: with open(file_path, 'r') as file: content = file.read() license_comment_count = content.count('// http://www.apache.org/licenses/LICENSE-2.0') return license_comment_count
#!/bin/bash FN="breastCancerNKI_1.24.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.10/data/experiment/src/contrib/breastCancerNKI_1.24.0.tar.gz" "https://bioarchive.galaxyproject.org/breastCancerNKI_1.24.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-breastcancernki/bioconductor-breastca...
<filename>restapi/src/main/java/io/stargate/web/docsapi/service/query/search/db/impl/SubDocumentSearchQueryBuilder.java /* * Copyright The Stargate Authors * * 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 ...
#!/bin/bash # This script parses in the command line parameters from runCust, # maps them to the correct command line parameters for DispNet training script and launches that task # The last line of runCust should be: bash $CONFIG_FILE --data-dir $DATA_DIR --log-dir $LOG_DIR # Parse the command line parameters # tha...
export interface IStorageService { /** * Store a buffer in the storage system. * @param name The name of the item to store. * @param buffer The buffer of data to store. */ set(name: string, buffer: Buffer): Promise<void>; /** * Get a buffer from the storage system. * @param na...
sudo /etc/init.d/mysql restart
#!/bin/bash # j: 删除指定目录下所有乱码文件,乱码文件一般大小都为0 # 获取文件夹下所有文件 folder="/root/java-service" soft_files=$(ls $folder) for sfile in ${soft_files} do if [ ! -s "${sfile}" ] then echo "soft: ${sfile}" rm ${sfile} fi done
#!/bin/sh #rm -rf src/test/resources/gold/lexer/expected/* rm -rf src/test/resources/gold/parser/current/*.psi rm -rf out
#!/bin/sh git submodule init git submodule update test -x .setup_hook.sh && ./.setup_hook.sh cd hardware/esp8266com/esp8266 git submodule init git submodule update cd tools ./get.py
<gh_stars>10-100 package com.yoga.utility.qr.service; import com.alibaba.fastjson.TypeReference; import com.yoga.utility.qr.dto.UploadedFileBean; import com.yoga.utility.qr.model.QRBindInfo; import com.yoga.core.base.BaseService; import com.yoga.core.exception.BusinessException; import com.yoga.core.utils.StringUtil; ...
/* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2015 WIZnet Co.,Ltd. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
/* * 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 rights * to use, copy, mod...
<filename>javascript-version/bot/events/onready.js const Discord = require('discord.js'); const client = new Discord.Client(); const config = require('../files/config.json') const {servers, presence} = require("../utils/util.js") const chalk = require("chalk") module.exports = (client) => { const { status, game...
#!/bin/bash # Copyright 2021 Collate # 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 writi...
<gh_stars>1-10 /* * 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 appl...
#include <iostream> using namespace std; int findMinMax(int arr[], int n) { int min = arr[0]; int max = arr[0]; for (int i=1; i<n; ++i) { if (arr[i] < min) min = arr[i]; if (arr[i] > max) max = arr[i]; } cout << "Min: " << min << " Max: " << max; ret...
python scripts/preprocess.py \ --input_txt data/largePHP_UTF-8.txt \ --output_h5 data/largePHP.h5 \ --output_json data/largePHP.json # --input_txt data/tiny-shakespeare.txt \ # --output_h5 data/tiny-shakespeare.h5 \ # --output_json data/tiny-shakespeare.json th train.lua -input_h5 data/largePHP.h5 -input...
package string_handle; import java.io.BufferedReader; import java.io.InputStreamReader; /** * * @author minchoba * 백준 14405번: 피카츄 * * @see https://www.acmicpc.net/problem/14405/ * */ public class Boj14405 { private static final String[] POKE = {"pi", "ka", "chu"}; private static final String SPACE = " "; ...
<gh_stars>1-10 /* * Copyright (C) 2005-2015 <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 b...
#!/bin/bash # Use Glue to create the template file # First parameter is file name with path - best practise: located in /cre # Also a dummy file of the destination file must be located at same path # Rest of parameters is command and parameters to execute on change # Every container should have it's own set of files...
#!/bin/bash echo "Install calico" curl https://docs.projectcalico.org/manifests/calico.yaml -O kubectl apply -f calico.yaml
def search_substring(string, n): substrings = [] for i in range(len(string)-n+1): substrings.append(string[i:i+n]) return substrings
public function getRecordsByTypeAndStatus($type, $status){ $this->db->where('tipo', $type); $this->db->where('status', $status); $query = $this->db->get($this->tabela); return $query->result(); // Assuming the result should be returned as an array of objects }
<filename>src/mainwindow/actions/MessageActions.js import { APPEND_MESSAGE, CLEAR_MESSAGE } from './types' export const appendMessage = (message) => { return { type: APPEND_MESSAGE, payload: message } } export const clearMessage = () => { return { type: CLEAR_MESSAGE } }
import pandas as pd def generate_heatmap_df(pucks): # Truncate full time-series to [arrival_time, departure_time_0] def trunc_ts(series): return series.truncate(series['arrival_time'], series['departure_time_0']) # Apply truncation function to each row and transpose the result heatmapdf = puck...
import numpy as np import matplotlib.pyplot as plt def bayesian_inference(data, prior): c1 = data.count(1) c0 = data.count(0) p1 = c1 / len(data) p0 = c0 / len(data) likelihood_c1 = np.random.binomial(len(data), p1, 10000) / len(data) likelihood_c0 = np.random.binomial(len(data), p0, ...
/* * Copyright 2017 Realm Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
#!/bin/bash if [ $# -ge 1 ]; then xrandr | awk "/$1/,/connected/ {} {if (\$2 ~ /\*/) { for(i=2;i<=NF;i++) {gsub(\"[+*]\",\"\");print \$i}}}" else # Hardwired for my screen... bc this should never be used. xrandr | awk "/eDP-1/,/connected/ {} {if (\$2 ~ /\*/) { for(i=2;i<=NF;i++) {gsub(\"[+*]\",\"\");print \$i}}}"...
<reponame>woonsan/incubator-freemarker /* * 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 Licens...
#!/usr/bin/env sh # generated from catkin/cmake/template/local_setup.sh.in # since this file is sourced either use the provided _CATKIN_SETUP_DIR # or fall back to the destination set at configure time : ${_CATKIN_SETUP_DIR:=/home/nimesh/dev/anscer_PS/devel/.private/navloc} CATKIN_SETUP_UTIL_ARGS="--extend --local" . ...
// Main Tab Bar Controller import UIKit class MainTabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() let homeVC = HomeViewController() let settingsVC = SettingsViewController() let apiSettingsVC = ApiSettingsViewController() let controllers = [ homeVC, settingsVC, apiS...
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Station } from '../entities/station.entity'; @Injectable() export class UserService { constructor( @InjectRepository(Station, 'readonly') private readonly stationReposi...
#include <iostream> using namespace std; int main() { int num1, num2, sum; cout<<"Enter first number: "; cin>>num1; cout<<"Enter second number: "; cin>>num2; sum = num1 + num2; cout<<"Sum of two numbers is "<<sum; return 0; }
#!/usr/bin/env bash export PATH=$PATH:$(pwd -P)/ci source header.sh ${PROJECT_ROOT_DIR}/ci/build-rhoscala-rbls.sh ${PROJECT_ROOT_DIR}/ci/test-rholang-rbls.sh ${PROJECT_ROOT_DIR}/ci/clean-up.sh cd ${PROJECT_ROOT_DIR}
#!/bin/bash DOTPATH=~/git/MyDotFiles # Create local zhrc config touch ~/zshrc.local.sh rm ~/.zshrc ln -s $DOTPATH/zshrc ~/.zshrc rm ~/.vimrc ln -s $DOTPATH/vimrc ~/.vimrc rm -r ~/.vim ln -s $DOTPATH/vim ~/.vim rm ~/.gvimrc ln -s $DOTPATH/gvimrc ~/.gvimrc rm ~/.dircolors ln -s $DOTPATH/extras/dircolors ~/.dircolor...
#!/usr/bin/env bash pip3 install -r requirements.txt
'use strict' const fs = require('fs') const fetch = require('node-fetch') /** * Download a Cemu release (zip) to a given path * @param {Release(2)} release - Release to download * @param {string} path - Download path * @param {function} [callback] - Callback, receives an error object if an error occurs * @return...
#!/bin/bash export NODE_ENV=production # bigsurfshop (node bin/provider/reindex --provider=bigsurfshop --seller=used --path=sails) (node bin/provider/reindex --provider=bigsurfshop --seller=used --path=boards --no-checkHosts) (node bin/provider/reindex --provider=bigsurfshop --seller=used --path=masts --no-checkHos...
#include "Config.h" #include "BNetReqEmail.h" namespace Packets { namespace BNet { bool BNetReqEmail::Pack() { return true; } } }
#!/bin/bash #COBALT -t 3:00:00 #COBALT -n 1 #COBALT -A OceanClimate_2 # This software is open source software available under the BSD-3 license. # # Copyright (c) 2020 Triad National Security, LLC. All rights reserved. # Copyright (c) 2020 Lawrence Livermore National Security, LLC. All rights # reserved. # Copyright (c...
#!/bin/sh set -e # create namespace cat <<EOF | kubectl apply -f - apiVersion: v1 kind: Namespace metadata: name: netdata EOF # set kubectl namespace kubectl config set-context --current --namespace=netdata # deploy netdata kubectl apply -f https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/mas...
package com.nils.engine.main; import java.awt.Graphics; public abstract class Game { protected GameContainer gc; public Game(GameContainer gc) { this.gc = gc; } public abstract void update(double dt); public abstract void render(Graphics g); public GameContainer getGc() { return gc;...
package utils.assets.loader; import com.badlogic.gdx.graphics.g2d.Gdx2DPixmap; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.zip.GZIPInputStream; import arc.Core; import arc.assets.*; import arc.assets.loaders.FileHandleResolver; import arc.assets.loade...
<reponame>Nirovision/mimiron # -*- coding: utf-8 -*- from mimiron.exceptions import BaseMimironException class InvalidEnvironment(BaseMimironException): def __init__(self, env): message = '"%s" environment is invalid' % (env,) super(InvalidEnvironment, self).__init__(message) class UnexpectedCom...
#!/bin/bash # # Copyright (c) 2019-2020 P3TERX <https://p3terx.com> # # This is free software, licensed under the MIT License. # See /LICENSE for more information. # # https://github.com/P3TERX/Actions-OpenWrt # File name: diy-part2.sh # Description: OpenWrt DIY script part 2 (After Update feeds) # # Modify default IP...