text stringlengths 1 1.05M |
|---|
export { default as AnchorCell } from './AnchorCell';
export { default as ButtonCell } from './ButtonCell';
export { default as CheckboxCell } from './CheckboxCell';
export { default as LinkCell } from './LinkCell';
export { default as TableCell } from './TableCell';
|
declare const _default: (req: any, res: any) => Promise<void>;
/**
* @oas [get] /shipping-profiles/{id}
* operationId: "GetShippingProfilesProfile"
* summary: "Retrieve a Shipping Profile"
* description: "Retrieves a Shipping Profile."
* x-authenticated: true
* parameters:
* - (path) id=* {string} The id of th... |
package ir.doorbash.update.downloader.broadcast;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import ir.doorbash.update.downloader.service.UpdateService;
import ir.do... |
<gh_stars>1-10
import {Dimensions } from "react-native";
const h=Dimensions.get('window').height;
const w=Dimensions.get('window').width;
export default {
preview: {
flex: 1,
justifyContent: 'flex-end',
alignItems: 'center',
},
capture: {
flex: 0,
backgroundColor: '#fff',
borderRadius: 5,... |
<filename>src/SnippetCompiler.ts<gh_stars>1-10
import * as tsconfig from 'tsconfig'
import * as fsExtra from 'fs-extra'
import { TSError } from 'ts-node'
import { TypeScriptRunner } from './TypeScriptRunner'
import { PackageInfo } from './PackageInfo'
import { CodeBlockExtractor } from './CodeBlockExtractor'
import { L... |
import random
randomNumber = random.random()
print(randomNumber) |
def sum_array(A, N):
result = 0
for i in range(N):
result += A[i]
return result |
<filename>open-sphere-base/core/src/main/java/net/opengis/cat/csw/_202/GetCapabilitiesType.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/xml/jaxb</a>
// Any modificat... |
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
if [ "$1" == "--apk" ]
then
echo "Building APK..."
flutter build apk --release
else
echo "Building AAB..."
flutter build appbundle --release
fi |
#include <map>
#include <string>
// Element class representing an element in the priority queue
class Element {
public:
Element(const std::string& id, int priority) : id_(id), priority_(priority) {}
const std::string& GetId() const { return id_; }
int GetPriority() const { return priority_; }
private:
... |
#include <iostream>
#include <string>
#include <thread>
#include "mmv.hpp"
void input_thread(MMV &mmv)
{
while (mmv.io.is_alive()) {
std::string token;
std::cin>>token;
if (token == "KEY_CL") mmv.io.push_key(KEY_CL);
if (token == "KEY_POS") mmv.io.push_key(KEY_POS);
if (token == "KEY_M... |
<filename>temp_old/ui.py
"""Use lamp_setup_app.py to calibrate all labware first
If you need to control gpios, first stop the robot server with systemctl stop opentrons-robot-server. Until you restart the server with systemctl start opentrons-robot-server, you will be unable to control the robot using the Opentrons app... |
#!/usr/bin/env bash
set -x
set -e
DLNAME=V1_01_easy
wget http://robotics.ethz.ch/~asl-datasets/ijrr_euroc_mav_dataset/vicon_room1/$DLNAME/$DLNAME.zip
unzip -d $DLNAME $DLNAME.zip
rm $DLNAME.zip
rm -rf $DLNAME/__MACOSX
chmod -R go-w $DLNAME
|
def mean(lst):
return sum(lst) / len(lst)
def std_dev(lst):
avg = mean(lst)
variance = 0
for num in lst:
variance += (num - avg)**2
variance /= len(lst)
return variance**0.5
# Driver Code
lst = [5, 7, 10, 8, 6]
print("Mean: ", mean(lst))
print("Standard Deviation: ", std_dev(lst)) |
#!/bin/sh
set -eu
thispath=`perl -MCwd=realpath -le'print(realpath(\$ARGV[0]))' -- "${0}"`
if [ -d "${thispath%*.sh}" ]; then
dir=${thispath%*.sh}
else
dir=${thispath%/*}/target
fi
. "${dir}/config.inc.sh"
PATH="${JAVA_HOME}/bin:${PATH}" CLASSPATH="${dir}/classes:`cat "${dir}/mdep.classpath"`" \
exec java o... |
module IntuitOAuth
class Config
DISCOVERY_URL_SANDBOX = 'https://developer.intuit.com/.well-known/openid_sandbox_configuration/'
DISCOVERY_URL_PROD = 'https://developer.intuit.com/.well-known/openid_configuration/'
MIGRATION_URL_SANDBOX = 'https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate'... |
import tweepy
# Replace the API_KEY and API_SECRET with your application's key and secret.
auth = tweepy.AppAuthHandler(API_KEY, API_SECRET)
api = tweepy.API(auth, wait_on_rate_limit=True,
wait_on_rate_limit_notify=True)
# Replace the hashtag with your hashtag of interest.
hashtag = '#100DaysOfCode'
# Fetch the tw... |
#!/usr/bin/env bash
#
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "... |
class CustomError extends Error {
constructor(
message = 'An unknown error has occurred',
responseCode = 550,
...parameters
) {
super(...parameters);
Error.captureStackTrace(this, CustomError);
this.message = message;
this.responseCode = responseCode;
}
}
module.exports = CustomError;... |
<reponame>zeeskhan1990/proto
const basePallette = {
alert:'#d83b01',
alertBackground:'#deecf9',
black:'#000000',
blackTranslucent40:'rgba(0,0,0,.4)',
blue:'#0078d7',
blueDark:'#002050',
blueLight:'#00bcf2',
blueMid:'#00188f',
error:'#a80000',
errorBackground:'#fde7e9',
green:... |
#! /bin/sh
. ../env.sh
mkdir -p log pid conf
./zstop.sh
v=
v=-v
v=-q
cleardb() {
echo "Clearing database $1"
psql -q -d $1 -c '
set client_min_messages=warning;
drop schema if exists londiste cascade;
drop schema if exists pgq_ext cascade;
drop schema if exists pgq_node cascade;
d... |
#!/usr/bin/env sh
set -euo pipefail
cd $XCS_PRIMARY_REPO_DIR
sh Scripts/analyze.sh iOS
sh Scripts/upload.sh
|
<gh_stars>1-10
# frozen_string_literal: true
module Qernel
module Reconciliation
# Electrolysers are a special-case producer whose load profile is based on
# the electricity output by another node.
#
# The electricity node is expected to be the only input to the electrolyser,
# and will have a se... |
from django.db import models
# Create your models here.
class Ad(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
price = models.DecimalField(max_digits=10, decimal_places=2)
location = models.CharField(max_length=100)
def str(self):
return self.title |
/*
*
*/
package net.community.chest.swing.component.spinner;
import javax.swing.JSpinner;
import javax.swing.SpinnerModel;
import net.community.chest.dom.DOMUtils;
import net.community.chest.dom.proxy.XmlProxyConvertible;
import net.community.chest.dom.transform.XmlConvertible;
import org.w3c.dom.Document;
import ... |
#!/bin/sh
echo Running "nilqed/jfricas:latest"
echo Use docker commit if you want to save your changes!
echo Warning: using xhost local:root
xhost local:root
docker run -ti --network=host --env DISPLAY=$DISPLAY nilqed/jfricas:latest jupyter notebook --no-browser --allow-root
docker ps -a
xhost -local:root
echo done.
|
function multiplyDecimals(a, b) {
return parseFloat((a * b).toFixed(4));
} |
/**
* @author mconway
* Exception hierarchy for state machine
*/
package org.angrygoat.domainmachine.exception; |
package main
import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"strings"
"time"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/grafana/grafana-plugin-sdk-go/backend/datasource"
"github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt"
"github.com/grafana/grafana-plug... |
import {
Box,
Button,
Collapse,
List,
ListItem,
Modal,
ModalBody,
ModalOverlay,
ModalContent,
ModalHeader,
ModalCloseButton,
ModalFooter,
Stack,
Text
} from '@chakra-ui/react'
import {useState} from 'react'
import {FallbackProps} from 'react-error-boundary'
import {ExternalLink} from 'lib/c... |
<reponame>MunzT/ETFuse
package de.uni_stuttgart.visus.etfuse.eyetracker.gazefilter;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import de.uni_stuttgart.visus.etfuse.eyetracker.EyeTrackerEyeEvent;
import de.uni_stuttgart.visus.etfuse.eyetracker.EyeTrackerRecording;
public class IVTFilter {
... |
<reponame>tom-weatherhead/thaw-genetic
// thaw-genetic/src/interfaces/ichromosome.ts
export interface IChromosome {
fitness: number;
toString(): string;
/* eslint-disable @typescript-eslint/no-explicit-any */
compareFitness(other: any): number;
isEqualTo(other: any): boolean;
/* eslint-enable @typescript-eslint... |
<reponame>Harveyhubbell/Paid-RTOS<filename>Reference/qpc/html/search/all_17.js<gh_stars>0
var searchData=
[
['waitset_914',['waitSet',['../qxthread_8h.html#ab7f603a22e6cbc0d27a31d338cad5eb6',1,'QXSemaphore::waitSet()'],['../qxthread_8h.html#ab7f603a22e6cbc0d27a31d338cad5eb6',1,'QXMutex::waitSet()']]],
['win32_20api... |
#!python
# Copyright (C) 2017, 2019-2020 FIUBioRG
# SPDX-License-Identifier: MIT
import os
from os import path
import subprocess
from subprocess import Popen, PIPE
import sys
python_version = ".".join(map(str, sys.version_info[0:2]))
###################################################################
# HELPER FUNCTI... |
#!/bin/bash
set -e
. /webgetpics-www/setup/share.sh
sed 's/^CheckSpace/#CheckSpace/g' -i /etc/pacman.conf
pacman-key --refresh-keys
# Pacman database has changed in version 4.2 on 2014-12-29.
# Need to upgrade it first before going any further.
echo "Server = $AA_ROOT/repos/2014/12/28/\$repo/os/\$arch" \
> /et... |
<filename>1704-Determine if String Halves Are Alike/cpp_1704/Solution1.h
/**
* @author ooooo
* @date 2021/1/24 17:14
*/
#ifndef CPP_1704__SOLUTION1_H_
#define CPP_1704__SOLUTION1_H_
#include <iostream>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <stack>
#include <... |
<reponame>lananh265/social-network<filename>node_modules/react-icons-kit/md/ic_emoji_emotions_twotone.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ic_emoji_emotions_twotone = void 0;
var ic_emoji_emotions_twotone = {
"viewBox": "0 0 24 24",
"children": [{
"name": "g... |
#pragma once
#include <algorithm>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "filesys.h"
template<typename T>
bool matches_extension(const fs::path &path, T begin, T end) {
if (!path.has_extension()) {
return false;
}
return std::fin... |
#!/bin/bash
cd /home/nlpserver/zzilong/kaldi/egs/supermarket-product
. ./path.sh
( echo '#' Running on `hostname`
echo '#' Started at `date`
echo -n '# '; cat <<EOF
nnet-am-average exp/nnet4a/149.1.mdl exp/nnet4a/149.2.mdl exp/nnet4a/149.3.mdl exp/nnet4a/149.4.mdl exp/nnet4a/149.5.mdl exp/nnet4a/149.6.mdl exp/nnet4... |
python3 tools/train.py --config_file='configs/softmax_triplet.yml' MODEL.DEVICE_ID "('1')" MODEL.NAME "('HRNet32')" MODEL.PRETRAIN_PATH "('checkpoints/hrnetv2_w32_imagenet_pretrained.pth')" DATASETS.NAMES "('market1501')" DATASETS.ROOT_DIR "('/data/market1501')" CLUSTERING.PART_NUM "(7)" DATASETS.PSEUDO_LABEL_SUBDIR "(... |
/*
Copyright 2018 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 or agreed to in writing, ... |
import torch
from torch.utils.data import DataLoader
from torchvision.transforms import Compose
# Assuming the ScienceDataset class and train_augment function are defined elsewhere
# Define the custom data loader
class ScienceDataLoader(DataLoader):
def __init__(self, dataset, batch_size):
super(ScienceDa... |
public abstract class PastaDish {
public final void makeRecipe() {
boilWater();
addPasta();
addProtein();
addSouce();
}
private void boilWater() {
System.out.println("Boiling Water");//its same to all subclasses
}
protected abstract void addPasta();//this methods contents
pro... |
#!/usr/bin/env bash
# 1v is as 1t, but using backstitch training with scale=1.0,interval=4, and
# num of epochs increased to 7
# ./local/chain/compare_wer_general.sh --looped exp/chain_cleaned/tdnn_lstm1e_sp_bi exp/chain_cleaned/tdnn_lstm1t_sp_bi
# System tdnn_lstm1t_sp_bi tdnn_lstm1v_sp_bi
# WER on de... |
package main
import (
"flag"
"log"
"strings"
"github.com/andrewlader/go-tendo/tendo"
)
var path string
var languageType tendo.LanguageType
var logLevel tendo.LogLevel
func init() {
parseArguments()
}
func main() {
tendo := tendo.NewTendo(logLevel)
tendo.Inspect(path, languageType)
tendo.DisplayTotals()
}
... |
script_dir=$(dirname "$(readlink -f "$0")")
export KB_DEPLOYMENT_CONFIG=$script_dir/../deploy.cfg
WD=/kb/module/work
if [ -f $WD/token ]; then
cat $WD/token | xargs sh $script_dir/../bin/run_DataFileUtil_async_job.sh $WD/input.json $WD/output.json
else
echo "File $WD/token doesn't exist, aborting."
exit 1
f... |
#!/usr/bin/env bash
make --silent --no-print-directory -C .. all
for (( i=0; i<=100; i++ ))
do
if ! [ -f "inputs/input$i" ]; then
continue
fi
../hw2.exe <"inputs/input$i" >'test.out'
diff 'test.out' "outputs/output$i" >/dev/null
if [ $? -ne 0 ]; then
echo "input$i failed"
fi
done
make --silent --no-print-d... |
#!/bin/bash
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# What to do
sign=false
verify=false
build=false
# Systems to build
linux=true
windows=true
osx=true
# Other Basic vari... |
import React, { useRef, useEffect } from 'react'
import { withKnobs, optionsKnob, boolean } from '@storybook/addon-knobs'
import { Setup } from '../Setup'
import { TransformControls } from '../../src/TransformControls'
import { Box } from '../../src/shapes'
import { OrbitControls } from '../../src/OrbitControls'
ex... |
#!/bin/bash
if test "$OS" = "Windows_NT"
then
# use .Net
.paket/paket.bootstrapper.exe
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
.paket/paket.exe restore
exit_code=$?
if [ $exit_code -ne 0 ]; then
exit $exit_code
fi
[ ! -e build.fsx ] && .paket/paket.exe update
packag... |
<reponame>idrice24/mns
import { Injectable } from '@angular/core';
import { AppVideo, AppVideoItem } from '../models/app-video';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { tap, catchError, filter, map } from 'rxjs/operators';
import { AppUser } from ... |
if [ -z "$PYTHON" ]; then PYTHON=$(which python); fi
$PYTHON setup.py install # Python command to install the script.
|
#!/bin/bash
set -e
echo "Error: no test specified"
yarn lint
exit 0
|
class LastNElements:
def __init__(self, n):
self.n = n
self.elements = []
def push(self, element):
if len(self.elements) < self.n:
self.elements.append(element)
else:
# Shift the elements to the left
for i in range(len(self.elements)-1):
... |
/**
* Created by <EMAIL> on 2019/3/20.
*/
import "./style.less";
import React,{PureComponent} from 'react';
import {fromLu} from "youchain-utils";
import popup from "../../../../popup";
import Utils from "../../../../common/utils";
import {Button} from "../../../../components/vendors";
import Tab from "../../../../c... |
<reponame>JustinDFuller/purchase-saving-planner
import * as Auth from "auth";
import * as Notifications from "notifications";
import * as Purchase from "purchase";
import * as Layout from "layout";
import * as data from "../data";
export const List = Auth.context.With(function ({ auth }) {
const { user } = data.Use... |
const express = require('express');
const graphqlHTTP = require('express-graphql');
const { buildSchema } = require('graphql');
const book_list = [
{
title: 'Alice in Wonderland',
author: 'Lewis Carroll',
},
{
title: 'The Hobbit',
author: 'J.R.R. Tolkien',
},
{
title: 'Pride and Prejudice... |
import makeGamesRepository from 'shared/domain/repositories/factories/makeGamesRepository';
import GetGameDetailsService from '../GetGameDetailsService';
export default function makeGetGameDetailsService(): GetGameDetailsService {
const gamesRepository = makeGamesRepository();
const getGameDetails = new GetGameDe... |
def stringSearch(text, string):
currIndex = 0
textLen = len(text)
stringLen = len(string)
for i in range(textLen - stringLen):
foundMatch = True
for j in range(stringLen):
if text[i+j] != string[j]:
foundMatch = False
break
if foundMatch:
currIndex = i
break
... |
#!/bin/bash
if [[ "$1" ]]; then
echo "Removing container tno-$1"
docker rm -f tno-$1
docker image rm -f tno:$1
fi
|
<gh_stars>1-10
package com.linwei.annotation;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.linwei.annotation.utils.AnnotationUtils;
public class ThreeActivity extends AppCompatActivity {
... |
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Lice... |
<reponame>giorgiofederici/giorgiofederici-frontend
import { Action } from '@ngrx/store';
export enum LogoutActionTypes {
Logout = '[Logout] Logout',
LogoutConfirmation = '[Logout] Logout Confirmation',
LogoutConfirmationDismiss = '[Logout] Logout Confirmation Dismiss'
}
export class Logout implements Action {
... |
import json
def serialize_dict(input_dict):
return json.dumps(input_dict) |
python google_takeout.py --youtube_archive_dir /media/philippe/DATA/google-takeout/Takeout\ 2 --output_dir /media/philippe/DATA/google-takeout/mp3-takout --download_watch_history
python google_takeout.py --youtube_archive_dir /media/philippe/DATA/google-takeout/Takeout --output_dir /media/philippe/DATA/google-takeout/m... |
import datetime
highlightsPosted = []
def add_highlight(row):
now = str(datetime.datetime.now()) # Get the current timestamp
formatted_row = row + [now] # Format the row with the current timestamp
highlightsPosted.append(formatted_row) # Append the formatted row to the highlightsPosted database
ret... |
<filename>ods-base-support/ods-system/src/main/java/cn/stylefeng/guns/sys/modular/log/param/SysOpLogParam.java
/*
Copyright [2020] [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 Lic... |
gem install xcpretty --no-ri --no-rdoc
export PYTHONUSERBASE=~/.local
easy_install --user scan-build
export PATH="${HOME}/.local/bin:${PATH}"
set -o pipefail && scan-build --status-bugs --use-analyzer Xcode xcodebuild analyze -workspace Stripe.xcworkspace -scheme "StripeiOS" -configuration Debug -sdk iphonesimulator ON... |
#!/bin/bash
# This script relies upon the following environment variables:
# OS_AUTH_URL = Specifies the URL for authentication
# OS_USERNAME = Specifies the username for authentication
# OS_PASSWORD = Specifies the password for authentication
# OS_TENANT_NAME = Specifies the name of the tenant Docker Machine will use
... |
package com.abner.playground.nio;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
public class FileChannelTest {
public static void main(String[] args) throws IOException {
RandomAccessFile accessFile = new RandomAccessFile("c:... |
#!/bin/bash
python RunSimulation.py --Geo 10.0 --sim_num 88
|
<gh_stars>1-10
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.trash = void 0;
var trash = {
"viewBox": "0 0 1408 1792",
"children": [{
"name": "path",
"attribs": {
"d": "M512 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zM7... |
#include "glass/utils/path.h"
#ifdef USE_QT
#include <QString>
#include <QFileInfo>
#endif
using namespace std;
void path::format(string& filename)
{
if(filename.empty())
{
filename = ".";
}
for(auto it = filename.begin(); it != filename.end();)
{
if(*it == '\\')
{
*it = '/';
}
if(it != filename.... |
#!/usr/bin/sh
set -euo pipefail
# PubChem IDとChEMBL IDのペアを取得する。
ENDPOINT=https://integbio.jp/rdf/ebi/sparql
WORKDIR=chembl2pubchem # 一時的にIDペアファイルを保存するディレクトリ
LIMIT=1000000 # SPARQLエンドポイントにおける取得可能データ件数の最大値
CURL=/usr/bin/curl
# ChEMBL IDとPubChem IDのペアを取得するクエリのテンプレート。
# 100万件以上あるので、本スクリプト中で、OFFSET/LIMIT を sed で追加して用いる。
... |
<reponame>atrilla/emolib<filename>src/emolib/classifier/machinelearning/MultinomialNB.java
/*
* File : MultinomialNB.java
* Created : 25-Jul-2011
* By : atrilla
*
* Emolib - Emotional Library
*
* Copyright (c) 2011 <NAME> &
* 2007-2012 Enginyeria i Arquitectura La Salle (Universitat Ramon Llull)
*
* T... |
<reponame>lukaselmer/find_and_restore_big_files
class ResultTracker
def initialize(repo)
@repo = repo
@paths = repo.generate_paths
@hashes = repo.generate_hashes
end
def path_exists?(file)
@paths.include?(file.path)
end
def store(file)
hash = @repo.generate_hash(file.path)
@hashes <<... |
proj_path=$(dirname $(dirname "${this_exe_path}"))
classify_exe="${proj_path}/bld/uni/classify"
gen_exe="${proj_path}/bld/uni/generate"
xlate_exe="${proj_path}/bld/uni/xlate"
function calc_domsz()
{
local domsz btsz
domsz=2
btsz=$(printf '%s' "$1" | wc -c)
while [ $(($domsz * $domsz * $domsz)) -lt $btsz ]
d... |
#!/bin/bash
for f in flip_SCITE/*ml0.gv
do
g=$(basename $f)
m=`echo $g | sed -e "s/^m\([0-9]*\)_n\([0-9]*\)_s\([0-9]*\)_k\([0-9]*\)_loss\(0\.[0-9]*\)_a\(0\.[0-9]*\)_b\(0\.[0-9]*\).*/\1/g"`
n=`echo $g | sed -e "s/^m\([0-9]*\)_n\([0-9]*\)_s\([0-9]*\)_k\([0-9]*\)_loss\(0\.[0-9]*\)_a\(0\.[0-9]*\)_b\(0\.[0-9]*\)... |
<filename>mc-commons/mc-common-core/src/main/java/com/mc/common/constant/ServiceNameConstants.java<gh_stars>1-10
package com.mc.common.constant;
/**
* [ServiceNameConstants 服务名称常量]
*
* @author likai
* @version 1.0
* @date 2019/12/10 0010 18:19
* @company Gainet
* @copyright copyright (c) 2019
*/
public interfa... |
#include <iostream>
using namespace std;
void reverse(int a[][2])
{
for (int i = 1; i >= 0; i--)
for (int j = 1; j >= 0; j--)
cout << a[i][j] << " ";
}
int main()
{
int a[2][2] = {{2, 3}, {4, 5}};
reverse(a);
return 0;
} |
<gh_stars>0
var signup = document.getElementById('signup');
var main = document.getElementById('main');
var children = main.children;
function sign(){
var selected = document.getElementById('signup-form');
alert(children.length);
for(var child of children){
if(child.getAttribute('class')=='signup'){... |
<reponame>zhangyut/wolf
package com.bn.box2d.sndls;
import static com.bn.box2d.sndls.Constant.*;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
public class Pijin
{
public static float[][] lcon=
{
{54,20},
{93,20}
};
float lx;
float ly;
flo... |
<filename>src/materials/Light.hpp
#ifndef LIGHT_H
#define LIGHT_H
#include <memory>
#include "../Vector3.hpp"
#include "../Material.hpp"
#include "../Texture.hpp"
class Light : public Material
{
public:
Light(std::shared_ptr<Texture> a);
Light(Color3 c);
virtual bool scatter(const Ray &r_in, const HitRe... |
cd "/Users/gggyu/Documents/git/Reading-Hadoop/hadoop-project-dist/target"
tar cf - hadoop-project-dist-2.6.0 | gzip > hadoop-project-dist-2.6.0.tar.gz |
#!/bin/bash
cd examples/taxi
mvn test
|
package com.banana.volunteer.service.Impl;
import com.banana.volunteer.entity.Branch;
import com.banana.volunteer.entity.Organization;
import com.banana.volunteer.enums.ResultEnum;
import com.banana.volunteer.exception.BusinessException;
import com.banana.volunteer.repository.BranchRepository;
import com.banana.volunt... |
. /opt/intel/ictce/3.2.0.020/ictvars.sh
|
def findMissingElement(array):
n = len(array)
total = (n + 1)*(n + 2)/2
sum_of_array = sum(array)
return total - sum_of_array
# Driver code
array = [1, 2, 3, 4, 6, 7, 8]
print("Missing element is",
findMissingElement(array)) |
#!/bin/sh
# This shell script removes NFTP binaries and support files
# look up installation
IS_ROOT=`id | grep "uid=0(root)" | wc -l`
if [ $IS_ROOT -eq 1 ]
then
if [ -d /usr/lib/nftp ]
then
TARGETBIN="/usr/bin"
TARGETLIB="/usr/lib/nftp"
else
TARGETBIN="/usr/local/bin"
TARGETLIB="/u... |
#!/usr/bin/bash
# General
parsetdir=parsets
logdir=logs
slurms=slurmFiles
slurmOutput=slurmOutput
msdir=MS
chunkdir=../ModelImages/Chunks
slicedir=../ModelImages/Slices
doCreateModel=false
# Whether to slice up the model prior to simulating - set to false
# if we've already done this
doSlice=false
doCalibrator=fals... |
package cc.soham.toggle.objects;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Config {
@SerializedName("name")
@Expose
public String name;
@... |
/**
* Copyright 2021 <NAME>, Co.Ltd
* Email: <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 required by applicable la... |
<filename>deauth_for_creds.rb
#!/bin/ruby
print("Please open Ghost-Phisher on your Kali machine.
")
print("Before continuing, I will need to know the name of the interface that you plan on using for this
attack. Name of interface:
")
interface = gets.chomp
system("sed -i 's/interface/#{interface}/g' airodump.sh")
sy... |
<reponame>blu-world/shengji
import * as React from "react";
import {
ITrump,
ITrickUnit,
IBid,
IHands,
IPlayer,
IUnitLike,
ITrickFormat,
BidPolicy,
BidReinforcementPolicy,
IDeck,
ITrick,
TrickDrawPolicy,
IGameScoringParameters,
JokerBidPolicy,
ITractorRequirements,
} from "./types";
inter... |
export const actions = {
async nuxtServerInit({ commit }, { $content }) {
try {
// Add Druxt modules to Vuex store.
const modulesIndex = await $content("api/README").only("toc").fetch()
const modules = await Promise.all(modulesIndex.toc
.filter((o) => o.id !== 'druxt')
.map((o) =... |
import SwiftUI
import LoopKitUI
struct InsertCannulaView: View {
@ObservedObject var viewModel: InsertCannulaViewModel
@Environment(\.verticalSizeClass) var verticalSizeClass
@State private var cancelModalIsPresented: Bool = false
var body: some View {
VStack {
/... |
# Generating sparse matrix
m = 2
n = 2
# Creating an empty list
sparseMatrix = [[0 for i in range(n)] for j in range(m)]
# Creating the sparse matrix by multiplying row and column outline
for i in range(m):
for j in range(n):
sparseMatrix[i][j] = i * j
# Printing the sparse matrix
for i ... |
#!/bin/sh
echo -n "Queued: "
./check-queue.pl $1
echo -n "Finished: "
../s3cmd-1.0.0/s3cmd ls s3://$1/ | wc -l
|
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
"""
A Python function to determine whether two given strings are anagrams of each other
"""
def check_anagram(string1, string2):
# If the strings are not of equal length, they cannot be anagrams
if len(string1) != len(string2):
return False
# Dictionary to store characters and their frequencies
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.