text
stringlengths
1
1.05M
#include "include/basket.hpp" int main(int argc, char* argv[]) { /* Make some fruit! */ Fruit banana; banana.name = "banana"; banana.color = "Yellow"; banana.rating = 5; Fruit apple; apple.name = "apple"; apple.color = "red"; apple.rating = 7; Fruit mango; mango.n...
from sklearn import datasets import pandas as pd from sklearn.model_selection import train_test_split from sklearn.naive_bayes import GaussianNB # Load the dataset data = {"Objects": ["Cat", "Car", "Bike"], "Category": ["Animal", "Vehicle", "Transportation"]} df = pd.DataFrame.from_dict(data) # Divide data...
<gh_stars>1-10 package com.example.bookingapp; /*Model class for bookings*/ public class BookingClass { private String clientName, clientAddress, clientEmail; private long dateTime; public BookingClass() { } public BookingClass(long dateTime, String clientName, String clientAddress, String cli...
#!/bin/bash # Copyright 2019 Google 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
#!/bin/bash env version=pthreads \ CXX=clang++ \ CXXFLAGS="-DNDEBUG -D_MM_NO_ALIGN_CHECK -g -Ofast" \ LIBS="-lGL -lGLU -lXmu -lXext -lXau -lX11 -ldl -lpthread -g -Ofast" \ ./configure make -j10 cp bin/rtview ./rtview.orig.exe
#include <iostream> #include <string> #include "DetectorData.h" // Assume the necessary header file for detector data types std::string performAnalysis(const HBHEDigiCollection& hbheData, const HFDigiCollection& hfData, const HODigiCollection& hoData) { // Perform analysis on the detector data // Example: Calc...
def factorial(n): result = 1 for i in range(1, n+1): result *= i return result print(factorial(3))
/* * Hedgewars, a free turn based strategy game * Copyright (c) 2004-2015 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License * * This program is ...
# # Copyright (C) 2021 Vaticle # # 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...
#ifndef H_LINGO_TEST_CASE #define H_LINGO_TEST_CASE #include <catch/catch.hpp> #include <lingo/string.hpp> #include <lingo/string_view.hpp> #include <lingo/encoding/execution.hpp> #include <lingo/encoding/point_iterator.hpp> #include <lingo/page/execution.hpp> #include "test_types.hpp" #include <cstddef> #include...
/*************************************************************************** * * Project _____ __ ____ _ _ * ( _ ) /__\ (_ _)_| |_ _| |_ * )(_)( /(__)\ )( (_ _)(_ _) * (_____)(__)(__)(__) |_| |_| * * * Copyright 2018-present, <NAME...
use failure::Fail; #[derive(Debug, Fail)] pub enum ParentsError { #[fail(display = "Missing parent for child")] MissingParent, #[fail(display = "Duplicate parent for child")] DuplicateParent, #[fail(display = "Invalid parent-child relationship")] InvalidRelationship, }
<filename>backend/src/domain/tezos/tezos.types.ts export type FaucetAccount = { mnemonic: string | string[]; secret: string; amount: string; // mutez pkh: string; password?: string; email: string; };
<reponame>pageobject-io/pageobject-generator "use strict"; const _ = require('lodash'); const parse5 = require('parse5'); const fs = require('fs'); const ParseResult = require('./parse-result'); class HtmlParser { constructor(source, isPath) { this._source = source; this._isPath = isPath; } parse() { ...
#!/bin/sh # # #PBS -N SimulSD #PBS -o output/output.file #PBS -e error/error.file #PBS -m a #PBS -l walltime=11:30:00 #PBS -l vmem=30GB # #----------------------------------------------------# # MODULES TO LOAD IN module load R/3.2.1-intel-2015a #----------------------------------------------------# #---------------...
'use strict'; const { Database } = require('sqlite3').verbose(); const db = new Database('example.sqlite', () => console.log('Connected!')); db.run("CREATE TABLE IF NOT EXISTS employees (id INT, first_name TEXT, last_name TEXT)"); const errorHandler = (err) => { if (err) { console.log(`Msg: ${err}`); }; }; ...
import { useMutation, useQueryClient } from 'react-query'; import { Routes } from 'lib-client/constants'; import axiosInstance from 'lib-client/react-query/axios'; import { AxiosError } from 'axios'; import { signOut } from 'next-auth/react'; export type SeedResponseType = { success: boolean; }; const createSeed = ...
<gh_stars>0 interface Document { selection: { } } // Credits: https://stackoverflow.com/questions/2897155/get-cursor-position-in-characters-within-a-text-input-field export function getCursorPos(element : HTMLInputElement) : number { // if (document.selection) { // element.focus(); //...
#ifndef INTERFACEMODEL_H #define INTERFACEMODEL_H #include "dependency.h" #include "class.h" #include "struct.h" #include "enum.h" #include "simpletypeelement.h" #include "printer.h" #include <set> class InterfaceModel { public: InterfaceModel(); void print(Printer& printer); const CodeElement* get_ty...
#!/bin/bash sudo -u ec2-user -i <<'EOF' echo "export GRAPH_NOTEBOOK_AUTH_MODE=DEFAULT" >> ~/.bashrc # set to IAM instead of DEFAULT if cluster is IAM enabled echo "export GRAPH_NOTEBOOK_HOST=CHANGE-ME" >> ~/.bashrc echo "export GRAPH_NOTEBOOK_PORT=8182" >> ~/.bashrc echo "export NEPTUNE_LOAD_FROM_S3_ROLE_ARN=" >> ~/...
#!/bin/bash set -v set -e SDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) cd ${SDIR} cd .. mkdir -p _static mkdir -p _templates rm -rf ./generated export SPHINX_APIDOC_OPTIONS=members,undoc-members sphinx-apidoc -o ./generated -f -e -T -M ../../pydarkstar ../../pydarkstar/tests ../../pydarkstar/apps rm -f ./ge...
<filename>kratos/test/client/client.go // // Copyright 2022 SkyAPM org // // 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 requir...
<filename>SCRIPTS/mts_wait.sql<gh_stars>0 REM FILE NAME: mts_wait.sql REM LOCATION: System Monitoring\Reports REM FUNCTION: Generate wait time report for dispatchers REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1 REM PLATFORM: non-specific REM REQUIRES: v$queue, v$dispatcher REM REM This is a part of t...
#!/bin/sh # OpenSSL configuration CERTDIR=./priv/test_certs CADIR=$CERTDIR/ca [ -d $CERTDIR ] || mkdir -p $CERTDIR [ -d $CADIR ] || mkdir $CADIR [ -d $CADIR/ca.db.certs ] || mkdir $CADIR/ca.db.certs touch $CADIR/ca.db.index echo 01 > $CADIR/ca.db.serial cat>$CADIR/ca.conf<<'EOF' [ ca ] default_ca = ca_default [ ca_...
# Calculate the best possible score for the player's hand for card in your_cards: if card != 'A': score += card else: if ace_set and score + ace_value <= 21: score += ace_value else: score += 1 # Calculate the best possible score for the dealer's hand for card in...
import org.apache.spark.ml.classification.{LogisticRegression, RandomForestClassificationModel} import org.apache.spark.ml.evaluation.MulticlassClassificationEvaluator import org.apache.spark.ml.feature.{VectorAssembler, StringIndexer} // Read the dataset val df = spark.read.option("header","false").csv("data.csv") /...
void Manager::setAttribute(AttributeName attribute, AttributeValue value) { // Access the pendingAttributes function from the base class auto pendingAttrs = Base::pendingAttributes(); // Perform operations to set the attribute with the given value // Example: Assuming pendingAttributes returns a map, s...
/* * 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 * distribut...
#!/bin/bash cd $GOPATH/src PROJECT=github.com/mesg-foundation/core protoc --go_out=./ $PROJECT/service/service.proto # build Proto API protoc --go_out=plugins=grpc:./ --proto_path=./ $PROJECT/api/core/api.proto protoc --go_out=plugins=grpc:./ --proto_path=./ $PROJECT/api/service/api.proto
#!/usr/bin/env bash set -e echo Generating all 2>&1 lua generate.lua fosdem17/list all >out/all.mermaid docker run -v $(pwd)/out:/src mermaid mermaid -w 8192 -o /src /src/all.mermaid
SELECT avg(salary) FROM Employees WHERE department IN (SELECT department FROM Employees GROUP BY department ORDER BY count(*) DESC LIMIT 1);
#!/usr/bin/env bash # Terminate already running bar instances killall polybar # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch polybar polybar main -c ~/.config/polybar/dracula/config.ini &
// list of settings, events, and methods: http://kenwheeler.github.io/slick/ // there may be some additional ones specific to the HubSpot version // note: I'm using the slick-initialized class. if you have multiple sliders on your page you'll need to be more specific in your selectors. // get the value of an option...
<filename>src/drawer/Drawer.tsx<gh_stars>1-10 import React from 'react'; import ReactDOM from 'react-dom'; import { CSSTransition } from 'react-transition-group'; import cx from 'classnames'; import bem from '../utils/bem'; import { isBrowser } from '../utils/vars'; const b = bem('rdf-drawer'); const drawerMap: Recor...
#!/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 # "L...
<reponame>jeffrey-xiao/acm-notebook<gh_stars>1-10 /* Time: O(V^3) * Memory: O(V^2) */ #include <bits/stdc++.h> using namespace std; struct MinCut { int N; vector<vector<int>> adj; vector<int> weight; vector<bool> inContraction, used; MinCut(int N) : N(N), adj(N, vector<int>(N)), weight(N, 0), inContracti...
import React from 'react'; import { connect } from 'react-redux'; import UserSettings from '../components/main/UserSettings'; import { setTheme, } from "../actions/SettingsActions"; const UserSettingsContainer = props => <UserSettings {...props} />; const mapStateToProps = (state) => { // const { } = state; ...
<reponame>lostmsu/RoboZZle-Droid<filename>src/com/team242/robozzle/achievements/PuzzleListAchievement.java package com.team242.robozzle.achievements; import com.team242.robozzle.model.Puzzle; import java.util.HashSet; import java.util.Set; /** * Created by IntelliJ IDEA. * User: lost * Date: 11.11.11 * Time: 19:...
#!/usr/bin/env bash export DEBIAN_FRONTEND="noninteractive" wget -O - http://v.s.cz/info@vitexsoftware.cz.gpg.key|sudo apt-key add - echo deb http://v.s.cz/ stable main | tee /etc/apt/sources.list.d/vitexsoftware.list apt-get update apt-get install -y php-cli php-curl php-pear php-intl php-zip composer dpkg-dev devscr...
<gh_stars>0 /* **** Notes Copy //*/ # define CALEND # define CAR # include "../../../incl/config.h" signed(__cdecl cals_copy_events(cals_event_t(*di),cals_event_t(*si))) { auto cals_event_t *ev; auto signed i,r; if(!di) return(0x00); if(!si) return(0x00); R(w,*di) = (R(w,*si)); R(b,*di) = (R(b,*si)); R(t,*di) = ...
package com.lewisallen.rtdptiCache.repositories; import com.lewisallen.rtdptiCache.models.Station; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; public interface TrainRepository extends JpaRepository<Station, String> { List<Station> findByRetrieve(int retrieve); }
#!/bin/bash # Create data file needed for Positve City Case Counts # Fetch the daily cases page. Save in csv format in a file named with today's date. # Aggregate the daily data into a single cumulative csv file. # Customized for RaspberryPi # Fetch the daily data page and parse it. wget -q -O - https://e.infogram.c...
<gh_stars>1-10 package com.dieselpoint.norm; import static org.junit.Assert.fail; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import javax.persistence.*; import org.junit.Ignore; import org.junit.Test; public class TestSelect { @Test public void selectTest() { D...
#!/usr/bin/env sh # generated from catkin/cmake/template/setup.sh.in # Sets various environment variables and sources additional environment hooks. # It tries it's best to undo changes from a previously sourced setup file before. # Supported command line options: # --extend: skips the undoing of changes from a previou...
<reponame>intel/intel-iot-services-orchestration-layer-dev<gh_stars>0 /****************************************************************************** Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
#!/bin/bash # Compile SINGE_GLG_Test.m and SINGE_Aggregate.m for macOS # Run from the repository base directory # Compile SINGE creating binaries for SINGE_GLG_Test.m and SINGE_Aggregate.m # Rename both files to include the _mac suffix so that there are not filename collisions mv code/SINGE_GLG_Test.m code/SINGE_GLG_T...
echo "pwd: "$PWD export NODE_ENV=production # remove any existing distribution rm -rf dest npm install --production electron-packager . $npm_package_productName --out=dest --ignore='(test|backups|github)' --asar=false --platform=darwin --arch=x64 --version=$(npm run electronVersion) --icon=res/app-icons/Crypter.icns...
// Use server-friendly technology const http = require('http'); const https = require('https'); const fs = require('fs'); // Use async methods const get = async (url) => { return new Promise((resolve, reject) => { https.get(url, (res) => { let data = ''; res.on('data', (chunk) => { data += ch...
<gh_stars>1-10 /* * Copyright (C) 2011 The Guava 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...
package com.codernauti.sweetie.firebase; import android.net.Uri; import android.support.annotation.NonNull; import android.util.Log; import com.google.android.gms.tasks.OnFailureListener; import com.google.android.gms.tasks.OnSuccessListener; import com.google.firebase.database.DataSnapshot; import com.google.firebas...
//##################################################################### // Copyright 2004-2005, <NAME>, <NAME>, <NAME>, <NAME>. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //######################################################...
package vcs.citydb.wfs.operation.getpropertyvalue; import net.opengis.ows._1.ExceptionReport; import net.opengis.wfs._2.GetPropertyValueType; import net.opengis.wfs._2.ResultTypeType; import net.opengis.wfs._2.TruncatedResponse; import org.citydb.core.database.connection.DatabaseConnectionPool; import org.citydb.core....
<filename>_src/six_seven/eclipse/SpringFreshFruitsStore/src/it/freshfruits/domain/entity/BaseEntity.java package it.freshfruits.domain.entity; public interface BaseEntity { public Integer getId(); }
#!/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 "License...
#!/usr/bin/env bash set -e here=$(dirname "$0") SOLANA_ROOT="$(cd "$here"/..; pwd)" # shellcheck source=net/common.sh source "$here"/common.sh usage() { exitcode=0 if [[ -n "$1" ]]; then exitcode=1 echo "Error: $*" fi CLIENT_OPTIONS=$(cat << EOM -c clientType=numClients=extraArgs - Number of clientTy...
python transformers/examples/language-modeling/run_language_modeling.py --model_name_or_path train-outputs/1024+0+512-N-IP/13-model --tokenizer_name model-configs/1536-config --eval_data_file ../data/wikitext-103-raw/wiki.valid.raw --output_dir eval-outputs/1024+0+512-N-IP/13-1024+0+512-HPMI-first-256 --do_eval --per_d...
def foo(a, b=345, c=22): if a == 1: return b * c else: return a + b + c
import React from "react"; import { mount } from "enzyme"; import App from "../../src/App"; describe("App", () => { it("renders Hello, world.", () => { const wrapper = mount(<App />); expect(wrapper.find(".hello").text()).toContain("Hello, viewers."); }); });
package lgbt.princess.v /** * This package contains the [[SemVer]] class for representing [[https://semver.org/ SemVer versions]], as well as * symbolic methods for conveniently constructing and extracting SemVer versions. */ package object semver
#!/usr/bin/env bash # Copyright 2016 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 applica...
#!/bin/bash echo "a.speed:10000" > /dev/ttyUSB0 echo "a.turn:fwd" > /dev/ttyUSB0 echo "b.cmd.param:64.kvalhold" > /dev/ttyUSB0 echo "b.cmd.softstop" > /dev/ttyUSB0 echo "c.speed:10000" > /dev/ttyUSB0 echo "c.turn:fwd" > /dev/ttyUSB0 echo "d.speed:10000" > /dev/ttyUSB0 echo "d.turn:rev" > /dev/ttyUSB0 echo "run" > /de...
#!/usr/bin/env sh docker push bausparkadse/aws-ecr-gitlab:3
#!/bin/sh set -eu # shellcheck source=cygwin/path.sh . "$EOPEN_ROOT/cygwin/path.sh" # shellcheck source=share/wd.sh . "$EOPEN_ROOT/share/wd.sh"
SELECT COUNT(*) FROM (SELECT COUNT(*) AS total_orders FROM orders GROUP BY user_id HAVING total_orders >= 5) AS users;
require 'spec_helper' RSpec.describe 'LucidMail' do context 'on server' do it 'can create a mail' do result = on_server do mail = LucidMail.new(component: 'EmailComponent', props: { name: 'Werner' }, from: '<EMAIL>', to: '<EMAIL>', subject: 'Welcome') mail.build mail.rendered_compon...
#!/bin/bash # Check if Go is installed if command -v go &> /dev/null then # Cross compile using Docker docker run --rm -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp golang:latest go build -v ./cmd/... else # Cross compile using curl curl -O https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz tar -C...
package com.learning; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.annotation.ComponentScan; @SpringBootConfiguration @EnableAutoConfiguration @ComponentScan public class ModuleGroupConfiguration { }
#!/bin/bash for ID in {1..200} do message="{\"action\": \"test\", \"params\": [$2, \"$1-$ID\"]}"; length=${#message} { echo "$length~$message"; } | telnet localhost 5000; done
<gh_stars>1-10 import ctypes import os from .. import Indicators_t, Control_t if os.name == 'nt': _LIBRARY_FILE = "dd-drivecontroller.dll" else: _LIBRARY_FILE = "libdd-drivecontroller.so" try: _CURRENT_SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__)) _DEFAULT_LIBRARY_PATH = os.path.join(_CUR...
#Install or upgrade NLTK and numpy pip install --upgrade nltk pip install --upgrade numpy mkdir -p dependencies mkdir -p models cd dependencies #Get the source of udpipe (we need it to train models) git clone https://github.com/ufal/udpipe.git ##Download the syntactically annotated data for Latvian that has been cre...
#!/bin/bash # source /etc/profile.d/modules.sh source ~/.bashrc # export OMP_NUM_THREADS=56 export MKL_NUM_THREADS=1 # julia --check-bounds=no --math-mode=fast --optimize=3 --inline=yes --compiled-modules=yes 6-311++G_2d_2p/uracil_trimer.jl
public class BubbleSort { public static void sort(int[] arr) { int n = arr.length; for (int i = 0; i < n-1; i++) { for (int j = 0; j < n-i-1; j++) { if (arr[j] > arr[j+1]) { // swap elements int temp = arr[j]; ar...
<gh_stars>1-10 #include "stdafx.h" #include "draw_texture_3d.h" #include "matrix_call.h" #include "flowvis/shader.h" #include "mmcore/CoreInstance.h" #include "mmcore/view/CallRender3D_2.h" #include "mmcore/view/Camera_2.h" #include "compositing/CompositingCalls.h" #include "vislib/Exception.h" #include "vislib/gra...
/* ssln_adi.h - includes files needed by ssln_adi.c ENUMS: TYPEDEFS: DEFINITIONS: MACROS: */ #ifndef SSLN_ADI_H #include <ssln_cmn.h> #define SSLN_ADI_H NULL #endif
const MS_PER_SEC = 1000; const SECONDS_PER_MINUTE = 60; const MINUTES_PER_HOUR = 60; const HOURS_PER_DAY = 24; export const msToHumanReadable = (ms) => { const humanTimeParts = []; const time = ms > 0 ? ms : 0; const seconds = Math.floor((time / MS_PER_SEC) % SECONDS_PER_MINUTE); const minutes = Math.floor((t...
<filename>datasampler/__init__.py import datasampler.class_random_sampler import datasampler.random_sampler import datasampler.rrandom_sampler import datasampler.fid_batchmatch_sampler import datasampler.greedy_coreset_sampler import datasampler.spc_fid_batchmatch_sampler import datasampler.distmoment_batchmatch_sample...
/* * Copyright 2017-present Open Networking Foundation * * 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 appli...
// constant_ops.rs pub mod constant_ops { pub fn perform_mathematical_operation(a: i32, b: i32) -> i32 { a + b } pub fn compare_values<T: PartialEq>(a: T, b: T) -> bool { a == b } pub fn convert_to_string<T: ToString>(value: T) -> String { value.to_string() } } // env_...
#!/bin/bash rm ./vmr.xsd awk "/<xs:annotation>/{h=1};!h;/<\/xs:annotation>/{h=0}" ./original/vmr.xsd > ./vmr.xsd rm ./datatypes.xsd awk "/<xs:annotation>/{h=1};!h;/<\/xs:annotation>/{h=0}" ./original/datatypes.xsd > ./datatypes.xsd
<reponame>OsakaStarbux/Stock-Price-Checker /* * * * FILL IN EACH UNIT TEST BELOW COMPLETELY * -----[Keep the tests in the same order!]---- * (if additional are added, keep them at the very end!) */ var chai = require('chai'); //var StockHandler = require('../controllers/stockHandler.js'); //var stoc...
<filename>test/utils/utils.test.js /** * @file Tests from Utils Module to ensure compatibility * @since 1.0.0-alpha3 */ import { Utils } from '@lib/ootk-utils.js'; // eslint-disable-line const numDigits = 8; const earthRadius = 6378.137; const sincos45deg = Math.sqrt(2) / 2; describe('Doppler factor', () => {...
class BoxManager: __arghelp__ = "Class for managing parent-child relationship and boxing rules" def __init__(self): super().__init__() self._load_plug = None def box_parent(self, parent, box): """ Method to set up the parent-child relationship and create a plug for loading ...
<filename>lib/praxis/controller.rb require 'active_support/concern' require 'active_support/inflector' module Praxis module Controller extend ActiveSupport::Concern included do attr_reader :request attr_accessor :response Application.instance.controllers << self self.instance_eval d...
<filename>ch13-ajax/ch13-rhinounit/rhinounit_1_2_1/jslint/jslintant.js // jslintant.js // The following is copied almost completely from <NAME>' blog at // // http://dev2dev.bea.com/blog/jsnyders/archive/2007/11/using_jslint_from_ant.html // // It is included as part of the rhinounit testsuite for completeness ...
<reponame>NikVogri/manineta-site<filename>src/pages/itemTemplate.js<gh_stars>0 import React from "react" import Layout from "../components/Layout/Layout.component" import { Container } from "react-bootstrap" import { graphql } from "gatsby" import ItemInfo from "../components/ItemInfo/ItemInfo.component" import Similar...
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.validation.Valid; /** * BQInternalPublicationRetrieveOutputModelInternalPublicationI...
<gh_stars>0 import os import requests from discord import Member from discord_slash.utils.manage_commands import create_option, SlashCommandOptionType from .infrastructure import record_usage, registered_guild_and_admin_or_mod_only, CommandDefinition, defer_cmd headers = { 'Authorization': os.getenv("DISCORD_BO...
package com.company; import java.util.Scanner; public class Exercise_4_5 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the number of sides: "); int n = input.nextInt(); System.out.print("Enter the side: "); ...
<gh_stars>0 module Teamweek module Pipes module Trello class Repository attr_reader :client def initialize(options) @client = build_client(options) end def pull_data fail NotImplementedError end def map_data fail NotImplemented...
<reponame>lananh265/social-network "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ic_flash_auto_twotone = void 0; var ic_flash_auto_twotone = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M0 0h24v24H0V0z", "fill": "none" ...
interface Vehicle { name: string; wheels: number; } interface Car extends Vehicle { door: number; } interface Motor extends Vehicle { jok: number; } // Implements Car yang Extends Vehicle class Civix implements Car { name: string = "Civix"; wheels: number = 4; door: number = 2; } class Supra implement...
def find_div_by_five(nums): """Find all numbers in a list that are divisible by 5""" div_by_five = [] for num in nums: if num % 5 == 0: div_by_five.append(num) return div_by_five result = find_div_by_five([2,4,10,20,25]) print(result)
<reponame>tdm1223/Algorithm // 15917. 노솔브 방지문제야!! // 2021.08.26 // 수학 #include<iostream> using namespace std; int main() { int t, k; scanf("%d", &t); for (int i = 0; i < t; i++) { scanf("%d", &k); if ((k & (-k)) == k) { printf("1\n"); } else ...
/*! * vuex-smart-module v0.4.6 * https://github.com/ktsn/vuex-smart-module * * @license * Copyright (c) 2018 katashin * Released under the MIT license * https://github.com/ktsn/vuex-smart-module/blob/master/LICENSE */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined'...
#!/bin/bash set -e # Add host entries to match local docker development names. echo "Adding service hosts records" declare -a arr=("localstack") for i in "${arr[@]}"; do echo 127.0.0.1 "$i" | tee -a /etc/hosts done
#!/bin/sh set -e mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt > "$RESOURCES_TO_COPY" XCASSET_FILES=() case "${TARGETED_DEVICE_FAMILY}" in 1,2) TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" ;; 1) ...
<reponame>quarkfin/QF-Lib # Copyright 2016-present CERN – European Organization for Nuclear Research # # 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...
import React from "react"; import { Container } from "reactstrap"; const Contactus = () => { return( <div id="contactus"> <Container> <br/><br/><br/><br/> <div className="ui conatiner"> <div className="ui black segment center aligned"> ...
#!/bin/sh test_description="Migration to many different versions" GUEST_IPFS_2_TO_3="sharness/bin/fs-repo-2-to-3" . lib/test-lib.sh test_expect_success "start a docker container" ' DOCID=$(start_docker) ' test_install_version "v0.3.7" test_expect_success "'ipfs init' succeeds" ' export IPFS_PATH=/root/.ipfs && ...
#!/bin/bash if [[ -d "$1" ]]; then current="$1" cd "$1" || exit 1 shift else exit 1 fi args=( "$@" ) for i in "${!args[@]}"; do args[$i]=".${args[i]#$current}" done exec urxvt -name floating -e vidir "${args[@]}"