text
stringlengths
1
1.05M
import numpy as np import cv2, os, sys, json from PIL import Image from matplotlib import pyplot as plt # 首先以灰色读取一张照片 img_path = r"E:\Projects\Fabric_Defect_Detection\model_proto\ShuffleNetV2_YOLOv3\v1.1\dataset\valid\valid_gray_1_1600.png" """ src = cv2.imread(img_path, 0) # 然后用ctvcolor()函数,进行图像变换。 src_RGB = cv2.cvtC...
// Import React import React from 'react' import ChangingWords from './changing-words' import WordCloud from './wordcloud' // Import Spectacle Core tags import { BlockQuote, Cite, Deck, Heading, Quote, Slide, Text, Appear, Image, Link, S, List, ListItem, Notes, ComponentPlayground } from ...
<reponame>Prospector/Routiduct package prospector.shootingstar; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; public class ItemCompound { private String modid; private Item item; private ResourceLocation registryName; public ItemCompound(String modid, Item item) { ...
from typing import List def uniquePaths(grid: List[List[int]]) -> int: m, n = len(grid), len(grid[0]) dp = [[0] * n for _ in range(m)] for i in range(m): for j in range(n): if grid[i][j] == 1: # obstacle dp[i][j] = 0 elif i == 0 and j == 0: # start positio...
w.resize(*w.size_request()) # originally posted as http://code.activestate.com/recipes/523049-shrink-pygtk-window/
<filename>antiqueProjectApp/forms.py from django import forms from antiqueProjectApp.models import AntiqueSale class AntiquePurchaseForm(forms.ModelForm): class Meta: model = AntiqueSale fields = ('antique', 'customerFirstName', 'customerLastName', 'customerAddressLine1', 'customerAddressLine2', ...
kubectl run qotm --image=datawire/qotm:1.3 --port=5000 --expose
<filename>test/controllers/following_channels_controller_test.rb<gh_stars>0 require "test_helper" class FollowingChannelsControllerTest < ActionDispatch::IntegrationTest setup do @following_channel = following_channels(:one) end test "should get index" do get following_channels_url assert_response :...
def object_attributes(obj): attributes = {} for attr_name in dir(obj): if not attr_name.startswith("__"): # Exclude built-in attributes attr_value = getattr(obj, attr_name) if callable(attr_value): # Check if the attribute is a method attributes[attr_name] = "me...
import "../packages/style/lib/scss/reset.scss"; import "../packages/style/lib/scss/ant.scss"; import "../packages/style/lib/scss/colors.scss"; import "../packages/style/lib/scss/typography.scss";
<filename>gui/BalancesPanel.java package gui; import java.awt.Button; import java.awt.Font; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.File; import java.math.RoundingMode; import java.net.URL; import java.text.DecimalFormat; import java.util.LinkedList; import javax.imag...
// // Copyright 2020 IBM Corporation // // 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 ...
#!/bin/bash # # Copyright IBM Corp All Rights Reserved # # SPDX-License-Identifier: Apache-2.0 # # This script will orchestrate a sample end-to-end execution of the Hyperledger # Fabric network. # # The end-to-end verification provisions a sample Fabric network consisting of # two organizations, each maintaining two ...
set -euxo pipefail main() { local src=$(pwd) local td=$(mktemp -d) local version=0.1.8 local url=https://github.com/japaric/cortex-m-quickstart/archive/v$version.tar.gz pushd $td curl -L $url | tar --strip-components 1 -xz rm -rf build.rs examples memory.x src ln -s $src/examples . ...
python tf2pd.py ../uc-dpc/log_new/ucf11-128_r18_dpc-rnn_bs64_lr0.001_seq8_pred3_len5_ds3_train-all_loss-function-CE_distance-dot_distance-type_certain_positive_vs_negative_same_radius-type-linear_radius-which-pred/img/train/ --write-csv --no-write-pkl --out-dir converted --out-file certain_dot_train python tf2pd.py ...
import Vue from "vue"; Vue.component('role', require('./components/role.vue').default); Vue.component('user', require('./components/user.vue').default);
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'tapfiliate' require 'minitest/autorun' require 'dotenv' require 'webmock' require 'webmock/minitest' Dotenv.load('.env') Dotenv.load('.env.test') Tapfiliate.configure do |config| config.base_url = ENV['TAPFILIATE_API...
function onSignIn(googleUser) { if (! googleUser){ console.log("No google user in context.") return; } var id_token = googleUser.getAuthResponse().id_token; console.log('ID Token: ' + id_token); var profile = googleUser.getBasicProfile(); if (profile) { console.log('Client ID: ' + profile.ge...
package test.backend.www; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframew...
<filename>frontend/src/components/search-input/index.js import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { changeSearchInputFilterType, changeSearchInputFilterValue } from 'actions/search-input-filter' import Paper from 'material-ui/Paper' import SelectField from 'm...
<gh_stars>1-10 package com.lightbend.hedgehog.generators.core import com.lightbend.hedgehog.generators.core.SeedGenerators._ import com.lightbend.hedgehog.scalamock.{GeneratorSpec, TestRunnerMock} import com.lightbend.hedgehog.testkit.Probabilities import hedgehog._ import hedgehog.core.Seed import hedgehog.runner.Tes...
// Clientes.java import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Clientes { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private Stri...
var request = require('request') var ELK_Logs = require('../logs/ELK_Logs.js') var Remote_Write = function (){ var arr_indx = 0 var to_send = [] this.send_bulk_events = function(input_obj, reports){ console.log("INFO: REMOTE_WRITE entries: " + reports.length) to_send = reports ...
curl http://localhost:8080/test1/500 curl http://localhost:8080/test1/500 curl http://localhost:8080/test1/500 curl http://localhost:8080/test1/500 curl http://localhost:8080/test1/500 sleep 12 curl http://localhost:8080/test1/200 curl http://localhost:8080/test1/200 curl http://localhost:8080/test1/500 curl http://l...
#!/bin/bash # Copyright 2018 syzkaller project authors. All rights reserved. # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. # Produces GCE image of syz-ci running on OpenBSD. # Mostly derived from Go buildlet generator with blessing from bradfitz@. set -eu -o pipefa...
<filename>provider/filesystem/filesystem.go<gh_stars>0 // Copyright 2012 Lightpoke. All rights reserved. // This source code is subject to the terms and // conditions defined in the "License.txt" file. // Package filesystem implements file-based session storage. package filesystem import ( "github.com/sinni800/organ...
#!/bin/bash grep -E -v '^(halt|sync|shutdown)' /etc/passwd | awk -F: '($7 != "'"$(which nologin)"'" && $7 != "/bin/false") { print $1 " " $6 }' | while read user dir; do if [ ! -d "$dir" ]; then echo "The home directory ($dir) of user $user does not exist." else dirperm=$(ls -ld $dir | cut -f1 ...
<reponame>BiswaYT/Omni-Bot const { Event } = require('klasa'); module.exports = class extends Event { async run(member) { // Farewell Message const { guild } = member; if (!guild.settings.greet.leave.enabled) return; const channel = guild.channels.get(guild.settings.greet.leave.channel); if (!channel) ret...
<filename>Algorithm/src/main/java/com/leetcode/Solution_516.java package com.leetcode; public class Solution_516 { public int longestPalindromeSubseq(String s) { int[][] dp = new int[s.length()][s.length()]; for (int i = 0; i < s.length(); i++) { int x = 0, y = i; while (x <...
#!/usr/bin/env bash #echo on set -x # "--network host" - Better performance than the default "bridge" driver docker run \ -d \ -it \ --init \ --name benchmarks-downstream \ --network host \ --restart always \ benchmarks-downstream \ --urls http://*:5001
package br.com.nova.roma.tap.projeto.interfaces.impl; import java.util.LinkedList; import java.util.Queue; import br.com.nova.roma.tap.projeto.entity.Caixa; import br.com.nova.roma.tap.projeto.interfaces.FuncoesLotericaControlador; public class FuncoesLotericaImpl implements FuncoesLotericaControlador { ...
#!/bin/bash # # Copyright 2017 Istio 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...
// @flow export default [ { DS100: 'AH', favendoId: 2514, id: '8002549', title: 'Hamburg Hbf' }, { DS100: 'ADF', favendoId: 2513, id: '8002548', title: 'Hamburg Dammtor' }, { DS100: 'AA', favendoId: 2517, id: '8098553', title: 'Hamburg-Altona' }, { DS100: 'AHAR', favendoId: 2519, id: '8000147', title: 'Hamburg-...
class DecimalNumber: def __init__(self, value): self.value = value def add(self, other): return DecimalNumber(self.value + other.value) def subtract(self, other): return DecimalNumber(self.value - other.value) def multiply(self, other): return DecimalNumber(self.value ...
#!/usr/bin/env bash for config_name in "ccg_supertagging" "conjunct_identification" "conll2000_chunking" "ptb_pos_tagging" "ptb_syntactic_dependency_arc_classification" "ptb_syntactic_dependency_arc_prediction" "semantic_dependency_arc_classification" "semantic_dependency_arc_prediction" "syntactic_constituency_grandpa...
<reponame>ElianeBriand/SMolDock<gh_stars>1-10 var searchData= [ ['quaternionidentityinit',['QuaternionIdentityInit',['../namespace_smol_dock.html#a4b9f944b7ca507663d00cc948f0b90c7',1,'SmolDock']]] ];
<filename>src/users/users.controller.ts<gh_stars>0 import { Body, Controller, Get, Post, SetMetadata, UseGuards } from '@nestjs/common'; import { ApiBasicAuth, ApiTags } from '@nestjs/swagger'; import { AuthGuard } from 'src/utils/guards/auth.guard'; import { CreateUserDTO } from './dto/create-user.dto'; import { Users...
density = mass/volume density = 3.2/0.4 density = 8 g/cc
package sort; import java.util.*; import java.util.function.IntPredicate; public class Sort { static Random rnd = new Random(1); public static void qSort(int[] a, int low, int high) { if (low >= high) return; int separator = a[low + rnd.nextInt(high - low + 1)]; int i = l...
<filename>FPSLighting/Dependencies/DIRECTX/Samples/C++/Direct3D/HDRLighting/GlareDefD3D.cpp<gh_stars>10-100 // File provided by <NAME> // http://www.daionet.gr.jp/~masa/rthdribl/ // GlareDefD3D.cpp : Glare information definition // #include "DXUT.h" #include "GlareDefD3D.h" #define _Rad D3DXToRadian // Static st...
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStream...
function largestNumber(num1, num2) { return Math.max(num1, num2); }
<reponame>coignetp/jua package jua.token; public class TokenOperator extends Token { private Operator operator; protected TokenOperator(Operator operator, int line, int position) { super(operator.toString(), line, position); this.operator = operator; } public Operator getOperator() { return oper...
//no renderening data, no state necessary //hence we need only a functional component import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';//check out the documentation!! function average(data) { return _.round(_.sum(data)/data.lengt...
<gh_stars>0 package htmlparse; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import org.apache.log4j.Logger; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.parser.Parser; import org.jsoup.select.Elements; public class ChsiUtil { private static f...
import {Component, Input, OnInit} from '@angular/core'; import {MatDialogRef} from '@angular/material/dialog'; @Component({ selector: 'app-confirmation-dialog', templateUrl: './confirmation-dialog.component.html', styleUrls: ['./confirmation-dialog.component.css'] }) export class ConfirmationDialogComponent impl...
<filename>incubator/net/src/main/java/org/onosproject/incubator/net/virtual/impl/intent/VirtualIntentSkipped.java /* * 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 o...
<gh_stars>0 /* * 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 objects1; /** * * @author Tyler */ public class Salad { public int percRemaining= 100; pub...
<gh_stars>0 import time import papermill from papermill.exceptions import PapermillExecutionError import jobs from settings import huey from settings import logger from utils import write_nb_to_html @huey.task() def job_runner(job_id, input_notebook, output_notebook, output_dir, parameters, **papermi...
public static int maxProfit(int[] prices) { int minprice = Integer.MAX_VALUE; int maxprofit = 0; for (int price : prices) { if (price < minprice) minprice = price; else if (price - minprice > maxprofit) maxprofit = price - minprice; } return maxprofit; }
import { ContractKit } from '@celo/contractkit' import { isValidAddress } from 'ethereumjs-util' import { MultiSigAccount, Account } from '../../../lib/accounts/accounts' import * as React from 'react' import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Box, LinearProgress, TextField } from '@mater...
#!/bin/sh # 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"); you ma...
import { moduleMetadata } from '@storybook/angular'; import { OcFormComponentsModule, OcRadioButtonListComponent } from '@openchannel/angular-common-components/src/lib/form-components'; const modules = { imports: [OcFormComponentsModule], }; export default { title: 'Radio Button List [BEM]', component: Oc...
#!/bin/bash set -e host="server" port="8082" cmd="$@" >&2 echo "!!!!!!!! Check conteiner_a for available !!!!!!!!" until curl http://"$host":"$port"; do >&2 echo "Conteiner_A is unavailable - sleeping" sleep 1 done >&2 echo "Conteiner_A is up - executing command" java -jar parser.jar
#!/usr/bin/env bash # Copyright 2021 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. EXIT_CODE=0 # Support ** in globs. shopt -s globstar main() { verify_header **/*.go go vet -all ./... | warnout ensure_go_binary honn...
package objects; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import javax.servlet.http.HttpServlet; public class ShoppingCart extends HttpServlet { private static final long serialVersionUID = 1L; private Map<String, String> ma...
#!/bin/bash ##Kør på gpu #BSUB -q gpuv100 ##Antal gpuer vi vil bruge. Kommenter ud hvis cpu. #BSUB -gpu "num=1:mode=exclusive_process" ##Kør på cpu ##BSUB -q hpc ##Navn på job #BSUB -J NN_04-01 ##Output fil #BSUB -o output/NN_04-01-%J.out ##Antal kerner #BSUB -n 5 ##Om kernerne må være på forskellige computere #BSUB ...
# frozen_string_literal: true require_relative 'lib/yabeda/http_requests/version' Gem::Specification.new do |spec| spec.name = 'yabeda-http_requests' spec.version = Yabeda::HttpRequests::VERSION spec.authors = ['<NAME>'] spec.email = ['<EMAIL>'] spec.summary = 'Monitoring...
package discord_cmd import ( "encoding/json" "fmt" "net/http" "io/ioutil" "time" // fpmodel "fpbot/pkg/model" "github.com/spf13/cobra" dgo "github.com/bwmarrin/discordgo" ) const dadJokeBaseURL = "https://icanhazdadjoke.com/" type jokeCommand struct { DiscordCommand } func (c *...
<reponame>chiragshahklc/spfx-react-redux-boilerplate<filename>src/webparts/spfxDemoWp/pages/Home.tsx import * as React from "react"; import { Container, Row, Col, FormGroup, Card, CardBody, Label, Alert, Button, Tooltip } from "reactstrap"; import { RouteComponentProps } from "react-router-dom"; imp...
#pragma once #include <string> #include <iostream> #include <sstream> using namespace std; class PhoneNumber { public: explicit PhoneNumber(const string &international_number); string GetCountryCode() const; string GetCityCode() const; string GetLocalNumber() const; string GetInternationalNumber() const;...
<reponame>tentone/covid19 /** * Governor applies measures to increase hospital capacity, increase transmission protection, etc. * * It controls the simulation parameters to prevent the disease. * * @constructor */ function Governor() { // Actuation frequency of the governor in days. It takes action each n days. ...
#!/bin/sh set -e git clone https://github.com/nanomsg/nnpy.git # top of tree won't install cd nnpy git checkout c7e718a5173447c85182dc45f99e2abcf9cd4065 sudo pip3 install cffi sudo pip3 install . cd ..
<reponame>terrycojones/describejson<gh_stars>1-10 #!/usr/bin/env python from types import ( BooleanType, DictType, FloatType, IntType, ListType, LongType, NoneType, UnicodeType) _typeToString = { BooleanType: 'boolean', DictType: 'dict', FloatType: 'float', IntType: 'int', ListType: 'list'...
"""Leetcode 1024. Video Stitching Medium URL: https://leetcode.com/problems/video-stitching/ You are given a series of video clips from a sporting event that lasted T seconds. These video clips can be overlapping with each other and have varied lengths. Each video clip clips[i] is an interval: it starts at time cli...
package com.github.teocci.camera.console.net; import com.github.teocci.camera.console.Main; import com.github.teocci.camera.console.controllers.ConnectController; import com.github.teocci.camera.console.controllers.SendMessageController; import com.github.teocci.camera.console.controllers.ConnectController; import com...
<filename>config/initializers/omniauth.rb require 'rollbar/rails' Rails.application.config.middleware.use OmniAuth::Builder do provider :twitch, ENV['TWITCH_CLIENT_ID'], ENV['TWITCH_CLIENT_SECRET'] provider :google_oauth2, ENV['GOOGLE_CLIENT_ID'], ENV['GOOGLE_CLIENT_SECRET'], { name: 'google' } end
#!/bin/bash # Based on script by William Lam - http://engineering.ucsb.edu/~duonglt/vmware/ # Bring CPUs online for CPU_DIR in /sys/devices/system/cpu/cpu[0-9]* do CPU=${CPU_DIR##*/} echo "Found cpu: '${CPU_DIR}' ..." CPU_STATE_FILE="${CPU_DIR}/online" if [ -f "${CPU_STATE_FILE}" ]; then if gre...
package hu.unideb.inf.model; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import javax.xml.bind.annotation.adapters.XmlAdapter; /** * This class enables for JAXB to marshal and unmarshal StringProperty objects. * @author <NAME> * */ public class S...
#!/bin/bash echo "* Add hosts ..." echo "192.168.99.100 docker.do1.lab docker" >> /etc/hosts echo "* Add Docker repository ..." dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo echo "* Install Docker ..." dnf install -y docker-ce docker-ce-cli containerd.io echo "* Enable and st...
<gh_stars>10-100 import Radium from 'radium'; import Avatar from './component'; export default Radium(Avatar);
def levenshtein_distance(s1, s2): if len(s1) == 0: return len(s2) if len(s2) == 0: return len(s1) if s1[-1] == s2[-1]: cost = 0 else: cost = 1 res = min([levenshtein_distance(s1[:-1], s2)+1, levenshtein_distance(s1, s2[:-1])+1, levenshtein_dis...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { ConfigService } from '../../config/config.service'; import { SessionService } from '../../session/session.service'; import { BonitaActivity, BonitaError } from '../bonita-shared.model'; import { BonitaHu...
// Copyright (c) 2015-2016, ETH Zurich, <NAME>, Zurich Eye // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // noti...
<filename>app/controllers/AuthenticationController.scala package controllers import com.google.inject._ import play.api._ import play.api.mvc._ import play.api.data._ import play.api.data.Forms._ import play.api.i18n.Messages @Singleton class AuthenticationController @Inject() (cc: ControllerComponents) extends Abstr...
// // Created by ooooo on 2020/2/2. // #ifndef CPP_1071__SOLUTION2_H_ #define CPP_1071__SOLUTION2_H_ #include <iostream> #include <math.h> #include <numeric> using namespace std; /** * gcd */ class Solution { public: string gcdOfStrings(string str1, string str2) { if (str1 + str2 != str2 + str1) return "";...
#!/bin/bash docker run -d --name dc-server --net caching_network -d --security-opt "apparmor=cloudsuitedata-cachingserver_profile" cloudsuite/data-caching:server -t 4 -m 4096 -n 550 docker run -d -t --name dc-client --net caching_network -v /home/ubuntu/SecureWilly/Benchmarks/data-caching/scripts:/scripts --security-...
<?php // Create a class to represent a digital clock class DigitalClock { // Declare the properties private $hours; private $minutes; private $seconds; // Define the constructor public function __construct(){ $this->hours = 0; $this->minutes = 0; $this->seconds = 0; ...
from tkinter import messagebox import bcrypt class Authenticator(object): def __init__(self, db): self._db = db def validate_login(self, username, password): user = self._db.get_user(username) if user is None: messagebox.showinfo( title="Information", messa...
<filename>src/main/java/es/upm/etsisi/cf4j/recommender/matrixFactorization/URP.java package es.upm.etsisi.cf4j.recommender.matrixFactorization; import es.upm.etsisi.cf4j.util.process.Parallelizer; import es.upm.etsisi.cf4j.util.process.Partible; import es.upm.etsisi.cf4j.data.DataModel; import es.upm.etsisi.cf4j.data....
package design.sterereotypes; /** * Transforms information and request between distinct parts of the system */ public interface Interfacer { }
var inputString = "This is an example string"; var outputString = inputString.replace(/\b\w/g, function(l){ return l.toUpperCase() }); $('#output').html(outputString);
#!/usr/bin/env bash set -e import com.encodeering.ci.config import com.encodeering.ci.docker docker-pull "$REPOSITORY/alpine-$ARCH:3.11" "alpine:3.11" docker-build "$PROJECT/${VERSION%.*}/alpine3.11"
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2010.0...
import { BitDirection, Glyph } from "./glyph"; import { BitmapFont } from "./bitmap_font"; import { range } from "./arrays"; export interface ImportOptions { // width of each cell in the grid cellWidth: number; // height of each cell in the grid cellHeight: number; // rows or columns? columns?: boolean;...
SELECT * FROM employees WHERE salary > 50000 ORDER BY salary DESC;
<reponame>sagarl/Raigad<filename>raigad-es-extensions/src/main/java/org/elasticsearch/discovery/custom/CustomUnicastHostsProvider.java<gh_stars>0 /** * Copyright 2014 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
# !/bin/bash # https://coreos.com/os/docs/latest/sdk-modifying-coreos.html # The cork utility, included in the CoreOS mantle project, can be used to create and work with an SDK chroot. # In order to use this utility, you must additionally have the golang toolchain installed and configured correctly. # First, install th...
<gh_stars>0 const toIterable = require('callbag-to-iterable') const toArray = source => Array.from(toIterable(source)) module.exports = toArray
rm buf_que ctrl data_ram ex ex_mem id id_ex if_id inst_rom mem mem_wb openmips openmips_min_sopc openmips_min_sopc_tb pc_reg pdt regfile uart_com *~
<filename>Example/ExamplePlugin.cpp<gh_stars>1-10 /* * Copyright 2013 <NAME>, <EMAIL> * All rights reserved. Distributed under the terms of the MIT License. */ #include "ExamplePlugin.h" #include <Directory.h> #include <Entry.h> #include <File.h> #include <List.h> #include <Path.h> #include "BlogPositiveBlog.h" #...
require 'rails_helper' RSpec.describe User, type: :model do context 'Validations user test' do fixtures :users before :each do @user = users(:first) @user_new = User.create(name: 'User1001') end it 'should be valid' do expect(@user).to be_valid end it 'should be present' d...
<reponame>heylenz/python27<filename>Lib/site-packages/PySide/examples/tools/qtdemo/qtdemo_rc.py<gh_stars>0 # -*- coding: utf-8 -*- # Resource object code # # Created: Thu May 29 21:25:23 2008 # by: The Resource Compiler for PyQt (Qt v4.4.0) # # WARNING! All changes made in this file will be lost! from PySide imp...
/* Copyright 2021-Present Couchbase, Inc. Use of this software is governed by the Business Source License included in the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, Version 2...
<reponame>Bagnis-Gabriele/smistatore_rifiuti<gh_stars>1-10 import tensorflow.keras from PIL import Image, ImageOps import numpy as np import cv2 as cv import pyttsx3 # Disable scientific notation for clarity np.set_printoptions(suppress=True) # Load the model model = tensorflow.keras.models.load_model('ke...
#!/bin/bash start=`date +%s` # handle optional download dir if [ -z "$1" ] then # navigate to ~/data echo "navigating to ~/data/ ..." ##mkdir -p ~/data cd ~/data/ ##mkdir -p ./coco cd ./coco ##mkdir -p ./images ##mkdir -p ./annotations else # check if specified dir is valid ...
abstract class Hewan9 { name: string; constructor(name: string) { this.name = name; } eat(): void { console.log("Makan"); } abstract move(): void; } class Mamalia extends Hewan9 { constructor(name: string) { super(name); } move(): void { console.log(`${this.name} Walk`); } } cl...
#!/bin/sh - #=============================================================================== # # FILE: runcommand-onstart.sh # # USAGE: ./runcommand-onstart.sh system emulator full_path_to_rom full_launch_cmd # # DESCRIPTION: runcommand script to swap HDMI timing per system # # OPTIONS: --- # ...
func factorial(_ number: Int) -> Int { if number == 0 { return 1 } var result = 1 for i in 1...number { result *= i } return result } let num = 5 let factorialResult = factorial(num) print("The factorial of \(num) is \(factorialResult)") // Output: The factorial of 5 is 120
<reponame>gulayciragiloglu79/goLang<filename>load.js //k6 run -d 10s --vus 100 single-request.js import http from 'k6/http'; import { sleep, check } from 'k6'; import { Counter } from 'k6/metrics'; export default function () { const res = http.get(`http://1172.16.31.10:5000/api/v1/${__ENV.ID}`); const checkR...