text stringlengths 1 1.05M |
|---|
<reponame>fossasia/loklak_walls
'use strict';
var filtersModule = require('./_index.js');
/**
* @ngInject
*/
filtersModule.filter('tweetScreenName', function() {
return function(input) {
if (!input) {
return "";
} else {
var username = input
.replace(/<span c... |
<reponame>sampoapp/sampo-cli
/* This is free and unencumbered software released into the public domain. */
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
// SearchCmd describes and implements the `sampo search` command
var SearchCmd = &cobra.Command{
Use: "search [keyword]",
Short: "Search data",... |
from flask import Flask
app = Flask(__name__)
@app.route("/")
def list_items():
items = ["Apple", "Orange", "Banana", "Mango"]
return ", ".join(items)
if __name__ == "__main__":
app.run() |
<reponame>nilhost/overnet<gh_stars>0
package http_test
import (
"bufio"
"net/http"
"strings"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/nilhost/overnet/common"
"github.com/nilhost/overnet/common/net"
. "github.com/nilhost/overnet/common/protocol/http"
)
func TestParseXForwardedFor(t *testing.T) {
... |
<filename>node_modules/@medusajs/medusa-js/dist/resources/admin/gift-cards.d.ts
import { AdminGetGiftCardsParams, AdminGiftCardsDeleteRes, AdminGiftCardsListRes, AdminGiftCardsRes, AdminPostGiftCardsGiftCardReq, AdminPostGiftCardsReq } from "@medusajs/medusa";
import { ResponsePromise } from "../../typings";
import Bas... |
#!/bin/sh
URL=$1
eval $(echo $URL | sed 's|\(http.://.*/csa\).*catalog/\(.*\)/category/\(.*\)/service/\(.*\)|BASEURL=\1;CATALOGID=\2;CATEGORY=\2;ID=\4|')
#ID=$1
#CATALOGID=$2
#CATEGORY=$3
unset https_proxy
curl -s \
-H "Accept: application/json" \
-H "X-Auth-Token: $CSATOKEN" \
-k \
-H "Content-Type... |
<reponame>path64/assembler
//
// Preprocessor implementation
//
// Based on the LLVM Compiler Infrastructure
// (distributed under the University of Illinois Open Source License.
// See Copying/LLVM.txt for details).
//
// Modifications copyright (C) 2009 <NAME>
//
// Redistribution and use in source and binary forms,... |
cat $(ls ~/.banners/*.txt | gshuf -n1)
|
package models.Item;
/*
* Implemented by <NAME>
*/
public class OneShot {
}
|
# coding: utf-8
module DatxRuby
class City
include DatxRuby::Common
def initialize
@data = IO.binread(datx)
@index_size = Util.bytes2long(@data[0], @data[1], @data[2], @data[3])
end
def self.datax_path=(path)
$datx_path ||= path
end
def find(ip)
raise "Invalid IP a... |
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": 2018
},
"plugins": [
"vue"
],
"rules": {
}
};
|
package naftoreiclag.stampedcash;
import java.util.ArrayList;
import java.util.Arrays;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inve... |
#!/usr/bin/env bash
set -o nounset
set -o errexit
SSH_KEYS="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/6CW7KXHRJzpHB1dH5oioyNgfiAQEgldYtl4WKQjSWzodz0kBAmA/R3vV4S2cwt52V1FwlBtZdZCQT8ffUiB/lkawp/D0gHlYwFQCR/hI0yb8t4MktaP4YsyGrLLyQRxBQsClenzxW7v69P5Gargd4WygxdAAibbizg2V1vlIp3NRqchA0/lXh7eknHY3LMUtTc2UYkRTfKmyWpHnYZs6rPtSoL... |
import sys
def size_of_object(obj):
return (sys.getsizeof(obj))
object1 = 10
print(size_of_object(object1)) |
<reponame>dmvass/boltd
package main
import (
"flag"
"fmt"
"log"
"net/http"
"github.com/boltdb/bolt"
"github.com/boltdb/boltd"
)
func main() {
log.SetFlags(0)
var (
addr = flag.String("addr", ":9000", "bind address")
)
flag.Parse()
// Validate parameters.
var path = flag.Arg(0)
if path == "" {
log.F... |
/*
* Copyright (c) 2012-2015, <NAME>
* All rights reserved.
*
* This software is distributable under the BSD license.
* See the terms of the BSD license in the documentation provided with this software.
*/
package org.aeonbits.owner.util;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.ben... |
package com.atjl.dbtiming.mapper.gen;
import com.atjl.dbtiming.domain.gen.GenTaskHistory;
import com.atjl.dbtiming.domain.gen.GenTaskHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface GenTaskHistoryMapper {
int countByExample(GenTaskHistoryExample example);... |
<gh_stars>0
package com.gz.pao.pao.web.admin.service;
import com.gz.pao.pao.web.admin.entity.User;
import java.util.List;
public interface SearchService {
List<User> searchList(String sex, String city);
}
|
from typing import List
def process_app_modules(app_modules: List[str], app_paths: List[str]) -> None:
for app in app_modules:
app_paths.append(upath(app.__file__)) |
def count_01(arr):
num_01_list = []
for sublist in arr:
num_zeros = 0
num_ones = 0
for value in sublist:
if value == 0:
num_zeros += 1
else:
num_ones += 1
num_01_list.append([num_zeros, num_ones])
return num_01_list |
# Program : run_coreA.sh
# Description : Run CoreA, an anomaly detection algorithm based on core decomposition
java -cp "./CoreScope-2.0.jar:./library/commons-math3-3.2.jar" corescope.anomaly.CoreA $@
|
# Copyright (c) 2019 Sony Corporation. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... |
<filename>src/kms/MenuItem.java
/*
* 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 kms;
import java.util.ArrayList;
import javax.swing.ImageIcon;
/**
*
* @author ... |
export const AC_ON = "AC_ON";
export const AC_OFF = "AC_OFF";
export const TV_ON = "TV_ON";
export const TV_OFF = "TV_OFF";
export const LAMP_ON = "LIGHT_ON";
export const LAMP_OFF = "LIGHT_OFF";
export const GET_AC = "GET_AC";
export const GET_AC_STATUS = "GET_AC_STATUS";
export const GET_TV = "GET_TV";
export const ... |
<reponame>quoeamaster/golang_blogs
/*
Copyright © 2020 quo master
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 o... |
const inquirer = require('inquirer');
const { initPrompts } = require('./prompts');
module.exports = {
// sign in prompts
askSignInCredentials: async () => inquirer.prompt(initPrompts)
};
|
#! /bin/bash
## Generate auto-generated .gs bootstrap file for distribution
## Must be run in a Rowan extent into which Sparkle has been loaded with installSparkle.sh
## Figure out what directory this script is in
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
checkout_dir=${script_dir}/..
## Generate boo... |
#!/bin/bash
source ../env.sh
echo ''
echo '=== kubectl --namespace ingress get services; all'
kubectl --namespace ingress get services -o wide
echo ''
echo '=== kubectl --namespace ingress get services; nginx-ingress-controller'
kubectl --namespace ingress get services -o wide nginx-ingress-controller
echo 'done'
... |
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<table>
<tr>
<th>Name</th>
<th>Address</th>
<th>Email</th>
</tr>
<... |
<reponame>Nebulis/blog<gh_stars>0
import { graphql, PageProps, useStaticQuery } from "gatsby"
import React, { useState } from "react"
import { configureI18n } from "../i18n"
import { isEnglishPage } from "../utils"
import { useCustomTranslation } from "../i18n-hook"
configureI18n()
export const Application: React.Func... |
<reponame>ByteExceptionM/Nameless-Java-API<filename>src/com/namelessmc/java_api/NamelessAPI.java
package com.namelessmc.java_api;
import java.math.BigInteger;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import jav... |
<reponame>snehansh/Patient-Check-In<gh_stars>1-10
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from '../app/components/App';
const serverRender = () => {
return ReactDOMServer.renderToString(
<App />
);
};
export default serverRender;
|
<filename>infrastructure/external/spotify/types.go<gh_stars>0
package spotify
import "github.com/alhamsya/boilerplate-go/lib/helpers/config"
type Spotify struct {
Cfg *config.ServiceConfig
}
type Profile struct {
Country string `json:"country"`
DisplayName string `json:"display_name"... |
#!/bin/bash
# Run Jupyter in foreground if $JUPYTER_FG is set
if [[ "${JUPYTER_FG}" == "true" ]]; then
jupyter-lab --allow-root --ip=0.0.0.0 --no-browser --NotebookApp.token=''
exit 0
else
source /rapids/utils/start-jupyter.sh > /dev/null
echo "A JupyterLab server has been started!"
echo "To access it,... |
<reponame>jgtb313/fast-serverless-framework<filename>src/Endpoints/register.js<gh_stars>0
import bootstrap from '../bootstrap'
import state from '../state'
import { getContext, kebabize, asyncPipe } from '../utils'
const register = ({ method, params = '', middlewares = [], isPublic, handler }) => {
const { module, v... |
#!/bin/sh
xbuild NLua.Net45.sln /p:Configuration=ReleaseKopiLua
cd tests/
export MONO_PATH="/Library/Frameworks/Mono.framework/Libraries/mono/4.5/"
nunit-console NLuaTest.dll -xml=$1
|
# Licensed Materials - Property of IBM
# 5725-I43 (C) Copyright IBM Corp. 2011, 2015. All Rights Reserved.
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#!/usr/bin/bash
usage()
{
echo
echo " Running the MobileFir... |
package libcontainer
import (
"encoding/json"
"fmt"
"io"
"os"
)
// Console represents a pseudo TTY.
type Console interface {
io.ReadWriteCloser
// Path returns the filesystem path to the slave side of the pty.
Path() string
// Fd returns the fd for the master of the pty.
File() *os.File
}
const (
Termina... |
<reponame>WingRS/ucu_mail_bot
package main;
import org.telegram.telegrambots.api.methods.send.SendMessage;
import org.telegram.telegrambots.api.objects.Chat;
import org.telegram.telegrambots.api.objects.Update;
import org.telegram.telegrambots.api.objects.replykeyboard.ReplyKeyboardMarkup;
import org.telegram.telegram... |
#!/bin/bash -e
# used pip packages
# use TF that is installed from conda when DALI is installed
pip_packages="nose jupyter"
target_dir=./dali/test/python
# populate epilog and prolog with variants to enable/disable conda
# every test will be executed for bellow configs
prolog=(enable_conda)
epilog=(disable_conda)
tes... |
<filename>ext/bin_utils/native.c
#include <ruby.h>
#if HAVE_STDINT_H
#include "stdint.h"
#elif defined(_MSC_VER)
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typed... |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
export RELEASE="dev"
export branch=${TRAVIS_BRANCH}
echo "export RELEASE=$RELEASE" >> ~/environment.sh
echo "export branch=$branch" >> ~/environment.sh
echo "**************************************************************"
echo "***************** Running Unit ... |
package com.twu.biblioteca.options;
/**
* Created by gdias on 8/5/15.
*/
public class VerifyBookOptionTest {
// TODO Test
}
|
import {
IsEmail,
IsNotEmpty,
IsNumber,
IsOptional,
IsPhoneNumber,
IsString,
Min,
} from 'class-validator';
export class CreateDonationInput {
@IsNotEmpty()
@IsString()
displayName: string;
@IsNotEmpty()
@IsNumber()
@Min(1)
count: number;
@IsNotEmpty()
@IsEmail()
email: string;
@... |
#!/bin/bash -eu
# Create Lumify install dir
echo "Create Lumify install dir"
mkdir -p /opt/lumify
chown root:root /opt/lumify
chmod 600 /opt/lumify
# Install CLAVIN index
echo "Install CLAVIN index"
/bin/bash /vagrant/vagrant/scripts/install-clavin.sh
# Install Lumify
echo "Install Lumify Web App"
cp /vagrant/web/wa... |
export * from './services.dao';
export * from './service.model';
|
<reponame>NullaDev/WebGL-STG-Engine
import { Shape, ShapeCircle, ShapedInstance, ShapedSprite, ShapeDualArc, SSPoint } from "../util/Shape";
import { RECT, RENDER_TYPE } from "../util/SpriteManager";
import { EntityPool } from "../stage/EntityPool";
import { Config, Entity, EntityAny, State } from "./Entity";
export c... |
<reponame>superdump/openwebrtc-gst-plugins<filename>ext/erdtls/src/erdtlsconnection.h
/*
* Copyright (c) 2014, Ericsson AB. 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. Redistributio... |
// const DAYS = 1000 * 60 * 60 * 24;
const HOURS = 1000 * 60 * 60;
const MINUTES = 1000 * 60;
const SECONDS = 1000;
export const errorHandler = (element, error) => {
const { name, value } = element;
const condition = {
name: value.length >= 3 && value.length <= 15,
};
if (condition[name]) {
return {
... |
A system architecture for processing patient medical records should include components for data collection, data storage, data processing, data analytics, and data visualization.
Data collection can be done using web crawlers, APIs, and data cleaning tools. Data storage can utilize various databases such as MySQL, Mo... |
#!/bin/bash
cat ./generic_max.go | ../../penny gen "NumberType=NUMBERS" > numbers_max_get.go
cat ./func_thing.go | ../../penny gen "ThisNumberType=NUMBERS" > numbers_func_thing.go
|
from astropy.io import fits
def prepare_fits_header(filename):
try:
hdu = fits.open(filename)
if len(hdu) < 1 or not isinstance(hdu[0].header, fits.header.Header):
return None # Return None if the file is not in the correct format
header = hdu[0].header
keys_to_remove ... |
<reponame>juggleross/json_updater
# frozen_string_literal: true
require 'spec_helper'
require 'shared_examples/json_updater_shared_spec'
describe JsonUpdater::UpdateService do
describe '#update_json' do
include_examples 'json updater', 'one_level'
include_examples 'json updater', 'one_level_array'
inclu... |
#!/bin/bash
#
# Description:
#
# Prints a color table of 8bg * 8fg * 2 states (regular/bold)
#
# Copyright:
#
# (C) 2009 Wolfgang Frisch <xororand@unfoog.de>
#
# License:
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publis... |
#!/bin/bash -ev
gpg --keyserver keys.gnupg.net --recv A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
sudo add-apt-repository -s "deb http://deb.torproject.org/torproject.org $(lsb_release -sc) main"
sudo apt-get update -qq
sudo apt-get install -y -qq... |
export class CustomField {
constructor(
public visible: boolean,
public field: string) {
}
}
|
#!/usr/bin/env bash
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# This file is subject to the terms and conditions defined in file 'LICENSE',
# which is part of this repository.
# Available environment variables
#
# ANSIBLEVERSION
# DOCKERFILE
# OPENRCFILE
# Set default values
OPENRCFILE=${... |
#!/bin/bash
# This command requires githubtoken.txt, in the repo root (it's git ingored btw).
# githubtoken.txt should contain github token: https://github.com/settings/tokens -> generate new token -> [x] read:packages
SERVER_BRANCH='develop'
WEB_APP_BRANCH='develop'
IMAGE_NAME='mflow-demo'
INITIAL_DATA_LOCALE=''
NO... |
# ==============================================================
# Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC v2019.1 (64-bit)
# Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.
# ==============================================================
/nfs/tools/xilinx/Vivado/2019.1/bin/vivado -notrace... |
/**
*
* RecordAttribute
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Trash } from 'react-bootstrap-icons';
import { FormattedMessage } from 'react-intl';
import messages from './recordAttribute.messages';
import styles from './recordAttribute.styles.scss';
function RecordAttribute... |
#!/bin/bash
set -e
trap "exit" INT
echo "
*****************************************************
* KUBERNETES INSTALLATION *
* *
*****************************************************
"
if [[ -z "$1" ]]
then
echo "Please enter k8s master ... |
#!/bin/bash
# Git add remote to jboss-integration the other repositories
initializeWorkingDirAndScriptDir() {
# Set working directory and remove all symbolic links
workingDir=`pwd -P`
# Go the script directory
cd `dirname $0`
# If the file itself is a symbolic link (ignoring parent directory link... |
#!/bin/bash -eu
while [ -n "${1+x}" ]
do
rsync -avhRL --timeout=60 --remove-source-files --no-perms --omit-dir-times --stats \
--log-file=/tmp/archive-rsync-cmd.log --ignore-missing-args \
--files-from="$2" "$1" "$RSYNC_USER@$RSYNC_SERVER:$RSYNC_PATH" &> /tmp/rsynclog || [[ "$?" = "24" ]]
shift 2
d... |
<gh_stars>1-10
package com.katus;
import com.katus.common.io.FsManipulator;
import com.katus.common.io.FsManipulatorFactory;
import com.katus.common.io.LineIterator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* @author <NAME>
* @version 1.0, 2021-11-04
*/
public class Prepa... |
<reponame>dj-1087/MJU_Club_HomePage
import React from 'react';
import {
Switch,
Route,
useRouteMatch
} from "react-router-dom";
import SEO from '../../components/SEO';
import Header from "../../partials/header/Header";
import PeopleManagement from "../../container/ClubManagement/PeopleManagement.js";
import Foot... |
cd ../src
cd vmcontroller.common
echo vmcontroller.common: `python setup.py --version`
cd ..
cd vmcontroller.host
echo vmcontroller.host: `python setup.py --version`
cd ..
cd vmcontroller.guest
echo vmcontroller.vm: `python setup.py --version`
cd ..
|
<gh_stars>1-10
/*
*
* * This file is part of moneydrops, licensed under the MIT License.
* *
* * Copyright (c) crysis992 <<EMAIL>>
* * Copyright (c) contributors
* *
* * Permission is hereby granted, free of charge, to any person obtaining a copy
* * of this software and associated documentation file... |
/**
* @fileoverview Check whether the given variable is a HTML tag or not.
*
*/
'use strict';
/**
* Check whether the given variable is a HTML tag or not.
* If the given variables is a HTML tag, return true.
* @param {*} html - Target for checking
* @returns {boolean} Is HTML tag?
* @memberof module:type
*/... |
package com.ufrn.embarcados.reaqua.model;
import lombok.Data;
import javax.persistence.*;
import java.util.List;
@Data
@Entity
public class Tower {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false, unique = true)
private String name;
@OneToM... |
<reponame>parksandwildlife/ibms
from datetime import datetime
from ibms.models import GLPivDownload
def get_download_period():
"""Return the 'newest' download_period date value for all the GLPivDownload objects.
"""
if not GLPivDownload.objects.exists():
return datetime.today()
elif not GLPivD... |
#!/usr/bin/env bash
testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../../..)
source $rootdir/test/common/autotest_common.sh
source $rootdir/test/nvmf/common.sh
rpc_py="$rootdir/scripts/rpc.py"
function jcount()
{
local filter=$1
jq "$filter" | wc -l
}
function jsum()
{
local filter=... |
/*
Copyright 2020 The pdf 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 applicable law or agreed to in writing, software
d... |
#include <stdio.h>
int main()
{
int a = 0;
int b = 1;
int n, c;
printf("Enter a number:");
scanf("%d",&n);
for(int i=0;i<n;i++)
{
c = a + b;
a = b;
b = c;
}
printf("The next two Fibonacci numbers are %d %d \n",b,c);
return 0;
} |
# Migrate analytics UUID to its new home in Homebrew repo's git config and
# remove the legacy UUID file if detected.
# HOMEBREW_LINUX, HOMEBREW_REPOSITORY is set by bin/brew
# HOMEBREW_NO_ANALYTICS is from the user environment.
# shellcheck disable=SC2154
migrate-legacy-uuid-file() {
local legacy_uuid_file analytics... |
<gh_stars>10-100
const fs = require('fs');
const glob = require('glob');
const { exec } = require('child_process');
/* eslint-disable no-console */
const args = process.argv.slice(2);
const path = args[0] || './packages/hooks/packages/*/*.js';
glob(path, (err, files) => {
files.forEach(file => {
const fileParen... |
#!/usr/bin/env bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode
set -euo pipefail
usage()
{
cat <<END
deploy.sh: deploys the $app_name application to a Kubernetes cluster using Helm.
Parameters:
--aks-name <AKS cluster name>
The name of the AKS cluster. Required when the registry (using the -r... |
<reponame>winks/adventofcode
package org.f5n.aoc2020.utils;
import org.f5n.aoc2020.utils.Result;
public class StringResult extends Result {
public String value;
public StringResult(String value, long start) {
this.value = value;
this.runtime = (System.currentTimeMillis() - start);
}
public String getValue(... |
#!/bin/bash -ex
if [[ $EUID -ne 0 ]]; then
echo "This script must be run by root. Please use sudo"
exit 1
fi
my_file="$(readlink -e "$0")"
my_dir="$(dirname $my_file)"
#BASE_IMAGE="/home/ubuntu/rhel-7.7.qcow2"
source "/home/$SUDO_USER/rhosp-environment.sh"
cd $my_dir
# collect MAC addresses of overcloud mac... |
// TexTab.hpp
// <NAME>, 20th February 1997
#ifndef _UNDO_HPP_
#define _UNDO_HPP_
#include "Prim.h"
#define MAX_UNDO 100
#define UNDO_APPLY_TEXTURE_PRIM4 1
#define UNDO_APPLY_TEXTURE_PRIM3 2
#define UNDO_APPLY_TEXTURE_CUBE 3
#define UNDO_PLACE_OBJECT 4
#define UNDO_DEL_OBJECT 5
#define UNDO_MOVE_OBJECT 6
#... |
<reponame>nw55/es-logging<gh_stars>0
import { LogMessage, LogWriter } from './common';
import { LogLevel } from './log-level';
export class CombinedLogWriter implements LogWriter {
static addLogWriter(logWriter: LogWriter | null, add: LogWriter) {
if (logWriter === null)
return add;
ret... |
#!/usr/bin/env bash
# either ssh key or agent is needed to pull adobe-platform sources from git
# this supplies to methods
set -o errexit
set -o pipefail
TARGET="$1"
SSH1=""
SSH2=""
SHA=${SHA:-"$(git rev-parse HEAD)"}
if [ ! -e /.dockerenv ]; then
echo
echo
echo "------------------------------------... |
#!/bin/sh
# Copyright (c) Philipp Wagner. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
function ask_yes_or_no() {
read -p "$1 ([y]es or [N]o): "
case $(echo $REPLY | tr '[A-Z]' '[a-z]') in
y|yes) echo "yes" ;;
*) ... |
<reponame>zhangpc0309/cesium-czmleditor<filename>js/fields/checkbox.js
const template = `<v-checkbox hide-details type="checkbox" class="direct-property-field"
v-model="isChecked()" :indeterminate.prop="isChecked() === undefined"
@change="change" :label="label"></v-checkbox>`;
Vue.component('checkbox-field', {... |
module Puppeteer::Launcher
class Base
# @param {string} projectRoot
# @param {string} preferredRevision
def initialize(project_root:, preferred_revision:, is_puppeteer_core:)
@project_root = project_root
@preferred_revision = preferred_revision
@is_puppeteer_core = is_puppeteer_core
... |
/*
* bls_bls_signature_t.hpp
*
* Created on: Nov 30, 2021
* Author: mad
*/
#ifndef INCLUDE_MMX_BLS_bls_signature_t_HPP_
#define INCLUDE_MMX_BLS_bls_signature_t_HPP_
#include <mmx/hash_t.hpp>
#include <mmx/skey_t.hpp>
#include <mmx/bls_pubkey_t.hpp>
namespace mmx {
struct bls_signature_t : bytes_t<96> {
... |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
DOCKER_IMAGE=${DOCKER_IMAGE:-xebecproject/xebecd-develop}
DOCKER_TAG=${DOCKER_TAG:-latest}
if [ -n "$DOCKER_REPO" ]; then
DOCKER_IMAGE_WITH_REPO=$DOCKER_REPO/$DOCKER_IMAGE
else
DOCKER_IMAGE_WITH_REPO=$DOCKER_IMAGE
fi
docker t... |
import * as React from "react";
import * as _ from "lodash";
import {WorkspaceTabbedModel} from "../models/WorkspaceTabbedModel";
import {WorkspaceEngine} from "../WorkspaceEngine";
import {DraggableWidget} from "./DraggableWidget";
import {ContainerWidget} from "./ContainerWidget";
import {WorkspacePanelModel} from ".... |
#!/bin/bash
dieharder -d 3 -g 61 -S 944174278
|
package com.example.admin.bluetoothrwdemo.bean;
public class TagInfo {
private String mOrderNumber;
private String mEpcTid;
private String mTimes;
private String mRssi;
public String getOrderNumber() {
return mOrderNumber;
}
public void setOrderNumber(String mOrderNumber) {
this.mOrderNumber = mOrderNumbe... |
<filename>server/library/socketio.ts<gh_stars>1-10
// node
import * as http from 'http';
// vendor (node_modules)
import * as express from 'express';
// library
import DeezerLibrary from './deezer';
import { ArduinoLibrary } from './arduino';
// configuration
import { IConfiguration } from '../configuration';
// imp... |
<filename>bsearch/interpolation.go
package bsearch
// Interpolation searches for n (needle) in a sorted slice of ints h (haystack).
// The return value is the index of n or -1 if n is not present in h.
// The slice must be sorted in ascending order.
//
// Interpolation algorithms estimates the position of the target v... |
Set up a web server on the client side, such as Apache or Nginx. Configure the web server, such as setting the document root, configuring the virtual host, and enabling CGI scripting. Make sure the web server is running and accessible from the public internet or a local network. Install the necessary HTML, CSS, and Jav... |
#!/bin/bash
FILE=${1:-'srr.txt'}
while read -r LINE; do
echo "LINE \"$LINE\""
done < "$FILE"
|
<gh_stars>1-10
/*
* 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 todo.hsqldb;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;... |
echo only remove kernel if you have a newer one!
sleep 2
sudo apt remove linux-headers-5.9.0-050900rc2
sudo apt remove linux-image-unsigned-5.9.0-050900rc2-generic
sudo apt remove linux-modules-5.9.0-050900rc2-generic
echo linux 5.9-rc2 is successfully removed
|
<gh_stars>1-10
/*
* system_info.c
*
* Created on: 15 avr. 2016
* by: <NAME>
*/
#ifndef __USE_GNU
#define __USE_GNU
#endif
#define _GNU_SOURCE
#include <sched.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <errno.h>... |
# coding: UTF-8
import sys
if __name__ == '__main__':
args = sys.argv
if 2 <= len(args):
for i in range(1,len(args)):
print(args[i])
else:
print('引数が未入力です。')
|
<reponame>atpsoft/dohutil
class NilClass
def empty?
return true
end
end
class Numeric
def empty?
return false
end
end
class Date
def empty?
return false
end
end
class Time
def empty?
return false
end
end
|
/* eslint-disable react/prop-types */
import React, { useState, memo } from 'react';
import PropTypes from 'prop-types';
import {
InternalSelect,
InternalSelectProps
} from '@data-driven-forms/pf4-component-mapper/select';
import isEqual from 'lodash/isEqual';
const FilterSelect: React.ComponentType<InternalSelect... |
#!/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}"
# This protects against multiple targets copying the same framework dependency at the same time.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.