text stringlengths 1 1.05M |
|---|
#!/bin/bash
# mvdir.sh : Move directory to another for some specific files
# If works only for the files containing some string,
# and the string will be deleted after moving.
# Author : Kiyoon Kim (yoonkr33@gmail.com)
# Usage : mvdir.sh [input_dir] [output_dir] [containing_string]
# Warning : [c... |
<reponame>belugafm/beluga-v3-api-server
import { AuthenticityTokenQueryRepository, LoginSessionQueryRepository, UserQueryRepository } from "./web/repositories"
import { Request, Response, TurboServer } from "./web/turbo"
import { Authenticator } from "./web/auth"
import { CookieAuthenticationApplication } from "./appl... |
#@IgnoreInspection BashAddShebang
# Copyright (c) YugaByte, 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 applicab... |
var uuid = require('uuid');
var windowSize = 128;
var exec = require('child_process').exec;
var spawn = require('child_process').spawn;
var config = require('../config');
function Mbuffer(options){
this.remoteEnd = null;
this.localEnd = null;
this.transfer = null;
this.aborting = false;
this.err = null;
th... |
from rest_framework import viewsets
from userFit.serializers import UserSerializer
from userFit.models import UserProfile
from userFit.permissions import IsOwner
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import generics
from activity.authentification impo... |
<filename>src/app/components/Settings/SettingsCritical.tsx<gh_stars>0
import React, {useState} from 'react';
import Typography from '@material-ui/core/Typography';
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
import InputLabel from '@material-ui/core/InputLabel';
imp... |
public function getProducts($id = NULL){
$category = new CategoryModel();
$products = $category->findProductsByCategory($id);
if ($products) {
return $this->response->setJSON($products);
} else {
return $this->response->setStatusCode(404)->setJSON(['error' => 'No products found for the ... |
<filename>src/main/java/com/home/demo/util/UserInfo.java
package com.home.demo.util;
import java.util.Collection;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
public... |
# Set up virtual environment
pipenv lock --clear
pipenv install
# Set up project directory
pipenv run python setup.py
# Get projects, publications, and citation data
pipenv run python nih_reporter_query.py --search_terms "search_terms.txt" --operator "or" --start_year 1985 --end_year 2021
# Extract features
pipenv r... |
<filename>acmicpc.net/source/1940.cpp
// 1940. 주몽
// 2020.07.03
// 수학
#include<iostream>
#include<vector>
using namespace std;
int main()
{
int n;
int m;
cin >> n >> m;
vector<int> v(n);
for (int i = 0; i < n; i++)
{
cin >> v[i];
}
int ans = 0;
for (int i = 0; i < n; i++)
... |
<filename>test/uvlq64_test.rb
require "test_helper"
class UVLQ64Test < Minitest::Test
def test_uvlq64_can_encode_and_decode()
x = [
# we use big endian for all this due to uvlq64
0x7f,
0x4000,
0x0,
0x3ffffe,
0x1fffff,
0x200000,
0x3311a1234df31413
]
x.each do |v|
newBuf = Wexpr::UV... |
<reponame>prajwalsouza/viewX
viewX = {}
viewX.graphToSvgY = function (value, graphymin, graphymax) {
if (graphymin == graphymax) {
graphymin = graphymin - 1
graphymax = graphymax + 1
console.log('Conversion error, maximum value is equal to minimum value. Max value was raised by 1 and Min value was reduced... |
<filename>src/js/components/deployments/deploymentstatus.js
import React from 'react';
const defaultStats = {
success: 0,
decommissioned: 0,
pending: 0,
failure: 0,
downloading: 0,
installing: 0,
rebooting: 0,
noartifact: 0,
aborted: 0,
'already-installed': 0
};
export default class DeploymentStat... |
var SCOPES = {
user: [
'username',
'avatar',
'id',
'prefLocale'
],
email: [
'email'
]
};
module.exports = {
filterUserForScopes: function(user, scopes) {
var filtered = {};
scopes.forEach(function(scope) {
var scopeAttrs = SCOPES[scope];
if ( scopeAttrs ) {
sc... |
function bunmit() {
echo "Checking gems to update..."
bundle update && bundle exec rake test && git add Gemfile Gemfile.lock && git commit -m "Gem update" && git push
echo "Update done"
}
function furypush() {
echo "Fury pushing..."
git push origin master && git push origin develop && git push --tags && git ... |
export class CredentialsDto {
username: string;
jwtToken: string;
}
|
import { Component, OnInit, Input } from '@angular/core';
import { MenuItem } from '@core/modelo/menu-item';
import { Comercio } from '@shared/modelo/comercio';
import { ComercioService } from '@shared/service/comercio.service';
import { Observable } from 'rxjs';
@Component({
selector: 'app-navbar',
templateUrl: '... |
<gh_stars>1-10
#!/usr/bin/python
import os, sys, re, random, argparse
import requests, OpenSSL, string
from argparse import RawTextHelpFormatter
from classes.bcolours import *
from classes.banner import *
#
# Invoke-mimikatz.ps1 obfuscator
# Download Mimikatz Powershell module, change variable names, remove comment... |
from tkinter import *
# import os
import qrcode
from PIL import Image, ImageTk
from resizeimage import resizeimage
# QR Code Generator | Designed by <NAME>
class Qr_Genrator():
def __init__(self, root):
self.root=root
self.root.title("QR Code Generator")
self.root.geometry('900x500+200+50'... |
# $EDITOR
export EDITOR=nvim
|
import subprocess
def start_screen_session(session_name, script_path):
subprocess.run(['screen', '-d', '-m', '-S', session_name, 'python', script_path])
def list_screen_sessions():
result = subprocess.run(['screen', '-ls'], capture_output=True, text=True)
print(result.stdout)
def terminate_screen_session... |
<reponame>kanongil/hls-playlist-reader
'use strict';
const Events = require('events');
const Fs = require('fs');
const Os = require('os');
const Path = require('path');
const Url = require('url');
const Boom = require('@hapi/boom');
const Code = require('@hapi/code');
const Hoek = require('@hapi/hoek');
const Lab = r... |
<reponame>elvcastelo/mathjax-react<gh_stars>0
import Context from './Context'
import Node from './Node'
export { Context, Node }
export default { Context, Node } |
<filename>nova-gestion-backend/src/main/java/ca/nova/gestion/mappers/EmployeeMapper.java
package ca.nova.gestion.mappers;
import ca.nova.gestion.model.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@Mapper
@Repository
public interface EmployeeMapper {
Emp... |
#!/bin/bash
if [ "$1" = "" ]; then
echo
echo -e 'usage: '$0' mock|aws|azure|gcp|alibaba|tencent|ibm|openstack|cloudit|ncp|nhncloud'
echo -e '\n\tex) '$0' aws'
echo
exit 0;
fi
source ./setup.env $1
echo "============== before get KeyPair: '${KEYPAIR_NAME}'"
time $CLIPATH/spctl --config $CLIPATH/spctl.conf keypai... |
#!/bin/bash
# Copyright 2017 Google 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 i... |
<filename>use-cases/Synthetic/t204/m1.js
var _;
_ = isPrototypeOf.length;
_ = isPrototypeOf.name;
isPrototypeOf.length = {};
isPrototypeOf.name = {};
isPrototypeOf();
|
import React from 'react';
import { mount } from 'enzyme';
import moment from 'moment';
import { DayPickerSingleDateController } from 'react-dates';
import { act, cleanup, render } from '@testing-library/react';
import InputText from '../../InputText';
import DatePicker from '../index';
jest.useFakeTimers();
const d... |
#!/bin/bash
# Automated regeneration of sample course data
########################################################################
EXTRA=
while :; do
case $1 in
--no_submissions)
EXTRA="--no_submissions"
;;
*) # No more options, so break out of the loop.
break... |
#!/bin/bash
make_cmd="make"
guid="1"
uid="1"
for i in "$@"
do
case $i in
-j=*|--threads=*)
make_cmd="make -j ${i#*=}"
;;
-g=*|--guid=*)
guid="${i#*=}"
;;
-u=*|--uid=*)
uid="${i#*=}"
;;
*)
# unknown option skip
;;
esac
done
cd /GrammarEngine/src/build && \
e... |
<filename>qlightterminal.h
/*
* Copyright© <NAME> <<EMAIL>>
*/
#ifndef QLIGHTTERMINAL_H
#define QLIGHTTERMINAL_H
#include <QWidget>
#include <QStringList>
#include <QScrollBar>
#include <QHBoxLayout>
#include <QKeyCombination>
#include <QTimer>
#include <QPointF>
#include <QTime>
#include <QColor>
#include "st.h"... |
from flask import request
from flask.json import jsonify
from flask_restful import Resource
from flask_pydantic import validate
from messenger.schema.job import RunSuiteBase, RunTemplateBase
from messenger.utils.response_util import RET
from celeryservice.tasks import run_suite, run_template
class RunSuiteEvent(Reso... |
package com.javakc.pms.dispord.service;
import com.javakc.commonutils.jpa.base.service.BaseService;
import com.javakc.commonutils.jpa.dynamic.SimpleSpecificationBuilder;
import com.javakc.pms.dispord.dao.DispOrdDao;
import com.javakc.pms.dispord.entity.DispOrd;
import com.javakc.pms.dispord.vo.DispOrdQuery;
import org... |
<filename>InteractiveProgramming/guess.py<gh_stars>0
# template for "Guess the number" mini-project
# input will come from buttons and an input field
# all output for the game will be printed in the console
import simplegui
import random
import math
range_low = 0
range_high = 100
use_random_range = False
secret_numbe... |
#!/bin/bash
# Helper utilities for build
PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python
OPENSSL_DOWNLOAD_URL=http://www.openssl.org/source
GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
function check_var {
if [ -z "$1" ]; then
echo "required variable not defined"
exit 1
fi
}
funct... |
//Timer element
const timerElement = document.getElementById('timer');
//Start the timer
let countdown = 60;
const timer = setInterval(() => {
timerElement.innerHTML = countdown--;
if (countdown < 0) {
countdown = 60;
}
}, 1000); |
TERMUX_PKG_HOMEPAGE=https://neovim.io/
TERMUX_PKG_DESCRIPTION="Ambitious Vim-fork focused on extensibility and agility (nvim)"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.4.4
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/neovim/neovim/archive/v${TERMUX_PKG_VERSION}.... |
#!/bin/bash
### COLOR OUTPUT ###
ESeq="\x1b["
RCol="$ESeq"'0m' # Text Reset
# Regular Bold Underline High Intensity BoldHigh Intens Background High Intensity Backgrounds
Bla="$ESeq"'0;30m'; BBla="$ESeq"'1;30m'; UBla="$ESeq"'4;30m'... |
<reponame>campenr/ensparser
import unittest
import os.path
import pandas as pd
from multiplate import multiplateIO
TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), "test_data")
class TestIsInstance(unittest.TestCase):
def test_enspire_csv_parser(self):
"""Check that parsed EnSpire csv matches ex... |
def f(x):
if x % 2 == 0:
return x // 2
else:
return 3 * x + 1
def collatz_sequence(n):
sequence = [n]
while n != 1:
n = f(n)
sequence.append(n)
print(*sequence)
# Example usage
collatz_sequence(6) |
MODELFILE_NAME="l2pool2d_test.tflite"
STATUS="disabled"
|
#!/bin/sh
set -e
make distclean -s
git clean -fdq
# git restore . -q |
#!/bin/bash
if [ $# -lt 2 ]
then
echo "usage: ./save runid label description"
echo " "
exit
fi
runid=$1
label=$2
if [ $# -ne 3 ]
then
read -p "Please describe label '$label': " -e label_description
else
label_description=$3
fi
echo ""
echo "Storing model states with label" $label "in di... |
export default {
SENTRY_DNS: process.env.VUE_APP_SENTRY_DNS
};
|
/*
* Copyright (c) 2016 Nike, 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 i... |
from bs4 import BeautifulSoup
html = """
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div class="container">
<div class="row">
<div class="col">
<ul class="list">
<li class="description">Professionally</li>
<li class="bullet-item">Expert</li>
<li class="bullet-item">Fast</li>
<li class="bullet-item... |
import { SidebarValue } from './components-basic.model';
export class OcSidebarSelectModel {
parent: SidebarValue;
child: SidebarValue;
}
|
#!/usr/bin/env bash
# Consume HTTP header
while read line; do
[[ -z ${line//$'\r'} ]] && break
done
read query
echo -e "HTTP/1.0 200 OK\r\ncontent-type: text/plain; charset=utf-8\r\n\r\n"
./jp "$query" | tee /dev/stderr
|
mod encode {
pub fn u16_buffer() -> Vec<u8> {
vec![0; 2] // Create a buffer of 2 bytes initialized with zeros
}
pub fn u16(n: u16, buf: &mut [u8]) -> &[u8] {
buf[0] = (n & 0xFF) as u8; // Store the lower 8 bits in the first byte
buf[1] = (n >> 8) as u8; // Store the upper 8 bits in ... |
<reponame>mdemong/hackathon-2019<filename>vision.js
// getCards('./bionotes5.jpg');
async function label() {
// Imports the Google Cloud client library
const vision = require('@google-cloud/vision');
// Creates a client
const client = new vision.ImageAnnotatorClient();
// Performs label detectio... |
#!/bin/bash
# ---------------------------------------------------------------------------------------------------------------------
desktopAndroidStudio()
{
# PACKAGE_URL="https://redirector.gvt1.com/edgedl/android/studio/ide-zips/4.1.1.0/android-studio-ide-201.6953283-linux.tar.gz"
# PACKAGE_PATH="./packages/andro... |
#!/bin/bash
#SBATCH -J Act_cosper_1
#SBATCH --mail-user=eger@ukp.informatik.tu-darmstadt.de
#SBATCH --mail-type=FAIL
#SBATCH -e /work/scratch/se55gyhe/log/output.err.%j
#SBATCH -o /work/scratch/se55gyhe/log/output.out.%j
#SBATCH -n 1 # Number of cores
#SBATCH --mem-per-cpu=2000
#SBATCH -t 23:59:00 # Hours, minutes a... |
#!/bin/bash
if [[ $target_platform =~ linux.* ]] || [[ $target_platform == win-32 ]] || [[ $target_platform == win-64 ]] || [[ $target_platform == osx-64 ]]; then
export DISABLE_AUTOBREW=1
mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION
$R CMD INSTALL --build .
else
mkdir -... |
#!/bin/bash
# Shell script for ask-cli pre-deploy hook for Python
# Script Usage: pre_deploy_hook.sh <SKILL_NAME> <DO_DEBUG> <TARGET>
# SKILL_NAME is the preformatted name passed from the CLI, after removing special characters.
# DO_DEBUG is boolean value for debug logging
# TARGET is the deploy TARGET provided to th... |
<gh_stars>0
from myhdl import *
from tope import *
from bram import *
from ClkDriver import *
from ResetDriver import *
import random
@block
def tbTope():
A_WIDTH = int(input("lineas del simulacion.hex/ Cantidad de bits del addr de la RAM: "))
clk = Signal(False)
DataInRAM = Signal(modbv(0)[32:])
reset = ResetSi... |
#! /usr/bin/env bash
apt-get -y install emacs24 emacs24-el emacs24-common-non-dfsg
|
#!/bin/sh
set -e
password=$1
# install SCSservo pyserial imutils
apt update
python3 setup.py install
cp -r JETANK_1_servos //workspace/jetbot/notebooks
cp -r JETANK_2_ctrl //workspace/jetbot/notebooks
cp -r JETANK_3_motionDetect //workspace/jetbot/notebooks
cp -r JETANK_4_colorRecognition //workspace/jetbot/noteboo... |
def sum_parameters(param1, param2):
return str(param1 + param2) |
from pathlib import Path
import feast
import joblib
import pandas as pd
from sklearn import tree
from sklearn.exceptions import NotFittedError
from sklearn.preprocessing import OrdinalEncoder
from sklearn.utils.validation import check_is_fitted
class CreditScoringModel:
categorical_features = [
"person_h... |
package com.demo.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.... |
9.2
|
# Identify local mounts
MOUNT_LIST=$(df --local | awk '{ print $6 }')
# Find file on each listed mount point
for cur_mount in ${MOUNT_LIST}
do
find ${cur_mount} -xdev -type f -name "shosts.equiv" -exec rm -f {} \;
done
|
/*
* Toggle display of loaders / disable buttons
* -------------------------------------------
*
* @param loaders [array] of [HTMLElement]
* @param buttons [array] of [HTMLElement]
* @param show [boolean]
*/
export const setLoaders = ( loaders = [], buttons = [], show = true ) => {
if( loaders.length ) {
l... |
<reponame>orlouge/amphitrite-casket
package io.github.orlouge.amphitritecoffer.mixin;
import io.github.orlouge.amphitritecoffer.config.AmphitriteCofferConfig;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.entity.LootableContainerBlockEntity;
import net.minecraft.... |
const OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"browser" : true,
"node" : true,
"es6": true,
"jquery": true
},
"ecmaFeatures": {
"modules": true
},
"extends": ["eslint:recommended", "google"],
"rules": {
"no-console": WARN,
"no-undef": WARN,
"no-un... |
#!/usr/bin/env bash
# bind conda to spark
echo -e "\nexport PYSPARK_PYTHON=/home/hadoop/conda/bin/python" >> /etc/spark/conf/spark-env.sh
echo "export PYSPARK_DRIVER_PYTHON=/home/hadoop/conda/bin/jupyter" >> /etc/spark/conf/spark-env.sh
echo "export PYSPARK_DRIVER_PYTHON_OPTS='notebook --no-browser --ip=$1'" >> /etc/s... |
<reponame>AliFrank608-TMW/RacingReact<filename>src/reducers/horse/index.js
import horseReducer from './horseReducer'
import { combineReducers } from 'redux'
const combinedHorseReducers = combineReducers({
horseInfo: horseReducer,
})
export default combinedHorseReducers
|
#!/bin/sh
if command -v lsd > /dev/null; then
alias ls='lsd -F --icon=never --date=relative'
alias l='ls -l'
alias lr='l --tree'
alias ll='l -a'
alias llr='ll --tree'
else
alias ls='ls -Fh --color=auto'
alias l='ls -l'
alias lr='tree'
alias ll='l -A'
alias llr='tree -a'
fi
alias bat='bat... |
#!/bin/bash
relation=$1
python2 sl_policy.py $relation
python2 policy_agent.py $relation retrain
python2 policy_agent.py $relation test
|
'use strict';
const {Tray, Menu} = require('electron');
const path = require('path');
/**
* 托盘模块
*/
module.exports = {
/**
* 安装
*/
install (eeApp) {
eeApp.logger.info('[preload] load tray module');
const trayConfig = eeApp.config.tray;
const mainWindow = eeApp.electron.mainWindow;
// 托盘... |
var path = require('path');
var express = require('express');
var app = express();
app.use(express.static(__dirname));
app.use('/angular-offline.js', express.static(path.join(__dirname, '../angular-offline.js')));
app.use('/angular-offline.min.js', express.static(path.join(__dirname, '../angular-offline.min.js')));
a... |
import requests
import logging
logger = logging.getLogger(__name__)
class MonzoClientError(Exception):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
class MonzoClient:
def __init__(self, access_token):
self.access_token = access_token
def get_account_balance(self... |
<filename>node_modules/@angular-eslint/eslint-plugin-template/dist/processors.d.ts
/**
* Because ultimately a user is in control of how and when this processor gets invoked,
* we can't fully protect them against doing more work than is necessary in all cases.
*
* Therefore, before we do a full parse of a TypeScript... |
<reponame>vchoudhari45/codingcargo<gh_stars>1-10
package com.vc.easy
object L541 {
def reverseStr(s: String, k: Int): String = {
val arr = s.toCharArray
val n = arr.length
var start = 0
var end = 0
def reverse(from:Int, to:Int): Unit = {
var fromVar = from
var toVar = to
while(f... |
<filename>giveMeHandFrond-end/src/app/chart/chart.component.ts
import { Component, OnInit } from '@angular/core';
import { ChartDataSets, ChartOptions, ChartType } from 'chart.js';
import { Color, Label, MultiDataSet } from 'ng2-charts';
import { DemandeService } from '../services/demande-service';
import { OffreServic... |
#!/bin/sh
rm -rf /ping
|
# encoding:utf-8
import os
import sys
import math
import json
import errno
import struct
import signal
import socket
import asyncore
from cStringIO import StringIO
from kazoo.client import KazooClient
import Request_pb2
class RPCServer(asyncore.dispatcher):
zk_root = "/demo"
zk_rpc = zk_root + "/rpc"
zk_r... |
#!/bin/bash
mysql -P 3306 -h 10.143.129.32 -u root -proot test < $DAVINCI_HOME/bin/davinci.sql
|
#!/bin/bash
TARGET=~/origem/
DESTINY=~/destino/
STRING="Substring to Search"
inotifywait -m -e create -e moved_to --format "%f" "${TARGET}$(date +%Y/%m/)" \
| while read FILENAME
do
if grep -q $STRING "${TARGET}$(date +%Y/%m/)${FILENAME}"; then
mv "${TARGET}$(date +%Y/%m/)${FILENAME}... |
<gh_stars>10-100
from distutils.core import setup
setup(
name='receipt_budget',
version='0.6',
packages=['receipts.receipts', 'receipts.receipts-app'],
url='https://github.com/rolisz/receipt_budget',
license='BSD',
author='Roland',
author_email='<EMAIL>',
description='An application for... |
CREATE TABLE [core].[Fields]
(
[Id] INT NOT NULL PRIMARY KEY identity(100000,1),
[TableName] varchar(64) not null,
[Name] varchar(64) not null,
[Title] varchar(64) not null,
[Type] int not null,
[IsHidden] bit not null default(0),
[IsDeleted] bit not null default(0),
[IsSystem] bit not null default(0),
[IsAu... |
#!/usr/bin/env bash
#
# Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following condi... |
class ServerCreation:
__slots__ = (
"server",
"action",
"next_actions",
"root_password"
)
def __init__(self, server, action, next_actions, root_password=None):
self.server = server
self.action = action
self.next_actions = next_actions
self.roo... |
#*******************************************************************************
# Copyright 2014-2020 Intel Corporation
# All Rights Reserved.
#
# This software is licensed under the Apache License, Version 2.0 (the
# "License"), the following terms apply:
#
# You may not use this file except in compliance with the Li... |
#!/usr/bin/env bash
# shellcheck disable=SC2154
# these top lines are moved during build
chk_fortify_file() {
# if first char of pathname is '~' replace it with '${HOME}'
if [[ "${CHK_FORTIFY_FILE:0:1}" = '~' ]]; then
CHK_FORTIFY_FILE=${HOME}/${CHK_FORTIFY_FILE:1}
fi
if [[ -z "${CHK_FORTIFY_FILE}" ]]; the... |
module.exports = {
port: process.env.PORT,
files: ["./**/*.{html, htm, css, js}"],
server: {
baseDir: ["./src", "./build/contracts"]
}
};
|
#!/bin/sh
SCRIPT=$(readlink -f "$0")
DIR=$(dirname "$SCRIPT")
PKG_NAME='git-crypt-team'
SUMMARY="Centralized key management and rekeying for teams using git-crypt."
URL="https://github.com/inhumantsar/bash-git-crypt-team"
MAINTAINER="Shaun Martin <shaun@samsite.ca>"
fpm -s dir -t rpm -f -C $DIR \
-n $PKG_NAME --pre... |
echo ""
echo "*******************************"
echo "PcapPlusPlus setup DPDK script "
echo "*******************************"
echo ""
show_help() {
echo "usage: setup-dpdk.sh -g AMOUNT_OF_HUGE_PAGES_TO_ALLOCATE -n NICS_TO_BIND_IN_COMMA_SEPARATED_LIST [-s] [-h]"
echo "options:"
echo " -p : amount of huge page... |
const { MessageEmbed, MessageActionRow, MessageButton } = require('discord.js');
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
const { errorlog, commanderror_message } = require('../../functions/error');
const { inspect } = require('better-sqlite3/lib/util');
module.exports = {
info: {... |
#!/bin/bash
flutter pub run tool/dart_tool/strip_boilerplate_project.dart |
/*
* Copyright 2016 <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... |
import React from 'react';
// material ui
import { IconButton, TextField } from '@material-ui/core';
import { HighlightOff as HighlightOffIcon } from '@material-ui/icons';
import { Autocomplete } from '@material-ui/lab';
import Loader from '../common/loader';
const textFieldStyle = { marginTop: 0, marginBottom: 15 }... |
import "./style.css";
import React from "react";
import styled from "styled-components";
import Navbar from "./Navbar";
import { COLORS } from "../utils/constants";
import { H5, UnderlineSpan } from "../utils/typography";
const Footer = styled.footer`
width: 100%;
background-image: ${COLORS.primaryGradient};
... |
<reponame>PawelBanach/madmin
class CreatePosts < ActiveRecord::Migration[6.0]
def change
create_table :posts do |t|
t.belongs_to :user
t.string :title
t.integer :comments_count
t.json :metadata
t.integer :state
t.timestamps
end
end
end
|
<filename>src/main/java/br/com/digidev/messenger4j/setup/MessengerSetupClientBuilder.java
package br.com.digidev.messenger4j.setup;
import br.com.digidev.messenger4j.common.MessengerHttpClient;
import br.com.digidev.messenger4j.internal.PreConditions;
/**
* @author <NAME>
*/
public final class MessengerSetupClientB... |
<gh_stars>1-10
import {
isContainer,
isContainerAND,
isContainerOR,
isContainerDefault,
isExpression,
isExpressionPassthrow,
isExpressionDefault,
isExpressionComparator,
isExpressionLocation,
Container,
EPassthrow,
EDefault,
EComparator,
EComparatorLocation,
C... |
<gh_stars>1-10
export default {
apiKey: process.env.MAIL_GUN_API_KEY,
domain: process.env.MAIL_GUN_DOMAIN,
host: process.env.MAIL_GUN_HOST
} |
TERMUX_PKG_HOMEPAGE=https://www.imagemagick.org/
TERMUX_PKG_DESCRIPTION="Suite to create, edit, compose, or convert images in a variety of formats"
TERMUX_PKG_LICENSE="ImageMagick"
TERMUX_PKG_VERSION=7.0.10.41
TERMUX_PKG_SRCURL=https://github.com/ImageMagick/ImageMagick/archive/$(echo $TERMUX_PKG_VERSION | sed 's/\(.*\... |
/* Copyright (c) 2021 Skyward Experimental Rocketry
* Author: <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 ... |
import clsx from 'clsx';
import { IconBaseProps } from 'react-icons';
import { Loader } from '../Loader';
import styles from './IconButton.module.scss';
export type IconBtnType = 'standard' | 'primary' | 'info' | 'error';
interface Props {
icon: React.ComponentType<IconBaseProps>;
btnType?: IconBtnType;
onCli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.