text
stringlengths
1
1.05M
<gh_stars>0 package itunes type Picture struct { RawData }
<filename>easy_logger/config.py #!/usr/bin/env python # -*- coding: utf-8 -*- import logging DEFAULT_LEVEL = logging.INFO DEFAULT_FORMAT = '%(asctime)s - %(levelname)s - %(name)s - %(message)s'
<filename>back/src/main/java/com/java110/things/kafka/IotServiceKafka.java<gh_stars>0 package com.java110.things.kafka; import com.alibaba.fastjson.JSONObject; import com.java110.things.entity.app.AppDto; import com.java110.things.factory.ApplicationContextFactory; import com.java110.things.factory.AuthenticationFacto...
import { RowNode } from "@ag-grid-community/core"; // doing _.removeFromArray() multiple times on a large list can be a bottleneck. // when doing large deletes (eg removing 1,000 rows) then we would be calling _.removeFromArray() // a thousands of times, in particular RootNode.allGroupChildren could be a large list, a...
import { mapGetters, mapActions } from 'vuex' import PerfectScrollbar from 'perfect-scrollbar' import QuestionMenu from 'components/atoms/Application/QuestionMenu/QuestionMenu' import QuestionView from 'components/atoms/Application/QuestionView/QuestionView' import TabView from 'components/atoms/Application/TabView/Tab...
<form> <label>Name</label><input type="text" name="name"><br> <label>Email</label><input type="email" name="email"><br> <input type="submit" value="Submit"> </form>
import * as activity from '@temporalio/activity'; import { Connection } from '@temporalio/client'; import { ActivityExecuteInput, ActivityInboundCallsInterceptor, Next } from '@temporalio/worker'; export class ConnectionInjectorInterceptor implements ActivityInboundCallsInterceptor { constructor(public readonly conn...
import * as stringModule from '../src/string' import * as orThrowModule from '../src/orThrow' import stringOrThrow from '../src/stringOrThrow' jest.spyOn(stringModule, 'default') jest.spyOn(orThrowModule, 'default') describe('.stringOrThrow()', () => { it('calls the appropriate functions', () => { const key = '...
<reponame>HamidMohammadi/iso_8583 const formats = { '4*4': { input: '4756065863847844', example: '4756********7844' }, '**4': { input: '4756065863847844', example: '************7844' }, '4**': { input: '4756065863847844', example: '4756************' }, '*4*': { input: '47560658...
#!/bin/bash fs="reiserfs" source ${src_root}/tests/test_common.sh source ${src_root}/tests/fs_common.sh source ${src_root}/tests/fsck.sh imgname=$fs-depth.img fs_scan_startup_img $fs $imgname statcount=`grep "stat_" ${src_root}/tests/scantool-$fs/$imgname.out | sort | uniq | wc -l` if [ $statcount -ne 302 ]; then ec...
<filename>main.go package main import ( "context" "flag" "net/url" "os" "os/signal" "strings" "syscall" "github.com/hekmon/vigixporter/hubeau" "github.com/hekmon/vigixporter/watcher" "github.com/hekmon/hllogger" systemd "github.com/iguanesolutions/go-systemd/v5" sysdnotify "github.com/iguanesolutions/go-...
/** klassi-js Copyright © 2016 - <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, merge, publish, dis...
package net.avcompris.tools.diagrammer.sample; public class MigrationScenario6_1 extends MigrationScenario6_0 { public static void main(final String... args) throws Exception { new MigrationScenario6_1(); } @Override protected void body() { v0("state=9315001"); arrow(workers0, b_data0); arrow(workers0...
#set -x MKLDNNROOT=/usr/local/ g++ -std=c++11 -I${MKLDNNROOT}/include -L${MKLDNNROOT}/lib mkldnn_dense_convolution.cpp -lmkldnn -o spconv_mkldnn_result ./spconv_mkldnn_result
<reponame>mosaic-cloud/mosaic-distribution-dependencies /* * %CopyrightBegin% * * Copyright Ericsson AB 2004-2010. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You sh...
#!/bin/sh sudo apt-get update sudo apt-get install python-pygame python-pil python-vlc # on dietpi/raspbian lite install xinit sudo apt-get install xinit
# !/bin/bash # Script pour lancer l'émulateur de terminale # hv 1807010.1555 sudo chmod 666 /dev/ttyUSB0 screen /dev/ttyUSB0 115200
<reponame>TauaneLima/Atividade_JavaScript describe('Devolve Vetor de Pares', () => { it('Se o vetor estiver vazio, devolve um vetor vazio', () => expect(acharPares([])).toEqual([])) })
<gh_stars>1-10 package builder import ( "fmt" "path" "sort" "time" "github.com/nicksnyder/go-i18n/i18n" "github.com/aymerick/kowa/models" "github.com/aymerick/raymond" ) // EventsBuilder builds events pages type EventsBuilder struct { *NodeBuilderBase events []*EventContent pastEvents []*EventContent...
<gh_stars>1-10 import path from "path"; import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; export default defineConfig({ build: { cssCodeSplit: true, lib: { name: "Wheel", entry: path.resolve(__dirname, "src/library.ts"), }, rollupOptions: { external: ["vue"]...
<reponame>yamanakahirofumi/RogueInJava package org.hiro.things.ringtype; import org.hiro.Const; import org.hiro.Global; import org.hiro.Obj_info; import org.hiro.Util; import org.hiro.things.Ring; import org.hiro.things.RingEnum; public class AddStrengthRing extends Ring { private int strength; public AddStr...
#!/bin/bash # Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # usage() { echo "Usage:" echo " keepContainerAlive.sh logs_dir hostname server_name" } if [ $# -ne 3 ]; then usage ...
<gh_stars>0 import Builder from './Http/Builder'; import Core from './Core'; import Request from './Http/Request'; import { IAttributes, ICachedResponses, IModelRequestOptions, IModelRequestQueryParams, } from './Interfaces'; /** * ActiveRecord * * @type {[type]} */ export default class ActiveRecor...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { DelphiTree } from './Tree'; import * as d3 from 'd3'; import { TXT_TOGGLE_TREE_OFF, TXT_TOGGLE_TREE_ON, BLOCK_INSTRUCTIONS, BLOCKS_INSTRUCT } from './Constants'; const cssfont = require('../css/bpreplay-webfont.woff'); export defa...
from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import RandomForestClassifier from tpot.builtins import StackingEstimator import pandas as pd import numpy as np # Load the Iris dataset iris = load_iris() d...
package org.infinispan.persistence.cloud.configuration; import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertTrue; import java.util.Properties; import org.infinispan.configuration.cache.Configuration; import org.infinispan.configuration.cache.ConfigurationBuilder; import org.testng.ann...
<gh_stars>0 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIColor (HBCategory) + (UIColor *)tab_normalDynamicBackgroundColor; + (UIColor *)tab_getColorWithLightColor:(UIColor *)lightColor darkColor:(UIColor * _Nullable)darkColor; /// 主题色颜色 + (UIColor *)themeTitleColor; ...
#!/usr/bin/env bash export LAB_DOMAIN=REDACTED # Our lab domain export IAAS_PREFIX=iaas- # Our lab prefix export PAAS_PREFIX=paas- # Our lab prefix # asking for name echo "Who are you? [matteo.franzil/claudio.facchinetti]: " read -r NAME_INPUT export NAME=$NAME_INPUT export EMAIL=${NAME}@REDACTED # Your unitn email as ...
def filter_strings(input_list): filtered_list = [string for string in input_list if len(string) > 5 and string.startswith('A')] return filtered_list
parallel --jobs 6 < ./results/exp_iterations/run-0/sea_mem_4n_6t_6d_1000f_617m_1i/jobs/jobs_n3.txt
<gh_stars>0 package com.tuya.iot.suite.ability.notice.model; import lombok.Data; import java.util.List; /** * <p> TODO * * @author 哲也 * @since 2021/5/11 */ @Data public class NoticeTemplateListResult { private long total; private List<NoticeTemplateList> list; private boolean has_more; @Data...
#include<iostream.h> #include<conio.h> #include<math.h> int main() { int n; float x; cout<<"Enter a number : "; cin>>n; x = (n>0&&n%2==1)? sqrt(n): pow(n,5.0); cout<<"\n"<<x; getch(); return 0; }
<filename>Javascript Full Course for Beginners to Advanced/javascript/app/examples/4.functionsMethodsAndObjects/arrayDestructuring.js /* styling */ require('styles/main.scss'); /* js */ import { log, logTitle } from 'logger'; /* your imports */ logTitle('Array Destructuring'); const names = ['Anna', 'Mariam', 'Joe', '...
package ntw import ( "fmt" "strings" ) func init() { // register the language Languages["fr-fr"] = Language{ Name: "French", Aliases: []string{"fr", "fr-fr", "fr_FR", "french"}, Flag: "🇫🇷", IntegerToWords: IntegerToFrFr, } } // IntegerToFrFr converts an integer to French words func IntegerToFrF...
package sshvault import ( "fmt" "syscall" "golang.org/x/crypto/ssh/terminal" ) // GetPasswordPrompt ask for key passoword func (v *vault) GetPasswordPrompt() ([]byte, error) { fmt.Printf("Enter the key password (%s)\n", v.key) keyPassword, err := terminal.ReadPassword(int(syscall.Stdin)) if err != nil { retu...
<reponame>tabatsky/imctools import logging import os import imctools.io.mcdxmlparser as mcdmeta import zipfile logger = logging.getLogger(__name__) class ImcFolderWriter(object): """ A class to write an imc folder """ def __init__(self, out_folder, mcddata=None, imcacquisitions=None, mcdmeta=None): ""...
class car(): def __init__(self, color, speed, passengers, max_speed): self.color = color self.speed = speed self.passengers = passengers self.max_speed = max_speed def accelerate(self): self.speed += 5 def decrease(self): self.speed -= 5 ...
#!/bin/sh set -e # Helper function to exit on nonzero code function exitOnFailureCode() { if [ $1 -ne 0 ] then echo "Error occurred, abort" git checkout . exit $1 fi } # clean if [ -n $1 ] && [ "$1" == "clean" ]; then rm -rf builtFramework echo "Cleaning Completed" exit 0 fi rm -rf b...
package kbasesearchengine.events; import java.time.Instant; import java.util.Arrays; import java.util.Comparator; import java.util.HashSet; import java.util.PriorityQueue; import java.util.Set; import com.google.common.base.Optional; import kbasesearchengine.events.exceptions.NoSuchEventException; import kbasesearch...
<?php $numbers = explode(" ", $_POST['input']); $total = 0.0; $minimum = PHP_INT_MAX; $maximum = -PHP_INT_MAX; for($i = 0; $i < count($numbers); $i++) { $total += (int) $numbers[$i]; if((int) $numbers[$i] < $minimum) $minimum = (int) $numbers[$i]; if((int) $numbers[$i] > $maximum) $max...
#!/bin/bash az network vnet create -g ${RESOURCE_GROUP} -n DualCustomVNET --address-prefixes 10.100.0.0/24 10.200.0.0/24 --subnet-name DualMasterSubnet --subnet-prefix 10.100.0.0/24 az network vnet subnet create --name DualAgentSubnet --address-prefix 10.200.0.0/24 -g ${RESOURCE_GROUP} --vnet-name DualCustomVNET temp...
package codecheck.github.exceptions import org.json4s.JValue class NotFoundException(body: JValue) extends GitHubAPIException(body)
var express = require("express") var app = express() const path = require("path") var http = require("http").createServer(app) var io = require("socket.io")(http) app.use(express.static(path.join(__dirname, "public"))) //Local var client = require("./instagram/Client"); var globals = require("./instagram/Gl...
<gh_stars>0 Pod::Spec.new do |s| s.name = "JVNotifications" s.version = "0.2.0" s.summary = "Facebook style notification persistence" s.description = <<-DESC This will allow you to manage notifications and persist them using Realm DESC s.homepage = "https:/...
package com.threathunter.bordercollie.slot.compute.cache.wrapper.builtin; import com.threathunter.bordercollie.slot.compute.cache.CacheType; import com.threathunter.bordercollie.slot.compute.cache.StorageType; import com.threathunter.bordercollie.slot.compute.cache.storage.BuiltinCacheStore; import com.threathunter.bo...
<reponame>df-service-e2e-test/x_khu2_9th_stress_test_5<gh_stars>1-10 /* * Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *...
Scalr.regPage('Scalr.ui.dnszones.view', function (loadParams, moduleParams) { var store = Ext.create('store.store', { fields: [ { name: 'id', type: 'int' }, { name: 'client_id', type: 'int' }, 'zone_name', 'status', 'role_name', 'farm_roleid', 'dtlastmodified', 'farm_id', 'farm_name' ], proxy: { type...
package br.com.zup.mercadolivre.finalizarcompra; import br.com.zup.mercadolivre.finalizarcompra.fechamentoCompra.GatewayPagamento; import org.springframework.web.util.UriComponentsBuilder; public class PagseguroGateway implements Gatway{ @Override public String redirecionamentoGatway(UriComponentsBuilder co...
#!/usr/bin/env bash # Copyright 2018 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
#!/bin/bash -f #********************************************************************************************************* # Vivado (TM) v2021.2 (64-bit) # # Filename : data_mem.sh # Simulator : Mentor Graphics Questa Advanced Simulator # Description : Simulation script for compiling, elaborating and verifying the ...
def convert_to_hex(numbers): result = "" for n in numbers: result += hex(n)[2:] return result
<gh_stars>1-10 import numpy as np from lifelines.datasets import load_gbsg2 from elastic_surv.dataset import PandasDataset from elastic_surv.models import DeepHitModel def load_data() -> tuple: raw_dataset = load_gbsg2() time_column = "time" event_column = "cens" features = np.setdiff1d(raw_dataset...
class ImageDatasetManager: def __init__(self): self.datasets = {} def add_dataset(self, identifier, name): if identifier not in self.datasets: self.datasets[identifier] = name else: raise ValueError(f"Dataset with identifier '{identifier}' already exists") d...
///////////////////////////////////////////////////////////////////////////// // Name: taskbarbutton.cpp // Purpose: wxTaskBarButton sample // Author: <NAME> <<EMAIL>> // Created: 2014-04-30 // Copyright: (c) 2014 wxWidgets development team // Licence: wxWindows licence ///////////////////////...
// CBacnetBuildingRoomEditor.cpp: 实现文件 // #include "stdafx.h" #include "T3000.h" #include "CBacnetBuildingRoomEditor.h" #include "afxdialogex.h" // CBacnetBuildingRoomEditor 对话框 IMPLEMENT_DYNAMIC(CBacnetBuildingRoomEditor, CDialogEx) CBacnetBuildingRoomEditor::CBacnetBuildingRoomEditor(CWnd* pParent /*=nullptr*/)...
import * as vscode from "vscode"; const textHeadPos = new vscode.Position(0, 0); export const openNote = (uri: any) => { console.log("openNote", uri); openUrl(uri); }; export const openUrl = (url: string, pos: vscode.Position = textHeadPos) => { vscode.workspace.openTextDocument(url).then((doc) => { vscode...
#!/bin/bash # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. if ! [[ "$2" =~ ^(git@)?(www.)?github.com(:|/)adnetcoin/adnetcoin(.git)?$ ]]; then exit 0 fi while read LINE; d...
#!/bin/bash # Copyright (c) Lawrence Livermore National Security, LLC and other Ascent # Project developers. See top-level LICENSE AND COPYRIGHT files for dates and # other details. No copyright assignment is required to contribute to Ascent. set -ev export TAG_BASE=alpinedav/ascent-ci:ubuntu-21.04-devel-tpls date p...
<filename>server/src/main/java/com/portfolio/bugtracker/services/UserRolesService.java<gh_stars>0 package com.portfolio.bugtracker.services; public interface UserRolesService { }
def fibonacci_series(n): # initialize first two Fibonacci Numbers a = 0 b = 1 # We have to calculate Fibonacci till n for _ in range(0, n): # add previous two numbers and assign it to 'a' a, b = b, a + b print(a, end=" ")
python3 ckpt2pb.py --model_dir fcn8s_mobilenet/checkpoints/best --output_node_names network/output/Softmax >> fcn8s_mobilenet.log
def is_leap_year(year): if year % 4 == 0 and (year % 100 != 0 or year % 400 == 0): return True return False
<filename>FactoriOres/src/main/java/seraphaestus/factoriores/worldgen/WorldGenEventHandler.java package seraphaestus.factoriores.worldgen; import net.minecraft.world.gen.GenerationStage; import net.minecraft.world.gen.feature.ConfiguredFeature; import net.minecraftforge.event.world.BiomeLoadingEvent; import net.m...
<gh_stars>0 package com.example.demo.model; import org.hibernate.annotations.GenericGenerator; import org.springframework.transaction.annotation.Transactional; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.p...
#!/bin/sh CLASSPATH=$CLASSPATH:/usr/local/java/xerces-2_11_0-xml-schema-1.1-beta/xercesImpl.jar:/usr/local/java/xerces-2_11_0-xml-schema-1.1-beta/xercesSamples.jar:/usr/local/java/xerces-2_11_0-xml-schema-1.1-beta/org.eclipse.wst.xml.xpath2.processor_1.1.0.jar:/usr/local/java/xerces-2_11_0-xml-schema-1.1-beta/resolver...
#!/bin/sh # shellcheck disable=SC2086 # FIXME: fix these globing warnings set -e die() { echo "die: $*" exit 1 } SCRIPT_DIR="$(dirname "${0}")" # https://www.shellcheck.net/wiki/SC1090 No need to shellcheck private config. # shellcheck source=/dev/null [ -x "$SCRIPT_DIR/../run-local.sh" ] && . "$SCRIPT_DIR/...
<filename>gameCenter/src/main/java/com/shiliu/game/domain/UserGame.java package com.shiliu.game.domain; import java.util.Date; import com.shiliu.game.utils.LongIdWorker; public class UserGame { private Long userGameId = LongIdWorker.getDataId(); private String phone; private String openid; private ...
func main() { arr := []int{3, 5, 8, 7, 2} max := arr[0] for i := 1; i < len(arr); i++ { if arr[i] > max { max = arr[i] } } fmt.Println("The highest value is:", max) }
#!/bin/bash shellExit() { if [ $1 -eq 1 ]; then printf "\nfailed!!!\n\n" exit 1 fi } printf "\nInit db\n\n" time go run -v ./cmd/init/db/main.go -addr $1 -user $2 -pass $3 -name $4 shellExit $? printf "\nDone.\n\n"
#!/bin/bash # Copyright 2015 The Kubernetes 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 ...
<reponame>nimoqqq/roses /* * Copyright [2020-2030] [https://www.stylefeng.cn] * * 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 * * Unles...
#!/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 # distrib...
#!/bin/sh cd "$(dirname "$0")"/../.. python ./scripts/cleanup_datasets/cleanup_datasets.py -d 60 -2 -r "$@" >> ./scripts/cleanup_datasets/purge_histories.log
<filename>raw/local_Holiday_maintenance.sql<gh_stars>0 SELECT add_months('20/04/2021',96) from dual SELECT * FROM sttm_lcl_hol_master hm WHERE hm.year = 2029 FOR UPDATE NOWAIT; insert into sttm_lcl_holiday SELECT * FROM sttm_lcl_holiday lh WHERE lh.year =2029
<filename>data-mongodb/src/test/java/io/micronaut/data/document/mongodb/repositories/MongoZoneRepository.java<gh_stars>100-1000 package io.micronaut.data.document.mongodb.repositories; import io.micronaut.data.mongodb.annotation.MongoRepository; import io.micronaut.data.document.tck.repositories.ZoneRepository; @Mong...
import pandas as pd from sklearn.model_selection import train_test_split from keras.preprocessing.text import Tokenizer from keras.preprocessing.sequence import pad_sequences from keras.models import Sequential from keras.layers import Embedding, Dense, Flatten, Conv1D, MaxPooling1D, Dropout # load data df = pd.read_c...
<reponame>arcadium-dev/core // Copyright 2021 arcadium.dev <<EMAIL>> // // 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 requ...
package com.grasea.grandroid.ble.data; import android.bluetooth.BluetoothGattCharacteristic; import com.grasea.grandroid.ble.BluetoothLeService; /** * Created by <NAME> on 2016/5/13. */ public interface CharacteristicHandler { boolean startListenBleData(); boolean stopListenBleData(); boolean isSend...
import_configuration(){ if [ ! -f /opt/softwareag/common/conf/.persistent/initialized ] && [ -f /tmp/config.xml ] then echo " importing configuration" until /opt/softwareag/UniversalMessaging/tools/runner/runUMTool.sh ImportRealmXML -rname=nsp://localhost:9000 -filename=/tmp/config.xml -importall=true; do sleep...
#!/bin/bash set +e SDIR=$(dirname "$0") source $SDIR/env.sh sleep 2 mkdir -p organizations/ordererOrganizations/$DOMAIN export FABRIC_CA_CLIENT_HOME=/organizations/ordererOrganizations/$DOMAIN for ORG in $ORDERER_ORGS; do initOrgVars $ORG set -x fabric-ca-client enroll -u https://$CA_ADMIN_USER_PASS@$CA_N...
<filename>pkg/labels/mocklabels/mock.go package mocklabels import "github.com/caos/orbos/pkg/labels" var ( productKey = "app.kubernetes.io/part-of" productVal = "MOCKING" operatorKey = "app.kubernetes.io/managed-by" operatorVal = "test.caos.ch" operatorVersionKey = "app.kubernetes.i...
def multiply_by_index(numbers): for i in range(len(numbers)): numbers[i] *= i return numbers
<gh_stars>1-10 package mongoid import ( "math/cmplx" "reflect" . "github.com/onsi/ginkgo" // . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" "go.mongodb.org/mongo-driver/bson" ) var _ = Describe("structValuesFromBsonM()", func() { Context("updating types of struct field values by name...
import Node from '../src/node'; describe('Node', () => { describe('constructer', () => { test('new Node', () => { const i = new Node(); expect(i).not.toBeNull(); }); }); describe('toString', () => { test('string expression', () => { const i = new Node(); const str = `${i}`; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_folder_outline = void 0; var ic_folder_outline = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" }, "children": [] }, { "name": "p...
#!/bin/bash ########################################################################## # Backup-Switch-Huawei-S6720 # Filename: bck-switch-huawei.sh # Revision: 1.0 # Date: 17/06/2019 # By: Bruno Cavalcante # Mail: brunopentest@gmail.com # EX Execute: # ./bck-switch-huawei.sh 192.168.0.1 backup-sw-huawei #############...
package fracCalc; import org.junit.Test; import static org.junit.Assert.assertEquals; public class FracCalcTestExtraCreditMultipleOps { // Extra credit only @Test public void multipleOps1() {assertEquals("-20/21", FracCalc.produceAnswer("1_2/3 + 5/4 + 5_5/4 - 2_2/4 / -5_6/3"));} @Test public void multipleOps2...
<gh_stars>0 import ArtworksByFollowedArtists from 'desktop/apps/auction/components/artwork_browser/ArtworksByFollowedArtists' import PromotedSaleArtworks from 'desktop/apps/auction/components/artwork_browser/PromotedSaleArtworks' import ArtworkBrowser from 'desktop/apps/auction/components/artwork_browser/ArtworkBrowser...
import {IsMulti} from "./types" /** * @description * Функция проверяет по индексу, является ли контрол мульти * * @param {number | null} controlIndex - Индекс контрола * * @returns {boolean} */ export const isMultiControl:IsMulti = (controlIndex) => { return controlIndex !== null } /** * @description * Ф...
<gh_stars>10-100 package com.telenav.osv.network.model.image; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.telenav.osv.network.model.generic.ResponseModelStatus; import com.telenav.osv.network.model.generic.ResponseNetworkBase; import com.telenav.osv.network....
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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 agre...
import Bio from 'components/Bio' import PortfolioCard from 'components/PortfolioCard' import SEO from 'components/seo' import { graphql } from 'gatsby' import React from 'react' import styled from 'styled-components' const PortfolioStyles = styled.div` color: var(--color); ` const AllPortfolioStyles = styled.div` ...
BEGIN TRANSACTION SET QUOTED_IDENTIFIER ON SET ARITHABORT ON SET NUMERIC_ROUNDABORT OFF SET CONCAT_NULL_YIELDS_NULL ON SET ANSI_NULLS ON SET ANSI_PADDING ON SET ANSI_WARNINGS ON GO CREATE TABLE [dbo].[AUTH_IMAGE_CATEGORIES]( [ID] [int] IDENTITY(1,1) NOT NULL, [CATEGORY] [nvarchar](50) NOT NULL, CONSTR...
#include <stdio.h> #include <stdint.h> #include <strings.h> #define MAX 8192 typedef struct __attribute__((__packed__)) { char* str; uint32_t sum; } Entry; Entry list[MAX] = { { 0 } }; // Messy swap macros to be used in sorting // Swap string #define SSTR(a, b, c) (list[a].str = ((char*)((int64_t)list[b].str ^ ...
<filename>actors/sunbird-lms-mw/actors/user/src/main/java/org/sunbird/user/actors/UserRoleActor.java package org.sunbird.user.actors; import java.util.*; import org.sunbird.actor.router.ActorConfig; import org.sunbird.cassandra.CassandraOperation; import org.sunbird.common.exception.ProjectCommonException; import org....
#!/bin/bash current_dir=$(pwd) share_dir=$current_dir/oracle_share rm -rf $share_dir mkdir -p $share_dir cp $current_dir/share/krb5.conf $share_dir cp $current_dir/share/oracle.keytab $share_dir cp $current_dir/share/oracle_krb_setup.sh $share_dir docker run -it -h example.com --mount type=bind,source=$share_dir,tar...
#!/usr/bin/env bash set -e function update_gh_branch { local branch_name branch_name=$(git branch | grep '\*' | sed 's/* //') git checkout 'gh-pages' make git add --all '_posts' git commit -m 'documentation update' git checkout "$branch_name" } update_gh_branch
<reponame>schigh/core package models import ( "time" "gopkg.in/mgo.v2/bson" ) //User struct type User struct { ID bson.ObjectId `json:"id" bson:"_id,omitempty"` FullName string `json:"fullname" bson:"fullname"` Email string `json:"email" bson:"email"` Password string `json:"password" bson:"password"` Cou...
# -*- coding: utf-8 -*- # Generated by Django 1.11.21 on 2019-06-07 11:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('js_events', '0015_speaker_vcard_enabled'), ] operations = [ migrations.Add...
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.Servo; /** * Created by lawrencemao on 1/10/2018. */ //ClawGrabberThing ...