text
stringlengths
27
775k
/** * Creator: Tang Xiaoji * Time: 2018-01-16 */ const moment = require('moment'); const Socket = require('net').Socket; const socket = new Socket(); const Log4js = require('../config/log'); const logtail_chat = Log4js.getLogger('logtail_chat'); const logtail_gift = Log4js.getLogger('logtail_gift'); socket.on('e...
/* * Copyright 2019 Newlogic Impact Lab Pte. Ltd. * * 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 applicabl...
<?php namespace App\Modelos; use Illuminate\Database\Eloquent\Model; class Tratamiento extends Model { protected $table= "tratamiento"; protected $primaryKey = "id_tratamiento"; public $incrementing = false; public $timestamps = false; protected $fillable = [ 'nombre_tratamiento', ...
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using JQueryPostModelBinding.Web.Models; namespace JQueryPostModelBinding.Web.Controllers { public class HomeController : Controller { // GET: Home public ActionResult Index(List<FormPost...
class User attr_accessor :location, :saved_jobs, :wants_fulltime, :wants_type_of_job def initialize(location: "", saved_jobs: [], wants_fulltime: "", wants_type_of_job: "") @location = location @saved_jobs = saved_jobs @wants_fulltime = wants_fulltime @wants_type_of_job = wants_...
import { IsString} from "class-validator"; export class CreateProductDto { @IsString() programsEn: string @IsString() programsSp: string @IsString() degreeEn: string @IsString() degreeSp: string @IsString() fieldOfStudyEn: string @IsString() fieldOfStudySp: string @IsString() nameEn: ...
--- header: "" subheader: "Gaining control with physiotherapy in an understanding, caring and confidential environment" imageFileName: "header-bg.jpg" jumpToAnchor: "Services" jumpToAnchorText: "Tell Me More" logoImage: "logos/logo-main.png" ---
import React, { Component } from "react"; import { Text, View, TouchableOpacity, SafeAreaView, Animated } from "react-native"; import { Icon } from "native-base"; import { styles } from "./styles"; import { bindActionCreators } from "redux"; import { getDatabase } from "../../../../redux/actions/database"; im...
import Vue from 'vue' import VueRouter from 'vue-router' import MapView from '@/views/MapView' import LoadingView from '@/views/LoadingView' import store from '@/modules/store' import appLoadingManagementRouterPlugin from './appLoadingManagement.routerPlugin' import storeSyncRouterPlugin from './storeSync/storeSync.r...
class CardBoxStatistics { // indicates if the statistics are valid bool isValid = false; // number of total cards int numberOfCards = 0; // number of card has been tested int numberOfCardsStudied = 0; // number of cards which are at a success rate above the matureThreshold int numberOfCardsMatured = 0; ...
source ../testsupport.sh rm -f test.world.txt test.txt run *.fastq grep -q "SureSelect_Capture_11MG2107_AD0AN0ACXX_GATCAG_L002_R1.fastq SureSelect_Capture_11MG2107_AD0AN0ACXX_GATCAG_L002_R2.fastq" test.out || err "Failed to find expected GATCAG files R1 and R2" grep -q "SureSelect_Capture_11MG2108_AD0AN0ACXX_TAGCTT_...
const {GeneralError} = require("./general_error"); class LibraryError extends GeneralError { /** * A general library error that will keep an instance of the library that had the error * * @param {Library} library * @param {Object|Undefined} reason */ constructor(library, reason = undefined) { su...
object Main extends App { val source = scala.io.Source.fromFile(args(0)) val lines = source.getLines.filter(_.length > 0) for (l <- lines) { val s = for (i <- l if (l.count(_ == i) == 1)) yield i println(if(s.isEmpty) "" else s(0)) } }
using System; class HelloWorld { static void Main() { #if DebugConfig Console.WriteLine("WE ARE IN THE DEBUG CONFIGURATION"); #endif MyMath my = new MyMath(); Console.WriteLine("Hello, world!"); Console.WriteLine("2 + 3: " + my.Add(2,3)); } }
package request import ( "encoding/json" "io/ioutil" "log" "net/http" "schoolMenuApi/model" "schoolMenuApi/model/apiResponse" "schoolMenuApi/model/neisResponse" "strconv" "strings" "time" ) var KEY = "" func FailResponse(msg string) model.Default { log.Printf("ERROR: %s", msg) var response model.Default ...
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; ...
import pytest import overpy from tests.base_class import BaseTestWay from tests import read_file, new_server_thread, stop_server_thread, BaseHTTPRequestHandler class HandleResponseJSON02(BaseHTTPRequestHandler): """ """ def do_POST(self): self.send_response(200, "OK") self.send_header("C...
string shell() { return string(std::getenv("SHELL")); }
--- title: "有理想的人" date: 2021-01-31T15:49:07+08:00 draft: false --- {{< style "text-align: right;" >}}-- _周庆荣_{{< /style >}} --- ## 一 天空飘浮的不再是硝烟。 没有硝烟的日子,已经很久了。阻碍我们视线最多的只是未被温润的尘土,或者是生活中不再纯净的寻常事物。 虽然,依旧有人在行走中劳顿;虽然,工作和学习仍是我们使用最多的词汇。 早上升起的太阳,温暖着幸福的人们,也温暖着更多正在等待幸福的那些人。 --- ## 二 我在旅行的路上,看到一个快乐的羊群,它们吃着春天里青嫩青嫩的草,它们给...
Pull request title ------------------ The format of the Pull request title must be: <component>: <short_change_message> #<issue number> If you add a [github-recognised keyword](https://help.github.com/articles/closing-issues-using-keywords/) then the associated issue can be closed automatically once the pull req...
import './layout.scss' export default (props) => <div className='layout__main'> {props.children} </div>
use std::{fs, path::Path}; use anyhow::bail; use regex::Regex; use crate::cgroups::{ common::{self, CGROUP_PROCS}, v1::Controller, }; use oci_spec::{LinuxHugepageLimit, LinuxResources}; pub struct Hugetlb {} impl Controller for Hugetlb { fn apply( linux_resources: &LinuxResources, cgroup...
using System; namespace BriefShop.Core { /// <summary> /// 关系型数据库配置信息 /// </summary> [Serializable] public class RDBSConfig : IConfig { private string _rdbsconnectstring;//关系数据库连接字符串 private string _rdbstablepre;//关系数据库对象前缀 /// <summary> /// 关系数据库连接字符串 ...
using ElmSharp; using Ext = Tizen.UIExtensions.ElmSharp; namespace ElmSharpExGallery.TC { public class CarouselPageTest : TestCaseBase { public override string TestName => "CarouselPage test"; public override string TestDescription => "CarouselPage test"; public override void Run(Box ...
import { NextFunction, Request, Response } from "express"; export default class AppError { public message: string; public status: number; constructor(message: string, status = 400) { this.message = message; this.status = status; } } export const handleErrors = (error: Error, request: Request, respons...
import * as authenticationStorage from 'utils/authenticationStorage' const defaultState = { allowed: false, errors: [], networkError: false, } const initialState = Object.assign( {}, defaultState, authenticationStorage.get(), ) export type AuthenticationAction = | { type: AuthenticationActionType.REQUE...
import '../../common/controlls/listview.dart'; import 'package:flutter/material.dart'; class TestListView extends StatefulWidget { @override _TestListViewState createState() => _TestListViewState(); } class _TestListViewState extends State<TestListView> { List<String> items = ["1", "2", "3", "4", "5", "6", "7",...
# mini-compiler 极简编译器 #解析 #转换 #生成 #demo
#!/usr/bin/env zsh set -eu # Copyright 2013 University of Chicago and Argonne National Laboratory # # 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/LICEN...
using System.Security.Cryptography; namespace XudonaxBot.DiceParser { public class Die { internal Die(int amount, int faces, char modifierOperation, int modifierAmount) { Amount = amount; Faces = faces; ModifierOperation = modifierOperation; Modi...
class Task { int id; String title; String content; String createdBy; String assignatedTo; DateTime createdDate; DateTime dueDate; Task({ this.id, this.title, this.content, this.createdBy, this.assignatedTo, this.createdDate, this.dueDate, }); }
using System; using System.Collections.Generic; namespace Armr.Azure { public class FunctionsBuilder : IBuilder<IEnumerable<Function>> { private readonly List<FunctionBuilder> functionBuilders; public FunctionsBuilder() { functionBuilders = new List<FunctionBuilder>(); ...
import numpy as np from signal_processing_algorithms.e_divisive.change_points import EDivisiveChangePoint from hunter.analysis import fill_missing, compute_change_points, TTestSignificanceTester def test_fill_missing(): list1 = [None, None, 1.0, 1.2, 0.5] list2 = [1.0, 1.2, None, None, 4.3] list3 = [1.0,...
import 'dart:io'; import 'dna.dart'; import 'native_object.dart'; class NativeInvocation { final NativeObject object; final String method; final List args; final NativeObject returnVar; NativeInvocation(this.object, this.method, this.args, this.returnVar); Map toJSON() { Map json = Map(); if (obj...
--- # Unidad 2 - Programación Estructurada y Modular <img src=daniimg.png> ## Prácticas - Relación de Ejercicios 02 *main_02_xx* - Relación de Ejercicios 05 *main_05_xx* ## Contacto * **Contacto:** daniel.rodriguezfernandez@alumno.iesluisvives.org * **Twiter:** [@idanirf](https://twitter.com/idanirf) * **Linked...
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\GoogleSheet; use Illuminate\Http\Request; class SummaryDataController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function summary() ...
# Redes ### Redes de computadores e a Internet ### Application Layer ### Transport Layer ### The Network Layer ### The Link Layer and LANs ### Wireless and Mobile Networks ### Multimedia Networking
<?php $_['text_wait'] = 'Please Wait...'; $_['text_connect'] = 'Connecting To Alsat Pardakht...'; $_['text_order_no'] = 'خرید شماره: '; $_['button_view_cart'] = 'View Shopping Cart'; $_['button_complete'] = 'Complete Payment';
__author__ = 'fauri' import sys import os import re from scrapy.cmdline import execute # this script is here just to get rid of scrapy crawl command during debuging # with this I can simply start the process via an IDE (like PyCharm) and then enable breakpoints in my code # os.environ['http_proxy'] = "proxy.corp.net...
package io.kf.etl.processors.participantcommon.sink import java.net.URL import io.kf.etl.es.models.Participant_ES import io.kf.etl.processors.common.ProcessorCommonDefinitions.EntityDataSet import io.kf.etl.processors.common.ops.URLPathOps import io.kf.etl.processors.participantcommon.context.ParticipantCommonContext...
#ifndef FE_STDC_H #define FE_STDC_H #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdint.h> #include <stdarg.h> #include <assert.h> /* #include <complex.h> // Unsupported on earlier Android versions */ #include <ctype.h> #include <fenv.h> #include <float.h> #include <inttype...
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixes=GCN -enable-var-scope %s ; RUN: llc -global-isel -mtriple=amdgcn--amdpal -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefixe...
{-# LINE 1 "GHC.Event.KQueue.hsc" #-} {-# LANGUAGE Trustworthy #-} {-# LINE 2 "GHC.Event.KQueue.hsc" #-} {-# LANGUAGE CApiFFI , GeneralizedNewtypeDeriving , NoImplicitPrelude , RecordWildCards , BangPatterns #-} module GHC.Event.KQueue ( new , available )...
/* __ *\ ** ________ ___ / / ___ __ ____ Scala.js sbt plugin ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2013, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ ** ** /____/\___/_/ |_/...
----------------------------------------------------------------------------- -- | -- Copyright : (c) Oleks Shturmov, 2020-2021 -- License : BSD 3-Clause (see the file LICENSE) -- -- Maintainer : oleks@oleks.info ----------------------------------------------------------------------------- module Util ( liftM...
#!/bin/bash # # Copyright (c) 2021, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl. # # Generate output to be included into the commands reference documentation. set -e PWD=`pwd` DOCS_DIR=$1 mkdir -p $DOCS_DIR BIN_DIR=$2 C...
module DOM using Hyperscript const global_unique_dom_id_counter = Ref(0) """ get_unique_dom_id() We could use a unique ID like uuid4, but since every dom element gets such an id, I prefer to keep the id as short as possible, so we just use a counter. """ function get_unique_dom_id() global_unique_dom_id_cou...
use crate::types::{BitCoord, Colour, GameState, Move, Piece}; impl std::fmt::Display for GameState { fn fmt(&self, formatter: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> { format_board(self, formatter)?; Ok(()) } } pub fn format_board(state: &GameState, formatter: &mut std::fmt::F...
; Milawa - A Reflective Theorem Prover ; Copyright (C) 2005-2009 Kookamara LLC ; ; Contact: ; ; Kookamara LLC ; 11410 Windermere Meadows ; Austin, TX 78759, USA ; http://www.kookamara.com/ ; ; License: (An MIT/X11-style license) ; ; Permission is hereby granted, free of charge, to any person obtaining a ; c...
class Chain{ constructor(p,q){ var options={ bodyA:p, pointB:q , length:200 } this.chain=Constraint.create(options) World.add(world,this.chain); } display() { if (this.chain.bodyA ){ stroke ("white") strokeWeight (3) li...
<?php namespace App; use Nette\Application\Routers\RouteList; use Nette\Application\Routers\Route; /** * Router factory. */ class RouterFactory { /** * @return \Nette\Application\IRouter */ public function createRouter() { $router = new RouteList(); $router[] = new Route('[<locale=cs [a-z]{2}>/]<modul...
package ru.capjack.csi.core.internal import ru.capjack.tool.utils.assistant.TemporalAssistant expect object NothingTemporalAssistant : TemporalAssistant
# Deploying Peatio on [Kubernetes](https://kubernetes.io/) ## Overview 1. [Dependencies](#dependencies) 2. [Configuration](#configuration) 3. [Installing the chart](#installing-the-chart) 3. [Getting help](#getting-help) ## Dependencies Peatio has 3 main dependencies: - [MySQL](https://www.mysql.com/) - [Redis](ht...
# Changes network switch of specified VM # # See: https://www.thomasmaurer.ch/2016/01/change-hyper-v-vm-switch-of-virtual-machines-using-powershell Param( [Parameter(Mandatory, HelpMessage = "Name of target vSwitch")] [String] $SwitchName, [Parameter(Mandatory, HelpMessage = "Name of VM to be connected...
import 'dart:math'; import 'dart:ui'; import 'package:example/_models.dart'; import 'package:example/_widgets.dart'; import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:url_launcher/url_launcher.dart'; void main() => runApp(AppView()); class AppView extends Statel...
package com.alessandroborelli.floatapp.domain.model sealed class Result<T> { class Loading<T> : Result<T>() data class Success<T>(val data: T) : Result<T>() data class Failed<T>(val message: String) : Result<T>() companion object { fun <T> loading() = Loading<T>() fun <T> success(data:...
module ABC73.C where import qualified Data.ByteString.Char8 as B import Control.Monad (replicateM) import qualified Data.Set as S import qualified Data.Vector.Unboxed as VU import Data.Maybe (fromJust) solve::VU.Vector Int -> Int solve an = S.size $ VU.foldl (\acc x -> if S.member x acc then S.delete x acc else S.ins...
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(menuName = "AI/State")] public class State : ScriptableObject { [SerializeField] Action[] actions = null; [SerializeField] Transition[] transitions = null; public Color sceneGizmoColor = Color.grey; public...
import { ApolloServer } from 'apollo-server'; import { createSchema } from './utils/graphql-utils'; import { MikroORM } from 'mikro-orm'; import { User } from './user/user.types'; async function bootstrap() { const orm = MikroORM.init({ dbName: 'monsters-dev', clientUrl: 'mongodb://localhost:27017', entities: ...
## assumes the solution is already running from ch07-docker-services\ch07-run-nerd-dinner.ps1 docker secret create nerd-dinner-db-sa-password .\secrets\nerd-dinner-db-sa-password.txt; docker service update ` --secret-add src=nerd-dinner-db-sa-password,target=C:\secrets\sa-password ` --image dockeronwindows/ch07-ner...
require 'spec_helper' describe AthenaHealth::Patient do let(:patient_attributes) do { 'email': 'monroe86@hotmail.com', 'emailexists': 'true', 'occupationcode': '123.123', 'departmentid': '162', 'homephone': '6102569611', 'homebound': 'false', 'guarantorstate': 'GA', ...
const mongoose = require('mongoose') const beautifyUnique = require('mongoose-beautiful-unique-validation') const uniqueValidator = require('mongoose-unique-validator') const Schema = mongoose.Schema require('../vote') const schema = new Schema({ poll: { type: Schema.Types.ObjectId, ref: 'Poll', required...
using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("TestInternalGrains")] [assembly: InternalsVisibleTo("TesterInternal")] [assembly: InternalsVisibleTo("Tester")] [assembly: InternalsVisibleTo("DefaultCluster.Tests")]
set names utf8; update cat_genre set title='biography' where title='биография'; update cat_genre set title='action' where title='боевик'; update cat_genre set title='western' where title='вестерн'; update cat_genre set title='military' where title='военный'; update cat_genre set title='detective' where title='детектив...
#!/usr/bin/env bash set -e GIT_REPO="https://github.com/MadAnd/dotvim.git" INSTALL_DIR=~/.vim VIMRC=~/.vimrc # USAGE # find_executable executable-name # DESCRIPTION # Find an executable, given as a first argument, in PATH # and assign the found path to a global variable. # EXAMPLES # `find_executable git` - wi...
using UnityEngine; using System.Collections; public class storeScriptSwords : MonoBehaviour { public int swordNumber, gold; public int price2, price3, price4; public swordBuy swordBuyScript2, swordBuyScript3, swordBuyScript4; public bool sword2bought, sword3bought, sword4bought; public GameObject...
class Name { const Name(); } const name = Name(); class TypedEnum<T> { final T type; const TypedEnum(this.type); } const intEnum = TypedEnum(int); const stringEnum = TypedEnum(String); class Value { final dynamic value; const Value(this.value); }
<?php namespace backend\modules\chi\controllers; use Yii; use yii\helpers\ArrayHelper; use backend\modules\quantri\models\CuaHang; use backend\modules\chi\models\ChiLoaichi; use backend\modules\chi\models\ChiKhoanchi; use backend\modules\chi\models\ThongkeSearch; use backend\modules\chi\models\Chingay; use backend\mo...
from visa_success import VisaSuccess from visa_decline import VisaDecline class PaymentInformationFactory: """ This class generates encapsulated payment information objects to be used for the Stripe Checkout webpage. """ def get_payment_information(self, transaction_type): ""...
/* * Copyright 2021 Jetperch LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
package com.motivation.team3.motivateme.service import android.app.Activity import android.content.BroadcastReceiver import android.content.ComponentName import android.content.Context import android.content.Intent import android.os.Vibrator import android.widget.Toast import androidx.legacy.content.WakefulBr...
# rerevalidator Handy wrapper around [revalidator](https://github.com/flatiron/revalidator) and simple validation schemas serve method (more not needed to put revalidator and validation schemas in ./public). It also performs data types conversions (for example, if you specified some field as 'integer' in your schema ...
import { Component, OnInit } from '@angular/core'; import { AccountStoreService } from '../account.store-service'; import { Observable } from 'rxjs/Observable'; import { AccountSummary } from '../account.model'; @Component({ selector: 'lf-account-layout', templateUrl: './account-layout.component.html', styleUrls...
import os import numpy as np from ssr.utility.os_extension import get_file_paths_in_dir from ssr.ext.read_dense import read_array from ssr.ext.read_write_dense import write_array from ssr.file_handler.ply_file_handler import PLYFileHandler from ssr.file_handler.colmap_file_handler import ColmapFileHandler from ssr.ssr_...
<?php namespace Cjpgdk\Laravel\JsRoutes\Console\Commands; use Cjpgdk\Laravel\JsRoutes\ServiceProvider as JsRoutesServiceProvider; use Illuminate\Foundation\Console\RouteCacheCommand; use Illuminate\Support\Str; /** * Class JsRoutesCacheCommand * * @category Laravel * @package Cjpgdk\Laravel\JsRoutes\Console\Com...
/* * Copyright (c) TIKI Inc. * MIT license. See LICENSE file in root directory. */ import '../../slices/api_bouncer/api_bouncer_service.dart'; import '../../slices/login_flow/login_flow_service.dart'; import 'helper_api_rsp.dart'; import 'helper_api_utils.dart'; class HelperApiAuth { final LoginFlowService login...
# csharp-editor-exercises Editor exercises for csharp, to help you hone your shortcuts and editor-fu 1. Rename a variable 2. Multi-cursor fruit salad add 3. Extract CSV into dictionary 4. Move classes out into their own files 5. Extract interface and refer to that instead 6. Extra tips & tricks
(ns nnichols.spec-test (:require [clojure.spec.alpha :as csa] [clojure.spec.gen.alpha :as sgen] [nnichols.predicate :as np] [nnichols.spec :as s] [nnichols.util :as nu] #? (:clj [clojure.test :refer [deftest is testing]]) #? (:cljs [cljs.test ...
"use strict"; const Cluster = require("./Cluster"); /** SDS Kit */ const SDSKit = Cluster; module.exports = SDSKit;
package notifiarr import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "net/http" "sync" "time" "github.com/Notifiarr/notifiarr/pkg/plex" "github.com/Notifiarr/notifiarr/pkg/snapshot" ) // httpClient is our custom http client to wrap Do and provide retries. type httpClient st...
import { FieldsToFetchToken } from "./Tokens/FieldsToFetchToken"; import { QueryOperation } from "./Operations/QueryOperation"; /** * This is used as an abstraction for the implementation * of a query when passing to other parts of the * query infrastructure. Meant to be internal only, making * this public to allo...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from "@angular/common/http" import { getString } from "tns-core-modules/application-settings"; @Injectable({ providedIn: 'root' }) export class SettingsService { private serverUrl = "https://apiprofjocampo.herokuapp.com/"; private r...
using Business.Abstract; using Business.BusinessAspects; using Business.Constants; using Core.Aspects.Autofac.Caching; using Core.Utilities.Results; using DataAccess.Abstract; using Entities.Concrete; using System; using System.Collections.Generic; using System.Text; namespace Business.Concrete { public class Veh...
package net.ninjacat.brking.diff.rules; import java.util.List; import net.ninjacat.brking.api.ApiClass; import net.ninjacat.brking.diff.DiffContext; import net.ninjacat.brking.diff.DiffElement; import net.ninjacat.brking.diff.DiffType; import net.ninjacat.brking.diff.ImmutableDiffElement; import net.ninjacat.brking.u...
#!/usr/bin/env python3 """Pixelartor.""" import argparse from skimage import io from skimage import transform as tf from skimage import exposure from skimage import feature from skimage import filters import numpy as np import sys # const __author__ = "Krlnk" __version__ = 0.1 W, H = 800, 500 # convert float to 4/2 bi...
<?php namespace RonteLtd\CommonBundle\Traits; /** * SetPropertiesFromArrayTrait * * @author Alexey Astafev <efsneiron@gmail.com> */ trait SetPropertiesFromArrayTrait { /** * Fills attributes from array * * @param array $data * @return SetPropertiesFromArrayTrait */ final public fu...
--- changelog: last_modified_at: title: Deveo webhookの追加(Adding a Deveo webhook) redirect_from: [] date: 2019-03-28 14:52:43 +0000 published: false --- {% include not_translated_yet.html %} コードプッシュやプルリクエストなどの指定されたアクションを実行するたびにBitriseが自動的にアプリのビルドをトリガーするようにwebhookを設定できます。 Deveoの場合は、 `bitrise-webhooks`URLを [Deveo](https...
package org.lasersonlab.zarr.array import cats.Traverse import hammerlab.opt.std._ import org.lasersonlab.ndarray.{ Indices, UnfoldRange, Vector } import org.lasersonlab.slist.{ Scannable, Size, Zip } import org.lasersonlab.zarr.Compressor.Blosc import org.lasersonlab.zarr.FillValue.Null import org.lasersonlab.zarr.Or...
using Network.Core; using Network.HTTP; using System.Collections.Generic; using System.Text; using UnityEngine; public class HTTPSample : MonoBehaviour { private List<HTTPRequest> m_PendingRequests = new List<HTTPRequest>(); private void Start() { TestGet(); TestPost(); TestGetTime...
/******************************************************************************* * Copyright (c) 2003, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
#!/usr/bin/env bash # Configure known_hosts for root user in mdata variable if mdata-get root_known_hosts 1>/dev/null 2>&1; then mkdir -p /root/.ssh echo "# This file is managed by mdata-get root_known_hosts" \ > /root/.ssh/known_hosts mdata-get root_known_hosts >> /root/.ssh/known_hosts fi
<?php // core_cool_named_cookie.php setcookie('test_not_named',1,0,0,'','',FALSE,TRUE); setcookie('test_named',1,httponly: TRUE); headers_list();
#include "AESHash.h" void AESHash128_test(const void *key, int len, uint32_t seed, void *out) { uint64_t h1 = seed, h2 = seed; AESHash128(key, len, &h1, &h2); ((uint64_t*)out)[0] = h1; ((uint64_t*)out)[1] = h2; } void AESHash64_test(const void *key, int len, uint32_t seed, void *out) { uint64_t out2[ 2 ];...
abstract type AbstractStorage end struct BSONStorage <: AbstractStorage end struct JLD2Storage <: AbstractStorage end struct JLSOStorage <: AbstractStorage end struct JSONStorage <: AbstractStorage end struct YAMLStorage <: AbstractStorage end const EXTENSIONS = Dict( "bson" => BSONStorage, "jld2" => JLD2Stor...
#!/usr/bin/env node // This utility will read an input file containing mappings from OpenApi // paths and method to an operationId. The input must be in the following // JSON format: // // [ // { 'path' : string, // 'method': string, // 'operationId': string // } // ] // // It will then parse the indica...
import { Pipe, PipeTransform } from '@angular/core'; import { of } from 'rxjs'; import { map } from 'rxjs/operators'; import { LocalizedLazyDataService } from '../../core/data/localized-lazy-data.service'; import { I18nNameLazy } from '../../model/common/i18n-name-lazy'; @Pipe({ name: 'itemName', }) export class Ite...
module Tags ( h1 , h2 ) where h1 :: String h1 = "====== Level1 ======" h2 :: String h2 = "===== Level2 =====" {-imgInternal :: ImageLink-} {-imgInternal = Img $ Internal "[[namespace:pagename|{{wiki:yourpicture.png}}]]"-} {-imgExternal :: ImageLink-} {-imgExternal = Img $ External "[[http://yourlink.com...
/** * @desc 交互式组件 type 判断 * @param { String } type * @returns { Boolean } */ export default function (type) { return [ 'bk-dialog', 'bk-sideslider' ].includes(type) }
macro timeit(f) start = time() out = eval(f) elapsed = time() - start print("Time elapsed: ", elapsed, "\n") (output = out, time = elapsed) end function std_aux_laws(AuxLaw, param, θ, obs, obs_time, idx=1:length(obs[1])) if param === nothing # a temporary solution before redefining FH...
<?php use App\Http\Controllers\Output; use App\Http\Controllers\PageController; use App\Http\Controllers\RoomController; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |------------------------------------------------------------------...