text
stringlengths
1
1.05M
def insertion_sort(arr): for i in range(1, len(arr)): current = arr[i] # Move elements of arr[0..i-1], that are # greater than current, to one position ahead # of their current position j = i-1 while j >= 0 and current < arr[j] : arr[j +...
import React, { Component } from 'react'; import { Button, Icon, Tab, Checkbox, Message } from 'semantic-ui-react'; import uuid from 'uuid'; import moment from 'moment'; import advisor from '../../../api/diagnostic/advisor/index'; import collection from '../../../api/diagnostic/collection/index'; import sentry from '....
/* Blockquote button for hallo.js * Adapted from https://gist.github.com/SalahAdDin/347e4fab78a64eaadd5c */ (function() { (function($) { return $.widget("IKS.blockquotebutton", { options: { uuid: '', editable: null }, populateToolbar: function(toolbar) { var button, w...
package com.xq.tmall.entity; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; import java.util.Locale; /** * 订单实体类 * */ public class ProductOrder { private Integer productOrder_id/*订单ID*/; private String productOrder_code/*订单流水号*/; private Address productOrder_address/*订...
#include <stdbool.h> bool checkDuplicate(int arr[], int size) { int i, j; for (i = 0; i < size; i++) { for (j = 0; j < i; j++) { if (arr[i] == arr[j]) { return true; } } } return false; }
#!/usr/bin/env sh # generated from catkin/cmake/template/setup.sh.in # Sets various environment variables and sources additional environment hooks. # It tries it's best to undo changes from a previously sourced setup file before. # Supported command line options: # --extend: skips the undoing of changes from a previou...
<gh_stars>10-100 module Trith ## # A Trith function. class Function URI = RDF::URI("http://trith.org/lang/Function").freeze # @return [RDF::Resource] attr_accessor :id # @return [Symbol] attr_accessor :label # @return [String] attr_accessor :comment ## # @param [RDF::Resou...
module Settings API_URL = 'http://your.example.com:9292' end
<filename>src/main/java/chylex/hee/mechanics/enhancements/EnhancementList.java package chylex.hee.mechanics.enhancements; import java.util.EnumMap; import java.util.List; import java.util.Map.Entry; import java.util.stream.Collectors; import net.minecraft.client.resources.I18n; import net.minecraft.item.ItemStack; impo...
#!/usr/bin/env bash # Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U # # This file is part of fiware-keystone-scim (FI-WARE project). # # fiware-keystone-scim is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License as # published by the Free Sof...
package com.example.FormacionEjemplo1; import javax.servlet.annotation.WebServlet; import com.vaadin.annotations.Theme; import com.vaadin.annotations.VaadinServletConfiguration; import com.vaadin.server.VaadinRequest; import com.vaadin.server.VaadinServlet; import com.vaadin.ui.Button; import com.vaadin.ui.L...
<gh_stars>0 /* Copyright (c) 2015-2016, Apple Inc. 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 conditions and ...
package com.breakersoft.plow.crond; import java.util.List; import java.util.UUID; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import com.breakersoft.plow.ExitStatus; import com.breakersoft.plow.Signal; import com.breakersoft.plow.Task; impor...
docker_psa() { clear ps_result=$(docker ps --all --format "table {{.Image}}\t{{.Names}}\t{{.Ports}}\t{{.Status}}") ps_table_header=$(echo "${ps_result}" | head --lines=1) ps_table_rows_up=$( echo "${ps_result}" | tail --lines=+2 | \grep "Up" | # List running instances fi...
package org.multibit.hd.core.files; public class SecureFilesTest { // TODO (GR) Verify operation public void testSecureDelete() { } }
def searchElement(arr, element): for i in range(len(arr)): if arr[i] == element: return i return -1
<filename>cyder/cydns/search_utils.py from django.db.models import Q from django.core.exceptions import ObjectDoesNotExist def smart_fqdn_exists(fqdn, *args, **kwargs): """ Searching for a fqdn by actually looking at a fqdn is very inefficient. Instead we should: 1) Look for a domain with the name...
#!/bin/bash -e IMAGE="xeon-centos76-analytics-ffmpeg" VERSION="20.1" DIR=$(dirname $(readlink -f "$0")) . "${DIR}/../../../../script/build.sh"
#!/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...
#define HAS_VTK 1 #include "LaShellShellIntersection.h" #include <numeric> /* * Author: * Dr. <NAME> * Department of Biomedical Engineering, King's College London * Email: rashed 'dot' <EMAIL> * Copyright (c) 2017 * * * Intersection of vertex normals of source mesh with a target mesh. After...
function domSearch(selector, isCaseSensitive) { let mainContainer = $(selector); let addControlsDiv = $("<div>") .addClass("add-controls") .appendTo(mainContainer); let addLabel = $("<label>") .text("Enter text: ") .appendTo(addControlsDiv); let addInput = $("<input>") ...
<gh_stars>0 from setuptools import setup, find_packages setup( name="clean_folder", version="0.0.1", author="VVP", author_email="<EMAIL>", description="goit hw 8", install_requires=[ 'six==1.15.0', 'transliterate == 1.10.2' ], entry_points={ 'console_scripts': [ ...
package net.archwill.play.redis import javax.inject.Provider import com.typesafe.config.Config import play.api.inject.{Binding, Module} import play.api.{Configuration, Environment} import redis.clients.jedis.{JedisPool, JedisPoolConfig} private[redis] abstract class BaseRedisModule extends Module { override def b...
<gh_stars>0 #ifndef THREADS_H #define THREADS_H #include "q.h" #include "TCB.h" // Global queue of TCBs q_element *ReadyQ; // Global pointer to thread under execution q_element *Curr_Thread; // Global thread id count int id_count = 0; // Get ID of thread int get_id (q_element *thread) { return ((TCB_t*)(thread->...
import java.util.Random; import java.util.UUID; public class chess { private static String word() { String a = UUID.randomUUID().toString(); return a.substring(0, 1); } public static String[][] generateChessboard() { String[][] chessboard = new String[8][8]; // Initialize...
// Copyright (c) 2008-2018, Hazelcast, 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 a...
<reponame>tildeio/ember-template-string-interpolation module.exports = function(env) { let { builders: b, parse } = env.syntax; return { name: 'StringInterpolationPlugin', visitor: { MustacheStatement(node) { if (isInterpolatedString(node.path)) { let value = node.path.value; ...
<reponame>easypizi/heroku-node-telegram-bot<filename>bot.js const token = process.env.TOKEN; const SteamAPI = require("steamapi"); const Bot = require("node-telegram-bot-api"); let bot; let allWeaponsID = { 1: "Desert Eagle", 2: "Dual Berettas", 3: "Five-SeveN", 4: "Glock-18", 7: "AK-47", 8: "AUG", 9: "...
''' Main script with visualization ''' import pygame import sys from os import path, pardir import time from maze import * from pygame_helpers import * class Game: """ A general visualization class for pygame """ DARKPINK = (219, 0, 189) DARKBLUE = (95, 0, 219) LIGHTBLUE = (138, 138, 219) ...
import { Routes } from '@angular/router'; export const AuthLayoutRoutes: Routes = [ { path: 'login', loadChildren: () => import('./login/login.module').then(m => m.LoginModule) }, { path: 'register', loadChildren: () => import('./register/register.module').then(m => m.RegisterModule) } ];
#!/bin/bash ####################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License. # ####################################################################### #############################################################...
import json data = json.loads('{ "name": "John Smith", "age": 35 }') customer_name = data["name"] print(customer_name)
#!/usr/bin/env bash # Base16 Material Lighter - Gnome Terminal color scheme install script # Nate Peterson [[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 Material Lighter 256" [[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-material-lighter-256" [[ -z "$DCONF" ]] && DCONF=dconf [[ -z "$UUIDGEN" ]] && UUIDGEN=uuid...
<filename>src/js/api/attachment.js if ( typeof require !== "undefined" && (typeof window === "undefined" || // eslint-disable-next-line camelcase typeof __webpack_require__ !== "undefined" || (typeof navigator !== "undefined" && navigator.product === "ReactNative")) ) { // esl...
#!/bin/sh while true; do # watch web docker if $(printf "GET / HTTP/1.0\n\n" | nc -w 2 $INSIDEWEB_PORT_80_TCP_ADDR $INSIDEWEB_PORT_80_TCP_PORT | grep -q '200 OK'); then echo "System up." else # send to mailer docker printf "To: admin@work Message: The service is down!" | nc $INSIDEMAILER_PORT_33333_T...
<gh_stars>0 package ru.job4j.accidents.mem; import ru.job4j.accidents.model.Accident; import java.util.Map; /** * @author Sir-Hedgehog (mailto:<EMAIL>) * @version 6.0 * @since 23.06.2020 */ public class AccidentMem { private Map<Integer, Accident> accidents; public AccidentMem(Map<Integer, Accident> ac...
#!/bin/bash -e # Builds and tests SOCI backend Oracle at travis-ci.org # # Copyright (c) 2013 Mateusz Loskot <mateusz@loskot.net> # source ${TRAVIS_BUILD_DIR}/scripts/travis/common.sh source ${TRAVIS_BUILD_DIR}/scripts/travis/oracle.sh cmake ${SOCI_DEFAULT_CMAKE_OPTIONS} \ -DWITH_BOOST=OFF \ -DSOCI_ORACLE=ON \...
package nl.pvanassen.steam.store.buy; /** * Result of a purchase attempt * * @author <NAME> */ public class BuyResult { private final boolean success; private final int wallet; private final String message; BuyResult(boolean success, int wallet, String message) { super(); this.suc...
def days_to_months_years(days): months, years = 0, 0 if days >= 365: years = days // 365 days = days % 365 months = days // 30 days = days % 30 else: months = days // 30 days = days % 30 return years, months, days days = 2268 years, months, days = da...
<reponame>kakarotto7/weather-radar<gh_stars>0 import React from 'react'; import dayjs from 'dayjs'; import PropTypes from 'prop-types'; import * as weatherIcons from '../icons'; const Forecast = (props) => { const { forecast } = props; const iconPrefix = 'wi wi-'; return ( <div className="mt-4 b...
package com.irmansyah.kamusku.ui.translete; import android.arch.lifecycle.ViewModelProvider; import android.support.v7.widget.LinearLayoutManager; import com.irmansyah.kamusku.ViewModelProviderFactory; import com.irmansyah.kamusku.data.DataManager; import com.irmansyah.kamusku.data.model.db.EnglishIndonesia; import c...
const httpStatus = require('http-status'); const pick = require('../utils/pick'); const ApiError = require('../utils/ApiError'); const catchAsync = require('../utils/catchAsync'); const {handbookServer } =require('../services'); const createHandbook = catchAsync(async (req,res) => { const createHB = await handbookS...
<reponame>moritzheiber/hello-world-app #!/usr/bin/env ruby require 'socket' require 'webrick' include WEBrick s = HTTPServer.new( Port: 8000, DocumentRoot: "." ) trap('TERM'){ s.shutdown } s.start
import re def extract_copyright_info(file_path): copyright_info = { "year": "", "holder": "", "license": "", "version": "" } with open(file_path, 'r') as file: content = file.read() match = re.search(r'# Copyright (\d{4}) (.+?)\n#\n# Licensed under the (.+?)...
sub=($@) DIR=$( dirname ${BASH_SOURCE}) for ((i=0; i<${#sub[@]};i++)) do oarsub -l /nodes=1/core=4,walltime=1:0:0 -p 'mem_node > 10*1024' "$DIR/fla_5_6_1_list_hand_fsl.sh ${sub[i]}" done
package com.mottledog.dao; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.mottledog.bo.User; /** * @ClassName: UserDAO * @Description: UserDAO * @author tianli * @date 2015-1-21 14:37:23 */ @Repository @Transactional(readOnly = tr...
#!/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...
sudo docker exec -d sql2017cu10\ /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'Sql2017isfast' -Q 'RESTORE DATABASE WideWorldImporters FROM DISK = "/var/opt/mssql/WideWorldImporters-Full.bak" WITH MOVE "WWI_Primary" TO "/var/opt/mssql/data/WideWorldImporters.mdf", MOVE "WWI_UserData" TO "/var/opt/mssql/data/WideW...
#!/bin/bash if [ -z "${PG_PASS}" ] then echo "You need to set PG_PASS environment variable to run this script" exit 1 fi if [ -z "$ONLY" ] then host=`hostname` if [ $host = "cncftest.io" ] then all=`cat ./devel/all_test_projects.txt` else all=`cat ./devel/all_prod_projects.txt` fi else all=$ONLY...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import { DownloadOutlined, LoadingOutlined, PlusOutlined, } from '@ant-design/icons'; import {Alert, Button} f...
<gh_stars>10-100 package rule import ( "sort" "strings" "github.com/akutz/sortfold" "github.com/chrisruffalo/gudgeon/config" "github.com/chrisruffalo/gudgeon/util" ) type memoryStore struct { baseStore rules map[string][]string } func (store *memoryStore) Init(sessionRoot string, config *config.GudgeonConf...
// clang-format off // // Copyright (c) 2016 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 a...
<filename>acmicpc/10163/10163.py<gh_stars>1-10 N = int(input()) paper = [[0]*101 for _ in range(101)] count = [0]*(N+1) for n in range(1, N+1): data = list(map(int, input().split())) for i in range(data[0], data[0]+data[2]): for j in range(data[1], data[1]+data[3]): paper[i][j] = n for e in...
<gh_stars>1-10 import { ADD_FEATURE, EDIT_FEATURE, DELETE_FEATURE, SET_FEATURES, UPDATE_FEATURES_AFTER_IDEA_DELETE } from './types'; const endpoint = process.env.REACT_APP_ENDPOINT; const featuresAPIRoute = '/api/features'; export const addFeature = (id, feature) => ({ type: ADD_FEATURE, id, feature }...
from bs4 import BeautifulSoup from urllib.parse import urlparse from urllib.request import Request, urlopen import json with open("bookmarks.html", encoding="utf8") as fp: soup = BeautifulSoup(fp, 'html.parser') bmap = dict() # header = { # 'User-Agent': # 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Ge...
import time import argparse from numpy import std, mean from hks_pylib.files.generator import BMPImageGenerator, BytesGenerator from _simulator.base.match import SecurePatternMatching class Match: def __init__(self, parser: argparse.ArgumentParser): self.parser = parser self.parser.add_argumen...
public override void Mutate() { // Obtain the genes from the chromosome Gene[] genes = GetGenes(); // Randomly select one or more genes to mutate int genesToMutate = RandomNumber(1, genes.Length); // Randomly select the number of genes to mutate for (int i = 0; i < genesToMutate; i++) { ...
import re from flask import Flask, request from sklearn.feature_extraction.text import CountVectorizer app = Flask(__name__) @app.route('/', methods=['POST']) def classify(): message = request.form['message'] # Your code here if prediction == 1: result = 'spam' else: result = 'ham' return result if __name__ ==...
<filename>model/redirectRequest.ts /** * Gr4vy API * Welcome to the Gr4vy API reference documentation. Our API is still very much a work in product and subject to change. * * The version of the OpenAPI document: 1.1.0-beta * Contact: <EMAIL> * * NOTE: This class is auto generated by OpenAPI Generator (https://op...
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/5/31. """ from functools import wraps from flasgger import swag_from __author__ = 'Allen7D' class RedPrint: def __init__(self, name, description, api_doc=None, alias=''): self.name = name self.alias = alias # 接口的别名 self.description = description self....
#!/bin/bash #SBATCH -J Act_maxsig_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=6000 #SBATCH -t 23:59:00 # Hours, minutes a...
#!/bin/bash source venv/bin/activate flask init_db flask populate_db_test exec gunicorn -b :5000 --access-logfile - --error-logfile - app_source:app
<reponame>tlylt/markbind<filename>packages/vue-components/src/utils/pubsub.js const subscribers = {}; export function subscribe(event, handler) { if (!subscribers[event]) { subscribers[event] = []; } subscribers[event].push(handler); } export function publish(event) { if (!subscribers[event]) { return...
import requests def get_html(url): response = requests.get(url) if response.status_code == 200: return response.text else: return None html = get_html("www.example.com") if html: print(html)
import pandas as pd # import data data = pd.read_csv('data.csv') # split data into input and output variables X = data[['City', 'Population']] y = data['Crime_Rate'] # one-hot encode variables X = pd.get_dummies(X) # Normalize the data X = (X - X.mean()) / X.std() # initialize a model model = LinearRegression() #...
import fetch from '@/fetch' export function getList(params) { return fetch({ url: '/vue-admin-template/table/list', method: 'get', params }) }
#!/bin/bash if [ ! -d /jellyfin ]; then echo "Creating /jellyfin" mkdir -p /jellyfin chown -R abc:abc /jellyfin fi if [ ! -d /share/storage/tv ]; then echo "Creating /share/storage/tv" mkdir -p /share/storage/tv chown -R abc:abc /share/storage/tv fi if [ ! -d /share/storage/movies ]; then echo "Creatin...
# Get current work dir WORK_DIR=$(pwd) # Import global variables source $WORK_DIR/scripts/config/env.sh PYTHONPATH=$PYTHONPATH:$WORK_DIR python scripts/figures/figure6/pipeswitch_1s/host_run_data.py $WORK_DIR/scripts/config/servers.txt
/* ct-kip.h include file for the PKCS #11 Mechanisms for the * Cryptographic Token Key Initialization Protocol OTPS document. */ /* $Revision: 1.3 $ */ /* License to copy and use this software is granted provided that it is * identified as "RSA Security Inc. Cryptographic Token Key Initialization * Protoc...
<reponame>frc1418/2014 from pyfrc import wpilib from pyfrc.physics import drivetrains import math class PhysicsEngine(object): ''' Useful simulation pieces for testing our robot code ''' def __init__(self, physics_controller): self.physics_controller = physics_controller ...
<reponame>lufrai/alo import { StoreInterface } from "../store/types"; import { Action } from "../action/types"; export type NormalizeOptions = { action: Action; callBack: (action: Action) => Action | undefined; store: StoreInterface; }; export interface ActionNormalizerInterface { normalize(options: Normalize...
from abc import ABC, abstractmethod from typing import Dict, List, Any class Template(ABC): @property @abstractmethod def env(self) -> Any: pass @property @abstractmethod def paths(self) -> List[str]: pass @property @abstractmethod def context_functions(self) -> Dict: pass ...
# Protect against non-zsh execution of Oh My Zsh (use POSIX syntax here) [ -n "$ZSH_VERSION" ] || { # ANSI formatting function (\033[<code>m) # 0: reset, 1: bold, 4: underline, 22: no bold, 24: no underline, 31: red, 33: yellow omz_f() { [ $# -gt 0 ] || return IFS=";" printf "\033[%sm" $* } # If stdou...
'use strict'; const { Command, SimplicityEmbed } = require('@structures'); const DisableCommand = require('./disable'); const LanguageCommand = require('./language'); const PrefixCommand = require('./prefix'); const StarboardCommand = require('./starboard'); class Config extends Command { constructor(client) { ...
<filename>test/definition.js<gh_stars>1-10 import describe from 'tape-bdd'; import Self from 'src/value-object'; describe('ValueObject definition', (it) => { it('throws an exception if it has no name', (assert) => { assert.throws(() => Self.define()); Self.clearDatabase(); }); it('throws a...
#!/bin/bash -x # # Generated - do not edit! # # Macros TOP=`pwd` CND_PLATFORM=GNU-Linux CND_CONF=Debug CND_DISTDIR=dist CND_BUILDDIR=build CND_DLIB_EXT=so NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging TMPDIRNAME=tmp-packaging OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/libplc.a OUTPUT_...
module PoolParty module Resources class File < Resource default_options({ :ensure => "file", :mode => 644 # :owner => "#{Base.user}" }) def disallowed_options [:name, :template, :cwd] end def source(arg=nil) ...
from rofl.config import createConfig, createAgent, getEnvMaker from rofl.algorithms.a2c import algConfig from rofl.config.config import createNetwork, createPolicy envConfig = { 'envMaker' : 'gymEnvMaker', 'name': 'LunarLanderContinuous-v2', 'atari': False, 'max_length': 500, 'warmup' : None, }...
import Foundation class ProgressDispatcher: ProgressDispatcher { override func updateProgress(_ progress: Progress) { let dispatchedProgress = dispatcher.dispatch(progress) // Perform any additional operations with dispatchedProgress } override func updateError(_ error: NSError) { ...
""" Make plots of the Radial(n,m,r) function """ from poptics.zernike import radial import matplotlib.pyplot as plt from poptics.tio import getInt import numpy as np def main(): # Get mex value n = getInt("n value",4,0) rData = np.linspace(0.0,1.0,100) # rdata is rage 0 > 1.0 # ...
const Song = require('../models/song'); module.exports = { create, index, deleteSong } async function create(req, res){ console.log('we are here', req.body) try { const song = await Song.create({title: req.body.songTitle, artist: req.body.songArtist, user: req.user}); res.status(20...
<filename>sql/pretty9.sql<gh_stars>10-100 SELECT * FROM t0 NATURAL JOIN t1
<filename>javaSources/Miscellaneous/Stream.java import java.util.ArrayList; import java.util.Arrays; public class Stream { public static void main(String[] args) { /** * create stream using of () methods. */ Stream<String> stream = stream.of("a" , "b" , "c"); /** ...
runid=$1 ln -s ctb.seg.train ../data/ctb.train.$runid ln -s ctb.seg.dev ../data/ctb.test.$runid ./SegParser train test train-file:../data/ctb.train.$runid model-name:../runs/ctb.model.$runid test-file:../data/ctb.test.$runid output-file:../runs/ctb.out.$runid seed:14 earlystop:40 evalpunc:false C:0.001 train-converge...
<filename>utils/config_simple.py import re import common from base.config import Config class SimpleConfig(Config): def _parse_value(self, value: str): if common.str_compare_head_tail(value, '"') or common.str_compare_head_tail(value, '\''): return value[1:-1] else: return...
#!/bin/bash # /** # * Copyright by Ruman Gerst # * Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge # * https://www.leibniz-hki.de/en/applied-systems-biology.html # * HKI-Center for Systems Biology of Infection # * Leibniz Institute for Natural Product Research and Infection Biology - Hans Knö...
import { Injectable } from '@angular/core'; import { BsModalService } from 'ngx-bootstrap/modal'; import {Observable} from 'rxjs/Observable'; import {AlertDialogComponent} from './alert-dialog/alert-dialog.component'; import {DomSanitizer} from "@angular/platform-browser"; import {TranslateService} from "@ngx-translate...
#!/usr/bin/env bash if [[ $DEBUG != "" ]]; then set -x fi set -o errexit set -o pipefail if ! [ -x node_modules/.bin/marked-man ]; then ps=0 if [ -f .building_marked-man ]; then pid=$(cat .building_marked-man) ps=$(ps -p $pid | grep $pid | wc -l) || true fi if [ -f .building_marked-man ] && [ $ps !...
require('dotenv').config(); const fastify = require('fastify')({ logger: true, }) const puppeteer = require('puppeteer'); function getInt(input, def) { if (input) { if (typeof input == "string") return parseInt(input, 10); if (typeof input == "number") return input; throw new Error("Unsupported type")...
go run main.go -func FuzzFoo -o fuzzer.a github.com/AdamKorcz/go-118-fuzz-build/fuzzers/vitess clang -o fuzzer fuzzer.a -fsanitize=fuzzer
#! /bin/bash lnav_test="${top_builddir}/src/lnav-test" run_test ${lnav_test} -C \ -I ${test_dir}/bad-config-json sed -i "" -e "s|/.*/format|format|g" `test_err_filename` check_error_output "invalid format not detected?" <<EOF warning:format.json:line 5 warning: unexpected path -- warning: /invalid_key_log/...
<gh_stars>1-10 package intercept.logging; public interface ApplicationLog { public static final ApplicationLog NullApplicationLog = new ApplicationLog() { @Override public void log(String message) { } @Override public void trace(String message) { } @Overrid...
<reponame>felhiirad/portfolio<gh_stars>0 import 'bootstrap/dist/css/bootstrap.min.css'; import Particles from 'react-particles-js'; import Contact from '../components/contact/Contact'; import Footer from '../components/footer/Footer'; import Header from '../components/header/Header'; import Navbar from '../components/n...
<filename>Trabalho_1/src/aux.h #pragma once #include <termios.h> #include <unistd.h> /** * Function to create the Block Check Character relative to the Address and Control fields * @param a Address Character of the frame * @param c Control Character of the frame * @return Expected value for the Block Check Chara...
<reponame>j-v-a/Beasts-challenges /* The myIsPrototypeOf() method checks if an object exists in another object's prototype chain. ** Parameters: prototypeObj: The prototype object which will be searched for. object: The object whose prototype chain will be searched. ** Return value: A Boolean indicating whe...
import Entity from '../containers/Entity'; import Request from '../containers/Request'; class LocalSerializer { /* Serializer used when running local transforms. */ static serialize(maltegoArgs) { const request = new Request(); const [value, ...properties] = maltegoArgs; const inputEntity = new...
from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as __ from django_business_rules.model_mixins import SoftDeleteAbstractMixin class BusinessRuleModel(SoftDeleteAbstractMixin): name = models.CharField( unique=True, verbose_name=__('name'), max...
<filename>lib/index.ts const playcap = require('bindings')('playcap.node') export enum DeviceType { Playback = 1, Capture = 2, Duplex = 3, }; export enum Backend { Wasapi = 0, Dsound = 1, Winmm = 2, Coreaudio = 3, Sndio = 4, Audio4 = 5, Oss = 6, Pulseaudio = 7, Alsa = 8, Jack = 9, Aaudio =...
<?php include_once(__DIR__ . '/fzf/Action.sh'); ?> <?php include_once(__DIR__ . '/all/Action.sh'); ?> <?php include_once(__DIR__ . '/demo/Action.sh'); ?>
#!/bin/bash ## CAUTIOUS: ## Ensure that environment variable exports should not have the user name printed in the export script ## Use single quotes to ensure the environment variables does not get expanded ## This config can also be used to overrides the default environment variables only for the current shell ## b...