text stringlengths 1 1.05M |
|---|
#!/bin/bash
testcasefolder=
#@ initialdir =
# DO NOT USE environment = COPY_ALL
#@ job_type = parallel
#@ class = test
#@ island_count = 1
#@ node = 20
#@tasks_per_node = 1
#@ wall_clock_limit = 0:30:00
#@ network.MPI = sn_all,not_shared,us
#@ energy_policy_tag = di73yeq_ept
#@ minimize_time_to_solution = yes
#@ ... |
#!/usr/bin/env bash
#
# Copyright (c) 2021, NVIDIA CORPORATION. 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
#
# Unl... |
<filename>clop_default_test.go<gh_stars>100-1000
package clop
import (
"bytes"
"fmt"
"strings"
"testing"
"github.com/stretchr/testify/assert"
)
// 测试默认(default 标签)值
func Test_DefautlValue(t *testing.T) {
type defaultExample struct {
Int int `clop:"--int" default:"1"`
Float64 float64 `... |
# Import necessary modules
from wtforms import SelectField
from wtforms.validators import DataRequired
from flask_sqlalchemy import SQLAlchemy
# Define the ModelSelectField class
class ModelSelectField(SelectField):
def __init__(self, label=None, validators=None, model=None, **kwargs):
super(ModelSelectFie... |
def get_item_count(results: dict) -> int:
if 'count' in results:
count = int(results['count'])
else:
count = 0
return count |
#!/bin/bash
#
# Copyright 2018 The Bazel 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 required by... |
#!/bin/bash
# This script can be used to rebuild a frontend project and refresh/restart the docker container in one go.
# Database will be dropped on each run of this script.
docker-compose rm -f -s -v
docker-compose build
docker-compose up -d
|
<gh_stars>0
from re import compile
from lazy import lazy
from resource_identifier.config import ZAM_CORE_CONFIG
def _determine_resource_catagory(result):
part_1 = result.pop('product_part_01')
part_2 = result.pop('product_part_02')
part_3 = result.pop('product_part_03')
part_4 = result.pop('product_pa... |
package common
import (
"errors"
"github.com/cjx2328/gocms/pkg/convert"
"github.com/gin-gonic/gin"
)
// GetQueryToStrE
func GetQueryToStrE(c *gin.Context,key string) (string,error) {
str,ok:=c.GetQuery(key)
if !ok {
return "",errors.New("没有这个值传入")
}
return str,nil
}
// GetQueryToStr
func GetQueryToStr(c *... |
<?php
$servername = "localhost";
$username = "root";
$password = "mypassword";
$dbname = "db_name";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?> |
package net.autoitemswitch.events;
public interface TickListener {
public void onTick();
}
|
/*
* Copyright (c) 2015, EURECOM (www.eurecom.fr)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... |
package apps;
import org.jooby.Jooby;
public class App1100 extends Jooby {
{
use(Controller1100.class);
}
}
|
class CustomCollection:
def __init__(self):
self.elements = []
def add(self, element):
self.elements.append(element)
def remove(self, element):
if element in self.elements:
self.elements.remove(element)
def contains(self, element):
return element in self.el... |
import { HttpBackend, HttpClient, HttpClientModule } from '@angular/common/http';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/anima... |
<filename>src/main/java/com/lovecws/mumu/netty/serialization/protobuf/news/SinaFinanceNewsOrBuilder.java<gh_stars>0
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: news.proto
package com.lovecws.mumu.netty.serialization.protobuf.news;
public interface SinaFinanceNewsOrBuilder extends
// @@p... |
<gh_stars>0
package com.estafet.boostcd.feature.api.scheduler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import com.estafet.boostcd.feature.api.dao.RepoDAO;
import com.estafet.boost... |
#!/bin/bash -e
app_name="DCU-central-control-app"
# Copy the latest DCU-central-control-app from github in the /home/pi folder
pushd files
find ${app_name} -type f -exec install -D "{}" "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/{}" \;
popd
# Configure ownership
on_chroot << EOF
chown -R ${FIRST_USER_NAME}:${FIRST_USER_... |
#!/bin/sh
#Author raony
#PBS -N blast_nt2
#PBS -e blast_2.err
#PBS -o blast_2.log
#PBS -q fila64
#PBS -l select=1:ncpus=24
cd $PBS_O_WORKDIR
time /home/raonyguimaraes/programs/ncbi-blast-2.3.0+/bin/blastn -db /home/raonyguimaraes/blast_db/nt -evalue 1e-5 -query splits/R_2013_11_30_15_23_49_user_CTL-148-Metagenoma_Mau... |
<?php
// Function to calculate the all possible combinations
// of an array
function find_combinations($arr, $n, $r)
{
$data = array();
combinationUtil($arr, 0, $data, 0, $r, $n);
}
// Function to generate all combinations
function combinationUtil($arr, $index, $data,
$i, $... |
def optimize(x, y):
return min(x, y)
print(optimize(4, 6)) |
#!/bin/bash
set -e
function watch_mon_health {
while true; do
log "Checking for zombie mons"
/check_zombie_mons.py || true
log "Sleep 30 sec"
sleep 30
done
}
|
import math
# Prompting the user to input the radius and height of the cylinder
radius = float(input("Enter the radius of the cylinder: "))
height = float(input("Enter the height of the cylinder: "))
# Calculating the volume of the cylinder
volume = math.pi * radius**2 * height
# Displaying the calculated volume of ... |
<filename>pages/login/login.js
var api = require('../../config/api.js');
var util = require('../../utils/util.js');
var user = require('../../utils/user.js');
var app = getApp();
Page({
data: {
heightTop: '',
type: false,
loginStayPop: false,
closeStayPropFlag: false,
token: wx.getStorageSync('ac... |
#!/bin/bash
#setup for each vm
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-k|--keyname)
KEYNAME="$2"
shift # past argument
shift # past value
esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
#uninstallfor first vm (master vm)
sudo systemctl stop docker
sudo a... |
<filename>netresources.h
#include <windows.h>
#include <winnetwk.h>
#pragma comment(lib, "mpr.lib")
BOOL WINAPI enumerateResources();
|
#!/usr/bin/env bash
#
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0
#
# or in the... |
<reponame>agus-setiawan-desu/brapi-Java-TestServer<gh_stars>1-10
package org.brapi.test.BrAPITestServer.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import o... |
import requests, json, copy
from rave_python.rave_base import RaveBase
from rave_python.rave_misc import checkIfParametersAreComplete, generateTransactionReference
from rave_python.rave_exceptions import ServerError, IncompletePaymentDetailsError, SubaccountCreationError, PlanStatusError
class SubAccount(RaveBas... |
<reponame>AlekseyGoremykin/koa-api-starter
const Joi = require('@hapi/joi');
const { v4: uuidv4 } = require('uuid');
const validate = require('middlewares/validate');
const writerService = require('resources/writers/writer.service');
const bookSchema = Joi.object({
title: Joi.string()
.trim()
.required()
... |
if (typeof AFRAME === 'undefined') {
throw new Error('Component attempted to register before AFRAME was available.');
}
require('./altspace');
require('./altspace-cursor-collider');
require('./altspace-tracked-controls');
require('./native-components');
require('./native-resources');
require('./sync');
require('./sy... |
<reponame>cschladetsch/KAI
#pragma once
#include <KAI/Executor/Operation.h>
#include <KAI/Executor/Continuation.h>
#include <KAI/Executor/SignedContinuation.h>
#include <KAI/Executor/Compiler.h>
|
<filename>src/rasperi_opengl_reference_rasterizer/rasperi_opengl_sky_box_shader.h<gh_stars>0
/* ---------------------------------------------------------------- *
<NAME> <<EMAIL>>
The definition of kuu::rasperi::OpenGLSkyBox class
* ---------------------------------------------------------------- */
#pragma on... |
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/1024+0+512-shuffled-N/13-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/1024+0+512-shuffled-N/13-1024+0+512-N-VB-fill-256 --do_e... |
use std::collections::HashMap;
enum Part {
Bool,
Uuid,
String(HashMap<String, String>),
Number(HashMap<String, i32>),
}
enum StringDescriptor {
Uuid(usize),
Patterns(Vec<String>),
}
enum ValueDescriptor {
Bool,
String(StringDescriptor),
}
fn search_for_patterns(keys: Vec<String>) -> ... |
"use strict";
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/emin93/react-native-template-typescript
*
* @format
*/
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return m... |
<filename>JavaScript Algorithms and Data Structures Certification (300 hours)/ES6 Challenges/14. Use Destructuring Assignment to Assign Variables from Arrays.js
// Use destructuring assignment to swap the values of a and b so that a
// receives the value stored in b, and b receives the value stored in a.
// Value of a... |
#!/bin/bash
FILE=$1
RELEASE=$2
export FILE
export RELEASE
input=$FILE
if [ -z "${RELEASE}"]
then
while IFS= read -r line
do
echo "http://svl-artifactory.juniper.net/artifactory/contrail-static-prod/"$line"/contrail-vrouter-agent.tgz"
echo "http://svl-artifactory.juniper.net/artifactory/contrai... |
<filename>controller/annotations/service/abortOnClose.go
package service
import (
"github.com/haproxytech/client-native/v2/models"
"github.com/haproxytech/kubernetes-ingress/controller/utils"
)
type AbortOnClose struct {
name string
backend *models.Backend
}
func NewAbortOnClose(n string, b *models.Backend) ... |
<reponame>borisbsu/cloudwatch-logback-appender
package com.j256.cloudwatchlogbackappender;
import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
/**
* Get the value of a system environment variable, the name of which is the {option}.
*
* @author graywatson
*/
pu... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>Welcome!</h1>
<p>This is a test page.</p>
</body>
</html> |
import pandas as pd
def sum_nested_series(df):
# Create a new DataFrame to store the sums
sum_df = pd.DataFrame(columns=df.columns, index=df.index)
# Iterate over each column in the input DataFrame
for col in df.columns:
# Apply a lambda function to sum the values in each nested Series
... |
<gh_stars>0
package com.rudikershaw.gitbuildhook;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import org.apache.maven.it.Verifier;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
import org.junit.Test;
/** ... |
<filename>jack/tests/test.cpp
/*
Copyright (C) 2005 <NAME> for GRAME
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 2 of the License, or
(at your option) any later version.
... |
#!/bin/sh
# Apple Documentation Reference: https://apple.co/3Gfe95W
#
# To make this script executable, run in terminal:
# chmod +x build_docs.sh
PROJECT_NAME="RadioBrowserKit"
DOC_DIR="Documentation/API/"
ROOT_URL="http://de1.api.radio-browser.info/json/"
# Create the output directory
mkdir -p "${DOC_DIR}"
# Buil... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { CheckConfiguration, FormattedCheckResult } from './ruleresults';
export class CheckMessageTransformer {
public addMessagesToChecks(checks: FormattedCheckResult[], checkConfigurations: CheckConfiguration[]): void ... |
<filename>yupc-backend/yupc-auth/yupc-auth-server/src/main/java/com/github/yupc/auth/service/ApplicationService.java
package com.github.yupc.auth.service;
import com.github.yupc.auth.common.jwt.TokenVo;
/**
* @author yupc
* @createTime 2017-12-13 23:04
*/
public interface ApplicationService {
TokenVo applyTok... |
import { Test, TestingModule } from '@nestjs/testing';
import { CharactersController } from './characters.controller';
import { CharactersService } from './characters.service';
describe('Characters Controller', () => {
let charactersController: CharactersController;
beforeEach(async () => {
const characters:... |
#!/bin/bash
SESSION=work
pid="$(pidof tmux)"
# exec
if test "$pid"; then
tmux attach
else
tmux new -d -s $SESSION
#
tmux new-window -t $SESSION:1 -n 'music'
tmux send-keys "ncmpcpp" C-m
tmux split-window -h
tmux select-pane -t 1
tmux resize-pane -R 10
tmux split-window -v
tmux resize-pane -D 1
... |
/** @file */
#ifndef CROW_WARN_H
#define CROW_WARN_H
#include <igris/buffer.h>
namespace crow
{
void warn(igris::buffer msg);
}
#endif |
<filename>packages/marketing/src/components/pages/Privacy/Privacy.tsx
import React from 'react';
import sharedClasses from '../../../common.module.css';
export default function Privacy() {
return (
<div>
<h1 className={sharedClasses.h1}>Privacy Policy</h1>
<section>
<h2 className={sharedCla... |
<filename>SmokingProject-master/app/src/main/java/com/example/kakyunglee/smokingproject/activity/dto/NoticeListDTO.java
package com.example.kakyunglee.smokingproject.activity.dto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class NoticeListDTO implements Serializable{
priva... |
import './global-utilities';
import { parseUtcDate } from './utilities';
import { Injectable } from '@angular/core';
import {
BackendService,
CaseType,
Column,
ColumnFilter,
ColumnFilters,
ColumnSort,
CurrentFilter,
CurrentPagination,
CurrentSorter,
FilterChangedArgs,
FieldType,
GridOption,
Od... |
<reponame>TY980910/Light-Musicbox<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: omi
# @Date: 2014-08-24 21:51:57
"""
网易云音乐 Menu
"""
from __future__ import print_function, unicode_literals, division, absolute_import
import time
# import curses
import threading
import sys
import os
import signal
... |
import * as React from 'react';
import { observer } from 'mobx-react';
import { polygonHull } from 'd3-polygon';
import * as _ from 'lodash';
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/Topology/topology-components';
import CollapseIcon from '@patternfly/r... |
package automation.ui.common;
import automation.report.dao.AutoReportDao;
import automation.report.dao.AutoReportImpl;
import automation.utils.ConfUtils;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
impo... |
def match(obj, *args):
*paths, values = args
current_obj = obj
for path in paths:
if isinstance(current_obj, dict) and path in current_obj:
current_obj = current_obj[path]
else:
return False
for key, value in values.items():
if key not in current_obj or cu... |
<reponame>jeckhummer/wf-constructor<gh_stars>0
import {
CLOSE_WO_EDITOR,
OPEN_WO_EDITOR,
OPEN_WO_EDITOR_TAB,
UPDATE_EDITOR_WO, SET_WO_CUSTOM_FIELDS, SET_WO_CUSTOM_FIELDS_LOADING_ANIMATION_VISIBILITY
} from '../../actions/WOEditor';
export const WO_EDITOR_TABS = {
CUSTOM_FIELDS: 1,
NOTIFICATIONS... |
(defn reverse-array
[array]
(reverse array))
(reverse-array [1 2 3 4 5]) ; returns (5 4 3 2 1) |
<reponame>alterem/smartCityService
package com.zhcs.service;
import com.zhcs.entity.CallRecordEntity;
import java.util.List;
import java.util.Map;
//*****************************************************************************
/**
* <p>Title:CallRecordService</p>
* <p>Description: 通话记录表</p>
* <p>Copyright: Copyri... |
<reponame>atpsoft/dohutil
require 'dohutil/core_ext/bigdecimal'
module Doh
class Test_core_ext_bigdecimal < DohTest::TestGroup
def test_integer_to_d
assert_equal(BigDecimal(1), 1.to_d)
end
def test_to_dig_valid
assert_equal('0.00', BigDecimal('0').to_dig)
assert_equal('1.00', BigDecimal('1').to_dig... |
<reponame>zjutcv/zjutcv
# Copyright (c) ZJUTCV. All rights reserved.
from .time import print_time
from .file import ZPath as Path
__all__ = [
'print_time', 'Path'
]
|
import git
def get_latest_commit_sha(repo_path: str) -> str:
repo = git.Repo(repo_path)
sha = repo.head.object.hexsha
return sha |
class BST:
def __init__(self):
self.root = None
def insert(self, value):
new_node = TreeNode(value)
if not self.root:
self.root = new_node
else:
current = self.root
while True:
if current.value < value:
# Go right
if not current.right:
current.right = new_node
break
current = current.right
else:
# Go... |
<filename>code401Challenges/src/main/java/code401Challenges/fifoAnimalShelter/Animal.java<gh_stars>0
package code401Challenges.fifoAnimalShelter;
public class Animal {
protected String name;
protected String gender;
protected String color;
protected int ageInYears;
protected boolean bark;
prot... |
<gh_stars>1-10
package com.java.study.algorithm.zuo.abasic.basic_class_07;
/**
* 求n!的结果
*/
public class Code_01_Factorial {
public static long Factorial(int n) {
if (n == 0 || n == 1) {
return n;
}
return n * Factorial(n - 1);
}
public static long Factorial2(int n... |
import * as assert from "assert";
import { IRecipe, IRecipeItem, RecipeType } from "../recipe";
import { transformRecipe } from "./gw2shinies";
describe("remoteparsers/gw2shinies", () => {
it("can parse recipes", () => {
const result = example1.map(transformRecipe);
assert.deepEqual(result, [
... |
<reponame>Travis-Richards/game
/** A two dimensional vector.
* Used in various locations to indicate
* either direction or position. Most of
* the functions in this class are not documented
* simply because they're self-documenting.
* */
class Vector {
private double x;
private double y;
publi... |
#!/usr/bin/env bash
set -e
# shellcheck source=cluster-up/cluster/ephemeral-provider-common.sh
source "${KUBEVIRTCI_PATH}/cluster/ephemeral-provider-common.sh"
function deploy_cnao() {
if [ "$KUBEVIRT_WITH_CNAO" == "true" ] || [ "$KUBVIRT_WITH_CNAO_SKIP_CONFIG" == "true" ]; then
$kubectl create -f /opt/c... |
def factorial(n):
if (n == 0):
return 1
return n * factorial(n - 1) |
<filename>app/src/main/java/com/dmitrybrant/response/uploadImagesServerRes/BackImageResponse.java
package com.dmitrybrant.response.uploadImagesServerRes;
public class BackImageResponse {
}
|
<gh_stars>0
class Solution:
def search_start(self, nums, start, end):
g_end = end
while nums[start] != nums[g_end]:
mid = (start + end) // 2
if nums[mid] == nums[g_end]:
end = mid - 1
else:
start = mid + 1
return start
... |
<filename>ext/extconf.rb<gh_stars>0
require "mkmf"
link = "debug"
if ARGV[0] == "--release"
link = "release"
end
$LDFLAGS << " -L./#{link} -lrubyfmt "
create_makefile("rubyfmt_#{link}")
|
#!/bin/sh
# chezmoi install script
# contains code from and inspired by
# https://github.com/client9/shlib
# https://github.com/goreleaser/godownloader
set -e
BINDIR=${BINDIR:-./bin}
TAGARG=latest
LOG_LEVEL=2
EXECARGS=
GITHUB_DOWNLOAD=https://github.com/twpayne/chezmoi/releases/download
tmpdir=$(mktemp -d)
trap 'r... |
<gh_stars>0
// export class Stock {
// ///////////////
// // Variables //
// ///////////////
// private symbol: string
// private name: string
// private market_id: string
// //////////////////
// // Constructors //
// //////////////////
// public constructor(
// symbo... |
function base64Unescape(value: string): string {
return (value + '==='.slice((value.length + 3) % 4)).replace(/-/g, '+').replace(/_/g, '/');
}
function base64Escape(value: string): string {
return value
.replace(/\+/g, '-')
.replace(/\//g, '_')
.replace(/=/g, '');
}
export function bas... |
/*
Navicat MySQL Data Transfer
Source Server : 127.0.0.1
Source Server Version : 50617
Source Host : localhost:3306
Source Database : cloud-vue
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2017-04-27 16:08:52
*/
SET FOREIGN_KEY_CHECKS=0;
--... |
<reponame>ChunboLI/NETCTOSS
package com.tarena.crm.dao.impl;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import com.tarena.crm.entity.Custom;
import com.tarena.crm.entity.CustomInfo;
import com.taren... |
<gh_stars>10-100
#ifndef SENSOR_H
#define SENSOR_H
/* (GCLK_SOURCE / GCLK_DIVIDE) / (PRESCALER + REGISTER COUNTS) = OVERFLOW FREQUENCE OF TCX
* (48Mhz / GCLK_DIVID) / PRESCALER + 2^16) = 2^16µS means
* Currenlty setted up to 1MHZ which equals count stamps of 1µS */
void initCounter()
{
// divides the source ... |
def remove_vowels(string):
vowels = ('a', 'e', 'i', 'o', 'u')
for x in string.lower():
if x in vowels:
string = string.replace(x, "")
return string |
def search_string(string, search):
if search in string:
return True
else:
return False |
import java.util.concurrent.locks.ReentrantLock;
public class Logger {
private static String hostHost;
private static ReentrantLock consoleLogLock = new ReentrantLock();
public void logMessage(String message) {
consoleLogLock.lock();
try {
System.out.println(message);
}... |
import BaseError from './baseError';
class MinPriceError extends BaseError {
constructor(message) {
super(message || 'The price cant be lower than 0.0001', 530);
}
}
export default MinPriceError;
|
# This script is from https://github.com/WaldJohannaU/3RScan with MIT License (Copyright (c) 2020 Johanna Wald)
if [[ ! -d "data" ]]; then
mkdir data
fi
# download example data
if [[ ! -d "data/3RScan" ]]; then
if [[ ! -f "data/3RScan.v2.zip" ]]; then
wget "http://campar.in.tum.de/files/3RScan/3RScan.v2.zip" -P d... |
<gh_stars>1-10
// ==UserScript==
// @namespace https://tampermonkey.myso.kr/
// @exclude *
// ==UserLibrary==
// @name GM_xmlhttpRequestHook
// @description GM_xmlhttpRequestHook 스크립트
// @copyright 2021, myso (https://tampermonkey.myso.kr)
// @license Apache-2.0
// @version 1.0.8
... |
<html>
<head>
<title>Greeting Form</title>
</head>
<body>
<form method="post" action="greet.php">
<label for="name">Name:</label>
<input type="text" name="name" id="name" />
<label for="age">Age:</label>
<input type="number" name="age" id="age" />
<input type="submit" value="greet" />
</form>
... |
<gh_stars>0
package mezz.jei.plugins.vanilla.crafting;
import javax.annotation.Nullable;
import net.minecraftforge.common.crafting.IShapedRecipe;
import net.minecraftforge.common.util.Size2i;
import net.minecraft.item.crafting.ICraftingRecipe;
import net.minecraft.util.ResourceLocation;
import mezz.jei.api.constants... |
#!/bin/bash
# Author: yeho <lj2007331 AT gmail.com>
# BLOG: https://blog.linuxeye.com
#
# Notes: OneinStack for CentOS/RadHat 5+ Debian 6+ and Ubuntu 12+
#
# Project home page:
# https://oneinstack.com
# https://github.com/lj2007331/oneinstack
Upgrade_Nginx() {
pushd ${oneinstack_dir}/src > /dev/null
... |
<gh_stars>1-10
package model
type FilterFunc func(resultRef interface{}) bool
type FilterIterator struct {
Iterator
PassFilter FilterFunc
}
func (self *FilterIterator) Next(resultRef interface{}) bool {
for self.Iterator.Next(resultRef) {
if self.PassFilter(resultRef) {
return true
}
}
return false
}
|
# coding=utf-8
__author__ = "AstroPrint Product Team <product@astroprint.com>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
import os
import json
import uuid
from flask import request, jsonify, abort
from flask.ext.login import current_user
from requests import ConnectionErr... |
#!/bin/sh
# Begin /usr/sbin/remove-expired-certs.sh
#
# Version 20120211
# Make sure the date is parsed correctly on all systems
mydate()
{
local y=$( echo $1 | cut -d" " -f4 )
local M=$( echo $1 | cut -d" " -f1 )
local d=$( echo $1 | cut -d" " -f2 )
local m
if [ ${d} -lt 10 ]; then d="0${d}"; fi
case $M... |
<gh_stars>0
/**
* Created by 都大爽 on 2017/8/7.
*/
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
//路由懒加载
const Dashboard = resolve => require(['./pages/dashboard.vue'], resolve)
const Admin = resolve => require(['./pages/admin/admin.vue'], resolve)
const Department = resolve => require([... |
#!/bin/bash
set -x
## Submit an update for go mod
git branch -D go-mod
git branch go-mod
git checkout go-mod
git pull origin master
GOPROXY=direct go get github.com/yadisnel/go-ms/v2@master
go fmt
go mod tidy
git add go.mod go.sum
git commit -m "Update go.mod"
git push origin go-mod
git checkout master
git branch -D ... |
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 <NAME>
* 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... |
package com.ulisesbocchio.security.saml;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author <NAME>
*/
@SpringBootApplication
public class SamlServiceProviderApplication {
public static void main(String[] args) {
SpringAp... |
#!/bin/sh
tar -xf lz4-1.9.3.tar.gz
cd lz4-1.9.3/
make
echo $? > ~/install-exit-status
cd ~
cat > compress-lz4 <<EOT
#!/bin/sh
./lz4-1.9.3/lz4 \$@ ubuntu-18.04.3-desktop-amd64.iso > \$LOG_FILE 2>&1
echo $? > ~/test-exit-status
EOT
chmod +x compress-lz4
|
<reponame>smagill/opensphere-desktop
package io.opensphere.arcgis2.mantle;
import io.opensphere.mantle.data.DataGroupInfo;
/**
* Interface to an object that knows how to add {@link DataGroupInfo} to the
* system.
*/
public interface MantleController
{
/**
* Adds the server group to the system.
... |
<filename>src/app/delsos/model/Shopper.ts
export class Shopper{
firstname: string;
lastname: string;
email: string;
password: string;
age:string;
phone: string;
} |
<filename>polymer-globe/polymer/polymer-all/toolkit-ui/tools/loader/loader.js<gh_stars>1000+
/*
* Copyright 2013 The Toolkitchen Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
(function() {
var scope = window.Loader = {};
va... |
package com.lbs.bot.model
case class Message(messageId: String, text: Option[String] = None)
case class Command(source: MessageSource, message: Message, callbackData: Option[String] = None) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.