text
stringlengths
1
1.05M
def divisible_five(nums): result = [] for num in nums: if num % 5 == 0: result.append(num) return result
//#region IMPORTS import type Pose from '../../armature/Pose'; import type { IKChain, IKLink } from '../rigs/IKChain'; import QuatUtil from '../../maths/QuatUtil'; import Vec3Util from '../../maths/Vec3Util'; import { quat } fro...
# Define user definitions PROJECT_NAME=node_0 SAMPLE_TYPE=hello_world_small SOPCINFO_DIR=./../quartus SOPCINFO_FILE=qsys_system.sopcinfo CPU_NAME=nios2_0 # Define internal symbols BSP_STR=_bsp APP_NAME=$PROJECT_NAME BSP_NAME=$PROJECT_NAME$BSP_STR APP_DIR=$SOPCINFO_DIR/software/$APP_NAME BSP_DIR=$SOPCINFO_D...
if [[ -z "$GEM5_ROOT" ]]; then echo "GEM5_ROOT is not set!" 1>&2 exit 1 fi if [[ -z "$SPEC_ROOT" ]]; then echo "SPEC_ROOT is not set!" 1>&2 exit 1 fi cd $GEM5_ROOT/plot_scripts/ python3 plot_2cpu.py $GEM5_ROOT/eval_scripts/simu_condor/results/ docDist_2cpu_DAGguise docDist_2cpu_FSBTA docDist_2cpu_regu...
#!/usr/bin/env bash # Have script stop if there is an error set -e #REPO=broadinstitute REPO=ajgoade PROJECT=gatk REPO_PRJ=${REPO}/${PROJECT} GCR_REPO="us.gcr.io/broad-gatk/gatk" STAGING_CLONE_DIR=${PROJECT}_staging_temp ################################################# # Parsing arguments ##########################...
import os import torch import pytest from torch.utils.data.dataloader import DataLoader from src.models.model import cnnModel from src.data.make_dataset import mnistDataset model = cnnModel() @pytest.mark.parametrize( "test_input, expected", [("model.forward(torch.rand((1, 1, 28, 28))).shape", torch.Size([1, ...
<gh_stars>0 //package sequenced_tracer_menu_bar; // //import org.apache.commons.io.FilenameUtils; //import sequenced_tracer_menu_bar.star_panel.StarPanel; //import sequenced_tracer_panel.SequencedTracerPanel; // //import javax.imageio.ImageIO; //import javax.swing.*; //import java.awt.*; //import java.awt.event.ActionE...
<filename>src/main/java/com/example/test/api/repository/ProducerRepository.java package com.example.test.api.repository; import com.example.test.api.model.Producer; import com.example.test.api.model.Product; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @...
public class PathsInBinaryTree { // Helper function to print all the root-to-leaf paths in a binary tree public static void printPaths(Node root) { int[] paths = new int[1000]; printPathsUtil(root, paths, 0); } // Prints all the root-to-leaf paths in a binary tree public static void printPathsUtil(No...
<filename>entx/available/extension.go package available import ( "entgo.io/ent/entc" "entgo.io/ent/entc/gen" ) type ( Extension struct { entc.DefaultExtension templates []*gen.Template } ExtensionOption func(*Extension) error ) func NewExtension(opts ...ExtensionOption) (*Extension, error) { ex := &Extens...
describe("Set formatting attributes and ensure ep_markdown displays properly", function(){ //create a new pad before each test run beforeEach(function(cb){ helper.newPad(cb); this.timeout(60000); }); it("Creates bold section and ensures it is shown as **foo** when clicking Show Markdown", function(don...
<filename>lib/keen-query/filters.js 'use strict'; const shorthands = require('./shorthands'); function transformValue (value, handleList) { if (handleList === true) { return value.split(/,\s*/g) .map(transformValue); } // support strings passed in with quote marks if (/^("|'').*\1$/.test(value)) { return ...
// // SAMMeCell.h // SamosWallet // // Created by zys on 2018/8/21. // Copyright © 2018年 zys. All rights reserved. // /** 我的-交易记录、系统设置、关于我们 */ #import <UIKit/UIKit.h> @interface SAMMeCell : UITableViewCell + (void)registerWith:(UITableView *)tableView; + (CGFloat)cellHeight; - (void)setCellWithTitle:(NSString...
package com.nolanlawson.keepscore.db; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.databa...
/** * Created by secondwtq on 15-8-19. */ print('Test started.'); print('Test name: copy and attach'); print(); print('Create a CopyTestCopied object cpt.'); var cpt = new CopyTestCopied(); print('Deriving CopyTestDerived from CopyTest, add function newFunction()') function CopyTestDerived () { } CopyTestDerived.p...
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by <NAME>, <EMAIL>, All rights reserved. # LLNL-CODE-647188 # # For det...
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import java.io.File; import java.io.IOException; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.List; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; im...
/* * Copyright (C) 2017-2017 Alibaba Group Holding Limited */ package action import ( "github.com/cppforlife/bosh-cpi-go/apiv1" "bosh-alicloud-cpi/alicloud" "bosh-alicloud-cpi/registry" "github.com/denverdino/aliyungo/ecs" "fmt" ) type DetachDiskMethod struct { CallContext disks alicloud.DiskManager registr...
Run a statistical t-test on the given dataset to measure the differences in grades between male and female students, and generate a visualization of the differences.
<filename>0101-Symmetric-Tree/cpp_0101/Solution2.h<gh_stars>10-100 // // Created by ooooo on 2019/12/6. // #ifndef CPP_0101_SOLUTION2_H #define CPP_0101_SOLUTION2_H #include "TreeNode.h" #include <queue> class Solution { public: bool isSymmetric(TreeNode *root) { queue<TreeNode *> q; q.push(root)...
<gh_stars>0 package lib import ( "bytes" "fmt" "strings" "testing" "github.com/bxcodec/faker/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestPatchNuget_WithoutPreviousPackageSourceCredentials(t *testing.T) { source := faker.Word() username := faker.Username() passw...
import express from 'express'; import nomad from './nomad-client'; import consul from './consul-client'; let app = express(); app.get('/', (req, res, next) => index(req, res).catch(next)); app.get('/start', (req, res, next) => start(req, res).catch(next)); app.listen(4111, () => console.log('listening on 4111')); ...
#!/bin/bash set -e UBUNTU=false DEBIAN=false if [ "$(uname)" = "Linux" ]; then #LINUX=1 if type apt-get; then OS_ID=$(lsb_release -is) if [ "$OS_ID" = "Debian" ]; then DEBIAN=true else UBUNTU=true fi fi fi # Check for non 64 bit ARM64/Raspberry Pi installs if [ "$(uname -m)" = "armv7l" ]; then echo ...
def partition(arr, low, high): i = (low - 1) pivot = arr[high] for j in range(low, high): if arr[j] <= pivot: i += 1 arr[i], arr[j] = arr[j], arr[i] arr[i+1], arr[high] = arr[high], arr[i+1] return (i+1) def quickselect(arr, low, high, pivotIndex): if low <...
import { Project } from "@atomist/rug/model/Project"; import { Given, ProjectScenarioWorld, Then, When } from "@atomist/rug/test/project/Core"; When("the MyFirstEditor is run", (p, world) => { const w = world as ProjectScenarioWorld; const editor = w.editor("MyFirstEditor"); w.editWith(editor, { inputParam...
'use strict'; const {loadCSV} = require('../../csv'); const {compileString} = require('../../ejs.utils'); const fs = require('fs'); const path = require('path'); const tmpbuf = fs.readFileSync(path.join(__dirname, 'pnl.ejs')); const template = compileString(tmpbuf.toString()); /** * csv2pnl - csv to pnl * @param {...
<reponame>fsancheztemprano/chess-lite<gh_stars>0 import { ChangeDetectionStrategy, Component, OnDestroy } from '@angular/core'; import { CoreService } from '../../../../../../core/services/core.service'; import { TiledMenuTileData } from '../../../../../../shared/modules/tiled-menu/components/tiled-menu-tile/tiled-menu...
<gh_stars>1-10 exports.up = function (knex) { return knex.schema.createTable('local_addresses', function (table) { table.string('local_address').notNullable() table.string('user_id').notNullable() table.foreign('user_id').references('id').inTable('users') }) } exports.down = function (knex) { return ...
import pandas as pd import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB # Using a dataset of movie reviews df = pd.read_csv('movie_reviews.csv') # Extracting features from reviews vectorizer =...
class Status { private $description; /** * Sets the description of the task. * * @param string $description The description of the task. * * @return Status The updated status object. */ public function setDescription($description) { $this->description = $descriptio...
/* Given two or more arrays, write a function that combines their elements into one array without any repetition. E.g mergeArrays([1,2,3,3,3], [1,4,5,2]) // should return [1,2,3,4,5] */ function chunkArray(array, size) { // Code goes here } module.exports = chunkArray
package org.egovframe.rte.psl.dataaccess.mybatis; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.HashMap; import java.util.List; import java.util.Map; import org.egovframe.rte....
<gh_stars>1-10 /* ISC license. */ #include <sys/uio.h> #include <stdint.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include <limits.h> #include <skalibs/posixishard.h> #include <skalibs/uint32.h> #include <skalibs/stralloc.h> #include <skalibs/djbunix.h> #include <skalibs/socket.h> #include <skali...
<reponame>fujunwei/dldt // Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include <memory> #include <ngraph/opsets/opset1.hpp> namespace ngraph { namespace helpers { ngraph::OutputVector convert2OutputVector(const std::vector<std::shared_ptr<ngraph::Node>> &no...
#!/bin/sh set -e -x _version="$(printf "%s" "$REPO_BRANCH" | cut -c 2-)" _vermagic="$(curl --retry 5 -L https://downloads.openwrt.org/releases/${_version}/targets/ramips/mt76x8/openwrt-${_version}-ramips-mt76x8.manifest | sed -e '/^kernel/!d' -e 's/^.*-\([^-]*\)$/\1/g' | head -n 1)" OLD_CWD="$(pwd)" [ "$(find build_...
import React, { useEffect } from "react"; import Sidebar from "./Sidebar.js"; import "./dashboard.css"; import { Typography } from "@material-ui/core"; import { Link } from "react-router-dom"; import { Doughnut, Line } from "react-chartjs-2"; import { useSelector, useDispatch } from "react-redux"; import { getAdminProd...
<filename>javascript/150 exercicios basicos/125_longest_string.js function find_longest_str(array){ let longest=''; for(let i=0;i < array.length; i++){ if(array[i].length > longest.length){longest = array[i]} } return longest; } console.log(find_longest_str(['Javascript','Php','Python'])); conso...
<gh_stars>1-10 $:.push File.expand_path("../lib", __FILE__) # Maintain your gem's version: require "payment_info_rails/version" # Describe your gem and declare its dependencies: Gem::Specification.new do |s| s.name = "payment_info_rails" s.version = PaymentInfoRails::VERSION s.authors = ["<NAME>"...
class DynamicalSystem: def __init__(self, x0, A, C, K): self.x = x0 self.A = A self.C = C self.K = K def update(self): self.x = self.A * self.x + self.C * self.K
<filename>lib/tasks/change_hbx_id.rake require File.join(Rails.root,"app","data_migrations","change_hbx_id.rb") # This rake task merges people in Glue. # format RAILS_ENV=production bundle exec rake migrations:change_hbx_id database_id='some_mongo_id' person_hbx_id='original_hbx_id' new_hbx_id='new_hbx_id' namespace ...
# encoding: utf-8 module Selector describe Selector::Array do let(:left) { described_class.new [:foo, :bar] } let(:right) { described_class.new [:bar, :baz] } describe ".new" do subject { left } it { is_expected.to be_kind_of Collection } it { is_expected.to be_frozen } it...
#!/usr/bin/env bash rm -r $(ls | grep -v Makefile | grep -v goxbase | grep -v .env | grep -v LICENSE | grep -v README.md); cp goxbase/main.go .
<gh_stars>1000+ package otto import ( "strconv" "time" ) var ( prototypeValueObject = interface{}(nil) prototypeValueFunction = _nativeFunctionObject{ call: func(_ FunctionCall) Value { return Value{} }, } prototypeValueString = _stringASCII("") // TODO Make this just false? prototypeValueBoolean = V...
// import libraries import org.tensorflow.lite.Interpreter; // create interpreter to run the TFLite model Interpreter tflite = new Interpreter(file_path); // create input data float[][] data = {{1.0f, 2.0f, 3.0f}}; // set the number of threads used to run the model tflite.setNumThreads(4); // run the model and get...
def sum_of_digits(num): sum = 0 while num > 0: sum += num % 10 num //= 10 return sum print(sum_of_digits(291))
<gh_stars>0 import React, {useReducer} from 'react' import PropTypes from 'prop-types' import {HotTipContext} from './HotTipContext' import HotTipAnchor from './HotTipAnchor' import HotTipReducer from './reducer' export default function HotTipProvider({children}) { const context = useReducer(HotTipReducer, {}) re...
<reponame>WaleedSymbyo/mn #include "mn/Socket.h" #include "mn/Fabric.h" #include <WinSock2.h> #include <WS2tcpip.h> namespace mn { struct _WIN_NET_INIT { _WIN_NET_INIT() { WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested = MAKEWORD(2, 2); err = WSAStartup(wVersionRequested, &w...
TERMUX_PKG_HOMEPAGE=https://docs.xfce.org/xfce/thunar/start TERMUX_PKG_DESCRIPTION="Modern file manager for XFCE environment" TERMUX_PKG_LICENSE="GPL-2.0, LGPL-2.1" TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>" TERMUX_PKG_VERSION=1.8.15 TERMUX_PKG_SRCURL=https://archive.xfce.org/src/xfce/thunar/${...
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DSA-2318-1 # # Security announcement date: 2011-10-06 00:00:00 UTC # Script generation date: 2017-01-01 21:06:18 UTC # # Operating System: Debian 6 (Squeeze) # Architecture: x86_64 # # Vulnerable packages fix on version: # - cyrus-imapd-2.2:2.2.13-19+squeeze2...
describe('D&D 3.5 Happy Path', () => { it('Can create and delete a D&D 3.5 Character', () => { cy.visit('/'); cy.get('[data-cy=serviceSelect]').select('Local Storage'); cy.get('.selectorHeader > li > a[href="/dd35"]').click(); cy.location('pathname').should('eq', '/dd35'); cy...
#!/bin/sh python manage.py collectstatic --noinput python manage.py migrate gunicorn articles.wsgi -b 0.0.0.0:8000 --workers=4 --timeout 300
<reponame>jollyblade/migrations /** * Copyright 2010-2015 the original author or 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/li...
var _cl_lstm_float_workload_8cpp = [ [ "ClLstmFloatWorkloadValidate", "_cl_lstm_float_workload_8cpp.xhtml#a90ab88fe4c7aa9466c4653404a6b2213", null ] ];
<reponame>nodeca/nodeca.users // Delete moderator's note for user // 'use strict'; module.exports = function (N, apiPath) { N.validate(apiPath, { note_id: { format: 'mongo', required: true } }); // Check auth and permissions // N.wire.before(apiPath, async function check_auth_and_permissions(env) { ...
import * as assert from 'assert'; import { Pattern } from '../types'; import * as util from './pattern'; describe('Utils → Pattern', () => { describe('.isStaticPattern', () => { it('should return true for static pattern', () => { const actual = util.isStaticPattern('dir'); assert.ok(actual); }); it('sh...
package telegram import ( "context" "time" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5" "github.com/oneils/ynab-helper/bot/pkg/transaction" ) const commandStart = "start" func (b *Bot) handleMessage(message *tgbotapi.Message) error { txnMsg := transaction.TxnMessage{ ChatID: message.Chat....
def prepare_test_docs(trigger_extractor, trigger_generator, parameter_file, word_embeddings): if trigger_extractor is None: raise RuntimeError('Trigger extractor must be specified in parameter file.') trigger_generator = trigger_extractor.generator test_docs = prepare_docs(parameter_file['data']['...
package com.common.luakit; import org.chromium.base.ThreadUtils; public class NotificationHelper { private static native void postNotificationNative(int type , Object o); public static void postNotification( final int type ,final Object o){ ThreadUtils.runOnUiThread(new Runnable() { ...
# # Copyright (c) 2019 ISP RAS (http://www.ispras.ru) # Ivannikov Institute for System Programming of the Russian Academy of Sciences # # 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 # # h...
package com.srini.learning.algods.udemy.bigO; import java.util.HashSet; public class Q1 { // given an array and a sum find if the sum of pair equals sum // arr a=[1,2,3,4], sum=8 // a=[1,2,4,4], sum =8 public static void main(String[] args) { int a[]= {1,2,3,4}; int a2[]= {1,2,4,4}; System.out.println...
<filename>mp_sort/virtenv/lib/python3.6/site-packages/transcrypt/demos/parcel_demo/node_modules/parcel-bundler/lib/assets/JSAsset.js "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/async...
#!/usr/bin/env bash set -ex SCRIPT_DIR=$(dirname $(readlink -f $0)) cd $SCRIPT_DIR docker build -t todo-protos -f Dockerfile . docker run --rm \ -v $SCRIPT_DIR:/home/build \ -w /home/build \ --name todo-protos todo-protos:latest
var typed = $(".typed"); $(function() { typed.typed({ strings: ["<NAME>^1800"], typeSpeed: 100, loop: true, }); });
from typing import Dict, List, Tuple from py2puml.inspection.inspectmodule import inspect_domain_definition from py2puml.domain.umlitem import UmlItem from py2puml.domain.umlclass import UmlClass, UmlAttribute from py2puml.domain.umlrelation import UmlRelation, RelType from tests.asserts.attribute import assert_attr...
/** * Created by wll on 2017/3/1. */ $(function () { bindClick(); }); function bindClick() { var shape = $("#shape"); var height = $('#height'); var width = $("#width"); var length = $("#length"); var price = $("#price"); $("#sure").off("click").on("click", function () { if (sh...
# This script builds the Vale compiler, runs some tests on it, and also packages up a release zip file. # It assumes we've already ran prereqs-linux.sh, or otherwise installed all the dependencies. LLVM_DIR="$1" if [ "$LLVM_DIR" == "" ]; then echo "Please supply the LLVM directory." echo "Example: ~/clang+llvm-11....
package com.pillarhou.disk_info; import android.os.Environment; import android.os.StatFs; import android.text.format.Formatter; import java.io.File; import java.util.HashMap; import java.util.Map; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.comm...
#!/usr/bin/env sh export docker_tag=latest container_name=if-sitesearch docker_image_name=sis-sitesearch docker_network=sitesearch isBlueUp() { if [ -f "./blue-green-deployment.lock" ]; then rm ./blue-green-deployment.lock return 0 else touch ./blue-green-deployment.lock return...
#!/usr/bin/env sh set -o errexit set -o nounset go test `go list ./... | grep -v vendor` -v -tags='integration'
sudo apt update -y sudo apt install -y git wget unzip python3 python38 python38-pip python38-devel python3-devel make gcc gcc-c++ libffi-devel.ppc64le libffi.ppc64le cargo.ppc64le openssl.ppc64le openssl-devel.ppc64le ln -s /usr/bin/python3.8 /usr/bin/python pip3 install tox wheel setuptools_rust pip3 install cryptogra...
<reponame>zjqx1991/02_Struts2<gh_stars>0 /** * */ package com.revanwang.param; import com.opensymphony.xwork2.ActionSupport; import com.opensymphony.xwork2.ModelDriven; /** * @Desc * @author <NAME> * * @Date Jul 24, 20198:18:25 PM */ public class Param3Action extends ActionSupport implements ModelDriven<Use...
'use strict'; describe('Service: protocolHelperNew', function () { // load the service's module beforeEach(module('wetLabAccelerator')); // instantiate service var protocolHelperNew; beforeEach(inject(function (_protocolHelperNew_) { protocolHelperNew = _protocolHelperNew_; })); it('should do some...
//功能实现 //思路: //1. 给ul注册3个事件 touchstart touchmove touchend //2. 在touchstart中获取到开始位置 //3. 在touchmove中获取到移动的距离,让ul跟着移动 //4. 松手的时候,判断一个范围 ;(function () { var nav = document.querySelector(".jd_content .nav"); var ul = nav.querySelector("ul"); //记录开始的位置 var startY; //核心的变量,用来记录每次滑动后的位置 var cur...
def generate_n_grams(string, n): n_grams = [] for i in range(len(string)-n+1): n_grams.append(string[i:i+n]) return n_grams
#!/bin/sh set -e set -u set -o pipefail function on_error { echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" } trap 'on_error $LINENO' ERR if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy # frameworks to, so exit 0 (signalling the...
<reponame>elektronikasa/Native-VML-FED<gh_stars>100-1000 $(function() { var scotchPanel = $('#scotch-panel').scotchPanel({ containerSelector: 'body', direction: 'right', duration: 300, transition: 'ease', clickSelector: '.toggle-panel', distanceX: '70%', enabl...
CUDA_VISIBLE_DEVICES='6,7' python train_source.py
<reponame>tenebrousedge/ruby-packer<filename>ruby/spec/ruby/core/array/push_spec.rb require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) require File.expand_path('../shared/push', __FILE__) describe "Array#push" do it_behaves_like(:array_push, :push) en...
<reponame>RTEnzyme/vldb-2021-labs // Copyright 2016 PingCAP, 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 require...
#!/bin/bash set -o nounset set -o errexit set -o pipefail echo "************ baremetalds packet setup command ************" # TODO: Remove once OpenShift CI will be upgraded to 4.2 (see https://access.redhat.com/articles/4859371) ~/fix_uid.sh # Run Ansible playbook cd cat > packet-setup.yaml <<-EOF - name: setup Pa...
<reponame>xNombre/TowerOfHanoi // <NAME> // PWr 2020 #include "hanoi.h" #include "hanoi_alg.h" #include <stdio.h> int main() { HanoiTower_t *tower = NULL; rod_t **tab; unsigned element_count, rods, a, b; int ret, i; char l; printf("Element count: "); scanf("%ud", &element...
package com.example.elm.main_menu.ui.prediksi; import static android.app.Activity.RESULT_OK; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.co...
#!/usr/bin/env bats load test_helper @test "tags.category" { vcsim_env local output run govc tags.category.ls assert_success # no categories defined yet run govc tags.category.info assert_success # no categories defined yet run govc tags.category.info enoent assert_failure # category does not exist...
<filename>src/BookShelf.js<gh_stars>0 import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import BooksGrid from './BooksGrid'; /** * @class * @classdesc Componente que exibe todas as listas de leitura * @prop {array} books - Lista de todos os l...
pod lib lint git add -A && git commit -m "Release $1" git tag $1 git push --tags pod trunk push PayTheory.podspec
<filename>src/components/Content/index.module.css.d.ts export const contentRow: string export const contentPageHeader: string
<filename>src/renderer/renderer.js import ReactDMX from "./reconciler"; import { createElement } from "./createElement"; import dmx from "../util/dmx"; async function render(element) { // Create root container instance const container = createElement("ROOT"); // Returns the current fiber (flushed fiber) const...
<gh_stars>0 $(document).ready(function() { $(document).ready(function(){ $('.sub_menu_header').click(function() { $('.sub_menu_header').toggleClass('open'); }); }); $('.pay_close').click(function(){ $('body').removeClass('new_fix'); }); $('.field__input').on('input', function() { var $field = $(this)....
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for RHSA-2015:1439 # # Security announcement date: 2015-07-22 06:38:01 UTC # Script generation date: 2017-01-01 21:16:28 UTC # # Operating System: Red Hat 6 # Architecture: i386 # # Vulnerable packages fix on version: # - wpa_supplicant.i686:0.7.3-6.el6 # - wpa...
""" Print out a binary tree's level-order traversal """ class Node: def __init__(self, data): self.data = data self.left = None self.right = None def levelOrderTraversal(root): if root is None: return queue = [] queue.append(root) while(len(queue) > ...
package arkres import ( "context" "regexp" "testing" "time" "github.com/flandiayingman/arkwaifu/internal/pkg/test" ) var ( filterRegexp = regexp.MustCompile("^(avg/(imgs|bg))|(gamedata/(excel|levels/obt/main))") ) func TestGet(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Mi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); const events_1 = require("events"); const lodash_1 = require("../utils/lodash"); const Redis = require('../redis'); const debug = require('../utils/debug')('ioredis:cluster:connectionPool'); class Connectio...
SELECT d.name AS 'Department', MAX(s.salary) AS 'Highest Salary' FROM departments d INNER JOIN employees e ON d.id = e.department_id INNER JOIN salaries s ON e.emp_no = s.emp_no GROUP BY d.name;
'use babel'; 'use strict'; import { toggleClass } from './helpers'; import { toggleBlendTreeView } from './tree-view-settings'; function init() { toggleClass(atom.config.get('learn-ide-material-ui.tabs.tintedTabBar'), 'tinted-tab-bar'); toggleClass(atom.config.get('learn-ide-material-ui.tabs.compactTabs'), 'c...
<reponame>keller35/ssh2-sftp-client 'use strict'; // Example of using a writeable with get to retrieve a file. // This code will read the remote file, convert all characters to upper case // and then save it to a local file const Client = require('../src/index.js'); const path = require('path'); const fs = require('f...
def multiply_matrix(A, B): n = len(A) C = [[0] * n for _ in range(n)] for i in range(n): for j in range(n): for k in range(n): C[i][j] += A[i][k] * B[k][j] return C A = [[1, 2], [3, 4]] B = [[1, 2], [2, 3]] print(multiply_matrix(A,B))
<filename>src/engine/MultiverseGraph.ts import * as dagre from 'dagre'; import _ from 'lodash'; import { detectionInterface } from './interfaces'; // import { Graph, alg } from 'graphlib'; import QuantumSimulation from '@/engine/QuantumSimulation'; import QuantumFrame from '@/engine/QuantumFrame'; import Particle from ...
Game.Map.XXC = function() {}; Game.Map.XXC.prototype = { preload: function() {}, create: function() {}, update: function() {}, render: function() {} };
import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class WebScraper { public static void main(String[] args) throws IOException { String url = args[0]; // Connect to the specified URL Document doc = Jsoup.connect(url).get(); // Extract all the text from the web page String text = doc.text(); //...
<filename>arch/arm/stm/stm32f4_fmc.c /*- * Copyright (c) 2018 <NAME> <<EMAIL>> * 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 source code must retain the above co...