text stringlengths 1 1.05M |
|---|
<reponame>grounded042/fission-workflows
package aggregates
import (
"github.com/fission/fission-workflows/pkg/api/events"
"github.com/fission/fission-workflows/pkg/fes"
"github.com/fission/fission-workflows/pkg/types"
"github.com/golang/protobuf/proto"
"github.com/sirupsen/logrus"
)
const (
TypeTaskInvocation =... |
<reponame>gridem/Serialization<filename>serialization.cpp
/*
* Copyright 2015 <NAME> (aka gridem)
*
* 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... |
#!/usr/bin/env bash
DAEMON_HOME="/tmp/simd$(date +%s)"
RANDOM_KEY="randomvalidatorkey"
echo "#############################################"
echo "### Ensure to set the below ENV settings ###"
echo "#############################################"
echo "
DAEMON= # ex: simd
CHAIN_ID= # ex: testnet-1
DENOM= # ex: ustake
G... |
import numpy as np
# Given source points
src = np.array(
[
perspective_params['src']['ul'], # upper left
perspective_params['src']['ur'], # upper right
perspective_params['src']['lr'], # lower right
perspective_params['src']['ll'], # lower left
],
np.int32
)
# Complete the ... |
#include <stdio.h>
#include "stack.h"
void init_stack(ArrayStack *stack) {
stack->top = -1;
}
int stack_empty(ArrayStack *stack) {
return stack->top == -1 ? TRUE : FALSE;
}
int push(ArrayStack *stack, void *a) {
if (stack->top == MAXSIZE-1) /* stack is full */
return FALSE;
stack->data[++stack->top] = a;
ret... |
#!/bin/sh
#
# ignore-tidy-linelength
set -ex
# Originally from https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
curl https://ci-mirrors.rust-lang.org/rustc/clang%2Bllvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz | \
tar xJf -
export PATH=`pwd`/clang+llvm-9.0.0-x86_64-linux-gnu-u... |
curl -X POST -c "./cookiefile" \
-d '{"user":"username", "password":"secret"}' \
-H "accept: application/json" \
-H "Content-Type: application/json" \
"http://127.0.0.1:5000/login/ldap"
|
<filename>src/main/java/uk/ac/cam/ahk44/chess/Component.java
package uk.ac.cam.ahk44.chess;
public @interface Component {
}
|
#!/bin/sh
rm -rf ./index.html
|
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... |
import * as vscode from "vscode";
import * as path from "path";
import { resolveRoot } from "../utils";
import { NoteTreeItem } from "../models/notes";
import { newSearcher, Searcher } from "../search";
export class NotesTreeView implements vscode.TreeDataProvider<NoteTreeItem> {
noteRoot: string;
listRecentLimit... |
# frozen_string_literal: true
# Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
import uuid from 'uuid/v4';
import moment from 'moment';
import { startAddIdea } from '../../actions/ideas';
import requireAuth from '../../middleware/requireAuth';
class AddIdea extends Component {
sta... |
from .base import * # noqa
DEBUG = True
TEMPLATES[0]["OPTIONS"]["debug"] = True
INSTALLED_APPS += ["debug_toolbar", "django_extensions"]
MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE
INTERNAL_IPS = [
"127.0.0.1",
]
ALLOWED_HOSTS = ["*"]
DEBUG_TOOLBAR_CONFIG = {
"SHOW_TOOLB... |
<!DOCTYPE html>
<html>
<head>
<title>Text Formatting</title>
<script type="text/javascript" src="lib/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: 'textarea',
plugins: 'a11ychecker advcode casechange formatpainter linkchecker autolink lists checklist media med... |
REPUBLICAN = 'republican'
DEMOCRAT = 'democrat' |
export default function (db, caller, args) {
return {
message: args?.message || 'Pong'
}
} |
#!/bin/sh
test_description='prepare-commit-msg hook'
. ./test-lib.sh
test_expect_success 'with no hook' '
echo "foo" > file &&
git add file &&
git commit -m "first"
'
# set up fake editor for interactive editing
cat > fake-editor <<'EOF'
#!/bin/sh
exit 0
EOF
chmod +x fake-editor
## Not using test_set_editor h... |
<filename>app/src/main/java/com/garfield/alfred/robbin/iflytek/util/UnderstandUtil.java<gh_stars>0
package com.garfield.alfred.robbin.iflytek.util;
import android.content.Context;
import android.os.Bundle;
import android.os.Environment;
import android.widget.Toast;
import android.util.Log;
import com.iflytek.cloud.Er... |
<gh_stars>0
package weixin.liuliangbao.jsonbean.ViewBean;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*import net.sf.json.JSONArray;
import net.sf.json.JSONObject;*/
/**
* Created by aa on 2015/11/26.
*/
public class Po... |
<filename>core/src/temp/java/awt/Composite.java
package temp.java.awt;
/**
*
*/
public interface Composite {
}
|
colors = ["red", "orange", "green", "blue"]
color_codes = ["#FF0000", "#FFA500", "#008000", "#0000FF"]
color_code_dict = dict(zip(colors, color_codes))
code = color_code_dict[colors[0]] |
def parse_tokens(tokens):
parsed_tokens = []
for token in tokens:
if token[0] == 'daddress':
parsed_tokens.append(daddress(token))
elif token[0] == 'dcommand':
parsed_tokens.append(dcommand(token))
elif token[0] == 'doaddress':
parsed_tokens.append(doa... |
import React, {Component} from 'react';
import {connect} from 'react-redux';
import {Switch, Route} from 'react-router-dom'
import Header from './components/Header';
import Body from './components/Body';
import Footer from "./components/Footer/Footer";
import HomePage from "./scenes/Homepage";
class App extends Compon... |
#!/bin/bash
TOKEN=`cat ${HOME}/digitalocean.token`
api(){
HTTP_METHOD=$1
OBJECT=$2
curl -s -X $HTTP_METHOD \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
"https://api.digitalocean.com/v2/$OBJECT"
}
check(){
each=${1}
echo ""
echo "${each}"
... |
<filename>app/controllers/drawings_controller.rb
class DrawingsController < ApplicationController
get '/drawings' do
@drawings = Drawing.where("user_id = ?", Helpers.current_user(session).id)
erb :'/drawings/index'
end
get '/drawings/new' do
erb :'drawings/new'
end
... |
/*
* Copyright (C) 2017-2019 Dremio 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 l... |
<reponame>sergeytkachenko/siesta-template<gh_stars>100-1000
/**
* @private
*/
Ext.define('Ext.device.camera.Abstract', {
source: {
library: 0,
camera: 1,
album: 2
},
destination: {
data: 0,
file: 1,
'native': 2
},
encoding: {
jpeg: 0,
... |
#!/usr/bin/env bash
koopa_kallisto_quant_single_end() {
# """
# Run kallisto on multiple single-end FASTQ files.
# @note Updated 2022-03-25.
#
# @examples
# > koopa_kallisto_quant_single_end \
# > --fastq-dir='fastq' \
# > --fastq-tail='_001.fastq.gz' \
# > --output-dir=... |
import flask
# Create the Flask application
app = flask.Flask(__name__)
# Create a route to serve a JSON response
@app.route('/data')
def serve_json():
# Create the list of events
events = [
{'name': 'Easter Sunday', 'date': '4/12/2020', 'description': 'Annual celebration of the resurrection of Jesus.'},
{'name':... |
<reponame>despo/apply-for-teacher-training<gh_stars>0
require 'rails_helper'
RSpec.describe SupportInterface::OrganisationPermissionsExport do
let(:training_provider) { create(:provider) }
let(:ratifying_provider) { create(:provider) }
let(:provider_relationship_permissions) do
create(:provider_relationship_... |
<filename>src/main/java/org/vertx/java/core/cluster/spi/hazelcast/HazelcastAsyncMultiMap.java
package org.vertx.java.core.cluster.spi.hazelcast;
import org.vertx.java.core.BlockingAction;
import org.vertx.java.core.CompletionHandler;
import org.vertx.java.core.Deferred;
import org.vertx.java.core.cluster.spi.AsyncMult... |
#!/firmadyne/sh
/firmadyne/busybox date >> /firmadyne/os_cmd_injection_log
/firmadyne/busybox env >> /firmadyne/os_cmd_injection_log
if [ -e /proc/self/stat ];then
/firmadyne/busybox cat /proc/self/stat >> /firmadyne/os_cmd_injection_log
fi
/firmadyne/busybox echo "" >> /firmadyne/os_cmd_injection_log
|
import Data from './data-service';
let myLocalStorage = {
get(key){
return JSON.parse( localStorage.getItem(key) );
},
save(key){
return new Promise(function (resolve, reject) {
if(!localStorage[key]){
Data.getData('http://starlord.hackerearth.com/simility/movieslisting')
.th... |
python3 apps/main.py |
<filename>utils/cbvrp_eval.py
# __author__ = 'Hulu_Research'
import csv
import numpy as np
def read_csv(filepath):
"""
read csv file.
:param file_path: the path of the csv file
:return: list of list
"""
reader = csv.reader(open(filepath, 'r'))
data = []
for x in reader:
... |
#!/bin/sh
CONFIG4J_HOME=../../..
CONFIG4JMS_HOME=$CONFIG4J_HOME/config4jms
CLASSPATH=$CONFIG4J_HOME/lib/config4j.jar:$CLASSPATH
CLASSPATH=$CONFIG4JMS_HOME/samples/:$CLASSPATH
CLASSPATH=$CONFIG4JMS_HOME/lib/config4jms.jar:$CLASSPATH
CLASSPATH=$SONICMQ_HOME/lib/sonic_Client.jar:$CLASSPATH
CLASSPATH=$SONICMQ_HOME/lib/mf... |
#!/usr/bin/bash
export OMP_NUM_THREADS=1
export MKL_NUM_THREADS=1
export NUMEXPR_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1
export VECLIB_MAXIMUM_THREADS=1
if [ -z "$PASSIVE" ]; then
export PASSIVE="1"
fi
function launch {
# apply update
if [ "$(git rev-parse HEAD)" != "$(git rev-parse @{u})" ]; then
git ... |
package info.archinnov.achilles.internal.metadata.holder;
import static org.fest.assertions.api.Assertions.*;
import static org.mockito.Mockito.*;
import info.archinnov.achilles.schemabuilder.Create.Options.ClusteringOrder;
import info.archinnov.achilles.schemabuilder.Create.Options.ClusteringOrder.Sorting;
import or... |
import { routeName } from '../routeName';
import { TestCaseImpl } from '../testCaseImpl';
export const cases = [
new TestCaseImpl({ toState: routeName('app'), fromState: routeName(null) }, ['app']),
new TestCaseImpl({ toState: routeName('app.home'), fromState: routeName(null) }, ['app', 'app.home']),
new TestCas... |
def matrix_product(matrix1, matrix2):
result_matrix = [[0 for y in range(len(matrix2[0]))] for x in range(len(matrix1))]
for i in range(len(matrix1)):
# iterate through columns of Y
for j in range(len(matrix2[0])):
# iterate through rows of Y
for k in range(len(matrix2)):... |
# 删除编译缓存文件
rm -rf build && rm -rf dist && rm -rf HN_Rtsp2Hls.spec && pyinstaller -F HN_Rtsp2Hls.py |
<gh_stars>0
var tape = require("tape"),
storage = require("..");
tape("storage#get(key) should return value of key", function(assert) {
storage.set("key", "value");
assert.equal(storage.get("key"), "value");
storage.remove("key");
assert.end();
});
tape("storage#set(key, value) should set the val... |
/*
* Copyright 2019 <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 required by applicable law or agreed to in wr... |
<gh_stars>0
import { TestBed, inject } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';
import { HttpClientInterceptor } from './http-client-interceptor.service';
import { ErrorModalService } from 'app/services/errorModal/error-modal.ser... |
#!/bin/bash -f
#*********************************************************************************************************
# Vivado (TM) v2018.2 (64-bit)
#
# Filename : ddr3_ctrl.sh
# Simulator : Mentor Graphics Questa Advanced Simulator
# Description : Simulation script for compiling, elaborating and verifying the... |
#!/bin/bash
function zigbee2mqtt-show-short-info {
echo "Setup for Zigbee2mqtt bridge."
}
function zigbee2mqtt-show-long-info {
echo "This script installs the Zigbee2mqtt bridge"
}
function zigbee2mqtt-show-copyright-info {
echo "Original concept by Landrash <https://github.com/landrash>."
}
function zigbee2mq... |
"""
File : MSUnmergedRSE.py
Description: Provides a document Template for the MSUnmerged MicroServices
"""
class MSUnmergedRSE(dict):
"""
A minimal RSE information representation to serve the needs
of the MSUnmerged Micro Service.
"""
def __init__(self, rseName, **kwargs):
super(MSUn... |
use std::error::Error;
// Define the RTDError struct
pub struct RTDError {
message: String,
}
impl RTDError {
// Implement the message method for RTDError
pub fn message(&self) -> &String {
&self.message
}
}
// Define the RTDErrorBuilder struct
pub struct RTDErrorBuilder {
inner: RTDError... |
curl "http://localhost:8080/v1/views/myorg/bands/composite_view?rev=3" |
<gh_stars>0
package com.stylefeng.guns.rest.modular.cinema.vo;
import com.stylefeng.guns.api.cinema.vo.AreaVO;
import com.stylefeng.guns.api.cinema.vo.BrandVO;
import com.stylefeng.guns.api.cinema.vo.HallTypeVO;
import java.util.List;
import lombok.Data;
/**
* Created by xianpeng.xia
* on 2020/7/1 12:11 上午
*/
@Dat... |
#!/bin/sh
# Start DOSBox, start gretty server
dosbox &
sleep 2
gradle appRun
|
<filename>src/common/server.ts
declare class AirConsole {
broadcast(data: any): void;
message(device_id: number, data: any): void;
onMessage(device_id: number, data: any): void;
onConnect: (device_id: number) => void;
onDisconnect: (device_id: number) => void;
onDeviceStateChange: (device_id: number, user_d... |
// 10974. 모든 순열
// 2019.05.22
// 수학
#include<iostream>
using namespace std;
int arr[9];
int visit[9];
int n;
// 브루트 포스 방법으로 순열 구하기
void Permutation(int cnt)
{
if(cnt==n)
{
for(int i=0;i<n;i++)
{
printf("%d ",arr[i]);
}
printf("\n");
return;
}
for(int i=0;i<n;i++)
{
if(!visit[i... |
package main
func balancedStringSplit(s string) int {
count, num := 0, 0
for i := 0; i < len(s); i++ {
if string(s[i]) == "L" {
num += 1
} else {
num -= 1
}
if num == 0 {
count++
}
}
return count
}
|
const mysql = require("mysql");
module.exports = {
connect: function (host, user, password, database) {
const conn = mysql.createConnection({
host,
user,
password,
database,
});
conn.connect();
return conn;
},
tables: function (conn, done) {
conn.query(`SHOW TABLES;`... |
#!/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"); y... |
<gh_stars>1-10
/**
* @file
*
* @brief Utilities for querying and manipulating object events.
*
* @since 1.0.0
*
* @copyright 2021 the libaermre 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 cop... |
<reponame>tdm1223/Algorithm<filename>acmicpc.net/source/5565.cpp
// 5565. 영수증
// 2019.05.21
// 구현
#include<iostream>
using namespace std;
int main()
{
int a, b;
cin >> a;
// 총 가격에서 9개의 가격을 뺀게 정답
for (int i = 0; i < 9; i++)
{
cin >> b;
a -= b;
}
cout << a << endl;
return 0;
}
|
if [[ -n "${TRAVIS:-}" ]]; then
echo -e "travis_fold:start:$0\033[33;1m$0\033[0m"
fi
|
def find_sum(arr):
primes = []
for num in arr:
if is_prime(num): # Function to check if number is prime
primes.append(num)
return sum(primes)
prime_sum = find_sum(arr)
print('The sum of all prime numbers in the array is: ', prime_sum) |
<gh_stars>0
/*
* Copyright 2014-2020 The Ideal Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
package ideal.development.extensions;
import ideal.library.element... |
#! /bin/bash
#SBATCH -o /home/hpc/pr63so/di69fol/workspace/SWEET_2016_01_16/benchmarks_performance/rexi_tests/2016_01_06_scalability_rexi_fd/run_rexi_fd_par_m4096_t004_n0128_r0448_a1.txt
###SBATCH -e /home/hpc/pr63so/di69fol/workspace/SWEET_2016_01_16/benchmarks_performance/rexi_tests/2016_01_06_scalability_rexi_fd/ru... |
#!/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_RoboschoolWalker2d-v1_ddpg_softcopy_action_noise_seed1_run9_%N-%j.out # %N for node name, %j for job... |
<reponame>srproj-will-rename/buddy
package carrot
import (
"crypto/rand"
"errors"
"fmt"
log "github.com/sirupsen/logrus"
"io"
"strings"
)
// InSlice returns whether a string exists in a collection of items.
func InSlice(str string, items []string) bool {
for _, item := range items {
if item == str {
retur... |
#!/bin/bash
# Set bash to 'debug' mode, it will exit on :
# -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands',
set -e
set -u
set -o pipefail
train_set="train_960"
valid_set="dev"
test_sets="test_clean test_other dev_clean dev_other"
asr_config=conf/tuning/train_asr_conformer6_n_fft5... |
echo "\033[32mbuild managed plugins\033[m"
cd `dirname $0`
dotnet.exe build -c release -o ../lib/ |
import React, { forwardRef, useMemo } from 'react'
import Picklist from 'core/components/Picklist'
import { projectAs } from 'utils/fp'
import useDataLoader from 'core/hooks/useDataLoader'
import PropTypes from 'prop-types'
import { serviceAccountActions } from 'k8s/components/prometheus/actions'
// We need to use `fo... |
package com.leidos.dataparser.data.map;
import com.leidos.dataparser.io.formatting.Output;
import com.leidos.dataparser.io.formatting.OutputData;
import java.util.Vector;
/**
* This class represents an FHWA-formatted MAP (GID) message that has been received by the ASD OBU. It can parse the message
* content and d... |
from selenium import webdriver
# create the webdriver instance
driver = webdriver.Chrome()
# navigate to the page and maximize the window
driver.get('https://www.example-website.com/login')
driver.maximize_window()
# find and fill the form with username and password
username = driver.find_element_by_name('userna... |
<reponame>buythewhale/eslint-plugin-no-inline-styles
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const requireIndex = require('requireindex');
const path = require('path');
//---------... |
#!/bin/bash
# Converts a from PowerPoint created PDF file into SVG files.
# (every page get's converted to one SVG file)
#
#
# Works only if you have Inkscape and PDFtk installed and in the environment variables!
# > Inkscape: https://inkscape.org/en/release/0.92.2/
# > PDFtk: https://www.pdflabs.com/tools/pdftk-the-p... |
#!/usr/bin/env bash
src="pagerank-adjust-rank-datatype"
out="/home/resources/Documents/subhajit/$src.log"
ulimit -s unlimited
printf "" > "$out"
# Download program
rm -rf $src
git clone https://github.com/puzzlef/$src
cd $src
# Run
g++ -std=c++17 -O3 main.cxx
stdbuf --output=L ./a.out ~/data/min-1DeadEnd.mtx 2>&... |
#!/bin/bash
set -e
case "$(uname)" in
Darwin* )
wiseguy_host_os=OSX
;;
linux* )
wiseguy_host_os=Linux
;;
* )
abend "Homeport will only run on OS X or Linux."
;;
esac
if [ "$1" == "module" ]; then
echo $0
echo "Please do not execute these programs di... |
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import Home from '../Screens/Home';
import Details from '../Screens/Details';
const HomeStack = createStackNavigator();
export default ({ navigation }) => {
return(
<HomeStack.Navigator
initialRouteName="Home"
... |
import * as React from 'react';
import { Dropdown, MenuItem } from 'react-bootstrap';
import '../actions.less';
export interface Props {
onDelete: () => any;
onStop: () => any;
isRunning: boolean;
pullRight: boolean;
}
function BuildActions(props: Props) {
return (
<span className={props.pullRight ? 'a... |
import time
from typing import Optional
import uvicorn
from devtools import debug # výpis premenný do promptu
from fastapi import FastAPI, Form, Request
# from fastapi.responses import HTMLResponse
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates
# import requests
import mod... |
var _Promise = typeof Promise === 'undefined' ? require('es6-promise').Promise : Promise;
module.exports = function getArrayBuffer(chunk) {
return new _Promise(function (resolve, reject) {
var reader = new FileReader();
reader.addEventListener('load', function (e) {
// e.target.result is an ArrayBuffer... |
#!/bin/bash
CUR_USER=`whoami`
if [ "$CUR_USER" != "root" ]; then
echo "Not root yet"
exit 1
fi
if [ "" == "$1" ]; then
echo "Please provide domain name:"
echo " setup-proxy.sh full.domain.name Private.IP.Address"
exit 1
fi
DOMAIN=$1
if [ "" == "$2" ]; then
echo "Please provide Private IP address to Jenk... |
<gh_stars>10-100
module_name = "jupyter-datawidgets"
EXTENSION_SPEC_VERSION = "^5.1.0"
|
// Create an if statement inside the function to return "Yes, that was true" if the parameter wasThatTrue is true and return "No, that was false" otherwise.
// Example
function ourTrueOrFalse(isItTrue) {
if (isItTrue) {
return "Yes, it's true";
}
return "No, it's false";
}
// Setup
function trueO... |
<reponame>fairix/kerkow2
/* eslint-disable import/no-unresolved */
import Plugin from 'src/plugin-system/plugin.class';
import PseudoModalUtil from 'src/utility/modal-extension/pseudo-modal.util';
import PageLoadingIndicatorUtil from 'src/utility/loading-indicator/page-loading-indicator.util';
import ButtonLoadingIndi... |
def check_shell_script(file_path):
with open(file_path, 'r') as file:
first_line = file.readline().strip()
if first_line.startswith("#!"):
if "#!/bin/zsh" in first_line:
print("The script uses zsh as the executing shell. No issues found.")
elif "#!/bin/sh" in ... |
java -jar ../implementation/target/ATM-implementation-jar-with-dependencies.jar
|
SdkName="BrightScriptSDK"
targetSrc="brightscript"
delSrc=true
cd ..
. ./shared_build.sh
|
#!/bin/bash
# Copyright 2017 MSO4SC - javier.carnero@atos.net
#
# 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 applicab... |
from setuptools import setup, find_packages
setup(name='Ennchan',
version='0.0',
description='The Ennchan home page.',
author='Ennchan',
author_email='<EMAIL>',
url='http://www.python.org/sigs/distutils-sig/',
packages=find_packages(),
install_requires=['Flask'],
)
|
#!/usr/bin/env bash
set -e
KAFKA_HOME=${KAFKA_HOME:-"/opt/kafka"}
SCALA_VERSION=${SCALA_VERSION:-2.13}
KAFKA_VERSION=${KAFKA_VERSION:-3.0.0}
FILENAME="kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz"
echo "Installing kafka ${SCALA_VERSION}-${KAFKA_VERSION}"
url=$(curl --fail --silent --stderr /dev/null "https://www.apa... |
<gh_stars>0
/* Serbian locals for flatpickr */
import { CustomLocale } from "types/locale";
import { FlatpickrFn } from "types/instance";
const fp: FlatpickrFn =
typeof window !== "undefined" && window.flatpickr !== undefined
? window.flatpickr
: {
l10ns: {},
} as FlatpickrFn;
export const Ser... |
#!/bin/bash
nbonds=20
long=2
cfg=/Users/Arthur/stratt/polymer/configs/trial_job.cfg
out=/Users/Arthur/stratt/polymer/test/gd_trial_job/out/
for njob in {1..100}
do
sim="${nbonds}_${long}_${njob}"
log1="${out}/${sim}_gd_out.log"
log2="${out}/${sim}_gd_err.log"
echo "Running job ${njob}"
bin/run_geode... |
#!/usr/bin/env bash
{{!
Template adapted from here:
https://github.com/chriskempson/base16-builder/blob/master/templates/gnome-terminal/dark.sh.erb
}}
# Base16 dirtysea - Gnome Terminal color scheme install script
# Kahlil (Kal) Hodgson
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 dirtysea 256"
[[ -z "$PROFIL... |
#! /bin/sh
java -jar bin/csv-report.jar |
#!/bin/bash
diff -w -I "Real time" -I "RooRealVar::" -I "mkdir" -I "libSM.so" -I "libASImage" -I "png file FitExampleMorphingDilep" LOG_MORPH_DILEP_f test/logs/FitExampleMorphingDilep/LOG_MORPH_DILEP_f && diff -w FitExampleMorphingDilep/Fits/FitExampleMorphingDilep.txt test/reference/FitExampleMorphingDilep/Fits/FitEx... |
/* eslint-disable */
const createProxyMiddleware = require('http-proxy-middleware');
const morgan = require('morgan');
module.exports = (app) => {
app.use(createProxyMiddleware('/auth', {
target: process.env.API_BASEURL || 'http://localhost:9999/auth',
changeOrigin: true,
pathRewrite: {
'^/auth': '... |
<reponame>carlosdnba/serverless-stack
import {
DeleteItemCommand,
DescribeTableCommand,
DynamoDBClient,
GetItemCommand,
PutItemCommand,
QueryCommand,
ScanCommand,
ScanCommandInput,
ScanCommandOutput,
} from "@aws-sdk/client-dynamodb";
import {
useInfiniteQuery,
useMutation,
useQuery,
useQueryC... |
#!/usr/bin/env bash
set -e
set -x
basepath=$(cd `dirname $0`/..; pwd)
RUN_MEDIAN_FILTERS=${basepath}/build_linux/run_median_filters
INPUT_PATH=${basepath}/images/jian20_salt_pepper_noise.jpg
FILTER_RADIUS=3
ITERATION_NUM=1
MEDIAN_FILTER_OUT_PATH_PREFIX=${basepath}/results/median_filter_radius${FILTER_RADIUS}_iter${I... |
<gh_stars>0
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
void Sleep_us(uint16_t delay);
void Sleep_ms(uint16_t delay);
void Sleep_sec(uint16_t delay);
#endif
|
#!/bin/sh
#Copyright (c) 2016.
#
#Juergen Key. Alle Rechte vorbehalten.
#
#Weiterverbreitung und Verwendung in nichtkompilierter oder kompilierter Form,
#mit oder ohne Veraenderung, sind unter den folgenden Bedingungen zulaessig:
#
# 1. Weiterverbreitete nichtkompilierte Exemplare muessen das obige Copyright,
#die ... |
//
// EndPointFramework.h
// EndPointFramework
//
// Created by <NAME> on 11/9/20.
//
#import <Foundation/Foundation.h>
//! Project version number for EndPointFramework.
FOUNDATION_EXPORT double EndPointFrameworkVersionNumber;
//! Project version string for EndPointFramework.
FOUNDATION_EXPORT const unsigned char... |
#include <iostream>
#include <cstdio>
using namespace std;
bool set1(char a,b,c){
if (a='Zulian' && b='Razzashi' && c='Hakkari') return true;
else return false;
}
bool set2(char d,e,f){
if(d='Sandfury' && e='Skullsplitter' && f='Bloodscalp') return true;
else return false;
}
bool set3(char g,h,i){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.