text
stringlengths
1
1.05M
/*! * Copyright (c) 2015-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. * Unless required ...
def sum(x, y): # Iterate till there is no carry while (y != 0): # Carry contains common set bits of x and y carry = x & y # Sum of bits of x and y where at least # one of the bits is not set x = x ^ y # Carry is shifted by one so that adding it ...
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOWS_FILE_SELECTOR_PLUGIN_H_ #define PACKAGES_FILE_SELECTOR_FILE_SELECTOR_WINDOWS_WINDOWS_FILE_SELEC...
#!/bin/sh ### BEGIN INIT INFO # Provides: dvr # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/us...
var fs = require('fs') , finish = require('../finish') function sizeOfDir(dir, callback) { fs.lstat(dir, function(err, stat) { if (err) return callback(err); if (!stat.isDirectory()) return callback(null, stat.size); fs.readdir(dir, function(err, files) { if (err) return callback(err.code === 'E...
<filename>server/db/db_func.js const connection = require('./connection') const { formatOrder, formatOrderList } = require('../formatter') module.exports = { listOrders, addOrder, editOrderStatus } function listOrders (db = connection) { return db('orders_products') .join('orders', 'orders_products.order...
<reponame>isabella232/aurora<filename>qa/ui_tests/fw/uimap.py from selenium.webdriver.common.by import By class UIMap(object): # Common msg_error = (By.ID, "error_message") bt_up = (By.ID, "upButton") buttons = (By.CLASS_NAME, "buttons") bt_create = (By.ID, "create") bt_edit = (By.ID, "edit")...
default_app_config = 'account.app.AppConfig'
<reponame>mathvalenza/javascript-challenges const champions = require('.'); test('it passes in platform tests', () => { expect( champions([ { name: '<NAME>', wins: 30, loss: 3, draws: 5, scored: 88, conceded: 20 }, { name: 'Arsenal', ...
def largest_sum(list1, list2): largest_1 = max(list1) largest_2 = max(list2) return largest_1 + largest_2
<reponame>ranebo/react-router-redux-boilerplate import React from 'react'; import { Provider } from 'react-redux'; import { AppContainer } from 'react-hot-loader' import { ConnectedRouter } from 'react-router-redux'; import { PersistGate } from 'redux-persist/es/integration/react'; import { history } from 'app/history'...
#include "pch.h" #include "entry.h" #include "vendor/DInput8/DInput8Proxy.h" #include "LuaEvents/OnParamLoaded.h" #include <Amir/ds3runtime.h> #include "GameObjects/SprjMsgRepositoryImp.h" #include <cstdio> #include "logging.h" #include "minhook/include/MinHook.h" #include "script_repository.h" #include "script_runtime...
<filename>main.py import functions.system as sys import functions.menus as men def main(): """Main function. This function could change during develop.""" sys.check_system() # Needed to initiate colorama in case we are using Windows print(sys.sysMsg + 'Searching database...') sys.check_database() # ...
package io.smallrye.jwt.build; import java.security.PublicKey; import javax.crypto.SecretKey; /** * JWT JsonWebEncryption. */ public interface JwtEncryption { /** * Encrypt the claims or inner JWT with {@link PublicKey}. * 'RSA-OAEP' and 'ECDH-ES+A256KW' key encryption algorithms will be used by def...
#!/bin/bash -ex pushd . pip install virtualenv rm -rf target rm -rf temp mkdir target virtualenv temp source temp/bin/activate cd temp #pip install requests cd lib/python3.8/site-packages aws s3 cp s3://aws-neptune-customer-samples-us-east-1/neptune-sagemaker/bin/neptune-python-utils/neptune_python_utils.zip . unzip n...
FROM python:3.7 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app EXPOSE 8080 COPY . /usr/src/app RUN pip install -r requirements.txt ENTRYPOINT ["python", "scrape.py"]
def calculate_total_price(order): total_price = 0 for item in order.get_items(): # Assuming there is a method get_items() to retrieve the items in the order total_price += item.get_attribute('price') # Assuming there is a method get_attribute() to retrieve the price of the item return total_price
export * from './model'; export * from './categories.api';
<filename>web-application/mvc-restful-crud/src/main/java/xyz/zkyq/entity/Department.java<gh_stars>0 package xyz.zkyq.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; /** * Department entity * * @author zkyq * @date 12/16/19 */ @Data @AllArgsConstructor @NoArgsConstru...
<reponame>Xmaspiano/project01<filename>src/main/java/com/xmasworking/project01/controller/ShowController.java package com.xmasworking.project01.controller; /** * Created by IntelliJ IDEA. * * @author XmasPiano * @date 2018/8/30 - 上午10:23 * Created by IntelliJ IDEA. */ import com.xmasworking.project01.entity.Sho...
#!/bin/sh install_resource() { case $1 in *.storyboard) echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename $1 .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" ibtool --errors --wa...
<gh_stars>100-1000 /* * Copyright The Stargate 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 applicabl...
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.org/docs/gatsby-config/ */ require('dotenv').config(); module.exports = { /* Your site config here */ siteMetadata: { title: `Pandas eating loooooots`, }, plugins: [ { resolve: `gatsby-source-filesystem`, options: { na...
<filename>src/server/app.ts import * as express from "express"; import * as path from "path"; import * as logger from "morgan"; import * as compression from "compression"; import * as cookieParser from "cookie-parser"; import { json, urlencoded } from "body-parser"; import * as expressWs from "express-ws"; import * as...
<filename>37.react/router2/react-router-dom/BrowserRouter.js import React, { Component } from 'react' import { HashContext } from '../context/HashContext'; (function (history) { var pushState = history.pushState; history.pushState = function (state,title,pathname) { //重新pushState放啊 if (typeof wi...
package com.ride.myride.fragment; import android.app.ProgressDialog; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget...
#!/bin/bash #PBS -V #PBS -N no_GG_F3_85 #PBS -l nodes=1:ppn=1,walltime=6:00:00 #PBS -l mem=40gb ##PBS -q fast #PBS -k o ##PBS -j oe #PBS -e /home/hnoorazar/analog_codes/04_analysis/parallel/quick/error/E_no_GG_F3_85 #PBS -o /home/hnoorazar/analog_codes/04_analysis/parallel/quick/error/O_no_GG_F3_85 #PBS -m abe echo ...
<gh_stars>0 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.issueReopened = void 0; var issueReopened = { "viewBox": "0 0 14 16", "children": [{ "name": "path", "attribs": { "fill-rule": "evenodd", "d": "M8 9H6V4h2v5zm-2 3h2v-2H6v2zm6.33-2H10l1.5 1.5c-1.05...
#! /bin/bash #SBATCH -o /home/hpc/pr63so/di69fol/workspace/SWEET_2015_12_26/benchmarks_performance/rexi_tests_lrz_freq_waves/2015_12_27_scalability_nr_spec/run_nr_spec_spec_agrid_t001_n0256_r0001_a1.txt ###SBATCH -e /home/hpc/pr63so/di69fol/workspace/SWEET_2015_12_26/benchmarks_performance/rexi_tests_lrz_freq_waves/20...
#!/bin/sh print_usage () { echo "Usage: download_model.sh [vgg|resnet] [layers]" echo "For vgg, 'layers' can be one of {16, 19}" echo "For resnet, 'layers' can be one of {18, 34, 50, 101, 152, 200}" } if [ $1 = "vgg" ] then if [ $2 = "16" ] then mkdir -p data/models/vgg16 cd data...
package testdata //nolint var ( TestCaseLangKZNumbersInt64 = map[int64]string{ -88: "минус сексен сегіз", 88: "сексен сегіз", 33: "отыз үш", 32: "отыз екі", 48: "қырық сегіз", 80: "сексен", 28: ...
<reponame>AnkilP/ensnif #include "Ingestion/data_ingestion.hpp" template <typename T> void Data_Ingestor<T>::getLabel(){ std::cout << this->_label << std::endl; }
package utils; import java.util.Random; import java.util.ArrayList; import java.util.Iterator; import java.util.function.Predicate; import java.util.function.Supplier; import static org.junit.jupiter.api.Assertions.*; /** * Some simple utilities for writing tests. * * @author <NAME> */ public class TestUtils...
import { Component } from '@angular/core'; import { trigger, transition, style, group, query, animate } from '@angular/animations'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'], animations: [ trigger('slideInOut', [ transition('* => *, :en...
def twosum(arr, target): comps = {} for i in range(0, len(arr)): diff = target - arr[i] if diff in comps: return [arr[i], diff] comps[arr[i]] = i return [] arr = [2, 7, 11, 15] target=9 print(twosum(arr, target)) # [2, 7]
#!/bin/bash #SBATCH --cpus-per-task=4 #SBATCH --gres=gpu:1 #SBATCH --partition=msc #SBATCH --output=slurm-%j.out #SBATCH --error=slurm-%j.err #SBATCH --job-name="rand" #SBATCH --array=0-2 export TMPDIR=/scratch-ssd/${USER}/tmp mkdir -p $TMPDIR export CONDA_ENVS_PATH=/scratch-ssd/$USER/conda_envs export CONDA_PKGS_D...
def reverse(str): reversedString = "" for char in str: reversedString = char + reversedString return reversedString print(reverse(str))
#!/bin/bash distro=`./../common/extract_distro.sh` if [ $? -eq 0 ] then echo "Detected distro: ${distro}" else echo "*** Error - invalid distro!" exit -1 fi if [[ $distro == "CentOS Linux 7.6.1810" ]] then pushd "../centos/centos-7.x/centos-7.6-hpc" elif [[ $distro == "CentOS Linux 7.7.1908" ]] then ...
package ru.mail.polis.shkalev; import org.junit.jupiter.api.RepeatedTest; import org.junit.jupiter.api.Test; import ru.mail.polis.service.shkalev.Address; import ru.mail.polis.service.shkalev.Replicas; import ru.mail.polis.service.shkalev.Ring; import ru.mail.polis.service.shkalev.Topology; import java.nio.ByteBuffer...
<!DOCTYPE html> <html> <head> <title>Customer Feedback Form</title> <style type="text/css"> .customer-feedback-form { max-width: 600px; padding: 15px; margin: 0 auto; font-family: sans-serif; } .customer-feedback-form input { width: 100%; padding: 10px; border: 1px solid #000; ...
#!/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}" # Used as a return value for each invocation of `strip_invalid_archs` function. STRIP_BINARY_RET...
export {}; //# sourceMappingURL=badge.js.map
#!/bin/bash # # $Id: //Infrastructure/GitHub/Database/backup_and_sync/backup_scripts/db_backup.sh#2 $ # # Backup the database # - Work out the parameters and run the rman backup # # # Exit if backup already running # function set_current_secs { local __return_val=$1 local __current_secs=$(date +%s) eval...
package brute_force; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.StringTokenizer; /** * * @author minchoba * 백준 1233번: 주사위 * * @see https://www.acmicpc.net/problem/1233/ * */ public class Boj1233 { private static final int MAX = 81; public static void main(String[] ar...
#!/bin/bash # # Copyright (c) 2020 Huawei Technologies Co.,Ltd. # # openGauss is licensed under Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a copy of Mulan PSL v2 at: # # http://license.coscl.org.cn/MulanPSL2 # # THIS SOFTWARE IS PROV...
mysql -u iot3 -pIOT3210TY
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DSA-2965-1 # # Security announcement date: 2014-06-22 00:00:00 UTC # Script generation date: 2017-02-07 21:05:14 UTC # # Operating System: Debian 7 (Wheezy) # Architecture: i386 # # Vulnerable packages fix on version: # - tiff:4.0.2-6+deb7u3 # # Last versions...
import java.security.SecureRandom; public class PasswordGenerator { private static final String UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; private static final String LOWER = "abcdefghijklmnopqrstuvwxyz"; private static final String DIGITS = "0123456789"; private static final String SPECIAL = "!@#$%^&*()_+-...
/** * The MIT License * * Copyright (C) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify,...
<filename>src/qt/qtipcserver.h #ifndef QTIPCSERVER_H #define QTIPCSERVER_H // Define Cubits-Qt message queue name #define BOUNTYCOINURI_QUEUE_NAME "CubitsURI" void ipcScanRelay(int argc, char *argv[]); void ipcInit(int argc, char *argv[]); #endif // QTIPCSERVER_H
import UIKit class EntertainmentViewController: UIViewController { @IBOutlet weak var vwConnectionControl: UIView! @IBOutlet weak var vwVolumeControl: UIView! @IBOutlet weak var btnMuteOnOff: UIButton! @IBOutlet weak var btnPowerOff: UIButton! @IBOutlet weak var btnAVOnOff: UIButton! @IBOutlet ...
<gh_stars>0 export class GridColumn { cellRendererParams?: any; cellRenderer?: string; headerName: string field?: string sortable?: boolean hide?: boolean filter?: string menuTabs?: string[] filterParams?: { options?: any[] } children?: GridColumn[]; width?: number; }
require 'test_helper' class Gingerr::Test < ActiveSupport::TestCase test "truth" do assert_kind_of Module, Gingerr end end
#!/bin/bash set -exuo pipefail # Generate the package.json to use node /usr/utils/generate-package-json.js # Install dependencies npm install npm install eslint@6.0.0 # Use the local volumes for our own packages npm install $(npm pack /usr/types | tail -1) npm install $(npm pack /usr/visitor-keys | tail -1) npm inst...
<filename>frontend/projects/commons/src/lib/config/application-id-header-interceptor.service.ts<gh_stars>1-10 import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; import {Observable} from 'rxjs'; import {ConfigurationService} from 'projects/commons/src/lib/config/configuration.serv...
package com.njlabs.showjava.ui; import android.annotation.*; import android.content.*; import android.content.pm.*; import android.net.*; import android.os.*; import android.preference.*; import android.provider.*; import android.support.v7.app.*; import android.support.v7.widget.*; import android.view.*; import com....
#!/bin/bash # Fail on any error. set -e # Treat unset variables an error. set -u # Print commands as executed. set -x apt-get update # Install a system-wide OpenSSL headers. apt-get -y install libssl-dev apt-get -y install software-properties-common add-apt-repository ppa:git-core/ppa apt-get -y update apt-get -y i...
package iscsinl import ( "bytes" "encoding/binary" "errors" "fmt" "io/ioutil" "log" "strconv" "sync/atomic" "syscall" "unsafe" "github.com/vishvananda/netlink/nl" "golang.org/x/sys/unix" ) // STOP_CONN_RECOVER - when stopping connection clean up I/O on that connection const STOP_CONN_RECOVER = 0x3 // Is...
const Employee = require(`../lib/Employee`); describe(`Employee`,() => { test(`Can instantiate Employee Instance`,() => { const type = new Employee(); expect(typeof type).toBe(`object`); }) }) describe(`Employee Name`,() => { test(`Employee Name is a usable String`,() => { const na...
/* * 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 org.fhwa.c2cri.tmdd.emulation.videoswitch; import java.util.ArrayList; import java.util.List; import org.fhwa.c2cri.centermode...
import * as actions from 'actions/questions'; import types from 'constants/constants'; describe('actions of questions', () => { it('should create an action of add answer', () => { const desired_result = { type: types.QUESTION_ANSWERED, topic: { text: 'A topic', max: 'max cate...
#!!!!!!This will overwrite your excel file!!!!!!!!!!!! # excel file must have an empty first column import pandas as pd import os from openpyxl import load_workbook file=input('File Path: ') pth=os.path.dirname(file) df=pd.read_excel(file) file_cols = list(df)#Alternate to # file_cols = df.columns...
<reponame>alterem/smartCityService package com.zhcs.service.impl; import java.math.BigDecimal; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.zhcs.context.PlatformContext; import com.zhcs.dao.SysSer...
#!/bin/bash set -e set -x clang --version gcc --version cmake --version lsb_release -a pkg-config --version DEBUG="yes" if [ "$BUILD_MODE" == "Release" ]; then DEBUG="no" fi CONFIGURE_PARAM="--enable-debug=$DEBUG --prefix=$PWD" if [ "$BUILD_TYPE" == "automake" ]; then ./autogen.sh ./configure $CONFIGURE_PARAM -...
const axios = require('axios'); function fetchData(url) { return axios.get(url) .then(response => { return response.data; }) .catch(err => { throw err; }); } module.exports = fetchData;
class NotesController < ApplicationController before_action :find_bat_for_notes, only: [:new, :create, :index] def index @notes = @bat.notes.all end def new @note = @bat.notes.build end def create @note = @bat.notes.build(note_params) @note.researcher_id = curr...
def container_application(): print("Welcome to the container application!") print("Enter the numbers separated by a space:") nums = input().split() sum = 0 for num in nums: sum += int(num) print("The sum of the numbers is:", sum) container_application()
module.exports = function (bot) { bot.on('userLeave', function (data) { console.log('[LEAVE]', 'User left: ' + data.username); models.User.update({last_leave: new Date()}, {where: {site: config.site, site_id: data.id.toString()}}); }); };
#!/bin/bash # ------------------------------------------------ # Script's path # ------------------------------------------------ SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURC...
<gh_stars>100-1000 package sonic import ( "bufio" "github.com/expectedsh/go-sonic/sonic" log "github.com/sirupsen/logrus" "os" "regexp" . "searchIndex/common" "searchIndex/entity" "searchIndex/utils" "strings" ) func CreateIndex(posts []entity.Post) { var list []sonic.IngestBulkRecord for _, item := rang...
<filename>zod-discovery-service/eureka-server/src/main/java/com/infamous/zod/eureka/server/ApplicationController.java<gh_stars>0 package com.infamous.zod.eureka.server; import com.netflix.appinfo.InstanceInfo; import com.netflix.discovery.shared.Application; import com.netflix.eureka.registry.PeerAwareInstanceRegistry...
// LED controller class template <typename _led> class LedController { private: hwcpp::pin_out< _led > ledPin; // LED pin public: // Constructor LedController() : ledPin() { // Initialize the LED pin } // Function to turn the LED on void turnOn() { ledPin.set(true); } ...
package com.prisma.shared.errors abstract class UserFacingError(message: String, errorCode: Int) extends Exception { val code: Int = errorCode } trait WithSchemaError { def schemaError: Option[SchemaError] = None } abstract class SystemApiError(message: String, errorCode: Int) extends UserFacingError(message, er...
<gh_stars>1-10 package com.lightbend.hedgehog.generators.akka.http import akka.NotUsed import akka.http.scaladsl.model.HttpEntity.CloseDelimited import akka.http.scaladsl.model.{HttpProtocol, HttpProtocols, ResponseEntity, StatusCode} import akka.stream.scaladsl.Source import akka.util.ByteString import com.lightbend....
#!/bin/bash sh build.sh status=$? ## take some decision ## if [ $status -ne 0 ]; then echo "FAILED!" exit 1 fi currentWINEdir="Z:\\$(pwd | sed 's#/#\\#g' )" /Applications/Warcraft\ III/x86_64/Warcraft\ III.app/Contents/MacOS/Warcraft\ III -loadfile target/map.w3x #exec wine ~/.wine/drive_c/Program\ ...
#! /bin/bash # local bash completion files if [ -z "${BASH_COMPLETION_INC}" ]; then BASH_COMPLETION_INC=$HOME/.bash_completion.d fi if [[ -d ${BASH_COMPLETION_INC} ]]; then for i in ${BASH_COMPLETION_INC}/*.*sh; do if [ -r $i ]; then . $i fi done unset i fi
export const calculateProblemLength = async (id: string): Promise<number> => { let line = 1; // Assuming the problem statement is on line 1 const guess = ''; // Empty guess as we only need to retrieve the length const res = await checkGuess(id, guess, line); if (res.correct) { return res.length; // Return t...
package dev.patika.schoolmanagementsystem.service; import dev.patika.schoolmanagementsystem.entity.*; import dev.patika.schoolmanagementsystem.repository.AddressRepository; import dev.patika.schoolmanagementsystem.repository.InstructorRepository; import lombok.RequiredArgsConstructor; import org.springframework.stereo...
<filename>src/app/party.ts import { get_pitch } from "./pitchdetect"; import $ from "jquery"; function party(colors: Colors, callback: CalculateCallback): void { // Get Stream navigator.mediaDevices .getUserMedia({ // eslint-disable-next-line // @ts-ignore audio: { m...
#!/bin/bash set -xe # Why no workspace? Each board has a different memory.x and in # some cases, different core device, so building in a workspace # will try to link the wrong pieces together. We have to build # each board as its own entity. cargo build --manifest-path boards/metro_m0/Cargo.toml --example blinky_ba...
#!/bin/sh # reads to REMOVE (-F): # unmapped reads 4 + # supplementary alignment 2048 = # ------- # total 2052 samtools view -F 2052 results.sam > filtered_res.sam
package models; import java.util.ArrayList; import java.util.Iterator; public class Hotelmanager{ private ArrayList<Hotel>Mountain_Resorts=new ArrayList<Hotel>(); private static Hotelmanager manager = new Hotelmanager(); private Hotelmanager() { if(Mountain_Resorts.size()==0){ Mountain_Res...
import React, { useEffect, useMemo, useState } from 'react'; import { RouteComponentProps } from 'react-router-dom'; import { Col, Row } from 'antd'; import BackButton from 'components/common/backButton/backButton'; import { routes } from 'components/router/routes'; import Dictionary from 'dictionary/dictionary'; impo...
<reponame>freepn/freepn_marketing_site import React, { useState } from 'react'; import { Link } from "gatsby" import { OutboundLink } from "gatsby-plugin-google-analytics" import style from "../../styles/shared/header.module.scss" import FreePN from "../../../static/images/freepn.svg" function Header() { const [coll...
<reponame>ghsecuritylab/bk7231_rtt_sdk<filename>samples/airkiss_lan/weixin_config_custom.c #include "weixin_config_custom.h" const char *WEIXIN_DEVICE_TYPE = "gh_21849de4fbc1"; const char *WEIXIN_PRODUCT_ID = "31033";
import React from "react"; import ReactDOM from "react-dom"; import App from "./containers/App"; const rootEl = document.getElementById("app"); function renderApp(AppComponent, rootElement) { ReactDOM.render(<AppComponent />, rootElement); } renderApp(App, rootEl);
<gh_stars>100-1000 import { RedBlackTreeIterator, RedBlackTreeStructure, findPathToNodeByKey } from '../internals'; /** * Creates an iterator for which the first entry has the specified index in the tree. If the key does not exist in the * tree, an empty iterator is returned. * * @export * @template K The type of...
#!/bin/bash ## Set Cronjob - Run 25th of Everymonth ## */3 * * * * /etc/ssl-expiry-reminder/sslcheck.sh > /dev/null 2>&1 echo -e "SSL Expiry Reminder" ## List the Domains to check SSL Expiry Date and Days sleep 1; node check.js santhoshveer.com sleep 2; node check.js forum.santhoshveer.com sleep 2; node check.js st...
#!/bin/sh arecord -D plughw:1,0 -d 5 -t raw -c 1 -r 16000 -f S16_LE | python stdin_mod.py
for i in `seq 1 10`; do bash ../scripts/timing_deliver_sequential.sh ; mv log.txt tds.$i.log; done mv tds.* ../logs/ for i in `seq 1 10`; do bash ../scripts/timing_deliver_parallel.sh ; mv log.txt tdp.$i.log; done mv tdp.* ../logs/
#!/usr/bin/env bash set -e dir="$(pwd)" cacheDir="${CACHE_DIR:-"$HOME/.kibana"}" RED='\033[0;31m' C_RESET='\033[0m' # Reset color ### ### Since the Jenkins logging output collector doesn't look like a TTY ### Node/Chalk and other color libs disable their color output. But Jenkins ### can handle color fine, so this ...
import { storiesOf } from "@storybook/vue"; import KApp from "kiste/components/KApp"; const stories = storiesOf("Classes|formatted/paragraph", module); stories.add("default", () => ({ components: { KApp }, template: ` <KApp> <div class="content"> <h1 class="heading--1">Title</h1> <p clas...
<reponame>weltam/idylfin /** * Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.maths.lowlevelapi.slatec.fnlib; import com.opengamma.maths.commonapi.exceptions.MathsExceptionIllegalArgument; import com.opengamma.m...
/* * 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 org.fhwa.c2cri.gui.wizard; import com.github.cjwizard.APageFactory; import com.github.cjwizard.WizardPage; import com.github.c...
<gh_stars>1-10 // Copyright 2019-2020, University of Colorado Boulder /** * Statistics functions for Dot. * * @author <NAME> (PhET Interactive Simulations) */ import dot from './dot.js'; const Stats = { /** * Inspired by https://stackoverflow.com/questions/30893443/highcharts-boxplots-how-to-get-five-point...
#!/usr/bin/env bash . lib.sh ## Initialize FINALRC=0 CURRENTHASH=$(git rev-parse HEAD) ## Basic sanity check for ALL zones log_info1 "Check zone syntax of all zones with named-checkzone" for zone in *.zone; do log_info2 "Checking zone ${zone}..." named-checkzone -i local "${zone%.zone}" "$zone"; [ $? -eq 0 ] |...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tendermint/types/validator.proto package types import ( fmt "fmt" crypto "github.com/arcology-network/consensus-engine/proto/tendermint/crypto" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bi...
<reponame>fujunwei/dldt<gh_stars>1-10 // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "list.hpp" #include "base.hpp" #include <cmath> #include <string> #include <vector> #include <cassert> #include "ie_parallel.hpp" namespace InferenceEngine { namespace Extensions { na...
#!/usr/bin/env bash # Author: yulinzhihou <yulinzhihou@gmail.com> # Forum: https://gsgamesahre.com # Project: https://github.com/yulinzhihou/gs_tl_env.git # Date : 2021-02-01 # Notes: GS_TL_Env for CentOS/RedHat 7+ Debian 10+ and Ubuntu 18+ # comment: 用来配置网站访问。默认网站内容请自觉上传到/tlgame/www/gsgm/public 目录下 if [ -f ./color....
import discord async def manage_channels(guild_channels, guild): # Assuming 'client' is the Discord bot client client = discord.Client() # Assuming 'token' is the bot's token await client.login('token') # Assuming 'ctx' is the context for the guild ctx = await client.get_guild(guild) # Del...