text
stringlengths
1
1.05M
$(function(){ $('.slideshow > :gt(0)').hide(); setInterval(function(){$('.slideshow > :first-child').fadeOut().next().fadeIn().end().appendTo('.slideshow');}, 3000); });
<gh_stars>1-10 import _ from 'lodash'; export default { upperCaseFirstLetter(str) { return str?.length === 0 ? str : `${str[0].toUpperCase() + str.substr(1)}`; }, strToCamelCase(str) { if (!str || str.length === 0) { return str; } return _.camelCase(str); } };
<filename>examples/sendMessageEmbed.js const { Client, Intents, RichEmbed } = require('esmerald.js'); const client = new Client({ token: 'TOKEN', intents: [Intents.GUILDS], }); client.users.fetch('USER_ID').then((user) => { const embed = new RichEmbed() .setColor(0x00ff00) .setTitle('Avatar') .setDe...
def bedroom_lights_status(BB_DO1, BB_DO2): if not BB_DO1 and not BB_DO2: return "Both bedroom lights are off" elif BB_DO1 or BB_DO2: return "At least one bedroom light is on" else: return "Both bedroom lights are on" # Test the function with the initial values BB_DO1 = False BB_DO2 ...
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package com.archimatetool.editor.views.tree.actions; import java.util.ArrayList; import java.util.List; import org.eclipse.gef.commands.CommandStac...
# Copyright 2022 The Google Research 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 agree...
#curl -L https://github.com/rockie-yang/data/raw/master/sfpd/sfpd.csv.gz -o data/sfpd.csv.gz docker run -d --rm -p 8080:8080 -p 8040:4040 -v `pwd`/data:/data -v `pwd`/notebook:/usr/zeppelin/notebook knockdata/zeppelin-highcharts
#ifndef CLIENT_TO_SERVER_REQUEST_HPP_ #define CLIENT_TO_SERVER_REQUEST_HPP_ //============================================================================ // Name : // Author : Avi // Revision : $Revision: #32 $ // // Copyright 2009-2020 ECMWF. // This software is licensed under the terms of the Apache ...
#!/bin/bash ./sbt \ "project accumulo" test \ "project accumulo-spark" test \ "project cassandra" test \ "project cassandra-spark" test \ "project gdal" test \ "project gdal-spark" test \ "project geotools" test \ "project hbase" test \ "project hbase-spark" test \ "project layer" test \ "project...
#!/bin/bash #SBATCH -J astar # job name #SBATCH -o Pipeline.o%j # output and error file name (%j expands to jobID) #SBATCH -n 1 # total number of mpi tasks requested #SBATCH -N 1 # total number of mpi tasks requested #SBATCH -p largemem # queue (partition) -- normal, develop...
<filename>spring/Web/SpringMvc0001/src/main/java/com/curso/spring/springmvc0001/web/controladores/PrimerControlador.java /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.curso.spring.springmvc0001.web.controladores; import javax.servlet.http.HttpServletRe...
<reponame>amitse/fluentui-react-native import { createMockThemingModuleHelper } from '../MockThemingModule'; export const ThemingModuleHelper = createMockThemingModuleHelper();
<filename>jsclient/src/components/ParameterList.js import React from 'react'; import PropTypes from 'prop-types'; import Parameter from './Parameter'; import './ParameterList.css'; class ParameterList extends React.Component { constructor(props) { super(props); this.onSaveToFlash = this.onSaveToFlash.bind(th...
import glob import os import os.path as osp missingLists = [] srcs = glob.glob('main*') srcs = [x for x in srcs if osp.isdir(x) ] for src in srcs: scenes = glob.glob(osp.join(src, 'scene*') ) scenes = sorted(scenes ) with open(src + '.txt', 'w') as fOut: for scene in scenes: envNames ...
int fibonacci(int n) { if (n <= 1) return n; return fibonacci(n - 1) + fibonacci(n + 2); }
def generate_create_table_query(columns: list) -> str: query = "CREATE TABLE table_name (\n" for column in columns: query += f" {column['name']} {column['data_type']}" if column.get('primary_key'): query += " PRIMARY KEY" if column.get('unique'): query += " UNI...
<gh_stars>1-10 /* * */ package net.community.chest.ui.helpers.input; import javax.swing.InputVerifier; import javax.swing.JComponent; import net.community.chest.awt.attributes.AttrUtils; /** * <P>Copyright 2008 as per GPLv2</P> * * @author <NAME>. * @since Jan 12, 2009 2:17:06 PM */ public class TextInputVeri...
#!/bin/bash # This file is used by # https://github.com/flutter/tests/tree/master/registry/flutter_packages.test # to run Dart static analysis and tests in this repository as a presubmit # for the flutter/flutter repository. # Changes to this file (and any tests in this repository) are only honored # after the commit ...
// Generated by script, don't edit it please. import createSvgIcon from '../../createSvgIcon'; import QuoteRightSvg from '@rsuite/icon-font/lib/legacy/QuoteRight'; const QuoteRight = createSvgIcon({ as: QuoteRightSvg, ariaLabel: 'quote right', category: 'legacy', displayName: 'QuoteRight' }); export default Q...
#!/bin/bash #!/bin/sh banner() { clear printf "************************************************************************************************ \n" printf "โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— \n" printf "โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— ...
#! /bin/bash # Copyright 2016 Google 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...
package com.company.warlock.core.generator.action.config; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; /** * ้ป˜่ฎค็š„ไปฃ็ ็”Ÿๆˆ็š„้…็ฝฎ * * @author fengshuonan * @date 2017-10-28-ไธ‹ๅˆ8:27 */ public class GunsGeneratorConfig extends AbstractGeneratorConfi...
<filename>lesson_5/hw_6.py<gh_stars>0 import re from transliterate import translit def normalize_str(string): if type(string).__name__ != 'str': return '' translate_str = translit(string, 'ru', reversed=True) result_str = re.sub('[^0-9A-Za-z]', '_', translate_str) return result_str if __nam...
#!/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 A...
#!/bin/bash set -o errexit set -o nounset set -o pipefail GOPATH=$(go env GOPATH) SRC=$GOPATH/src BIN=$GOPATH/bin ROOT=$GOPATH REPO_ROOT=$GOPATH/src/github.com/appscode/osm source "$REPO_ROOT/hack/libbuild/common/lib.sh" source "$REPO_ROOT/hack/libbuild/common/public_image.sh" APPSCODE_ENV=${APPSCODE_ENV:-dev} IMG=...
def filter_numbers(nums): result = [] for num in nums: if num <= 50: result.append(num) return result result = filter_numbers(numbers) print(result)
<reponame>kuro46/CommandUtility<gh_stars>1-10 package dev.shirokuro.commandutility; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.Arrays; import java.util.Objects; final class ReflectionUtils { private ReflectionUtils() { } /** * Returns human-readable method i...
from selenium import webdriver url = "https://www.example.com" chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--headless') driver = webdriver.Chrome(options=chrome_options) driver.get(url) htmlCode = driver.page_source print(htmlCode)
bin/console catalog:import_data_to_tmp https://katalogas.unishop.lt lit-LT bin/console catalog:import_data_to_tmp https://katalogas.unishop.lt eng-GB bin/console catalog:import_data_to_tmp https://katalogas.unishop.lt rus-RU bin/console catalog:import_data_to_tmp https://katalogas.unishop.lt lav-LV bin/console catalog:...
#!/usr/bin/env bash cd ../raft-java-core && mvn clean install -DskipTests cd - mvn clean package EXAMPLE_TAR=raft-java-example-1.9.0-deploy.tar.gz ROOT_DIR=./env mkdir -p $ROOT_DIR cd $ROOT_DIR mkdir example1 cd example1 cp -f ../../target/$EXAMPLE_TAR . tar -zxvf $EXAMPLE_TAR chmod +x ./bin/*.sh nohup ./bin/run_ser...
<gh_stars>0 package com.ua.nure.TestHelper.repository; import com.ua.nure.TestHelper.domain.User; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import java.util.List; public interface UserRepository extends JpaRepository<User, Long> { User fin...
CONFIGURATION=$(<./generator_config.txt) LAST_SCRIPT_VERSION=$(echo "$CONFIGURATION" | sed -n 's/SCRIPT_VERSION=\(.*\)/\1/p') [ "$LAST_SCRIPT_VERSION" != "$SCRIPT_VERSION" ] && echo "Script version mismatch. Please reconfigure the generator." && exit 0; API_PROJECT_DIRECTORY=$(echo "$CONFIGURATION" | sed -n 's/API_PR...
๏ปฟ#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection" #pragma clang diagnostic ignored "-Wuninitialized" #pragma ide diagnostic ignored "readability-non-const-parameter" /* * mov.c (c) 2018-20 <NAME> */ long mov_demo1...
/* * 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 bd; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList;...
<gh_stars>1-10 import { StringFormatter } from './StringFormatter'; import { ValueTooHugeError } from './ValueTooHugeError'; import { ValueInvalidError } from './ValueInvalidError'; describe('StringFormatter.numberWithDelimiter', () => { const formatter = new StringFormatter(); it('์„ธ์ž๋ฆฌ๋งˆ๋‹ค ๊ตฌ๋ถ„์ž๊ฐ€ ์ถ”๊ฐ€๋œ ์ˆซ์ž ํ˜•์‹์˜ ๋ฌธ์ž์—ด', ...
<reponame>tosin2013/microshift<gh_stars>100-1000 // +build !ignore_autogenerated_openshift // Code generated by conversion-gen. DO NOT EDIT. package docker10 import ( unsafe "unsafe" docker10 "github.com/openshift/api/image/docker10" image "github.com/openshift/openshift-apiserver/pkg/image/apis/image" conversi...
<filename>node_modules/redux-persist-expire/node_modules/redux-persist/lib/stateReconciler/autoMergeLevel1.js 'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbo...
export Client from './class/client' export Response from './class/response' export Conversation from './class/conversation' export Entity from './class/entity' export RecastError from './class/error'
<filename>src/core/cloak_normal_item.h<gh_stars>1-10 #ifndef INCLUDED_CORE_CLOAK_NORMAL_ITEM_H #define INCLUDED_CORE_CLOAK_NORMAL_ITEM_H #include "normal_item.h" #include "core/property_loader.h" #include "platform/export.h" class CloakNormalItem : public NormalItem { public: CloakNormalItem( int32_t id ); protec...
#!/bin/bash -e # the original chamfer map created in marching_cubes_fetus.pl # Date: 21 Aug 2019 # Author: Jennings Zhang <jenni_zh@protonmail.com> # &run( 'mincdefrag', $wm_mask, "${tmpdir}/wm_mask_defragged.mnc", 1, 6 ); # &run( 'mincchamfer', '-quiet', '-max_dist', '10.0', # "${tmpdir}/wm_mask_defragged.mnc",...
#!/bin/bash # This is the script that's executed by travis, you can run it yourself to run # the exact same suite # # When running it locally the most important thing to set is the CHANNEL env # var, otherwise it will run tests against every version of rust that it knows # about (nightly, beta, stable, 1.13.0): # # ...
<filename>packages/ethers-ethereum/src/index.ts import type { Contract} from "ethers" import { ethers } from "ethers" import type { TransactionResponse } from "@ethersproject/abstract-provider" import type * as EthereumProvider from "@rarible/ethereum-provider" import { signTypedData } from "@rarible/ethereum-provider"...
<gh_stars>100-1000 import { ITokenizerHandle, tokenize } from "protobufjs"; import * as vscode from "vscode"; class position { constructor(public line: number, public col: number) {} static from(pos: position): position { return Object.assign(new position(0, 0), pos); } } class token { constructor(public...
#include <iostream> #include <boost/process.hpp> namespace bp = boost::process; int main() { std::string command; std::cout << "Enter the command to execute: "; std::getline(std::cin, command); try { bp::ipstream pipe_stream; bp::child c(command, bp::std_out > pipe_stream); s...
package arez.spytools; import arez.Arez; import arez.spy.SpyEventHandler; import java.util.HashMap; import java.util.Map; import java.util.function.BiConsumer; import javax.annotation.Nonnull; import static org.realityforge.braincheck.Guards.*; /** * Abstract base class for processing spy events. * Simplifies handl...
#!/bin/bash env_name=$1 echo Preparing clean environment on $(hostname) in $(ls -id $(pwd)) export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64 export CUDA_VISIBLE_DEVICES=$EXECUTOR_NUMBER export CONDA_ENVS_PATH=$PWD/conda export CONDA_PKGS_DIRS=$PWD/conda/pkgs export MXNET_HOME=$PWD/tests/data export HOROVOD_WITHOUT_T...
export function formatFloatIfLarge(x: number, decimal: number): string { const stringedNumber = x.toString(); if (stringedNumber.length > decimal && stringedNumber.indexOf('.') > 0) { return x.toFixed(decimal); } return x.toString(); }
#!/bin/bash # # grc overides for ls # Made possible through contributions from generous benefactors like # `brew install coreutils` if gls &>/dev/null then alias ls="gls -F --color" alias l="gls -lAh --color" alias ll="gls -l --color" alias la='gls -A --color' fi
package demo.sap.safetyandroid.test.pages; import androidx.test.InstrumentationRegistry; import androidx.test.uiautomator.UiDevice; import androidx.test.uiautomator.UiObject; import androidx.test.uiautomator.UiObjectNotFoundException; import androidx.test.uiautomator.UiSelector; import demo.sap.safetyandroid.test.co...
<gh_stars>0 if (!Meteor.isClient) { return; } var MESSAGE_QUERIES = 'messages:queries'; var MESSAGE_CURRENT = 'messages:current'; Template.messagesNew.helpers({ queries: function() { return Session.get(MESSAGE_QUERIES); } }); Template.messagesNew.events({ 'keyup #message-new-text': function(e) { var $...
def merge_arrays(arr1, arr2): merged_arr = [] i, j = 0, 0 # Traverse both array while i < len(arr1) and j < len(arr2): # Check if current element of first # array is smaller than current element # of second array. If yes, store first # array eleme...
#!/bin/bash fswatch -o -r ../ | xargs -n 1 ./upload.sh
#!/usr/bin/env bash src=en tgt=de bedropout=0.5 ARCH=transformer_wmt_en_de ROOT=/apdcephfs/share_47076/elliottyan/co-work-projects/fairseq-bert #### MODIFY ###### KD_ALPHA=0.75 DATA_SIG=wmt14_en_de-bert-or-bart MODEL_SIG=d512_bart_fill_kd_bart_decoder_init_parameter1_alpha_${KD_ALPHA} #### MODIFY ###### DATAPATH=$ROO...
package controllers import ( "encoding/base64" "encoding/json" "fmt" "html/template" "net/http" "os" "path/filepath" "strings" ctx "github.com/gorilla/context" "github.com/gorilla/csrf" "github.com/gorilla/mux" "github.com/gorilla/sessions" "github.com/gorilla/websocket" "github.com/prateeknischal/webta...
import * as commandLineArgs from "command-line-args"; import * as semver from "semver"; import { isReleaseType } from "../release-type"; import { VersionBumpOptions } from "../types/version-bump-options"; import { ExitCode } from "./exit-code"; import { usageText } from "./help"; /** * The parsed command-line argumen...
#!/bin/bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi SAVED_DIR=`pwd` # Make sure you change the directory if your local setup is different cd /var/www/html/scripts php sendEmails.php cd ${SAVED_DIR}
package de.ids_mannheim.korap.oauth2.constant; /** * Defines possible OAuth2 client types. * * Quoted from RFC 6749: * <ul> * * <li> <b>Confidential clients</b> are clients capable of maintaining * the confidentiality of their * credentials (e.g., client implemented on a secure server with * restricted acc...
// Fibonacci series public class Fibonacci { public static void Main() { int n1 = 0, n2 = 1, n3, i, number= 50; Console.Write(n1+" "+n2+" "); //printing 0 and 1 for(i=2;i < number;++i) { n3=n1+n2; Console.Write(n3+" "); n1=n2; n2=n3; } } }
#!/bin/sh # Terminate already running bar instances killall -q polybar # Wait until the processes have been shut down while pgrep -u $USER -x polybar >/dev/null; do sleep 1; done # Stole from here: # https://github.com/jaagr/polybar/issues/763#issuecomment-331604987 if type "xrandr"; then for m in $(xrandr --que...
#!/bin/bash source scripts/helper.sh DEPS=(automake make libtool) if is_osx; then DEPS+=(gnu-sed) else DEPS+=(wget sudo clang unzip) fi echo "Checking and installing dependencies '${DEPS[*]}'..." # Check and install missing dependencies if ! is_osx; then apt-get update fi for DEP in "${DEPS[@]}"; do check_...
({ init: function(cmp, event, helper) { var key = $A.lockerService.getKeyForNamespace("apiviewer"); var secureWindow = $A.lockerService.getEnv(key); var report = helper.utils.tester.testObject(window, secureWindow); helper.utils.tester.sortReport(report); cmp.set("v.report", report); window....
#!/bin/sh [ -d $HOME/.emacs.d ] && exit 1 exit 0
#!/bin/sh TOPOLOGY_NAME="thresh-cluster" MYSQL_WAIT_RETRIES=${MYSQL_WAIT_RETRIES:-"24"} MYSQL_WAIT_DELAY=${MYSQL_WAIT_DELAY:-"5"} KAFKA_WAIT_RETRIES=${KAFKA_WAIT_RETRIES:-"24"} KAFKA_WAIT_DELAY=${KAFKA_WAIT_DELAY:-"5"} THRESH_STACK_SIZE=${THRESH_STACK_SIZE:-"1024k"} echo "Waiting for MySQL to become available..." ...
#!/bin/bash # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. assert_ok "$FLOW" check-contents test.js < test.js
import { NestFactory } from '@nestjs/core'; import { ExpressAdapter } from '@nestjs/platform-express'; import * as compression from 'compression'; import * as morgan from 'morgan'; import { AppModule } from './app.module'; import { ConfigService } from './shared/services/config.service'; import { SharedModule } from '....
#!/bin/bash # # Copyright (C) 2016 The CyanogenMod Project # Copyright (C) 2017-2020 The LineageOS Project # Copyright (C) 2020 Raphielscape LLC. and Haruka LLC. # # SPDX-License-Identifier: Apache-2.0 # set -e DEVICE=**** FILL IN DEVICE NAME **** VENDOR=**** FILL IN VENDOR NAME **** # Load extract_utils and do some...
import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense model = Sequential() model.add(Dense(8, activation='relu', input_shape=(3,))) model.add(Dense(4, activation='relu')) model.add(Dense(1)) model.compile(optimizer='adam', los...
package input import ( "context" _ "embed" "encoding/json" "errors" "fmt" "strings" "github.com/qri-io/jsonschema" ) //go:embed schemas/event.json var embeddedSchemaEvent string //go:embed schemas/manifest.json var embeddedSchemaManifest string type Schema = jsonschema.Schema type schemaCollection struct {...
<reponame>world9604/DoubleUEyeD<filename>app/src/main/java/com/hongbog/util/HttpConnection.java package com.hongbog.util; import com.hongbog.dto.SensorDTO; import okhttp3.Callback; import okhttp3.MediaType; import okhttp3.MultipartBody; import okhttp3.OkHttpClient; import okhttp3.RequestBody; /** * Created by taein...
#!/usr/bin/env bash set -euxo pipefail rm output/main.js ||: rm output/package.json ||: rm output/preload.js ||: rm output/renderer.js ||: rm output/README.md ||: sbt electronOutput electron output
import re with open('/Users/jamison/Downloads/rosalind_rna.txt') as f: data = f.read() print re.sub(r'T', r'U', data) ## Or alternatively: print(data.replace('T', 'U'))
#!/bin/bash sysctl -w net.ipv4.conf.all.forwarding=1 sysctl -w net.ipv4.conf.all.rp_filter=0 ip address add 1.0.1.18/24 dev eth4 sysctl -w net.ipv4.conf.eth4.forwarding=1 sysctl -w net.ipv4.conf.eth4.rp_filter=0 sysctl -w net.ipv6.conf.eth4.disable_ipv6=0 sysctl -w net.ipv6.conf.eth4.autoconf=0 ip address add 2000:0:1...
<filename>lcof_019/cpp_019/Solution1.h // // Created by ooooo on 2020/3/14. // #ifndef CPP_019__SOLUTION1_H_ #define CPP_019__SOLUTION1_H_ #include <iostream> #include <vector> #include <iostream> #include <vector> using namespace std; class Solution { public: bool dfs(int i, int j) { if (i >= s.size() && ...
public class Rectangle { // Length of the rectangle double length; // Breadth of the rectangle double breadth; // Constructor public Rectangle(double length, double breadth) { this.length = length; this.breadth = breadth; } // Method to calculate the area o...
namespace uchan { interface PersistableConstructor { new(): Persistable; } export interface Persistable { fromObject(obj: any); toObject(): any; } export class Persistence { prefix = 'uchan_'; localStorage: Storage; callbacks: { [key: string]: (()...
<reponame>morz/react-admin-import-csv<filename>src/csv-extractor.spec.ts<gh_stars>100-1000 import { processCsvData, getCsvData, processCsvFile } from "./csv-extractor"; import * as fs from "fs"; import * as path from "path"; function getFile(relPath: string): fs.ReadStream { const testCsvPath = path.join(__dirname, ...
<reponame>firatalcin/Patika-Java-Web-Development import java.util.Scanner; public class Main { /* KDV Tutarฤฑ Hesaplayan Program Java ile kullanฤฑcฤฑdan alฤฑnan para deฤŸerinin KDV'li fiyatฤฑnฤฑ ve KDV tutarฤฑnฤฑ hesaplayฤฑp ekrana bastฤฑran programฤฑ yazฤฑn. (Not : KDV tutarฤฑnฤฑ 18% olarak alฤฑn) KDV...
background.js let button = document.createElement("button"); button.innerHTML = "Change Color"; let body = document.getElementsByTagName("body")[0]; body.appendChild(button); button.addEventListener ("click", function() { body.style.backgroundColor = '#ff8e17'; }); manifest.json { "manifest_version": 2, ...
#include "WPlanner.h" int main(){ ict::WPlanner app("WPlanner.txt"); return app.run(); }
import React, { useState } from 'react'; const CreateUserForm = () => { const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const handleSubmit = (e) => { e.preventDefault(); // create user }; return ( <form onSubmit={handleSubmit}> <l...
/* **** Notes Compare addresses. Remarks: Refer at fn. cmpr. */ # define CAR # include "../../../incl/config.h" signed(__cdecl compare(signed char(*di),signed char(*si))) { /* **** CODE/TEXT */ if(!di) return(0x00); if(!si) return(0x00); if(si<(di)) si++; else return(0x00); return(0x01+(compare(di,si))); }
const mongoose = require('mongoose'); const itemSchema = new mongoose.Schema({ user: { type: mongoose.Schema.Types.ObjectId, ref: 'User'}, itemName: { type: String }, price: { type: Number }, description: { type: String }, }) module.exports = mongoose.model('Item', itemSchema);
angular.module('cms.shared').factory('shared.vimeoService', [ '$http', '$q', 'shared.errorService', function ( $http, $q, errorService ) { var service = {}, serviceUrl = 'https://vimeo.com/api/oembed.json?url=https%3A%2F%2Fvimeo.com%2F'; /* QUERIES */ service.getVideoI...
#!/bin/sh # Import GPG public keys echo "Importing GPG public keys..." gpg --import /keys/* # Create and install crontab file echo "Installing crontab..." echo "$CRON_INTERVAL /backup.sh" >> /backup.cron echo "Launching crontab..." crontab /backup.cron tail -f /dev/null
#!/usr/bin/env bash ##################################################### # Updated by Afiniel for Yiimpool use... ##################################################### source /etc/functions.sh source /etc/yiimpool.conf source $HOME/yiimpool/daemon_builder/.my.cnf cd $HOME/yiimpool/daemon_builder # Set what we need n...
#: @hide_from_man_page #: * `vendor-install` [<target>] #: #: Install Homebrew's portable Ruby. # HOMEBREW_CURLRC, HOMEBREW_LIBRARY, HOMEBREW_STDERR is from the user environment # HOMEBREW_CACHE, HOMEBREW_CURL, HOMEBREW_LINUX, HOMEBREW_LINUX_MINIMUM_GLIBC_VERSION, HOMEBREW_MACOS, # HOMEBREW_MACOS_VERSION_NUMERIC an...
public class Search { public static int searchValue (int[] arr, int value) { for (int i = 0; i < arr.length; i++) { if (arr[i] == value) { return i; } } return -1; } public static void main(String[] args) { int[] arr = {1,2,3,7,8,9}; int value = 7; int result = searchValue(arr, value); if (result == -1) ...
import React, { useState } from 'react'; import { Button, TextField, Typography, LinearProgress, } from '@material-ui/core'; import { useStaticQuery, graphql } from 'gatsby'; import emailjs from 'emailjs-com'; import SendIcon from '@material-ui/icons/Send'; import Default from '../../layouts/Default'; import SE...
<reponame>dawmlight/vendor_oh_fun #!/usr/bin/env python # coding: utf-8 # # Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of ...
#! /bin/bash : ${PROG:=$(basename ${BASH_SOURCE})} _cli_bash_autocomplete() { if [[ "${COMP_WORDS[0]}" != "source" ]]; then local cur opts base COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" if [[ "$cur" == "-"* ]]; then opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} ${cur} --generate-bash-completion ) ...
package io.opensphere.core.model.time; import static org.easymock.EasyMock.createMock; import static org.easymock.EasyMock.createNiceMock; import static org.easymock.EasyMock.expect; import static org.easymock.EasyMock.replay; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; imp...
// // MyWorkCircleCommentToolBar.h // czjxw // // Created by zhangy on 15/11/17. // Copyright ยฉ 2015ๅนด mariocmy. All rights reserved. // #import <UIKit/UIKit.h> #import "XHMessageTextView.h" #define kInputTextViewMinHeight 36 #define kInputTextViewMaxHeight 200 #define kHorizontalPadding 8 #define kVerticalPaddi...
#include <cstddef> #include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include "nifty/python/converter.hxx" #include "nifty/graph/rag/grid_rag_features.hxx" namespace py = pybind11; namespace nifty{ namespace graph{ using namespace py; template<class RAG,class T,std::size_t DATA_DIM> ...
<reponame>Walter1412/api_node_template 'use strict'; const { Model, DataTypes } = require('sequelize'); module.exports = sequelize => { class UserAccount extends Model { /** * Helper method for defining associations. * This method is not a part of Sequelize lifecycle. * The `models/index` file will...
#!/bin/bash failed_unit_count=$(systemctl --failed --quiet | grep "units listed" | grep -o "^[0-9]* ") [ ${failed_unit_count} -eq 0 ] && exit 0 systemctl --failed >&2
''' Created on Sep 2, 2012 @author: Luke ''' from reader.language_tools import Greek from reader.models import Lemma, Case, WordForm, WordDescription, Dialect from reader.importer.LineImporter import LineImporter import re import logging from time import time from django.db import transaction logger = ...
#!/bin/csh -f # # svn $Id: job_psas_sen.sh 2328 2014-01-23 20:16:18Z arango $ ####################################################################### # Copyright (c) 2002-2014 The ROMS/TOMS Group # # Licensed under a MIT/X style license # # See License_ROMS.txt ...
require 'rspec' $:.unshift(File.dirname(__FILE__) + '/../lib') require 'morpher_inflecter' def parsed_json(text) JSON.parse(text) end
<gh_stars>100-1000 // This file is part of the Orbbec Astra SDK [https://orbbec3d.com] // Copyright (c) 2015 Orbbec 3D // // 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.apa...
package time // Copyright (c) 2018, Arm Limited and affiliates. // SPDX-License-Identifier: Apache-2.0 // // 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/lic...