text
stringlengths
27
775k
package io.github.tonnyl.latticify.data.datasource import io.github.tonnyl.latticify.data.AuthRevokeWrapper import io.github.tonnyl.latticify.data.AuthTestWrapper import io.reactivex.Observable /** * Created by lizhaotailang on 10/10/2017. */ interface AuthDataSource { fun revoke(test: Int = 1): Observable<Aut...
# Configure Rails Environment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'test/unit' require 'mocha' require 'rails/test_help' require 'mocha/test_unit' require 'wicked_pdf' Rails.backtrace_cleaner.remove_silencers! if (assets_dir = Rails.root.join('app/a...
#!/bin/bash -ex rm -f *.csv rm -f *.png
using Ocuda.Promenade.Models.Entities; namespace Ocuda.Promenade.Controllers.ViewModels.Shared { public class CarouselItemViewModel { public CarouselItem Item { get; set; } public string ReturnUrl { get; set; } } }
package com.eon.opcuapubsubclient.parser import java.util.UUID import com.eon.opcuapubsubclient.UnitSpec import com.eon.opcuapubsubclient.domain.CommonTypes._ //{GuidIdentifier, NumericFourByteIdentifier, StringIdentifier} import org.scalatest.BeforeAndAfterAll import scodec.bits.ByteVector // TODO: Write additional...
13 castelliiYDR418W castelliiYEL054C 0.3519 mikataeYDR418W 0.5750 0.5796 mikataeYEL054C 0.6095 0.6043 0.5080 kluyveriYDR418W 0.4162 0.3750 0.5658 0.6015 paradoxusYDR418W 0.5642 0.5713 0.2325 0.4203 0.5912 paradoxusYEL054C 0.6004 0.5928 0.4953 0.1009 0.5925...
module FirstOrder using LinearAlgebra import ..LocalDescent: search, LineSearch, StrongBacktracking struct Termination max_iter ϵ_abs ϵ_rel ϵ_grad Termination(; max_iter = 10_000, ϵ_abs = eps(), ϵ_rel = eps(), ϵ_grad = eps()) = new(max_iter, ϵ_abs, ϵ_rel, ϵ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TwilioCallsImporter.Data { public class Result { public string first_page_uri { get; set; } public int end { get; set; } public Call[] calls { get; set; } public object pr...
import model from './model' import { verify } from '@lib/jwt' export default { Query: { hashtag: async(_, {}, { authorization }) => { try { const branchID = verify(authorization).branchID console.log(authorization) const { study_center_branch_hashtag: hashtag } = await model.hashtag(branchID) ret...
package internal import ( "github.com/go-gl/gl/v4.6-core/gl" "github.com/mokiat/lacking/framework/opengl" ) type Presentation struct { Program *opengl.Program } func (p *Presentation) Delete() { p.Program.Release() } type PostprocessingPresentation struct { Presentation FramebufferDraw0Location int32 Expos...
import { ActivityInterface } from "~/interfaces/activity.interface" import { Activity } from "../base/activity.model" import { GPSLocation } from "../base/gps-location.model" import { MarketTo } from "../market/market-to.model" class MarketActivity extends Activity { constructor ( baseActivityData: ActivityInter...
package scala.meta.internal.metals import scala.meta.Dialect import scala.meta.dialects._ import scala.meta.internal.mtags import scala.meta.internal.semver.SemVer object ScalaVersions { def isScala3Milestone(version: String): Boolean = version.startsWith("3.0.0-M") || version.startsWith("3.0.0-RC") /** ...
#!/bin/bash DOCKER_IMAGE_NAME=apple-availability docker run \ --name $DOCKER_IMAGE_NAME \ -v `pwd`/app:/app \ -it \ --rm \ --env-file SETTINGS \ $DOCKER_IMAGE_NAME "$@"
part of vcl; typedef void TDataChangeEvent(TObject Sender, TField? Field); typedef void TDataOperation(); enum TFieldAttribute { HiddenCol, Readonly, Required, Link, UnNamed, Fixed } typedef TFieldAttributes = Set<TFieldAttribute>; // Misc DataSet types enum TFieldType { Unknown, Dynamic, String, Integer, Bool...
node-ldap ========= OpenLDAP client bindings for Node.js. Requires libraries from http://www.openldap.org installed. Contributing ------------ Any and all patches and pull requests are certainly welcome. Thanks to: ---------- * Petr Běhan * YANG Xudong Dependencies ------------ Tested with Node >= v0.4.0 Instal...
package crazy // Ziggurat implements a generalized ziggurat algorithm for producing random // values according to any monotone decreasing density, optionally symmetric // about zero. See http://www.jstatsoft.org/v05/i08/paper. type Ziggurat struct { // PDF is the probability density function for the desired distribut...
import * as ActionsTypes from '../constants/actions-types' import * as config from '../constants/config' import axios from 'axios' const receiveBeers = beers => ({ type: ActionsTypes.RECEIVE_BEERS, beers }) export const getAllBeers = () => dispatch => { axios.get(config.API_BASE_URL + 'beers') .th...
#!/bin/sh set -e if [ $# -eq 0 ]; then echo "Usage: $0 <tag>" echo "Release version required as argument" exit 1 fi VERSION="$1" GIT_COMMIT=$(git rev-list -1 HEAD) BUILD_DATE=$(date) export CGO_ENABLED=0 RELEASE_FILE=RELEASE.md LDFLAGS="-s -w \ -X \"github.com/naggie/dstask.GIT_COMMIT=$GIT_COMMIT\" ...
/////////////////////////////////////////////////////////////////////// // Copyright (c) 2017 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////// package validator import ( "github.com/go-openapi/spec" "github.com/go-openap...
struct SelectValues{T} name::Symbol values::Vector{T} split::Bool filter::Bool end SelectValues(name, values, split = false) = SelectValues(name, values, split, true) struct SelectPredicate{T} name::Symbol f::T split::Bool filter::Bool end SelectPredicate(name, f, split = false) = Sel...
/* * Copyright 2016 The BigDL 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 agr...
""" Created on Mon Apr 26 10:13:34 2021. @author: tom """ from typing import Tuple, Optional, Dict, TypedDict import numpy as np from qiskit_optimization import QuadraticProgram from utilities.helpers import cplex_varname class RQuboBoundaries(TypedDict): """Boundary dict typing class for RandomQubo instances...
#!/bin/bash doxygen mv html/class_q_*.html . rm -r html
class Post < ApplicationRecord $categorie = [ [1, 'problema' , 'cogs', '1abc9c'], [2, 'tutorial', 'graduation-cap', '8e44ad'], [3, 'sfida', 'cube', 'e74c3c'], [4, 'hardware', 'hdd-o', '34495e'], [5, 'off topic', 'coffee', 'd3540...
package com.curtisnewbie; import com.curtisnewbie.demo.DummyBean; import com.curtisnewbie.demo.MaskedTommy; import com.curtisnewbie.demo.SomebodyBean; import com.curtisnewbie.demo.TommyBean; import com.curtisnewbie.module.ioc.annotations.MBean; import com.curtisnewbie.module.ioc.context.ApplicationContext; import com....
from source import db, login_manager from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin #load users allows flask loging to load the current user and grab their # ID @login_manager.user_loader def load_user(user_id): return User.query.get(user_id) ###THIS...
namespace Amazon.Lambda.CloudWatchEvents.BatchEvents { /// <summary> /// AWS Batch Event /// https://docs.aws.amazon.com/batch/latest/userguide/batch_cwe_events.html /// </summary> public class BatchJobStateChangeEvent : CloudWatchEvent<Job> { } }
package gl import ( "errors" "fmt" "strings" mgl "github.com/go-gl/mathgl/mgl32" "github.com/gopherjs/gopherjs/js" ) type Shader struct { shader *js.Object attribNames []string } const ( COMPILE_STATUS = 0x8B81 VERTEX_SHADER = 0x8B31 FRAGMENT_SHADER = 0x8B30 ) var ( currentBoundShader *Shader ) ...
import React from 'react'; import { useFormikContext } from 'formik'; import Form, { Row } from '../../components/form'; import { TextInput } from '../../components/input'; import { validate, notEmpty } from '../../validation'; export interface AddressValues { firstName: string; lastName: string; companyName: st...
## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## Plugin.define "Tradingeye" do author "Brendan Coles <bcoles@gmail.com>" # 2...
# Adapted from prior work by Simon Jupp @ EMBL-EBI # # https://github.com/HumanCellAtlas/hca_bundles_to_csv/blob/b516a3a/hca_bundle_tools/file_metadata_to_csv.py import re from typing import ( Any, List, Mapping, MutableMapping, MutableSet, Optional, Tuple, Union, ) from urllib import ( ...
# fishBehavior Analysis tools for Chen-min's fish behavior experiments. -------------------------------------------------------------------------------- (c) COPYRIGHT 2015 The Salk Institute. All rights reserved. The party (the "Recipient") receiving this software directly from the Salk Institute may use this so...
-- | The module introduces some types related to 'Core.Authorization' -- module. It allows breaking dependency cycles between modules. module Core.Permission ( Permission(..) ) where import Core.Author import Core.Deletable import Core.User data Permission = AdminPermission | AuthorshipPermission (Deletable A...
require('../config/passport'); const express = require('express'); const Rating = require('../models/Rating'); const router = express.Router(); const isAuth = require('../middlewares/isAuthenticated.middleware'); // add new rating router.post('/', [isAuth], (req, res) => { const { id } = req.user; const newRatin...
#!/usr/bin/env bash set -e source ./env.sh echo "Destroying CDK Cloudformation Stack -- Some manual removal required" npm run cdk-destroy --prefix cdk
<?php class ScoreModel extends CI_Model { public function __construct() { parent::__construct(); } ///////////////////////// // CRUD-actions ///////////////////////// /** Returns all scores as an array */ public function get_all_scores() { return $this->db->get('score')->result(); } /** Adds a score t...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ This module contains functions for producing scatter plots with markers that indicate which binary flags are set on each data point and accompanying legends. The output of the main scatterflags() function can be used as the input to the flagbar() function to produce a...
/* * Copyright (C) 2017 The Android Open Source Project * * 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 app...
#define UTS_RELEASE "2.4.6-rmk1-np2-embedix" #define LINUX_VERSION_CODE 132102 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) #define EMBEDIX_RELEASE "-011228"
package com.linecorp.kotlinjdsl.query.spec.expression import com.linecorp.kotlinjdsl.query.spec.Froms import com.linecorp.kotlinjdsl.query.spec.predicate.PredicateSpec import com.linecorp.kotlinjdsl.test.WithKotlinJdslAssertions import io.mockk.confirmVerified import io.mockk.every import io.mockk.impl.annotations.Moc...
import lejos.nxt.Motor; public class MeuPrimeiroRobo { public static void main(String[] args) { Motor.A.rotate(30); } }
var canvas; var tileSize; var m_Width, m_Height; function setup() { tileSize = 40; m_Width = 8 * tileSize; m_Height = 8 * tileSize; canvas = new Canvas(2 * m_Width, m_Height); textSize(18); } function DrawBoard() { noStroke(); for(x = 0; x < m_Width / tileSize; x++) { for(y = 0; y...
package br.com.leandroferreira.wizardform.pages import android.databinding.ObservableField import br.com.leandroferreira.wizard_forms.contract.WizardPageViewModel import br.com.leandroferreira.wizardform.dto.User class PageOneViewModel: WizardPageViewModel<User>() { val name = ObservableField<String>() fun ...
module HsCaml.TypeChecker.TypeChecker where import Debug.Trace import HsCaml.Common.Gensym import HsCaml.FrontEnd.Types import HsCaml.TypeChecker.CheckFinished import HsCaml.TypeChecker.RenameSymsByScope import HsCaml.TypeChecker.UFTypeChecker typeCheck :: Expr -> Either CompileError Expr typeCheck e = do renameSym...
require "httparty" require "pry" require_relative "./nba/version" require_relative "./nba/cli" require_relative "./nba/api" require_relative "./nba/team"
# encoding: utf-8 require 'spec_helper' describe Processor do describe '#call' do context 'when the processor is no evaluator' do it_behaves_like 'Processor::Call::Incoming#call' do before do expect(handler).to receive(:call).with(decomposed).and_return(handler_result) expect(...
<?php namespace Application\Application\Factory; use Application\Application\Helper\ApplicationHelper; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; /** * アプリケーションヘルプファクトリーのクラス */ class ApplicationHelperFactory implements FactoryInterface { /** * アプリケーションヘルプサー...
#!/bin/bash -eu # File automatically generated. Do not edit. usage() { local ret=0 if [[ $# -gt 0 ]]; then # Write to stderr on errors. exec 1>&2 echo "ERROR: $*" echo ret=1 fi echo "Usage: $0 [image] [part]" echo "Example: $0 chromiumos_image.bin" exit ${ret} } TARGET=${1:-} PART=${2:...
using System; using System.Collections.Generic; using System.Linq; namespace IteratorDemo { /// <summary> /// Composite pattern, applies composition function to a set of /// objects. CompositePainter is a "kind of" IPainter, can apply concept /// of ProportionalPainter to ensure validity of implemente...
create database dbAnicare; use dbAnicare; create table tbUsrMascota ( idMascota varchar (30) primary key, MscNombre varchar (60), MscEspecie varchar (40), MscRaza varchar (40) ); create table tbUsrDueño ( idDueño varchar (30) primary key, dñUser varchar (40), dñNombre varchar (60), dñApe...
package org.jboss.resteasy.test; import org.jboss.resteasy.plugins.server.reactor.netty.ReactorNettyContainer; import org.jboss.resteasy.plugins.server.reactor.netty.ReactorNettyJaxrsServer; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; import javax.ws.rs.G...
@extends('admin.templates.default') @section('title', 'Data Categories') @section('content') <div class="card card-primary"> <div class="card-header"> <h3 class="card-title">Data Categories</h3> </div> <div class="card-body"> @if(session()->has('message')) <div class="alert ale...
import { useReducer } from 'react'; import { NavbarContext, initialState } from './navbarContext'; import { navbarReducer } from '../reducerContext'; import { NAVBAR_ACTION } from '../actionContext'; interface IChildren { children: React.ReactNode; } // eslint-disable-next-line @typescript-eslint/explicit-module-bo...
var searchData= [ ['find_5fblock',['find_block',['../buddy_8c.html#abdfe2346b53850f10cb4cb70a79e6334',1,'buddy.c']]], ['find_5ffree_5fblock',['find_free_block',['../buddy_8c.html#a2f7a9bf73e255fb58bf8e57855e67532',1,'buddy.c']]] ];
ALTER TABLE ${ohdsiSchema}.fe_analysis_criteria ADD criteria_type VARCHAR(255) GO UPDATE fc SET criteria_type = CASE WHEN fa.stat_type = 'PREVALENCE' THEN 'CRITERIA_GROUP' WHEN fa.stat_type = 'DISTRIBUTION' THEN 'WINDOWED_CRITERIA' END FROM ${ohdsiSchema}.fe_analysis_criteria fc JOIN ${ohdsiSch...
<?php require_once(__DIR__."/../controller/DBController.php"); require_once(__DIR__."/../model/Concurso.php"); require_once(__DIR__."/../core/ViewManager.php"); class ConcursoController extends DBController { /*Variable que representa el objeto Concurso*/ private $concurso; /*Constructor*/ public function __con...
import colors from '../utils/colors'; const playersButtonStyle = { backgroundColor: colors.default, border: `4px solid ${colors.primary}`, width: '85%', maxWidth: 300, height: '40%', margin: 'auto', cursor: 'auto', }; const controlsAreaStyle = { backgroundColor: colors.secondary, width: 140, margi...
module CitiesHelper def city_space_summary(city) "#{city.free_space} / #{city.total_space}" end def city_population_summary(city) "#{city.population} / #{city.total_capacity}" end end
#!bin/bash set -e mkdir model cd model wget https://raw.githubusercontent.com/MTlab/onnx2caffe/master/model/MobileNetV2.onnx
#PATH TO APACHE MAVEN export PATH={{opt_folder}}/{{apache_maven_folder}}/bin:$PATH
package xyz.fairportstudios.popularin.models data class UserDetail( val isSelf: Boolean, val isFollower: Boolean, var isFollowing: Boolean, val isPointPositive: Boolean, val hasRecentFavorite: Boolean, val hasRecentReview: Boolean, val totalReview: Int, val totalFavorite: Int, val t...
var struct_i_t_c_stream_tag = [ [ "Available", "struct_i_t_c_stream_tag.html#abce0b456a63dd9e0147e9e768ec2e9ad", null ], [ "Close", "struct_i_t_c_stream_tag.html#a4d390d0c39d00116bf4c8a9378ce5d6d", null ], [ "eof", "struct_i_t_c_stream_tag.html#a6c052602d1d43227768ad3807f7b7268", null ], [ "Read", "stru...
#include "lymcodationlock.h" LYMCodationLock::LYMCodationLock():mutex_(SDL_CreateMutex()),cond_(SDL_CreateCond()) { } LYMCodationLock::~LYMCodationLock(){ SDL_DestroyCond(cond_); SDL_DestroyMutex(mutex_); } void LYMCodationLock::lock(){ SDL_LockMutex(mutex_); } void LYMCodationLock::unlock(){ SDL_Unlo...
. helpers.sh start_test_server \ -line 1 -file data/nopersistency-close -reconnect \ -line 1 -file data/nopersistency-close trap "stop_test_server" EXIT request -get / -get / -run # Because the reply contains a 'connection: close' header, it is expected # that the second GET forces a new connection.
package io.jobial.scase.core import scala.annotation.implicitNotFound /** * Type class to bind a request message type to a response type. * It makes request-response mapping pluggable, without enforcing any kind of convention on the implementor. * * @tparam REQUEST * @tparam RESPONSE */ @implicitNotFound("No m...
# Object Instance Validates if the given input is object instance. Valid values: ```js validator.objectInstance().validate({}); validator.objectInstance().validate({foo: 'bar'}); validator.objectInstance().validate(new Object()); validator.objectInstance().validate(new Object({foo: 'bar'})); validator.objectInstance...
require 'bundler/setup' Bundler.require(:default, :development) RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.filter_run_excluding :perf => true config.order = 'random' end require 'webmock/rspec' RSpec.configure do |config| config.before(:each) d...
## SQlite ### Purpose This `sqlite` package provides a basic interface for interacting with the embedded sqlite database used by various InfluxDB services which require storing relational data. The actual sqlite driver is provided by [`mattn/go-sqlite3`](https://github.com/mattn/go-sqlite3). ### Usage A single ins...
package models import ( "gorm.io/gorm" ) // UpdateRate defined update_rate DB table type UpdateRate struct { gorm.Model BaseCurrency string `json:"baseCurrency" gorm:"uniqueIndex:idx_name"` TransactionCurrency string `json:"transactionCurrency" gorm:"uniqueIndex:idx_name"` ExchangeRate float64 `j...
--- layout: post title: "Puzzle: Sudoku Stories" date: 2018-10-26 00:03:00 +0000 tags: math puzzles --- Today I discovered a little book called [_Sudoku Stories_](https://amzn.to/2RAO0YB) (Oscar Seurat, 2014). Each page presents a little encyclopedia entry on some random topic accompanied by a sudoku puzzle whose ...
import 'package:flutter/material.dart'; class TimerButton extends StatelessWidget { TimerButton( {Key? key, required this.text, required this.event, required this.icon}) : super(key: key); final String text; final Function event; final IconData icon; @override Widget build(BuildContext contex...
import { LoginStore } from './pages/login/stores'; import { RegisterStore } from './pages/register/stores'; import { MainStore } from './pages/main/stores'; export interface AppStore { loginReducer: LoginStore; registerReducer: RegisterStore; mainReducer: MainStore; };
/* * User: 覃贵锋 * Date: 2021/11/5 * Time: 14:53 * * */ using System; using BTreeEditor.Data; namespace BTreeEditor { /// <summary> /// 行为树工作空间 /// </summary> public static class BTreeWorkspace { /// <summary> /// 行为树工作空间是数据 /// </summary> public static BTreeWorkspaceData CurrentWorkspaceData {set;...
require 'spec_helper' describe "routing to product categories" do it "routes /ecm_products_product_categories to #index" do expect(:get => "/ecm_products_product_categories").to route_to( :controller => "ecm/products/product_categories", :action => "index" ) end # it it "routes /ecm_products...
import {Component} from "@angular/core"; import {Task} from "../models/task"; import {OnInit} from "@angular/core"; import {TaskService} from "../services/task-service"; import {TaskComponent} from "./task.component"; @Component({ selector: 'task-list', templateUrl: './app/todo/components/task-list.htm...
A dict of the INCAR parameters used for the relaxation calculation. ## Example response in JSON ```json { "@class": "Incar", "@module": "pymatgen.io.vasp.inputs", "ALGO": "Fast", "EDIFF": 2e-06, "ENCUT": 520, "IBRION": 2, "ICHARG": 1, "ISIF...
--- authorName: myaleee n canDelete: false contentTrasformed: false from: '&quot;myaleee n&quot; &lt;myaleee@...&gt;' headers.inReplyToHeader: PENPTDEwNS1XNUNBNkQyMDlGRTFCNDAyNjA5NjBEOEJGNzBAcGh4LmdibD4= headers.messageIdInHeader: PGloNzc1cStpMDBnQGVHcm91cHMuY29tPg== headers.referencesHeader: .nan layout: email msgId: ...
<?php /* * This file is part of the Behat Gherkin. * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Behat\Gherkin\Filter; use Behat\Gherkin\Node\FeatureNode; use Behat\Ghe...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AliyunDnsSDK.Model.EnumType { public enum DomainRecordStatus { Enable, Disable } }
import "package:args/command_runner.dart"; import "package:multipack/commands/pub.dart"; import "package:multipack/commands/pubspec.dart"; void main(List<String> arguments) async { final runner = CommandRunner<void>( "multipack", "Manages monorepo packages.", ) ..addCommand(PubCommand()) ..addComma...
--- layout: post title: ROS节点名字、话题名字总结 subtitle: date: 2020-07-05 author: 白夜行的狼 header-img: img/black.jpeg catalog: true categories: published: false tags: - - - - - --- # 0. 写在最前面 本文持续更新地址:<https://haoqchen.site/2020/07/05/ros-node-name/> ROS中有节点(node)和话题(topic)的概念,...
POSE_QUANTITY=$1 END=$2 for ((SEED=1;SEED<=END;SEED++)) do python plot_g2o_slampp.py output_"$SEED".txt $POSE_QUANTITY done
package ronybrosh.rocketlauncher.data.db.model import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey @Entity( tableName = "launchTable", indices = [Index( value = ["rocketId", "flightNumber"], unique = true )] ) data class Launch...
# DIGITAL HEARING AID USING MATLAB In this project we have created a DIGITAL HEARING AID using MATLAB software and Graphical User Interface
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\gatepass; use App\Barang; use App\Gatebar; use Spatie\Permission\Models\Role; use Illuminate\Support\Facades\Auth; class GatepassController extends Controller { /** * Display a listing of the resource. * * @r...
/* * Copyright 2017 WebAssembly Community Group participants * * 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...
require 'optparse' require 'tempfile' module VagrantPlugins module RDP class Command < Vagrant.plugin(2, :command) def execute opts = OptionParser.new do |opts| opts.banner = "Usage: vagrant rdp [vm-name...]" opts.separator "" end argv = parse_options(opts) ...
from common import * from sklearn import metrics as sklearn_metrics ##################################################################################################3 def remove_small_one(predict, min_size): H,W = predict.shape num_component, component = cv2.connectedComponents(predict.astype(np.uint8)) ...
/* * Copyright 2019 Intershop Communications AG. * * 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 ...
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); const changeCase = require('change-case'); module.exports = class extends Generator { prompting() { // Have Yeoman greet the user. this.log(yosay( 'Welcome to the prime ' + chalk...
<?php return [ 'clockify_api' => [ 'base_url' => env('CLOCKIFY_API_BASE_URL'), 'reports_url' => env('CLOCKIFY_API_REPORTS_URL'), 'key' => env('CLOCKIFY_API_KEY'), 'workspace_id' => env('CLOCKIFY_API_WORKSPACE_ID'), ] ];
/* * Copyright 2020 Alexi Bre * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Event.create(distance: 100, date: "05/31/19", swimmer_id: 1) Event.create(distance: 500, date: "01/31/19", swimmer_id: 2) Swimmer.create(name: "Monica Jones", member_number: 123456, password: "monica") Swimmer.create(name: "Harry Potter", member_number: 987654, password: "magic")
module Bestsign module Helper module Signature def hexdigest(data) private_key = File.read(configurate.private_path) rsa = OpenSSL::PKey::RSA.new private_key sign = rsa.sign('SHA1', data) Base64.encode64(sign) end def verify?(data, signature) public_key =...
module InfinityTest module Core class CommandBuilder < String # Just Syntax Sugar to add the keyword in the command # def add(command) self << " #{command.to_s}" self end # Put a double-dash in the command option. # def opt(command_option) self <<...
import highlightjs from "highlight.js/lib/core"; import { nextTick } from "vue"; const plugin = { install: function(Vue) { Vue.directive("highlight", { mounted(el) { nextTick(function() { el.innerHTML = escapeHTML(el); highlightjs.highlightBlock(el); }); } }); ...
# `dds-locale-modal` ## `Misc attributes` #### `should render with minimum attributes` ``` <a class="bx--visually-hidden" href="javascript:void 0" id="start-sentinel" role="navigation" > </a> <div class="bx--modal-container" tabindex="-1" > <div class="bx--modal-content"> <dds-expressive-modal-he...
curl -i -X POST -H "Content-Type:application/json" -d "{ \ \"Description\": \"Aliquam vulputate ullamcorper magna. Sed eu eros. Nam consequat\", \ \"Street\": \"190-4644 Est Avenue\", \ \"City\": \"Suwałki\", \ \"State\": \"PD\", \ \"ZipCode\": \"14707\", \ \"FirstName\": \"Colette\"...
// TnzCore includes #include "tsimplecolorstyles.h" #include "timage_io.h" #include "tconvert.h" #include "tvectorimage.h" #include "tpixelutils.h" #include "tsystem.h" #include "tstream.h" // Qt includes #include <QMutexLocker> #include "tpalette.h" #include <memory> #include <sstream> PERSIST_IDENTIFIER(TPalett...
export "package:ecoroutine/bloc/schedules/schedules.cubit.dart"; export "package:ecoroutine/bloc/schedules/schedules.state.dart";