text
stringlengths
1
1.05M
// @flow import * as React from 'react'; import {Button} from 'spaceweb/button'; export default () => ( <React.Fragment> <Button $as="a" href="https://styletron.org" target="_blank"> Visit the Styletron docs </Button> </React.Fragment> );
var searchData= [ ['embos_1798',['embOS',['../embos.html',1,'ports_rtos'],['../exa_embos.html',1,'exa_rtos']]], ['emwin_20embedded_20gui_1799',['emWin Embedded GUI',['../exa_emwin.html',1,'exa_mware']]], ['example_20applications_1800',['Example Applications',['../exa_apps.html',1,'exa']]], ['examples_1801',['Ex...
TERMUX_PKG_HOMEPAGE=https://github.com/visit1985/mdp TERMUX_PKG_DESCRIPTION="Command-line based markdown presentation tool" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER='lokesh @hax4us' TERMUX_PKG_VERSION=1.0.15 TERMUX_PKG_SRCURL=https://github.com/visit1985/mdp/archive/${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA...
<reponame>minuk8932/Algorithm_BaekJoon package string_handle; import java.io.BufferedReader; import java.io.InputStreamReader; /** * * @author exponential-e * 백준 17838번: 커맨드 * * @see https://www.acmicpc.net/problem/17838/ * */ public class Boj17838 { private static final String NEW_LINE = "\n"; public sta...
<reponame>domonda/go-sqldb package sqldb import ( "log" "os" ) // Logger has a Printf method used for logging // information that could not be returned by // any of the package functions directly. type Logger interface { Printf(format string, v ...interface{}) } // ErrLogger will be used to log errors // that cou...
import dom from 'metal-dom'; import ReadingProgressTracker from '../src/ReadingProgressTracker'; describe('ReadingProgressTracker', () => { var readingProgress; beforeAll(() => { dom.enterDocument('<style id="style">body{margin:0;padding:0;}'); dom.enterDocument('<div id="content">' + '<div id="cont...
<filename>src/oatpp/web/client/RequestExecutor.cpp /*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__)...
import pandas as pd # Read the input data df = pd.read_csv('company_data.csv') # Select the top 5 companies by total revenue top_5 = df.sort_values(by='revenue', ascending=False).head(5) # Generate the report print("Top 5 Companies by Total Revenue") print("-------------------------------") for index, row in top_5.i...
<html> <head> <title>Book List Page</title> </head> <body> <h1>Book List</h1> <ul> <li>The Catcher in the Rye - J.D. Salinger</li> <li>Harry Potter and the Sorcerer's Stone - J.K. Rowling</li> <li>To Kill a Mockingbird - Harper Lee</li> <li>The Great Gatsby - F. Scott Fitzgerald</li> <li>The Hun...
#!/bin/bash cd /home/pi/lora_gateway/gw_web_admin echo "Installing gateway's web admin interface..." echo "Removing any existing admin folder (from previous install)" sudo rm -rf /var/www/html/admin if [ -d ./admin ] then echo "have detected a local web admin folder" echo "Copying web admin interface files" ...
#!/bin/sh set -x . ./00.profile kubectl -n $KUBE_NAMESPACE get secret ${RELEASE_NAME}-gitlab-initial-root-password -ojsonpath='{.data.password}' | base64 --decode
<reponame>jasonseminara/tutr 'use strict'; /** * @ngdoc function * @name cattrApp.controller:ReservationcontrollerCtrl * @description * # ReservationcontrollerCtrl * Controller of the cattrApp */ cattr .controller( 'ReservationController', ['CatData','$state', function(catData,$state) { var cats = this; ...
# import libraries #import nltk #nltk.download('popular') from textblob import TextBlob # define text text = "This is some text I want to analyze and get key phrases and keywords from." # analyze text blob = TextBlob(text) # extract keywords keywords = [word for (word, score) in blob.keywords] print('Keywords:', ', ...
#!/bin/bash OCTOOLSBIN=$(dirname $0) # =================================================================================================== # Funtions # --------------------------------------------------------------------------------------------------- usage() { cat <<EOF ============================================...
####################################### # User plan for ci testing # This tests a user interacting with scaffold API ####################################### pkg_name=user-linux-default pkg_origin=ci pkg_version="1.0.0" pkg_scaffolding="ci/scaffolding-chef-infra" pkg_svc_user=("root") scaffold_policy_name="ci" # Requi...
<filename>src/main/java/com/github/chen0040/leetcode/day07/medium/WordSearch.java package com.github.chen0040.leetcode.day07.medium; import java.util.HashSet; import java.util.Set; /** * Created by xschen on 2/8/2017. * summary: * Given a 2D board and a word, find if the word exists in the grid. * The word can ...
""" Write a Python program to create a Tic Tac Toe game """ # global variables board = ["-", "-", "-", "-", "-", "-", "-", "-", "-"] game_is_still_going = True # who is the winner winner = None # whose turn is it current_player = "X" # display board def display_board(): print(boa...
package com.huatuo.net.thread; import java.util.ArrayList; import java.util.HashMap; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.content.Context; import android.os.Handler; import com.huatuo.base.MyApplication; import com.huatuo.dictionary.MsgId; import com.h...
<filename>acmicpc/15733/15733.py<gh_stars>1-10 print("I'm Sexy")
#ifndef _BACKTRACE_H #define _BACKTRACE_H #include <string> #include "DPMatrix.h" #include "dp_matrix_cell.h" class DPMatrix; class Backtrace { public: Backtrace(DPMatrix *dp_matrix, int i, int j, int k, int l, const std::string &s1, const std::string &s2); void run(); void print(std::str...
<filename>qcommunity/modularity/standalone/refinement/refinement.py #!/usr/bin/env python import re, os, sys import numpy as np import networkx as nx from numpy import linalg as la from networkx.generators.atlas import * import random, copy from os import listdir from os.path import isfile, join import matplotlib.pypl...
from pypy.jit.codewriter.policy import JitPolicy from pypy.rlib.jit import JitHookInterface from pypy.rlib import jit_hooks from pypy.interpreter.error import OperationError from pypy.jit.metainterp.jitprof import counter_names from pypy.module.pypyjit.interp_resop import wrap_oplist, Cache, wrap_greenkey,\ Wrappe...
# !/bin/bash # # ################################################################################ # # 联系方式 : # Weibo : jkpang-庞 http://weibo.com/u/5743737098/home?wvr=5&uut=fin&from=reg # Email : jkpang@outlook.com # QQ 群 : 323408051 # GitHub: https://github.com/jkpang # # #############################################...
import { UserStateContext } from "@/context/UserContext"; import Head from "next/head"; import { useRouter } from "next/router"; import { useContext, useState } from "react"; import styles from '../../styles/layout.module.scss'; import Button from "../button/button"; import ContextMenu from "../contextMenu/contextMenu"...
<gh_stars>1-10 # frozen_string_literal: true require 'rails_helper' RSpec.describe OnboardingChannelButtons::OnboardingChannelButtons, type: :component do subject { render_inline(described_class.new(**params)) } let(:params) { {} } let(:phone_number) { nil } before(:each) { allow(Setting).to receive(:signal...
package controllers import java.net.URI import java.net.URLDecoder.decode import com.amazonaws.AmazonServiceException import com.gu.mediaservice.lib.argo.ArgoHelpers import com.gu.mediaservice.lib.argo.model._ import com.gu.mediaservice.lib.auth.Authentication import com.gu.mediaservice.lib.aws.{NoItemFound, UpdateM...
sed -i "s/''/'/g" all_u_lc.txt sed -i -E "s/\(inaudible\)//g" all_u_lc.txt sed -r -i "s/\[[0-9]+:[0-9]+*\]//g" all_u_lc.txt sed -i -E "s/\(ph\)//g" all_u_lc.txt
def determine_output(a, b, ind, passing): if not a == b: ind = 1 if ind == 0 and passing == 0: passing = 0 else: passing = 1 if passing == 0: return "Output result: 0" else: return "Output result: 1"
#! /bin/zsh # A script to make using 256 colors in zsh less painful. # P.C. Shyamshankar <sykora@lucentbeing.com> # Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/ typeset -AHg FX FG BG FX=( reset "%{%}" bold "%{%}" no-bold "%{%}" italic "%{[03...
// class defining a light const { vec3 } = glMatrix; export class Light { // Given a bottom-left corner (vec3), width (vec3), number of columns (int), // height (vec3), number of rows (int), and color values r, g, b (int), // construct an area light constructor(corner, uvecFull, usteps, vvecFull, vsteps, r, g,...
def max_sum(arr): current_sum = 0 max_sum = 0 for i in range(len(arr)): current_sum += arr[i] max_sum = max(current_sum, max_sum) if current_sum < 0: current_sum = 0 return max_sum arr = [2, -4, 8, -5, 9, 10] res = max_sum(arr) print(res)
def word_frequency(sentence): words = sentence.split() freq = {} for word in words: if word in freq: freq[word] += 1 else: freq[word] = 1 return freq if __name__ == '__main__': print(words_frequency("This is a random sentence"))
/* * IXCobraMetricsToRedisBot.cpp * Author: <NAME> * Copyright (c) 2020 Machine Zone, Inc. All rights reserved. */ #include "IXCobraMetricsToRedisBot.h" #include "IXCobraBot.h" #include "IXStatsdClient.h" #include <chrono> #include <ixcobra/IXCobraConnection.h> #include <ixcore/utils/IXCoreLogger.h> #include <...
#!/bin/bash # Copyright 2018 Crunchy Data Solutions, 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 ...
#!/usr/bin/env bash #========================================================================== # # Copyright Insight Software Consortium # # 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 ...
package com.designre.blog.controller.admin; import com.designre.blog.model.dto.TagInfoDto; import com.designre.blog.util.RestResponse; import com.designre.blog.model.entity.Tag; import com.designre.blog.model.param.SaveTagParam; import com.designre.blog.service.TagService; import lombok.RequiredArgsConstructor; import...
<filename>cw_duplicate_encoder.py """Codewars: Duplicate Encoder 6 kyu URL: https://www.codewars.com/kata/54b42f9314d9229fd6000d9c/ The goal of this exercise is to convert a string to a new string where each character in the new string is "(" if that character appears only once in the original string, or ")" if that ...
<reponame>bingenperez/nba /* stats always end up with a thing like: { [someKeyName]: [ ... relevant results ... ] } */ function unnest (obj) { const keys = Object.keys(obj); if (keys.length !== 1) { console.error("unnest() only works on objects with a single key"); return obj; } const items = obj[ke...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for USN-3136-1 # # Security announcement date: 2016-11-23 00:00:00 UTC # Script generation date: 2017-01-01 21:05:45 UTC # # Operating System: Ubuntu 16.04 LTS # Architecture: x86_64 # # Vulnerable packages fix on version: # - lxc1:2.0.5-0ubuntu1~ubuntu16.04.3 # ...
#!/bin/bash # Script args WORKSPACE=$1 cd $WORKSPACE && make clean
<reponame>raulrozza/Gametask_Web import React, { useCallback } from 'react'; import IActivity from 'modules/dashboard/domain/entities/IActivity'; import { EditButton, RemoveButton } from 'modules/dashboard/view/components'; import { Container, Experience, Name, Rules } from './styles'; interface ActivityProps { ac...
#!/usr/bin/env bash # WARNING: NGBUILDS_IO_KEY should NOT be printed. set +x -eu -o pipefail exec 3>&1 readonly INPUT_DIR=dist/ readonly OUTPUT_FILE=/tmp/snapshot.tar.gz readonly AIO_BUILDS_DOMAIN=ngbuilds.io readonly UPLOAD_URL=https://$AIO_BUILDS_DOMAIN/create-build/$TRAVIS_PULL_REQUEST/$TRAVIS_PULL_REQUEST_SHA r...
docker run -it --rm -v /work/:/root centos /bin/bash # to remove the duplicate line, uniq -c mysql -uroot -e 'show processlist\G' | grep State: | uniq -c | sort -rn
<filename>qht-modules/qht-api/src/main/java/com/qht/model/MyIndexCourseDetailsModel.java package com.qht.model; import java.io.Serializable; import java.util.Date; /** * @ClassName MyIndexCourseDetailsParameter * @Author Zuoxh * @Data 2018/11/18 0018 下午 10:38 */ public class MyIndexCourseDetailsModel im...
<filename>shiny-damage-calculator/src/component/IdolParameterForm.tsx import * as React from 'react'; import { useEffect, useState } from 'react'; import { Button, Form } from 'react-bootstrap'; import { range } from 'utility'; import { AppContext } from 'component/App'; import { IdolParameter } from 'component/Id...
<gh_stars>10-100 /* Copyright (C) 2011 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
// Command wikifeedia does something... package main import ( "context" "crypto" "crypto/ecdsa" "crypto/elliptic" "crypto/rand" "crypto/tls" "crypto/x509" "crypto/x509/pkix" "fmt" "io/fs" "math/big" "net/http" "os" "time" "github.com/pkg/errors" "github.com/tullo/wikifeedia/crawler" "github.com/tullo...
using UnityEngine; using System.Collections; public class URLProcessor : MonoBehaviour { public IEnumerator ProcessURLWithProxy(string url) { string processedURL = PHPProxy.Escape(url); // Process the input URL using PHPProxy.Escape method WWW www = new WWW(processedURL); // Make a web request ...
// Package validation contains some message validation helpers. package validation import "time" // IsValidDate returns true if the given date is a valid format. func IsValidDate(date string) bool { if date == "" { return false } _, err := time.Parse("2006-01-02", date) return err == nil }
package shadows.apotheosis.deadly.loot.affix.impl.melee; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.attributes.AttributeModifier.Operation; import shadows.apotheosis.deadly.loot.EquipmentType; import shadows.apotheosis.deadly.loot.affix.impl.AttributeAffix; public class Attack...
install_python_packages() { info "Installing pip" curl https://bootstrap.pypa.io/get-pip.py | python info "Installing pip xkcdpass" pip install xkcdpass } install_neovim() { info "Installing NeoVim" install_brew_formulas neovim info "Installing Vim Plugged" sh -c 'curl -fLo $HOME/.local/share/nvim/si...
/* eslint-env es6 */ /* global Vue, rangeUtils, dateMath */ (function() { var html = ` <div v-cloak> <button class="btn btn-secondary" v-on:click="showHidePicker()"> <i class="fa fa-clock-o"></i> <span v-cloak>{{ rangeString() }}</span> </button> <div class="row position-absolute...
#!/bin/bash # run munkiwebadmin dev server # change dir cd "$(dirname "$0")" # default style curl -Lk -o /tmp/mwa2-style.zip https://github.com/SteveKueng/mwa2-style/archive/master.zip && unzip /tmp/mwa2-style.zip -d /tmp && rm -rf /tmp/mwa2-style.zip mkdir -p ./munkiwebadmin/static/styles/default cp -r /tmp/mwa2-st...
<reponame>PinoEire/archi<filename>com.archimatetool.editor/src/com/archimatetool/editor/diagram/sketch/Messages.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.e...
def longestCommonPrefix(strings): prefix = "" min_length = min([len(s) for s in strings]) for i in range(min_length): current_char = strings[0][i] for s in strings: if s[i] != current_char: return prefix prefix += current_char return prefix result = l...
<filename>bitcoin_shop_latlong.py """bitcoin_shop_counter.py Author: <NAME> Bestand leest data uit van coinmap api: https://coinmap.org/api/v1/venues/ """ import urllib.request import json from pprint import pprint # Haal alle data op vanuit de coinmap api. with urllib.request.urlopen('https://coinmap.org/api/v1/ve...
#!/bin/bash #============================================================= # https://github.com/P3TERX/Actions-OpenWrt # File name: diy-part1.sh # Description: OpenWrt DIY script part 1 (Before Update feeds) # Lisence: MIT # Author: P3TERX # Blog: https://p3terx.com #====================================================...
#!/bin/bash docker push magland/sf-spykingcircus:0.9.7
<reponame>smagill/opensphere-desktop<filename>open-sphere-base/core/src/main/java/net/opengis/ows/_110/DomainMetadataType.java // // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com...
#!/bin/bash # custom <additional exports> # end <additional exports> cmake -DCMAKE_BUILD_TYPE=Release -B../cmake_build/release -H. cmake -DCMAKE_BUILD_TYPE=Debug -B../cmake_build/debug -H.
#!/bin/bash set -e prod=$1 info() { printf "\e[34m[➧]\e[0m ${1}\n" } error() { printf "\e[31m[✘]\e[0m ${1}\n" } success() { printf "\e[32m[✔]\e[0m ${1}\n" } function toWinPath() { echo "$1" | sed -e 's/^\///' -e 's/\//\\/g' -e 's/^./\0:/' } function toPosixPath() { echo "/$1" | sed -e 's/\\/\/...
<gh_stars>1-10 /*! * Copyright (c) 2021-Present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * U...
package io.opensphere.core.util.collections.observable; import javafx.beans.InvalidationListener; import javafx.collections.SetChangeListener; /** * A helper class used in creation of observable sets. * * @param <E> the elements contained within the set. */ public abstract class SetListenerHelper<E> extends Expre...
package main import ( "fmt" fiql "go-fiql/gofiql" ) func main() { queries := []string{ "(((((product==\"Apple\",product==\"Google\");(name==\"Joe\",name==\"Alan\")));label=!~=\"text\";(qty=gte=1,qty=lte=10)))", "(product==\"Apple\",product==\"Google\");(name==\"Joe\",name==\"Alan\");(qty=gte=1,qty=lte=10)", ...
#!/bin/bash # This script parses in the command line parameters from runCust, # maps them to the correct command line parameters for DispNet training script and launches that task # The last line of runCust should be: bash $CONFIG_FILE --data-dir $DATA_DIR --log-dir $LOG_DIR # Parse the command line parameters # tha...
#!/usr/bin/env -S bash -e # To be sourced from other scripts. Tip: use the following lines to source it independently from the PWD, # provided your script is in the same directory as this one: # SCRIPTS_DIR="$(readlink -f ${BASH_SOURCE[0]} | xargs dirname)" # source "$SCRIPTS_DIR/utils.sh" # Temporary hack, be...
<reponame>VOLTTRON/volttron-AIRCx-visualization // Copyright (c) 2020, Battelle Memorial Institute // All rights reserved. // 1. Battelle Memorial Institute (hereinafter Battelle) hereby grants // permission to any person or entity lawfully obtaining a copy of this // software and associated documentation fil...
#ifdef __INTEL_COMPILER #define _BSD_SOURCE 1 #define _POSIX_C_SOURCE 200809L #endif #include <stdio.h> #include <stdbool.h> #include "windows.h" #include "utils.h" #define MIN(a,b) ((a<b)?a:b) #define MAX(a,b) ((a>b)?a:b) int getppid() { int pid = GetCurrentProcessId(); HANDLE hProcessSnap = CreateToolh...
<reponame>pythian/skeletos<gh_stars>1-10 import {Primitive, State} from "../../../../../../../../../core"; import {OrgMemberProfileSettingsRoute} from "./orgmembersettings/OrgMemberProfileSettingsRoute"; import {OrgMemberAuthenticationSettingsRoute} from "./orgmembersettings/OrgMemberAuthenticationSettingsRoute"; impor...
#!/bin/bash function veracode-api-invoke-v2 { veracode-api-invoke 2.0 $1 $2 ; } function veracode-api-invoke-v4 { veracode-api-invoke 4.0 $1 $2 ; } function veracode-api-invoke-v5 { veracode-api-invoke 5.0 $1 $2 ;} function veracode-api-invoke { local targetUrl="https://analysiscenter.veracode.com/api/$1/$2.do" ...
struct Asm { // Define the Asm struct with necessary methods and fields } struct Assembler { asm: Asm, contexts: Vec<Context>, } struct Body { branch: Option<Branch>, label: Label, } struct Branch { body: Body, } impl Assembler { fn assemble(&mut self, needs: Needs) -> Result<(), Assembl...
package main import "math" type TreeNode struct { Val int Left *TreeNode Right *TreeNode } /** * Definition for a binary tree node. * type TreeNode struct { * Val int * Left *TreeNode * Right *TreeNode * } */ func maxDepth(root *TreeNode) int { if root == nil { return 0 } return 1 + ...
/* * Copyright 2018 The boardgame.io Authors. * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ import React from 'react'; import PropTypes from 'prop-types'; import { Game } from 'boardgame.io/core'; import { Cl...
<filename>acmicpc.net/source/10815.cpp<gh_stars>1-10 // 10815. 숫자카드 // 2019.05.22 // 이분 탐색 #include<algorithm> #include<iostream> #include<vector> using namespace std; int main() { int n, m; cin >> n; vector<int> v(n); for (int i = 0; i < n; i++) { cin >> v[i]; } cin >> m; vector<int> b(m); for (int i = 0...
# mountShares.sh # This file must have LF (UNIX-style) line endings! keyfile=$1 sh cifsMount.sh # Install jq used for the next command sudo apt-get install -y jq # Get the IP address of each node using the mesos API and store it inside a file called nodes curl http://leader.mesos:1050/system/health/v1/nodes | jq '....
import React from "react" import renderer from "react-test-renderer" import DriversTable from "." import { DriversList } from "../../types" describe("components/DriversTable", (): void => { it.each([ [[]], [ [ { driverId: "foo", permanentNumber: "13", code: "FOO", ...
<reponame>seants/integrations-core # (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import shutil import subprocess import sys import tempfile from datadog_checks.directory import DirectoryCheck def test_run(benchmark): temp_dir = tempfile.mkdtemp() c...
#!/bin/sh echo "*** Running linkWho ***" #ln -s /home/ubuntu/src/ckan/who.ini /etc/ckan/default/who.ini ls -ltr /usr/lib/ckan/default/src/ckan/who.ini ls -ltr /etc/ckan/default/who.ini ln -s /usr/lib/ckan/default/src/ckan/who.ini /etc/ckan/default/who.ini ls -ltr /usr/lib/ckan/default/src/ckan/who.ini ls -ltr /etc/c...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/512+0+512-shuffled-N-VB/7-model --tokenizer_name model-configs/1024-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/512+0+512-shuffled-N-VB/7-512+0+512-N-VB-1 --do_eval --...
#!/bin/bash set -e optimise='' sanitise='' while getopts 'os' flag; do case "${flag}" in o) optimise='true' ;; s) sanitise='true' ;; esac done export OPTIMISE='' export SANITISE='' if [[ $optimise ]]; then OPTIMISE=-Os fi if [[ $sanitise ]]; then SANITISE="-s INITIAL_MEMORY=655360000 -fsanitize=ad...
<reponame>segmentify/segmentify-android-sdk package com.segmentify.segmentifyandroid; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graph...
<reponame>lucacasonato/deno-fetchevent<gh_stars>1-10 export class ReadableStreamIOReader implements Deno.Reader { #reader: ReadableStreamDefaultReader<Uint8Array>; #buffer: Uint8Array | null; #encoder: TextEncoder; constructor(dst: ReadableStream<Uint8Array>) { this.#reader = dst.getReader(); this.#buf...
#!/usr/bin/env bash # Copyright 2015 gRPC 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 ...
############################################################################# # TitanicAI App - Helm ############################################################################# # set context kubectl config get-contexts kubectl config use-context docker-desktop kubectl config current-context # deploy webapp & api hel...
package core import ( "log" "sort" "sync" "github.com/alikarimi999/shitcoin/core/types" ) const ( poolSize = 3 ) type pool interface { // this function can recieve transaction or mined block // if block mined by another node you must send block snapshot to prevent data race // if block mined by this node lo...
<reponame>Korla/boardgame.io<filename>src/ui/card.js<gh_stars>0 /* * Copyright 2017 The boardgame.io Authors * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ import React from 'react'; import PropTypes from 'pro...
<reponame>DhritiShikhar/must-gather-clean<gh_stars>0 package obfuscator import ( "testing" "github.com/stretchr/testify/assert" "github.com/openshift/must-gather-clean/pkg/schema" ) func TestIPObfuscatorStatic(t *testing.T) { for _, tc := range []struct { name string input string output string report...
class WebGLMemoryManagerImpl implements WebGLMemoryManager { static = { size: 0, allocations: {} }; dynamic = { size: 0, allocations: {} }; mapping = {}; allocateStaticMemory(name: string, size: number, location: string): void { this.static.allocations[na...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { resolve } from 'path'; import { registerTemplatesRoutes } from './se...
class MessageDispatcher { public static function dispatchMessage($message) { switch(strtoupper($message['Event'])){ case 'CLICK': // Set the message type and content based on the event key ImWx::setRequest('MsgType', 'text'); ImWx::setRequest('Cont...
<reponame>abt09kis/DishRandomizer var mongoose = require('mongoose'), Schema = mongoose.Schema, Resturant = require('./restaurantSchema'); //Creation of user schema. var dishSchema = new Schema({ restaurant:{type: mongoose.Schema.Types.ObjectId, ref: 'Resturant'}, name: String, price: Number }); var Dish = mon...
def ReplaceVowels(sentence): return sentence.translate(str.maketrans('', '', "aeiouAEIOU"))
#!/usr/bin/env bash # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. set -e http_port=8080 ssh_port=29418 while test $# -ne 0; do case "$1" in -v) version="$2" shift ;; -d)...
#!/bin/bash echo_blue() { BLUE='\033[0;34m' NC='\033[0m' # No Color echo -e "${BLUE}$1${NC}" } SOLR_BENCH_VERSION="0.0.1-SNAPSHOT" download() { file=$1 if [ -f "$(basename "$file")" ]; then return fi if [[ $file == "https://"* ]] || [[ $file == "http://"* ]] then ...
<reponame>riddopic/config ######################################################################## # # Copyright (c) 2021 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # ######################################################################## from sysinv.db import api as db_api from sysinv.objects i...
package com.serloman.imagedowloaderapptest; import android.support.v7.app.ActionBarActivity; import android.support.v4.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import andr...
<filename>src/main/java-gen/io/dronefleet/mavlink/ardupilotmega/GoproProtuneExposure.java package io.dronefleet.mavlink.ardupilotmega; import io.dronefleet.mavlink.annotations.MavlinkEntryInfo; import io.dronefleet.mavlink.annotations.MavlinkEnum; /** * */ @MavlinkEnum public enum GoproProtuneExposure { /** ...
/* * Copyright 2014-2018 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 app...
<reponame>seants/integrations-core<filename>varnish/tests/common.py # (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os # This is a small extract of metrics from varnish. This is meant to test that # the check gather metrics. This the check return every...
REM FILE NAME: chaining.sql REM LOCATION: Object Management\Tables\Reports REM FUNCTION: Report on the number of CHAINED rows within a named table REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1 REM PLATFORM: non-specific REM REQUIRES: v$statname, v$session, dba_tab_columns, sys.col$, sys.obj$, sys.icol...