text
stringlengths
1
1.05M
#include <AL/al.h> #include <AL/alc.h> class OpenALWrapper { public: void getBuffer3f(ALuint buffer, ALenum param, ALfloat *value1, ALfloat *value2, ALfloat *value3) { alGetBuffer3f(buffer, param, value1, value2, value3); } void getBufferfv(ALuint buffer, ALenum param, ALfloat *values) { a...
<reponame>Teleology/ts-design class ReadImg { private fileName:string; constructor(fileName: string) { this.fileName = fileName; this.loadFromDisk(); } public display():void { console.log("display" + this.fileName); } private loadFromDisk():void { console.log(...
import pandas as pd # Read in the CSV file df = pd.read_csv("data.csv") # Calculate population density df['Density'] = df['Population'] / df['Area'] # Print the density of the first 5 countries print(df.head()['Density'])
SELECT products.name, AVG(reviews.rating) AS avg_rating FROM products INNER JOIN reviews ON products.id = reviews.product_id GROUP BY products.name ORDER BY avg_rating DESC LIMIT 5;
let num = prompt("Please enter a number: "); let output = '<table border="1">'; for (let i = 1; i <= 10; i++) { let row = "<tr><td>" + num + " X " + i + " = " + (num * i) + "</td></tr>"; output += row; } output += "</table>" document.write(output);
import subprocess import sys def get_commit_timestamp(file_path, commit_hash): try: timestamp = subprocess.check_output(['git', 'show', '-s', '--format=%ct', commit_hash, '--', file_path]) timestamp = timestamp.decode('utf-8').strip() # Decode and remove any trailing newline characters ret...
// // HGHomeViewController.h // HGPersonalCenter // // Created by Arch on 2017/6/16. // Copyright © 2017年 mint_bin. All rights reserved. // #import <UIKit/UIKit.h> @interface HGHomeViewController : HGBaseViewController @end
/* * 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 models; import java.util.List; import javax.swing.AbstractListModel; /** * * @author pretizy */ public class Vmodel extend...
using System; using System.Collections.Immutable; public class ImmutableStack<T> { private ImmutableStack<T> previousStack; private T value; private ImmutableStack(ImmutableStack<T> previousStack, T value) { this.previousStack = previousStack; this.value = value; } public Immu...
<reponame>HibiscusLotus/react-management-ssytem<filename>src/router.js import React, { lazy, Suspense } from 'react'; import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'; import { checkIsAdmin, checkAuth } from './utils/utils'; const Login = lazy(() => import('./pages/Login/index')); con...
import { Injectable } from '@nestjs/common' import { ConfigService } from '@nestjs/config' @Injectable() export class ApiConfigService { constructor(private configService: ConfigService) {} /* SERVER */ get port(): number { return this.configService.get<number>('PORT', 3000) } /* DATABASE */ get data...
def partition(arr,low,high): i = ( low-1 ) # index of smaller element pivot = arr[high] # pivot for j in range(low , high): # If current element is smaller than the pivot if arr[j] < pivot: # increment index of smaller element i =...
#!/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 # "Lic...
#!/bin/bash function docker_tag_exists() { EXISTS=$(curl -s https://hub.docker.com/v2/repositories/$1/tags/?page_size=10000 | jq -r "[.results | .[] | .name == \"$2\"] | any") test $EXISTS = true } if docker_tag_exists svenruppert/maven-3.2.5-graalvm 1.0.0-7; then echo skip building, image already existin...
<reponame>luanlazz/barbecue-app-back<filename>src/presentation/controllers/barbecue-participant/remove/remove-participant-controller.spec.ts import { RemoveParticipantController } from './remove-participant-controller' import { HttpRequest } from '@/presentation/protocols' import { mockRemoveParticipant, mockLoadPartic...
/* * */ package net.community.chest.util.logging; import java.io.IOException; import java.io.PrintStream; import java.nio.channels.Channel; import java.util.Map; import java.util.TreeMap; import net.community.chest.io.EOLStyle; import net.community.chest.io.output.NullOutputStream; import net.community.chest.reflec...
var getRecentPosts = function(amount, callback) { var rss = $("link[type='application/rss+xml']").attr("href"); $.get(rss, function(data) { var recent = []; var parsed = $.parseXML(data); var posts = $(data).find("item"); if (amount) posts = posts.slice(0, amount); // Only display the first number of pos...
<gh_stars>0 package net.querz.event.test; import static junit.framework.TestCase.*; import net.querz.event.Event; import java.util.*; public class EventCallCollector { private static LinkedHashMap<UUID, LinkedHashMap<String, Event>> map = new LinkedHashMap<>(); public static void assertEventExists(UUID id, Strin...
<reponame>jameseden1/lorawan-stack // Copyright © 2019 The Things Network Foundation, The Things Industries B.V. // // 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.apach...
import { PromiseOrValue } from '../promise/promise'; import { MapFunction } from '../value/map'; import { Maybe } from '../value/maybe.type'; /** * Function that returns a value. */ export type Getter<T> = () => T; /** * Getter with the design of returning a new value each time. */ export type Factory<T> = Getter...
# Copyright 2019 Xilinx 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 or agreed to in writing, ...
#!/bin/bash set -x # Machine-specific path, naturally local_script_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" protocol_repo_path="$local_script_path/../devtools-protocol" browser_protocol_path="$protocol_repo_path/json/browser_protocol.json" js_protocol_path="$protocol_repo_path/json/js_protocol.json" ...
#!/bin/bash # # Test harness for generating files under tests/rust_protobuf/v[23] # and expecting them either to succeed or fail for some known reason. # # Checked in the end for non-empty value which serves as a boolean flag have_failures="" # Expected codegen failures are marked in the associative array `must_fail`...
#Import necessary packages import nltk import nltk.classify.util from nltk.classify import NaiveBayesClassifier #Define function to split the text into individual words def word_feats(words): return dict([(word, True) for word in words]) #Sample text and split it into words text = "Ciao mondo!" words = text.lower...
#!/usr/bin/env bash set -euo pipefail ../tools-public/generate-dynamic-macros-android.sh ./gradlew --stacktrace :app:preBuild ./gradlew --stacktrace :app:assembleProdMinSdkProdKernelRelease zipalign -f -v -p 4 app/build/outputs/apk/prodMinSdkProdKernel/release/app-prodMinSdk-prodKernel-release-unsigned.apk app-prod...
#!/bin/bash dieharder -d 11 -g 7 -S 2265652022
//import {Store, get, set, del, clear, keys, drop} from "../extern/idb-keyval.js" import {JAXDiskStore, get, set, del, clear, keys, drop} from "./JAXDiskDB.js" var JAXDisk,__Proto; //*************************************************************************** //JAX's virtual disk system for web //*********************...
class Api::V4::Categories::RunnersController < Api::V4::ApplicationController before_action :set_category, only: [:index] def index render json: Api::V4::UserBlueprint.render(@category.runners, root: :runners) end end
#! /bin/sh rm -rf ./docs/.vuepress/dist npm run build git add . git commit -m 'AUTO_COMMIT' git push https://github.com/bytrix/mant-doc.git git checkout -b gh-pages origin/gh-pages git branch -a git checkout master docs/.vuepress/dist mv docs/.vuepress/dist/* ./doc
<filename>Playtime/operators.rb #!/usr/bin/ruby a = 5 b = 3 puts "#{a} + #{b} = #{a+b}" puts "#{a} - #{b} = #{a-b}" puts "#{a} x #{b} = #{a*b}" puts "#{a} / #{b} = #{a/b}" puts "#{a} % #{b} = #{a%b}" puts "#{a}^#{b} = #{a**b}"
// Copyright 2022 DeepL SE (https://www.deepl.com) // Use of this source code is governed by an MIT // license that can be found in the LICENSE file. const fs = require('fs'); const path = require('path'); const languages = require('./languages'); const util = require('./util'); function deleteFile(filePath) { try ...
#!/usr/bin/env -S bash -euET -o pipefail -O inherit_errexit SCRIPT=$(readlink -f "$0") && cd $(dirname "$SCRIPT") # --- Script Init --- mkdir -p log rm -R -f log/* # --- Setup run dirs --- find output -type f -not -name '*summary-info*' -not -name '*.json' -exec rm -R -f {} + mkdir output/full_correlation/ rm -R -...
<gh_stars>0 /* eslint-disable prettier/prettier */ import React, {Component, useState} from 'react'; import {Text, View, StyleSheet, Image, Alert} from 'react-native'; import Calendar from '../../../image/calendar.png'; import clockwhite from '../../../image/clock.png'; import menuBlack from '../../../image/menu.png'; ...
// --- 对象解构 --- /* let person = { name: 'Matt', age: 27, }; let { name: personName, age: personAge } = person; console.log(personName); console.log(personAge); let { name = 'Jack', job = 'Software engineer' } = person; // 设置默认值 console.log(name); // Matt console.log(job); // Software engineer */ // 如果事先声明的变量,则赋值表...
<reponame>Switchcrafter/tinyusb<gh_stars>1000+ require 'ceedling/constants' class GeneratorHelper constructor :streaminator def test_results_error_handler(executable, shell_result) notice = '' error = false if (shell_result[:output].nil? or shell_result[:output].strip.empty?) error = tr...
#!/usr/bin/env bash ########################################################################## # This is the Cake bootstrapper script for Linux and OS X. # This file was downloaded from https://github.com/cake-build/resources # Feel free to change this file to fit your needs. ##########################################...
// Define the StampComputeResources class class StampComputeResources { // Define properties // ... // Define the one-to-many relationship with StampTask @OneToMany(() => StampTask, stampTask => stampTask.resourceType2) stampTasks: StampTask[]; } // Define the StampTask class class StampTask { // Define p...
exports.up = async(knex, Promise) => { await knex.schema.table("guilds", (t) => { t.string("speedrun", 255); }); }; exports.down = async(knex, Promise) => { await knex.schema.table("guilds", (t) => { t.dropColumn("speedrun"); }); };
#!/bin/bash PATH=./node_modules/.bin/:$PATH # Clean previous distribution build. rm -rf dist/* # Test if online compilation should be used. if [ "${ONLINE:-true}" == "true" ]; then echo "Compiling using Google Closure Service..." curl --silent \ --data output_format=text \ --data output_info=compiled_co...
<reponame>polens29/lb-billing<filename>app/containers/Integrations/actions.js import { UPDATE_INTEGRATION_STATUS, GET_INTEGRATION_STATUS, UPDATE_ALL_INTEGRATION_STATUS, GET_ALL_INTEGRATION_STATUS, INTEGRATIONS_MODAL_TOGGLE, UPDATE_INTEGRATIONS_OBJECT, SET_INTEGRATION_OBJECT, SET_INTEGRATION_FORMAT, SA...
module Easymarklet class DluxGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def copy_files template "dlux_bookmarklet.js", "app/assets/javascripts/#{file_name}_bookmarklet.js" template "dlux_consumer.js", "app/assets/javascripts/#{file_name}_consum...
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.interestrate.payments.method; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang.Validate; import com.ope...
#import the necessary packages import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import mean_absolute_error from sklearn.preprocessing import StandardScaler #load the data into pandas DataFrame data = pd...
#!/bin/bash set -x top_dir=$(pwd) out_dir="" if [ ! -z $1 ];then mkdir -p $1 out_dir=$1 fi tmp_dir=`mktemp -d` cd $tmp_dir if [ ! -f ./bin/gosec ];then curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s 2.0.0 fi result_file=result.json issue_file=issues.txt ./bin/gose...
## ek9/shell-config - https://github.com/ek9/shell-config ## 05-programs.sh ## This file sets up custom shell programs # setup custom programs if [[ -x $(command -v vim) ]]; then export EDITOR=vim export VISUAL=vim export FCEDIT=vim fi [[ -x $(command -v elinks) ]] && export BROWSER="elinks" export PAGER=...
# <<if you put this script into source root remove this command cd .. # if you put this script into source root remove this command>> python main.py -a resnet18 --dist-url 'tcp://127.0.0.1:8889' --dist-backend 'nccl' --multiprocessing-distributed \ --world-size 1 --rank 0 /home/aistudio/Desktop/datasets/ILSVRC2012/
#!/bin/bash MAX_ATTEMPTS=5 adb root adb devices | grep emulator | cut -f1 | while read id; do apks=(/usr/bin/*.apk) if [ "$CHROME_MOBILE" == "y" ]; then adb -s "$id" uninstall "com.android.chrome" || true fi for apk in "${apks[@]}"; do if [ -r "$apk" ]; then for i in `seq 1 ...
<html> <head> </head> <body> <p>Name: John </p> <p>Age: 28 </p> <img src="image.jpg" width="400" height="400"> </body> </html>
#include <bits/stdc++.h> #define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL) #define ll long long int #define ld long double using namespace std; const int N = 105; const int MOD = 1e9 + 7; int ans, ct[N][N]; char a[N + 1][N + 1]; int n, m, str, end1; bool vis[N][N]; void dijkstra(int str1, int end2...
import Vue from 'vue' import VueRouter from 'vue-router' import { LAYOUT, VIEW } from '../constants/globals' Vue.use(VueRouter) const routes = [ { path: '/', redirect: '/dashboard', }, { path: '/dashboard', name: VIEW.dashboard, component: () => import('../views/Dashboard.vue'), }, { ...
#!/usr/bin/env bash set -euo pipefail version=4.1.2 rstudio_image=davetang/rstudio:${version} container_name=rstudio_dtang_bioinfo port=8989 package_dir=${HOME}/r_packages_${version} path=$(realpath $(dirname $0)/..) if [[ ! -d ${package_dir} ]]; then mkdir ${package_dir} fi docker run -d \ -p ${port}:8787 \ ...
<gh_stars>0 package com.leetcode; public class Solution_283 { public void moveZeroes(int[] nums) { int index = 0; for (int i = 0; i < nums.length; i++) { if (nums[i] != 0) { swap(nums, i, index++); } } } private void swap(int[] nums, int i, i...
<gh_stars>0 /* **** Notes Flag. */ # define CALEND # define CAR # include "./../../../incl/config.h" signed(__cdecl cals_flag(signed char(**argv),cals_t(*argp))) { auto signed(__cdecl*f)(cals_t(*argp)); auto signed(__cdecl*(fn[]))(cals_t(*argp)) = { (signed(__cdecl*)(cals_t(*))) (cals_flag_c), (signed(__cdecl*)(ca...
#!/bin/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 # "License"); y...
<reponame>ixrjog/caesar-web import request from '@/plugin/axios' const baseUrl = '/user/application' export function queryApplicationExcludeUserPage (data) { return request({ url: baseUrl + '/exclude/page/query', method: 'post', data }) } export function queryApplicationIncludeUserPage (data) { ret...
<reponame>smagill/opensphere-desktop /** * Data Source Management Framework. */ package io.opensphere.mantle.datasources;
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { Inject, Injectable } from "@angular/core"; import { Observable, Subject } from "rxjs"; import { MSAL_INSTANCE } from "./constants"; import { EventMessage, EventMessageUtils, IPublicClientApplication, Interac...
//package com.gmail.gustgamer29.listeners.protocollib; // //import com.comphenix.protocol.PacketType; //import com.comphenix.protocol.ProtocolLibrary; //import com.comphenix.protocol.events.ListenerPriority; //import com.comphenix.protocol.events.PacketAdapter; //import com.comphenix.protocol.events.PacketEvent; //impo...
class ConfigItem < ActiveRecord::Base has_many :host_configs, :dependent => :destroy has_many :hosts, :through => :host_configs validates_uniqueness_of :name, :message => "Name is already being used." before_destroy :check_and_remove_deps def parent_name if self.parent_id item = ConfigItem.fin...
<reponame>SoftwarearchitekturTeam/TypeTogether package de.hswhameln.typetogether.networking.shared.helperinterfaces; /** * Interface for a function that has a functional meaning */ // TODO name may be changed later @FunctionalInterface public interface FunctionalFunction <T> { T apply() throws Exception; }
#!/bin/bash while getopts :f:d: flag; do ((arg_count++)) case $flag in f) fps=$OPTARG;; d) display=display_$OPTARG;; esac done [[ ! -f ~/.config/orw/config ]] && ~/.orw/scripts/generate_orw_config.sh read resolution position <<< $(awk '\ /^'${display:-full_resolution}'/ { if(/^full/ || xy) print $2 "x" $3...
export class UpdateUserProfileDto { email:string password:<PASSWORD> username:string }
<reponame>yanovitchsky/sequent class Symbol def self.deserialize_from_json(value) value.blank? ? nil : value.try(:to_sym) end end class String def self.deserialize_from_json(value) value&.to_s end end class Integer def self.deserialize_from_json(value) value.blank? ? nil : value.to_i end end ...
#!/usr/bin/env python """This module contains the AST node types and the classes for extracting them from Java and Python. The most important classes here are ExtractAstPython and ExtractAstJava. """ import ast from lib2to3 import refactor, pgen2 import javalang from . import error from .complexity_java import Com...
<reponame>raihanannafi/perfstatbeat<filename>vendor/github.com/elastic/beats/filebeat/prospector/docker/prospector.go package docker import ( "fmt" "path" "github.com/elastic/beats/filebeat/channel" "github.com/elastic/beats/filebeat/prospector" "github.com/elastic/beats/filebeat/prospector/log" "github.com/ela...
#!/bin/sh set -x # Create a new image version with latest code changes. docker build . --tag pleo-antaeus # Build the code. docker run \ --publish 7000:7000 \ --rm \ --interactive \ --tty \ # This volume is only there so incremental builds are way faster --volume pleo-antaeus-build-cache:/root/.gradle \ ...
import random def generate_strings(length, characters): strings = [] for _ in range(length): s = "" for _ in range(length): s += random.choice(characters) strings.append(s) return strings
package com.jaminh.ws; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class SpringTokenServiceApplication { public static void main(String[] args) { SpringApplication.run(SpringTokenServiceApplication.class, arg...
#!/bin/bash # bash "scrict mode" set -e set -u set -o pipefail # Build fresh if [[ -d build ]];then rm -rf build/* fi cmake \ -S src \ -B build cmake build -L cmake --build build -- -j$(($(nproc) - 1))
// Copyright 2013-2020, University of Colorado Boulder import './BinPacker.js'; import './Bounds2.js'; import './Bounds3.js'; import './Complex.js'; import './ConvexHull2.js'; import './DampedHarmonic.js'; import './DelaunayTriangulation.js'; import './Dimension2.js'; import dot from './dot.js'; import './EigenvalueD...
<gh_stars>0 import json class SensorData: def __init__(self): self.temp = 0.0 self.humidity = 0 self.pool = 0.0 def set_temp_humidity(self, string): my_json = json.loads(string) self.temp = my_json["temp"] self.humidity = my_json["humidity"] def set_pool(s...
<gh_stars>0 declare module "dynoxhost.js" { export class DynoxHost { constructor(apiKey: string) {} getUsage(id: string) getDetails(id: string) setPowerState(id: string, state: string) createBackup(id: string) getBackupDetails(id: string, backupID: string) } }
#/bin/sh find . -type d -maxdepth 1 -not -path ./output -not -path . -exec sh -c "cd {} && pwd && spago upgrade-set && cd .." \;
import Enumerable from "./enumerable"; export default function<T>(iterable: Iterable<T>): Enumerable<T> { return new Enumerable(iterable); }
#ifndef MODELPC_H #define MODELPC_H #include <QObject> #include <QImage> #include <QByteArray> #include <QColor> #include <QPoint> #include <QVector> #include <QProcess> #include <QTime> #include <QFileInfo> #include <QtGui> #include <QtCore/QRandomGenerator> #include <QPair> #include "qaesencryption.h" #include <QCr...
#!/bin/bash . path.sh nnet3-compute-prob exp/xvector_nnet_1a_kadv5_rm457/final.raw 'ark,bg:nnet3-copy-egs scp:exp/xvector_nnet_1a_kadv5_rm457/egs/valid_diagnostic_adv.scp ark:- | nnet3-merge-egs --minibatch-size=1:64 ark:- ark:- |'
package com.iplante.imdb.movies.service; import com.iplante.imdb.movies.entity.Movie; import com.iplante.imdb.movies.repository.MovieRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import javax.p...
#ifndef __HARDWARE_HXX #define __HARDWARE_HXX #include <os/LinuxGpio.hxx> #include <os/LinuxPWM.hxx> #include "utils/GpioInitializer.hxx" #define HARDWARE_IMPL "PB Multifunction board" // On chip GPIO: // OD: 7, 19, 20, 23, // Motor: 26, 27, 45, 46, // Points: 47, 48, 50, 52, // Buttons: 57, 58, ...
#!/usr/bin/env bash # Created by deirk93 on 4/12/19 set -e pushd $(dirname $0) > /dev/null SCRIPTPATH=$(pwd -P) popd > /dev/null SCRITPT=$(basename $0) REGISTER_IMAGE="registry" REGISTER_VERSION="latest" REGISTER_DOMAIN="repo.dashuai.life" REGISTER_NAME="mageregistry" EXPOSEDPORT=5000 NGINX_IMAGE="nginx" NGINX_VERS...
#!/bin/bash # ========== Experiment Seq. Idx. 2895 / 56.2.3.0 / N. 0 - _S=56.2.3.0 D1_N=56 a=1 b=-1 c=-1 d=-1 e=1 f=1 D3_N=4 g=1 h=-1 i=-1 D4_N=3 j=3 D5_N=0 ========== set -u # Prints header echo -e '\n\n========== Experiment Seq. Idx. 2895 / 56.2.3.0 / N. 0 - _S=56.2.3.0 D1_N=56 a=1 b=-1 c=-1 d=-1 e=1 f=1 D3_N=4 g=1 ...
#!/bin/sh CONFIG=passwall TMP_PATH=/var/etc/$CONFIG TMP_BIN_PATH=$TMP_PATH/bin TMP_ID_PATH=$TMP_PATH/id config_n_get() { local ret=$(uci -q get $CONFIG.$1.$2 2>/dev/null) echo ${ret:=$3} } config_t_get() { local index=0 [ -n "$4" ] && index=$4 local ret=$(uci -q get $CONFIG.@$1[$index].$2 2>/dev/null) echo ${r...
#!/usr/bin/env bash # Is doctl already installed if ! command_exists doctl; then # Print a message to the console line "Installing doctl..." # Get the latest version of the digitalocean cli DOCTL_LATEST_VERSION=$(github_get_latest_release_version "digitalocean/doctl") DOCTL_VERSION_NUMBER=${DOCTL...
<reponame>Kun-a-Kun/Algorithms-Fourth-Edition-Exercises package Chapter1_4Text; import java.util.Scanner; public class TestScanner { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入一个字符串"); System.out.println("您输入的字符串是:" + scanner.n...
# -*- coding: utf-8 -*- from django.db import transaction from django.utils import timezone from app.revisioner.actions import created from app.revisioner.actions import modified from app.revisioner.actions import dropped from app.definitions.models import Table, Column, Index from utils.contenttypes import get_cont...
#!/bin/sh cd `dirname $0`/../.. python ./scripts/cleanup_datasets/cleanup_datasets.py ./config/galaxy.ini -d 10 -6 -r $@ >> ./scripts/cleanup_datasets/delete_datasets.log
#!/usr/bin/env bash a2enmod headers
#!/usr/bin/env bash zig build-exe example.zig -I/usr/include -I/usr/include/x86_64-linux-gnu/ -lc -lreadline
# Set environment variables for running Hadoop on Amazon EC2 here. All are required. # 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...
<reponame>ohduran/urbanosisto<filename>src/components/Header.js<gh_stars>0 import React from "react"; import { Link } from 'gatsby'; import algoliasearch from 'algoliasearch/lite'; import { InstantSearch, SearchBox } from 'react-instantsearch-dom'; import '../styles/index.css'; import {ProductConsumer} from "../contex...
<filename>AndroidNanoDegreeProject5/app/src/main/java/io/github/marcelbraghetto/deviantartreader/features/collection/ui/CollectionFavouritesActionView.java<gh_stars>0 package io.github.marcelbraghetto.deviantartreader.features.collection.ui; import android.animation.Animator; import android.content.Context; import and...
CIFAR='--data_path data/ --log_every 100 --dataset cifar100 --cuda --log_dir logs/' SEED=0 MEMORIES=100 FIRST_INCREMENT=50 ########## CIFAR DATASET multi-Pass ########## ##### La-MAML ##### python3 main.py $CIFAR --model lamaml_cifar \ -expt_name lamaml_cifar_baseline_"$FIRST_INCREMENT"_memories_...
/* * @Date: 2022-03-28 11:15:48 * @LastEditors: huangzh873 * @LastEditTime: 2022-03-30 22:10:31 * @FilePath: /vt-cesium2.0/src/libs/cesium-vue.ts */ import { App } from 'vue'; import { CesiumRef } from '@/@types/index'; // 为什么要用Symbol export const CESIUM_REF_KEY = Symbol('cesiumRef') declare module '@vue/runtime...
#!/usr/bin/env bash set -xe this_dir="$(dirname "${BASH_SOURCE[0]}")" full_path_this_dir="$(cd "${this_dir}" && pwd)" git_root="$(cd "${full_path_this_dir}/../../.." && pwd)" docker run --rm -d \ --name pbs \ -h pbs \ -v "$git_root":/working \ -p 8000:8000 \ -p 8786:8786 \ -p 8088:8088 \ -...
#!/bin/sh : # shellcheck disable=SC2039 mount-in-help() { echo "pot mount-in [-hvwr] -p pot -m mnt -f fscomp | -d directory | -z dataset" echo ' -h print this help' echo ' -v verbose' echo ' -p pot : the working pot' echo ' -f fscomp : the fs component to be mounted' echo ' -z zfs dataset : the zfs dataset ...
#!/bin/bash file=$1 kotlinc $file.kt -include-runtime -d $file.jar
<filename>lib/helpers/choiceOfChoices.js /** * Get choice of choices from chosen * * @param {Array.strings} choices Choices available * @param {string} chosen Chosen choice * @param {string|null} defaultChoice Fallback choice * @returns {string|null} Returns the choice, default choice or null if undefined or erro...
<gh_stars>0 const util = require('../../../utils/util.js'); const api = require('../../../config/api.js'); Page({ /** * 页面的初始数据 */ data: { }, onlineConsultation() { const { allData } = this.data if (wx.getStorageSync("accountId")) { let data = { phone: wx.getStorageSync('userPhone'...
# Shortcuts alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub" alias reloadshell="source $HOME/.zshrc" alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder" alias ll="/usr/local/opt/coreutils/libexec/gnubin/ls -ahlF --color --group-directories-first" weather() { curl -4 wttr.in/${1:-dallas} } alias p...
#!/bin/bash # # Copyright (c) 2017-2018 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # [[ "${DEBUG}" != "" ]] && set -o xtrace set -o errexit set -o nounset set -o pipefail set -o errtrace SCRIPT_PATH=$(dirname "$(readlink -f "$0")") source "${SCRIPT_PATH}/../../../lib/common.bash" source "${SCRIPT_PATH}...
#ifndef _COMMONASSETS_H #define _COMMONASSETS_H #include "graphicscore.h" #include "bitmapfont.h" #include <os_generic.h> #include "objreader.h" extern struct UniformMatch * OverallUniforms; extern struct Shader * ButtonShader; extern struct Shader * TextShader; extern struct BitmapFont * OldSansBlack; extern float...