text
stringlengths
1
1.05M
<filename>com.archimatetool.editor/src/com/archimatetool/editor/ui/IArchiImages.java /** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.ui; import com.archimat...
#!/bin/bash # @(#) Setting for GUI source ~/dotfiles/function/result_echo.sh # ファイル自身の絶対パス 取得 # readonly PATH=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd) readonly SETTING=./setting # "Jessie Lite" 判別処理 readonly VER=$(dpkg -l | grep xinit) if [ "$VER" != "" ] then # "Jessie Lite" ではない時の処理 ym_echo ">> Setting fo...
var roleMinion = require('role.minion'); var roleOverlord = require('role.overlord'); var actionSpawn = require('action.spawn'); module.exports.loop = function () { //Garbage collection for (var name in Memory.creeps) { if (!Game.creeps[name]) { delete Memory.creeps[name]; conso...
#!/bin/bash # report all lines, and exit on error set -x set -e AZURE_HOME_DIR=/home/$ADMIN_USER_NAME function retrycmd_if_failure() { set +e retries=$1; wait_sleep=$2; shift && shift for i in $(seq 1 $retries); do ${@} [ $? -eq 0 ] && break || \ if [ $i -eq $retries ]; then ...
<reponame>StanislavLakhtin/example_usb_simple_f107<gh_stars>0 import usb.core if __name__ == "__main__": dev = usb.core.find(idVendor=0xcafe, idProduct=0xcafe) if dev is None: raise ValueError('Device not found') dev.set_configuration() import gtk w = gtk.Window() w.connect("destroy", gtk.main_quit) toggle ...
<gh_stars>0 # frozen_string_literal: true require "net/http" module Lark module Client ## # An HTTP connection for the Lark REST API class Connection ## # @!attribute [rw] server_url # @return [URI] attr_accessor :server_url ## # @param server_url [URI, String] ...
#!/bin/bash # # 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 writing, software # distribute...
/** * [X] ONE Unique adjective describing the room * [X] ONE Unique Furnishing in the room * [X] ONE Unique adjective describing the Furnishing in the room * [X] ZERO or ONE coffee-related items in the room * [X] ZERO or ONE doors leading North * [X] ZERO or ONE doors leading South */ public clas...
#!/bin/bash # ShellPhish v1.7-Mod # First Coded by thelinuxchoice # Moded by AbirHasan2005 # Unmodified Github Repositories https://github.com/thelinuxchoice/shellphish # Modified Github Repositories https://github.com/AbirHasan2005/ShellPhish # This script uses some Phishing Pages generated by SocialFish tool (UndeadS...
#!/bin/bash pushd $( dirname "${BASH_SOURCE[0]}" ) echo "Starting icp..." echo "Need to configure CLI client first (TODO)" echo "Configuring docker registry secret..." kubectl create secret docker-registry admin.registrykey \ --docker-server mycluster.icp:8500 \ --docker-username admin \ --docker-password admi...
/* * Copyright 2017 The Mifos Initiative. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
# **************************************************************************** # # # # ::: :::::::: # # ft_atoi_test.c.sh :+: :+: :+: ...
import React, { useState } from 'react' import { Select, FormControl, FormHelperText, Tooltip, MenuItem, InputLabel, InputBase, TextField, OutlinedInput, colors } from '@mui/material'; import { GridToolbarContainer } from '@mui/x-data-grid'; import { makeStyles } from '@...
<gh_stars>10-100 /* * 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 b...
public class PrimeNumber { public static void main(String[] args) { int num = 17; boolean isPrime = true; for (int i = 2; i <= num / 2; i++) { if (num % i == 0) { isPrime = false; break; } } if (isPrime) ...
#!/usr/bin/env bash apt-get purge -yqq --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false \ apt-utils \ build-essential \ dpkg-dev \ file \ libc-client-dev \ libc-dev \ libpcre3-dev \ pkg-config \ re2c \ wget apt-get autoremo...
package cyclops.pure.typeclasses.functor; import cyclops.function.higherkinded.Higher; import java.util.function.Consumer; import java.util.function.Function; /** * Functor type class, performs a transformation operation over the supplied data structure * * @param <CRE> * @author johnmcclean */ @FunctionalInterf...
<filename>src/io/miti/jarman/gui/table/MultiLineCellRenderer.java package io.miti.jarman.gui.table; import java.awt.Component; import javax.swing.BorderFactory; import javax.swing.JTable; import javax.swing.JTextArea; import javax.swing.UIManager; import javax.swing.table.TableCellRenderer; /** * A rende...
<reponame>minyong-jeong/hello-algorithm /* https://leetcode.com/problems/first-bad-version/ 278. First Bad Version (Easy) */ /* The isBadVersion API is defined in the parent class VersionControl. boolean isBadVersion(int version); */ public class Solution extends VersionControl { public int firstBadV...
#!/bin/sh # This is a generated file; do not edit or check into version control. export "FLUTTER_ROOT=/Users/lorenzopichilli/flutter" export "FLUTTER_APPLICATION_PATH=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example" export "FLUTTER_TARGET=/Users/lorenzopichilli/Desktop/flutter_inappwebview/example/lib/main....
<reponame>magicjar/nusantara-valid<filename>src/test/functions/_cellularProvider.spec.ts<gh_stars>1-10 import { expect } from "chai" import { getDataCellularProvider, getDataCellularProviders } from "../../ts/functions" describe('Cellular Provider', () => { describe('getDataCellularProvider()', () => { it(...
from django.apps import AppConfig class ReceitasConfig(AppConfig): name = 'receitas'
<reponame>ibuttimer/VehiclesAPI package com.udacity.boogle; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBo...
def sum(a, b): return a + b # Driver Code a = 10 b = 20 print(sum(a, b)) # Output --> 30
def check_sorted_list(arr: 'list', reverse: bool = False): for i in range(1, len(arr)): if reverse: if arr[i-1] < arr[i]: return False else: if arr[i-1] > arr[i]: return False return True def get_high_low(arr): low = None high = N...
#!/bin/sh # create artifacts using Maven mvn clean package -DskipTests # create "dist" directory rm -fr dist mkdir -p dist/plugins # copy plugins to "dist" directory cp plugins/*/target/*-all.jar dist/plugins/ cp plugins/enabled.txt dist/plugins/ cp plugins/disabled.txt dist/plugins/ cd dist # unzip app to "dist" ...
def list_to_str(arr): str = "" for i in arr: str += i return str arr = ['a', 'b', 'c'] result = list_to_str(arr) print(result)
<filename>track_based_models/single_track_model.py import datetime import numpy as np import os import pandas as pd from . import util from .util import minute, lin_interp, cos_deg, sin_deg from .base_model import BaseModel class SingleTrackModel(BaseModel): delta = None time_points = None time_point_del...
<reponame>Nsbx/YaTA import { Colors } from '@blueprintjs/core' import _ from 'lodash' import * as React from 'react' import LogType from 'constants/logType' import { WithNameColorProps } from 'libs/Chatter' import { HighlightColors } from 'libs/Highlight' import { SerializedMessage } from 'libs/Message' import styled,...
#!/bin/bash -e REGION=$1 EFSID=$2 mkdir -p /efs mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport ${EFSID}.efs.${REGION}.amazonaws.com:/ /efs echo "${EFSID}.efs.${REGION}.amazonaws.com:/ /efs nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport,...
from sklearn import tree # create feature list features = ["number_of_rooms", "number_of_bathrooms", "age", "neighborhood", "land_area", "garage_area"] # create target list target = ["price"] # instantiate decision tree clf = tree.DecisionTreeClassifier() # train decision tree clf = clf.fit(features, target)
#!/bin/bash -ex # the -e option would make our script exit eith an error if any command # fails while the -x option makes verbosely it output what it does # Install Pipenv, the -n option makes sudo fail instead of asking for a # password if we don't have sufficient privileges to run it sudo -n dnf install -y pipenv c...
package servlet; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.SecurityUtils; import utility.AppSessi...
#!/bin/bash # Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
public Operand GetJsonValueOperand(string parameter) { var v = Json.JsonValue[parameter]; if (v != null) { if (v.IsString) return Operand.Create(v.StringValue); if (v.IsBoolean) return Operand.Create(v.BooleanValue); if (v.IsDouble) return Operand.Create(v.NumberValue); if (v...
<filename>modules/configuration/src/main/java/org/apache/ignite/configuration/internal/SuperRoot.java /* * 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. ...
#!/bin/bash dieharder -d 0 -g 46 -S 2228423117
<filename>src/main/java/org/battlecode/bc18/api/AKnight.java package org.battlecode.bc18.api; import static org.battlecode.bc18.util.Utils.gc; import org.battlecode.bc18.TargetManager; import org.battlecode.bc18.util.Utils; import bc.Planet; import bc.PlanetMap; import bc.Unit; import bc.UnitType; public abstract c...
<reponame>zzz-s-2020/s-2020<filename>modules/infrastructure/ru.zzz.demo.sber.shs.CircuitBreaker/src/main/java/ru/zzz/demo/sber/shs/CircuitBreaker/device/DeviceCircuitBreaker.java package ru.zzz.demo.sber.shs.CircuitBreaker.device; import org.springframework.lang.NonNull; import ru.zzz.demo.sber.shs.device.DeviceManage...
/* * radio.h * * Created on: Sep 7, 2014 * Author: hunter */ #ifndef RADIO_H_ #define RADIO_H_ #include "cc430x513x.h" #include "RF1A.h" #include "pmm.h" #include <stdio.h> #include <string.h> /******************* * Function Definition */ void Transmit(unsigned char *buffer, unsigned char length); void...
package rkentry import ( "context" "crypto/tls" "crypto/x509" "encoding/json" "errors" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/push" "go.uber.org/atomic" "go.uber.org/zap" "net/http" "strings" "sync" "time" ) var ( // Why 1608? It is the year of f...
#!/bin/bash local_ip=$(ifconfig | grep -oE "\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b" | grep -E "(192|10|172).*$" | grep -E -v "^.*(255)$") echo "Setting .env HOST_IP to $local_ip" echo "HOST_IP=$local_ip" > .env
LOC='/cs/lab-folder/' # set your root project location # LOC='/local-scratch' ROOT="${LOC}/username/cipherdaug-nmt" DATAROOT="${ROOT}/data/iwslt14" # set your data root # specify SRC and TGT data to locate data folder # specify side DEF_SIDE="src" while getopts "s:t:x:" FLAG; do case "${FLAG}" in s) SRC...
<reponame>neal-siekierski/kwiver<filename>track_oracle/core/track_oracle_frame_view.h /*ckwg +5 * Copyright 2010-2016 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #i...
class EventFileProcessor: def __init__(self, train_tag): self._TRAIN_TAG = train_tag def extract_start_time(self, ea): if self._TRAIN_TAG not in ea.Tags()['scalars']: raise RuntimeError(f'Could not find scalar "{self._TRAIN_TAG}" in event file to extract start time.') ...
package com.cucumber.listener; import com.relevantcodes.extentreports.ExtentReports; public class ExtentManager { private static ExtentReports instance; public static synchronized ExtentReports getInstance() { if (instance == null) { System.out.println(System.getProperty("user.dir")); instance =...
<reponame>bluegrass/java-blues-config package bluegrass.blues.config.definition.builder; import bluegrass.blues.config.definition.IntegerNode; import bluegrass.blues.config.definition.Node; /** * * @author gcaseres * @param <TParentBuilder> */ public class IntegerNodeBuilder<TParentBuilder extends NodeB...
/*************************************************************************** * Copyright (C) 2010, 2011 by <NAME> * * * * This program is free software; you can redistribute it and/or modify * * it under the terms...
package jua.objects; import java.util.ArrayList; import java.util.HashMap; import java.util.Objects; import java.util.stream.Collectors; import util.Tuple; public class LuaTable implements LuaObject { private HashMap<LuaObject, LuaObject> map = new HashMap<>(); private ArrayList<LuaObject> list = new ArrayList<>(...
<reponame>fermi-lat/CalibData<gh_stars>0 // $Header: /nfs/slac/g/glast/ground/cvs/CalibData/CalibData/Cal/CalCalibLightAtt.h,v 1.4 2003/02/27 21:49:15 jrb Exp $ #ifndef CalibData_CalCalibLightAtt_h #define CalibData_CalCalibLightAtt_h #include "CalibData/Cal/CalCalibBase.h" #include "CalibData/Cal/LightAtt.h" namesp...
<reponame>UKHomeOffice/cop-data-api const formatKey = (key) => { if (!key) { throw new Error('Key needs to be defined before you format it'); } const LINE_LENGTH = 64; const LINE_BREAK = '\n'; const beginKey = '-----BEGIN PUBLIC KEY-----'; const endKey = '-----END PUBLIC KEY-----'; const sanatizedKey...
""" Print all even numbers from 1 to 10 """ for x in range(1, 11): if x % 2 == 0: print(x)
<filename>Server/PrivateHeaders/XCTest/XCTKVOExpectation.h // class-dump results processed by bin/class-dump/dump.rb // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Jul 30 2018 09:07:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <Foundation/Foun...
require 'etengine/scenario_migration' class RenameBunkersCoSliders < ActiveRecord::Migration[5.2] include ETEngine::ScenarioMigration INPUTS = { flexibility_p2l_point_source_CO2: :flexibility_p2l_point_source_co2, flexibility_p2l_point_source_CO: :flexibility_p2l_point_source_co } def up migrate_...
def generate_cmake_command(WITH_MKL: bool, WITH_GPU: bool, USE_TENSORRT: bool, LIB_DIR: str, CUDNN_LIB: str, CUDA_LIB: str) -> str: cmake_command = "cmake .. -DPADDLE_LIB={} -DWITH_MKL={} -DWITH_GPU={} -DWITH_STATIC_LIB=OFF".format(LIB_DIR, "ON" if WITH_MKL else "OFF", "ON" if WITH_GPU else "OFF") if USE_TENSO...
#!/bin/bash # # Copyright (C) 2015 Aalto University. # # 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 ...
#!/bin/bash # Retrieve the Node.js version and check for "0.10" node_version=$(node --version 2>&1) echo "$node_version" | grep "0.10" > /dev/null # Check the exit status of the grep command if [ "$?" -ne 0 ]; then echo "pass" else echo "fail" exit 1 fi
import net.runelite.mapping.Export; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("iq") public class class244 { @ObfuscatedName("bo") static String field2909; @ObfuscatedName("hs") @ObfuscatedSignature( descriptor = "[Loh;" ) @Export("mapDotSprites...
import React from 'react' import MaterialTable from 'material-table' import axios from 'axios' class Webhooks extends React.Component { constructor (props) { super(props) this.state = { columns: [ { title: 'Owner', field: 'owner' }, { title: 'Repo', field: 'repo' }, { title: 'U...
package com.atlassian.jira.tests; import com.atlassian.jira.pageobjects.JiraTestedProduct; import com.atlassian.jira.pageobjects.config.EnvironmentBasedProductInstance; import com.google.common.base.Preconditions; import org.junit.rules.ExternalResource; public class JiraTestedProductHelper extends ExternalResource {...
SELECT last_name, COUNT(*) FROM Employees GROUP BY last_name ORDER BY COUNT(*) DESC LIMIT 10;
<gh_stars>0 export * from "./dumb-security";
#!/bin/bash set -e if [ $# -eq 6 ] then ENVIRONMENT=${1} echo "ENVIRONMENT :::>>> ${ENVIRONMENT}" MICROSERVICE=${2} echo "MICROSERVICE :::>>> ${MICROSERVICE}" PORT=${3} echo "PORT :::>>> ${PORT}" VERSION=${4} echo "VERSION :::>>> ${VERSION}" DOCKER_REGISTRY_HOST=${5} echo ...
# coding: utf-8 # In[7]: import pytz from datetime import datetime from pandas import date_range import iris import warnings import pyugrid # In[8]: with warnings.catch_warnings(): warnings.simplefilter("ignore") # ncfile = ('http://geoport.whoi.edu/thredds/dodsC/usgs/vault0/models/tides/' # '...
public class MaximumSum { // Function to get maximum sum of sub-array static int maxSubArraySum(int a[], int size) { int max_so_far = a[0]; int curr_max = a[0]; for (int i = 1; i < size; i++) { curr_max = Math.Max(a[i], curr_max + a[i]); ...
/*==================================================================*\ | EXIP - Embeddable EXI Processor in C | |--------------------------------------------------------------------| | This work is licensed under BSD 3-Clause License | | The full license terms and condit...
#!/usr/bin/env bash echo "*** start configuration ***" if [ -z "$npm_package_config_port" ]; then echo "No port config found in package.json, Meteor will run on 3000"; else echo "Port settled to $npm_package_config_port" export PORT=$npm_package_config_port; fi if [ -z "$npm_package_config_rooturl" ]; the...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package shopcar.repository; import java.util.List; import javax.inject.Inject; import shopcar.entities.Modelo; import shopcar.reposit...
/* * */ package net.community.chest.jfree.jfreechart.axis; import net.community.chest.dom.DOMUtils; import net.community.chest.dom.proxy.XmlProxyConvertible; import net.community.chest.dom.transform.XmlConvertible; import org.jfree.chart.axis.AxisSpace; import org.w3c.dom.Document; import org.w3c.dom.Element; /** ...
/* eslint-disable no-param-reassign */ import React from 'react'; import PropTypes from 'prop-types'; import { Menu as AntDMenu } from 'antd'; import styles from './navItem.css'; const NavItem = (props) => { const { children, loading } = props; return ( <div className={loading ? styles.vdsNavItemLoading : styl...
CONTAINER_NAME="onap-as-a-service" IMAGE="unlenen/onap-as-a-service" ONAP_IP="192.168.135.171" has=$(docker ps -a | grep $CONTAINER_NAME) if [ ! -z "$has" ]; then docker stop $CONTAINER_NAME docker rm $CONTAINER_NAME fi docker run --name $CONTAINER_NAME -d -e ONAP_IP=$ONAP_IP -p 8080:8080 $IMAGE
import React from 'react'; import styles from './index.less'; const GlobalFooter = () => { return ( <div className={styles.globalFooter}>Dragon flowable 是业界最具影响力的 流程 引擎规范</div> ); }; export default GlobalFooter;
# Download and extract the Windows binary install # Requires innoextract installed in the Dockerfile mkdir r-win wget https://cloud.r-project.org/bin/windows/base/R-3.5.1-win.exe \ --output-document r-win/latest_r.exe cd r-win innoextract -e latest_r.exe mv app/* ../r-win rm -r app latest_r.exe # Remove unneccessar...
<filename>node_modules/ts-toolbelt/out/List/Pop.d.ts import { List } from './List'; /** * Remove the last element out of `L` * @param L to remove from * @returns [[List]] * @example * ```ts * ``` */ export declare type Pop<L extends List> = L extends (readonly [...infer LBody, any] | readonly [...infer LBody, an...
<gh_stars>0 /* global File, HTMLInputElement */ import React, {useEffect, SyntheticEvent} from 'react'; import {generatePath, useParams} from 'react-router-dom'; import {ExtractRouteParams} from 'react-router'; import { Button, Form, Input, Modal, Typography, Row, Select, Checkbox, ...
import React, { Component } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import { Form, Divider, Modal, Table, Tabs, Button, Row, Col, Input, Upload, Icon, Message, Select, DatePicker, } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout';...
<gh_stars>0 const mongoose = require('mongoose'); const CommentSchema = mongoose.Schema({ commenter_id: { type: Number, required: true }, likes: { type: Number, required: true, default: 0 }, date: { type: String, required: true }, content: { t...
<reponame>tidev/titanium-editor-commons import { environment } from '../src'; import * as util from '../src/util'; import { expect } from 'chai'; import mockFS from 'mock-fs'; import nock from 'nock'; import { mockNode, mockNpmCli, mockSdkList } from './util'; import sinon from 'sinon'; describe('environment', () => ...
<filename>RRTS/HttpUnit/httpunit-1.7/src/com/meterware/httpunit/javascript/ScriptingEngineImpl.java<gh_stars>0 package com.meterware.httpunit.javascript; /******************************************************************************************************************** * $Id: ScriptingEngineImpl.java 839 2008-03-29 ...
<filename>chromium_test.go package chromium_test import ( "fmt" chromium "github.com/kasperisager/chromium" ) func ExampleNew() { chromium.New("google-chrome", chromium.Port(9222)) } func ExampleNew_flags() { chromium.New("google-chrome", chromium.Port(9222), chromium.WindowSize(1920, 1080)) } func ExampleNew_...
def factorial(n): if n == 0: return 1 else: return n * factorial(n-1)
package de.cpg.oss.verita.event; import java.util.UUID; /** * Interceptor interface which allows custom behaviour for {@link EventHandler}s and the * {@link de.cpg.oss.verita.service.EventBus}. */ public interface EventHandlerInterceptor { enum Decision { PROCEED, STOP } /** * Ca...
/* * Copyright 2015 Textocat * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
#!/usr/bin/env bash cur_dir=$(dirname "$0") echo $cur_dir cd ${cur_dir} KDFS_PID="/var/run/ldfs/ldfs.pid" if [ -e ${KDFS_PID} ];then uwsgi3 --stop ${KDFS_PID} rm -rf ${KDFS_PID} sleep 1 echo "OK." fi uwsgi_pid=`ps aux|grep "ldfs"|grep -v "grep"|awk '{print $2}'` [ -z ${uwsgi_pid} ] && echo "ldfs is no...
#!/usr/bin/env bash docker build -t fint-model --build-arg VERSION=0.$(date +%y%m%d.%H%M) .
<gh_stars>0 import React from 'react'; import styled from 'styled-components'; interface IProps {} const Styled = styled.button` width: 9px; height: 100%; margin-right: 15px; `; const ArrowLeftVector = React.memo((props: any) => { return ( <svg width={9} height={16}> <path ...
<gh_stars>1-10 var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; if (typeof __decorate !== "function") __decorate = function (decorators, target, key, d...
#!/bin/zsh GOARCH=amd64 GOOS=linux go build -ldflags '-w -s' -o tcp-tunnle-server
/* * Copyright 2017-2019 the original author or 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 copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
<gh_stars>1-10 import logging import uuid from flask import render_template import flask_restful as restful try: from flask_sso import SSO except: logging.info("flask_sso library is not installed, Shibboleth authentication will not work") from pebbles.app import app from pebbles.models import db, User from p...
def combine_lists(list1, list2): output = list1 + list2 return output combined_list = combine_lists(list1, list2) print(combined_list)
jest client --config=./config/jest.config.js --coverage
#! /bin/bash # # 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 applicable law or agreed ...
#!/bin/bash ## Make sure there are environment variables for umls username and password if [ -z $ctakes_umlsuser ] ; then echo "Environment variable ctakes_umlsuser must be defined" exit 1 fi if [ -z $ctakes_umlspw ] ; then echo "Environment variable ctakes_umlspw must be defined" exit 1 fi ## Pass i...
#!/bin/bash function addProperty() { local path=$1 local name=$2 local value=$3 local entry="<property><name>${name}</name><value>${value}</value></property>" local escapedEntry escapedEntry=$(echo "$entry" | sed 's/\//\\\//g') sed -i "/<\/configuration>/ s/.*/${escapedEntry}\n&/" "$path" # The & sym...
def find_most_frequent(array): """Returns the most frequent element in the given array""" frequencies = {} for num in array: if num in frequencies: frequencies[num] += 1 else: frequencies[num] = 1 max_count = max(frequencies.values()) for key, value in frequen...
#!/bin/bash # # This script will display the ORCID_ACCESS_TOKEN based on # authenticating against the API. You will then need to set that value as the # environment vairable ORCID_ACCESS_TOKEN to use the other scripts in this directory. # function requireSoftware() { APP=$(which "$1") if [ "$APP" = "" ]; then echo...
<gh_stars>0 import * as React from 'react' import { withDataLifecycle, DataProp } from 'react-svg-utils' import * as d3 from 'd3' interface Props { } class D3ExampleComponent extends React.Component<Props & DataProp> { svg: Element | null = null selections: any = {} render() { return ( ...
def removeDuplicates(list): newList = [] for element in list: if element not in newList: newList.append(element) return newList
<gh_stars>0 "use strict"; /** * Written by <NAME> on 23/06/16. * * <NAME> - development + design * https://erikterwan.com * https://github.com/terwanerik * * MIT license. */ !function () { "use strict"; var t = function t() { function t() { for (var o = s.scrollElement.innerHeight, l = 0; l < n.l...