text stringlengths 1 1.05M |
|---|
#!/usr/bin/env bash
#
# Copyright 2021 Merck & Co., Inc. Kenilworth, NJ, USA.
#
# 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
#... |
#!/bin/bash
docker run --restart=always --net=host -p 88:80 -d -v /home/architekt/docker-configs/haproxy-config:/usr/local/etc/haproxy haproxy
|
#!/bin/sh
# Scan local network for connected devices
nmap -sP 192.168.1.0/24 | awk '/Nmap scan report for/{printf $5;}/MAC Address:/{print " => "$3;}' |
<reponame>futjikato/electron-docker-gui<filename>app/actions/image.js
// @flow
import type { imageStateType, actionType } from '../reducers/image';
import Image from './../struct/Image';
import { CHANNEL_IMAGES, IMAGES_DELETE_ID, IMAGES_LOAD, IMAGES_CREATE_FROM } from './../backend/constants';
const { ipcRenderer } = r... |
#!/usr/bin/env bash
aws cloudformation deploy \
--template-file ./packaged-template.yaml \
--stack-name S3UncompressLambdaStack \
--capabilities CAPABILITY_IAM \
--parameter-overrides DestinationBucket=$UNCOMPRESSOR_DESTINATION_BUCKET |
#!/bin/sh
set -e -x
CURDIR="$PWD"
cat << EOF > $CURDIR/configure/RELEASE.local
EPICS_BASE=$HOME/.source/epics-base
EOF
install -d "$HOME/.source"
cd "$HOME/.source"
add_gh_flat() {
MODULE=$1
REPOOWNER=$2
REPONAME=$3
BRANCH=$4
MODULE_UC=$(echo $MODULE | tr 'a-z' 'A-Z')
( git clone --quiet --depth 5 --bra... |
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... |
#!/usr/bin/env bash
#
# Waits until request to given URI returns 200 or timeout threshold is reached.
# Can be given a command to run when done waiting.
#
SCRIPT_NAME=${0##*/}
echoerr() { if [[ $QUIET -ne 1 ]]; then echo "$@" 1>&2; fi }
usage()
{
cat << USAGE >&2
Usage:
$SCRIPT_NAME uri [-s] [-t timeout] [--... |
/* Copyright (c) 2001-2011, The HSQL Development Group
* 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 notice, this
* list... |
#!/bin/bash
set -e
echo "add admin user with password 1423 if no users"
cat << EOF > /tmp/account.js
db = db.getSiblingDB('open5gs')
cursor = db.accounts.find()
if ( cursor.count() == 0 ) {
db.accounts.insert({ salt: 'f5c15fa72622d62b6b790aa8569b9339729801ab8bda5d13997b5db6bfc1d997', hash: '402223057db5194899d2e... |
#!/bin/sh -x
set -e
rados -p data rm foo || true
rados -p data put foo.tmp /etc/passwd --object-locator foo
rados -p data clonedata foo.tmp foo --object-locator foo
rados -p data get foo /tmp/foo
cmp /tmp/foo /etc/passwd
rados -p data rm foo.tmp --object-locator foo
rados -p data rm foo
echo OK |
<gh_stars>0
module.exports = function toReadable (number) {
console.log(number);
let units = [
"zero",
"one",
"two",
"three",
"four",
"five",
"six",
"seven",
"eight",
"nine"
],
... |
##########################################################################
# Author: Jane Curry, jane.curry@skills-1st.co.uk
# Date: February 28th, 2011
# Revised: Extra debugging added Aug 23, 2011
#
# JuniperFPC modeler plugin
#
# This program can be used under the GNU General Public L... |
<reponame>openstreetcam/android
package com.telenav.osv.item.metadata;
import com.telenav.osv.utils.Log;
/**
* Data object which contains a track id and a frame index within that track. This object's {@link #toString()} knows how to format its data s.t. it's appropriate to write in
* the metadata file of a sequence... |
class ImportError(Exception):
pass
class ContentImporter:
def __init__(self):
self.content = None
def import_content(self, content):
try:
self.content = content
except ValueError as error:
raise ImportError(str(error)) |
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
annotate() {
${BUILDKITE:-false} && {
buildkite-agent annotate "$@"
}
}
ci/affects-files.sh \
.rs$ \
Cargo.lock$ \
Cargo.toml$ \
ci/test-bench.sh \
|| {
annotate --style info --context test-bench \
"Bench skipped as no .rs files were modified"
... |
import pytest
from unittest.mock import patch
# Assume the function to be tested is named 'interact_with_pokedex'
# Import the function to be tested
from your_module import interact_with_pokedex
# Define the unit test using the provided fixtures
def test_interact_with_pokedex(mock_query_server_publish, mock_pokedex_... |
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+512+512-old/13-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+512+512-old/13-1024+0+512-pad-256 --do_eval --per_device_e... |
#!/bin/sh
sqlite3 posts.db "drop table if exists post;
create table if not exists post(
id int primary key not null,
userId int not null,
title text not null,
body text not null
);"
|
# Always enable colored `grep` output
# Note: `GREP_OPTIONS="--color=auto"` is deprecated, hence the alias usage.
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias diff='diff --color -u'
|
package javafx.scene.control.skin;
import com.sun.javafx.scene.control.behavior.ButtonBehavior;
import javafx.scene.control.Hyperlink;
/**
* A Skin for Hyperlinks.
*/
public class HyperlinkSkin extends LabeledSkinBase<Hyperlink, ButtonBehavior<Hyperlink>> {
/****************************************************... |
#!/usr/bin/env bash
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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... |
package com.yoloho.enhanced.data.dao.monitor;
import java.util.List;
public interface MonitorCallback {
void receive(List<MonitorData> dataList, int intervalInSeconds);
} |
<filename>src/locale/lang/zh-CN.js
export default {
home: '首页',
login: '登录',
application: '应用',
log: '日志',
application_list: '应用列表',
application_config: '应用配置',
log_list: '日志列表',
log_detail: '日志详情',
error_store_page: '错误收集',
error_logger_page: '错误日志',
query: '带参路由',
params: '动态路由'
}
|
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the... |
var _unit_tests_8cpp =
[
[ "BOOST_TEST_MODULE", "_unit_tests_8cpp.xhtml#a6b2a3852db8bb19ab6909bac01859985", null ],
[ "BOOST_AUTO_TEST_CASE", "_unit_tests_8cpp.xhtml#ad57096af99f473aca7909812a744b619", null ],
[ "BOOST_GLOBAL_FIXTURE", "_unit_tests_8cpp.xhtml#a12aa278dd0bf585d562659e2b2e74014", null ]
]; |
message = 'Hello world!'
print(message.upper()) // HELLO WORLD! |
module ChatModule {
export interface IChat {
id: string;
name: string;
premoderated: boolean;
direction: string;
theme?: ITheme;
socket?: SocketIOClient.Socket;
messages?: IMessage[];
status: boolean;
init(): ng.IPromise<IChatResponse>;
}
export interface IChatResponse {
... |
<reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_PLATFORM_TGATEXTURE_H
#define INCLUDED_PLATFORM_TGATEXTURE_H
#include "texture_base.h"
#include "rstdint.h"
namespace platform {
class File;
class TgaTexture : public TextureBase
{
public:
TgaTexture( File& F );
};
} // namespace platform
#endif//INCLUDED_PLATF... |
import pygame as pg
# Initialize Pygame
pg.init()
# Set up the game window
window_width = 800
window_height = 600
window = pg.display.set_mode((window_width, window_height))
pg.display.set_caption('Maze Game')
# Game variables
running = True
player_x = 50
player_y = 50
goal_x = 700
goal_y = 500
obstacle_x = 300
obst... |
import "dotenv/config";
import mongoose from "mongoose";
import express, { NextFunction, Request, Response } from "express";
import { HttpError } from "http-errors";
import { User } from "database/models";
import cors from "cors";
import session from "express-session";
import path from "path";
import itineraryRouter fr... |
#!/usr/bin/env bash
# Copyright 2020 Hewlett Packard Enterprise Development LP
: "${RELEASE:="${RELEASE_NAME:="casmrel-630-psp-hotfix"}-${RELEASE_VERSION:="0.0.4"}"}"
# return if sourced
return 0 2>/dev/null
# otherwise print release information
if [[ $# -eq 0 ]]; then
echo "$RELEASE"
else
case "$1" in
... |
#!/bin/bash -f
#*********************************************************************************************************
# Vivado (TM) v2018.3 (64-bit)
#
# Filename : fifo_weights.sh
# Simulator : Aldec Active-HDL Simulator
# Description : Simulation script for compiling, elaborating and verifying the proje... |
package interpreter.core.include;
import interpreter.core.elements.Element;
import interpreter.core.elements.Value;
import interpreter.core.include.prototypes.PreDefined;
import interpreter.exceptions.InvalidSyntaxError;
import interpreter.util.Context;
import java.util.ArrayList;
/**
* Implements Minus function
*... |
<reponame>ooooo-youwillsee/leetcode
//
// Created by ooooo on 2020/1/23.
//
#ifndef CPP_0021__SOLUTION2_H_
#define CPP_0021__SOLUTION2_H_
#include "ListNode.h"
/**
* 使用原先的节点 (效率高)
*/
class Solution {
public:
ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) {
ListNode *dummyHead = new ListNode(0), *cur = d... |
<reponame>Sadeeg/VirtualYouthClub<filename>frontend/VirtualYouthClubApp/src/app/basic/viedeo/viedeo.component.spec.ts
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ViedeoComponent } from './viedeo.component';
describe('ViedeoComponent', () => {
let component: ViedeoComponent;
... |
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
*
*
* Copyright 2018-present, <NAME... |
#!/bin/sh
# Tsubame p100
if ls *.tsubame3.0_p100_kokkos > /dev/null 2>&1; then
qsub -g jh200053 batch_scripts/sub_tsubame3.0_p100_kokkos.sh
elif ls *.tsubame3.0_p100_openacc > /dev/null 2>&1; then
qsub -g jh200053 batch_scripts/sub_tsubame3.0_p100_acc.sh
# Tsubame broadwell
elif ls *.tsubame3.0_bdw_kokkos > /dev/nu... |
#!/bin/bash
set -e
TARGET_REPO="https://framagit.org/kresusapp/kresus"
TARGET_BRANCH="master"
git remote |
{
while read remote
do
if [ `git remote get-url $remote | grep -e $TARGET_REPO` ]
then
echo "Remote '$remote' already exists"
REMOTE_NAME=$remote
break... |
import { PipeTransform } from '@angular/core';
import * as ɵngcc0 from '@angular/core';
export declare class CountPipe implements PipeTransform {
transform(input: any): any;
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<CountPipe, never>;
static ɵpipe: ɵngcc0.ɵɵPipeDeclaration<CountPipe, "count">;
}
export decla... |
<filename>packages/sitecore-jss-vue/src/components/Link.test.ts
/* eslint-disable no-unused-expressions */
import { mount } from '@vue/test-utils';
import { generalLinkField as eeLinkData } from '../test/data/field-data-EE-on';
import { Link } from './Link';
describe('<Link />', () => {
it('should render not... |
package cn.zbx1425.resourcepackupdater;
import java.io.IOException;
import java.io.OutputStream;
public class ProgressOutputStream extends OutputStream {
public interface WriteListener {
void registerWrite(long amountOfBytesWritten);
}
private final OutputStream outstream;
private long bytes... |
<gh_stars>0
import * as React from "react";
import * as ReactModal from "react-modal";
import { IPlayPhase, ITrickFormat, IHands, TrickDrawPolicy } from "./types";
import Header from "./Header";
import Beeper from "./Beeper";
import Trump from "./Trump";
import Friends from "./Friends";
import Trick from "./Trick";
imp... |
def is_anagram(str1, str2):
# Defining a dict to store the character count
char_map = {}
# Iterating over the characters of first string
for char in str1:
if char in char_map.keys():
# Incrementing character count
char_map[char] += 1
else:
c... |
#!/bin/sh
### BEGIN INIT INFO
# Provides: reparaService
### END INIT INFO
DAEMON=/home/repara/ScopeControlService/scopeControlService
DAEMONARGS=" -c /home/repara/ScopeControlService/scopeControlService.cfg"
. /lib/lsb/init-functions
start_reparaService_daemon() {
start-stop-daemon --start --quiet --exec... |
<reponame>dvinubius/meta-multisig
import { List, Spin } from 'antd';
import React, { FC, useContext, useState } from 'react';
import './MultiSig.css';
import { MsVaultContext } from './MultiSig';
import { CheckCircleOutlined } from '@ant-design/icons';
import { primaryColor } from '~~/styles/styles';
import { Address ... |
<filename>script/preprocess_backup_v2.py
#!/usr/bin/env python3
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""Preprocess the SQuAD dataset for training."""
import sys
sys.path.... |
package com.example.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
@Entity
//@JsonIgnoreProperties("authors")
public class Book implements Serializable
{
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private I... |
<reponame>amogilev/yagson<gh_stars>1-10
/*
* Copyright (C) 2017 <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 requi... |
<reponame>ch1huizong/learning
class TraceNormal(object):
' state for normal level of verbosity '
def startMessage(self):
self.nstr = self.characters = 0
def emitString(self, s):
self.nstr += 1
self.characters += len(s)
def endMessage(self):
print '%d characters in %d stri... |
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
sudo apt-get update
sudo apt-get install -y \
libgl1-mesa-glx \
libgl1-mesa-dev \
libglapi-mesa \
libosmesa6-dev \
libxt-dev
|
<gh_stars>0
package sec.project;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
@EnableCaching
@SpringBootApplication
public class CyberSecurityBaseProjectApplication {
public stati... |
/* **** Notes
Initialise
Remarks:
Refer at fn. cli_init_property.
*/
# define CLI_SYM
# define CAR
# include <stdio.h>
# include "./../../../incl/config.h"
signed(__cdecl cli_init_text(signed(arg),cli_text_t(*argp))) {
auto signed char *b;
auto signed i,r;
auto signed char CUE_SYM[] = {
SYM_EXCLAMATION_MARK,
SYM_... |
<reponame>thenativeweb/dot-file<filename>src/dotFile.js
'use strict';
const fs = require('fs'),
os = require('os'),
path = require('path');
const promisify = require('util.promisify');
const readFile = promisify(fs.readFile),
writeFile = promisify(fs.writeFile);
const getFile = function (filename)... |
const express = require("express")
const app = express();
const PORT = process.env.PORT || 3000;
const chatbot = require("./chatbot.js");
app.get("/", (req, res) => {
res.send("Hello, world!");
});
app.post("/api/chatbot", (req, res) => {
const response = chatbot.getResponse(req.body.userInput);
res.send... |
def interest(balance, rate)
interest = 0
for year in 1..3
interest += balance * rate
end
return interest
end
balance = 1000
rate = 0.05
puts "Interest over 3 years: $#{interest(balance,rate).round(2)}" |
#!/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"); yo... |
#!/bin/bash
# re-initialize writable dataset
initialize_dataset "$BASE_URL_WRITABLE" "../dataset.trig" "$ENDPOINT_URL_WRITABLE"
# delete default graph
curl -w "%{http_code}\n" -f -s -G \
-X DELETE \
"${BASE_URL_WRITABLE}service" \
--data-urlencode "default=true" \
| grep -q "${STATUS_NO_CONTENT}"
curl -w "%{... |
#! /bin/bash
PORT=3001 SERVERURI="http://localhost:3001" VIDEOFOLDER="$PWD/test/video/" node server |
<filename>src/heap/store-buffer-inl.h
// Copyright 2011 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_HEAP_STORE_BUFFER_INL_H_
#define V8_HEAP_STORE_BUFFER_INL_H_
#include "src/heap/store-buffer.h"
#incl... |
package com.ruoyi.project.system.spdeptXm.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.support.Convert;
import com.ruoyi.common.utils.Strin... |
#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>
@interface CCLEntityManagedObjectListViewController : UITableViewController
- (instancetype)initWithManagedObjectContext:(NSManagedObjectContext *)managedObjectContext;
@property (nonatomic, strong, readonly) NSManagedObjectContext *managedObjectContext;
@propert... |
#!/bin/sh
# Copyright (c) 2014-2015 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
set -e
ROOTDIR=dist
BUNDLE="${ROOTDIR}/Agecoin-Qt.app"
CODESIGN=codesign
TEMPDIR=sign.temp
TEMPLIST=$... |
SELECT *
FROM table
ORDER BY added_date DESC
LIMIT 10; |
#!/bin/bash
if [ $# -eq 0 ]
then
echo "use: $0 ip_address"
exit 0;
fi
mkdir -p screenshots/telnet/raw/
mkdir -p screenshots/telnet/jpg/
mkdir -p screenshots/telnet/text/
echo "screenshooting $1"
CMD="telnet $1 2>&1 | tee screenshots/telnet/text/$1.txt"
#CMD="telnet $1 2>&1 | tee screenshots/telnet/text/$1.txt"
temp... |
// Function to perform wildcard string matching
function wildcardMatch(pattern, string) {
// Replace all the asterisks (*) with a regex wildcard
let re = new RegExp(pattern.replace(/\*/g, ".*"));
return re.test(string);
}
console.log(wildcardMatch(pattern, string));
// Output: true |
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-SS/13-model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-SS/13-512+0+512-common-1 --do_eval --per_device_eval_ba... |
#!/usr/bin/env bash
function createContainerKeys () {
local keyname
local pubkey
local overwrite
local sshport
local sshuser
local sshalias
local envfile
overwrite="${1:-true}"
keyname="${2:-vpncsshkey}"
sshport="${3:-2299}"
sshuser="${4:-root}"
sshalias="sshvpnc"
envfile=".env"
if [ -x "$(... |
#!/usr/bin/env bash
# Script Name: remove_branch.sh
# Description: Removes a branch from a git repository, both locally and remotely.
# Usage: remove_branch.sh [<branch_name>]
# [<branch_name>] - the name of the branch to remove.
# Example: ./remove_branch.sh test
main() {
if [ $# -eq 0 ]; then
ec... |
#!/bin/bash
# general configuration
backend=pytorch
stage=-1 # start from -1 if you need to start from data download
stop_stage=100
ngpu=0 # number of gpus ("0" uses cpu, otherwise use gpu)
debugmode=1
dumpdir=dump # directory to dump full features
N=0 # number of minibatches to be used (mai... |
<gh_stars>0
#This will print some common text
print("I will now count my chickens.")
#Next will print some common text between the quotation mark.
#The division will be made first than the addition, thats why the result will be
#30.0
#There is a ".0" after the result because of the division, that turned the number... |
<reponame>v55448330/cattle<gh_stars>0
package io.cattle.platform.process.host;
import io.cattle.platform.core.constants.ClusterConstants;
import io.cattle.platform.core.dao.ClusterHostMapDao;
import io.cattle.platform.core.model.Host;
import io.cattle.platform.core.model.tables.records.ClusterHostMapRecord;
import io.... |
#!/bin/bash
# Get SHAs of commits which were merged for pull request
parents=`git -C "$GITHUB_WORKSPACE/src" log -1 --merges --pretty=format:%P`
# If no commits were merged (ie test was ran on standalone commit) use the hash of that commit
parents=${parents:-$GITHUB_SHA}
# Call Github's statuses API
curl --request P... |
#!/usr/bin/env zsh
set -euo pipefail
setopt extended_glob
pushd "${0:A:h}/.." >/dev/null
diff -y \
<(cat Bindings/Libsass/**.hs | grep -E 'foreign import .+ (libsass|sass)_' | sed -E 's/^.+ (libsass|sass)_(.+)$/\1_\2/gm' | tr -d '"' | sort) \
<(cat libsass/include/sass.h libsass/include/sass/*.h | grep -E 'AD... |
# coding: utf-8
# # Convert all daily JSON log files for a deployment to a single NetCDF file
# using CF-1.6, Discrete Sampling Geometry (DSG) conventions, **`featureType=timeSeries`**
# In[26]:
import json
import pandas as pd
import numpy as np
import glob
import os
from pyaxiom.netcdf.sensors import TimeSeries
... |
<gh_stars>1-10
# This will guess the User class
FactoryBot.define do
factory :gallery, class: MediaGallery::Gallery do
sequence(:name) { |n| "user#{n}_gallery" }
description "a test gallery"
created_at DateTime.parse("2018-03-31T10:36:57.813Z")
updated_at DateTime.parse("2018-03-31T11:36:57.813Z")
... |
def sieve_of_eratosthenes(n):
sieve = [True] * (n + 1)
sieve[0:2] = [False, False] # 0 and 1 are not prime
p = 2
while p * p <= n:
if sieve[p]:
for i in range(p * p, n + 1, p):
sieve[i] = False
p += 1
primes = [i for i in range(2, n + 1) if sieve[i]]
... |
/* tslint:disable:no-unused-variable */
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { PictureFrameComponent } from './picture-frame.component';
describe('PictureFrameComponent', () => {
... |
package localfs
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"strings"
"time"
"github.com/araddon/gou"
"github.com/lytics/cloudstorage"
"github.com/lytics/cloudstorage/csbufio"
"github.com/pborman/uuid"
"golang.org/x/net/context"
"google.golang.org/api/iterator"
)
func i... |
package com.ctrip.persistence.entity;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @author minglei
*/
@Entity
@Table(name = "t_element_param_history")
public class ElementParamHistory extends AbstractElementParam {
}
|
#!/bin/bash
set -e
rm -rf ~/HappyMacApp build dist
RED='\x1B[0;31m'
NC='\x1B[0m'
IDENTITY='Developer ID Application: LAFFRA JOHANNES (29P9D64BXJ)'
echo -e "${RED}-1. install dependencies"
python -m pip install -r requirements.txt
echo -e "${RED}0. Probably need a new version?${NC}"
python src/version.py
echo -e "... |
#!/bin/bash
USR="Your Username goes here"
PASSWD="Your Password goes here"
HOST="Your Hostname or IP Address goes here"
PORT="Your database port number goes here"
mysql -u ${USR} -p${PASSWD} -h ${HOST}:${PORT} -e 'SELECT table_schema AS "Database", ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)... |
<gh_stars>0
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javabluetoothserver;
import java.awt.AWTException;
import java.awt.MouseInfo;
import java.awt.Point;
imp... |
# This program generates two random numbers between 1 and 10 and prints out the product of the two numbers
import random
number1 = random.randint(1, 10)
number2 = random.randint(1, 10)
print(f"The product of {number1} and {number2} is {number1 * number2}") |
#!/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... |
(function() {
'use strict';
/**
* App handles the communication among GUI, Game and Network.
*/
var App = function() {
this.game = null;
this.network = null;
// list of network clients, players[0]=>robot1...
this.players = [null, null];
this.state = 'DISCONNECT';
this._waiting_m... |
SELECT
user_id,
comment_time,
comment_text
FROM comments
WHERE comment_time = (
SELECT MAX(comment_time)
FROM comments
WHERE user_id = comments.user_id
) |
/*
Copyright (c) 2020-2021 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 la... |
/*-
* Copyright (c) 2019 <NAME> <<EMAIL>>
* 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 of co... |
<filename>library/src/main/java/com/smoothsync/smoothsetup/services/providerservice/ProviderService.java<gh_stars>0
/*
* Copyright (c) 2020 dmfs GmbH
*
* 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... |
# Get a numerical input from user
num = int(input('Enter a number from 0 to 5: '))
# Check if input is within the range
if num in range(0, 6):
print("Input accepted!")
else:
print("Input not accepted.") |
#!/bin/bash
# Find all R packages loaded in a codebase
# Jacob Levernier
# 2016
# Released under an MIT license
############################
# Settings
############################
file_to_save="./markdown_draft_examples/R_Package_Version_Numbers_AUTOMATICALLY_GENERATED_DO_NOT_EDIT_MANUALLY.md" # This file should be... |
#!/bin/sh
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -;
sudo apt-get install -y nodejs;
sudo apt-get install -y build-essential;
ln -s /usr/bin/nodejs /usr/bin/node
|
#!/usr/bin/env sh
systemctl daemon-reload
if [ -f "/var/lib/pufferpanel/database-RESTORE.db" ]; then
mv /var/lib/pufferpanel/database-RESTORE.db /var/lib/pufferpanel/database.db
fi
if [ ! -f "/var/lib/pufferpanel/database.db" ]; then
touch /var/lib/pufferpanel/database.db
fi
chown -R pufferpanel:pufferpanel /et... |
/*
* Copyright [2020-2030] [https://www.stylefeng.cn]
*
* 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... |
<reponame>benrandall/idb
import React from 'react';
import PropTypes from 'prop-types';
import { Col } from 'reactstrap';
import './RSTeamMember.css';
const RSTeamMember = (props) => {
return (
<Col lg='4' sm='6' className="text-center mb-4">
<img className="rounded-circle img-responsive img... |
docker build -t tileserver .
|
#!/bin/sh
# Script for Running all the Tests one after other
# Where are we called from?
P=`dirname $0`
# Current dir
ORIGPWD=`pwd`
# File for Storing Log Of UnitTest.
logUT=UnitTestResult
logSRT=SeleniumTestResult
###########################################################
##
## Create log for the tests
##
######... |
<reponame>EntropyHaos/KOREAHAOS_diagramo_tester_C9_VM
"use strict";
/*
Copyright [2014] [Diagramo]
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
U... |
<gh_stars>100-1000
/*
* Copyright © 2019 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.