text
stringlengths
27
775k
import React, { FC, RefObject } from 'react' import Table from '../../../components/Table' import styles from './styles.module.css' interface Props { refTable: RefObject<HTMLTableElement> } const PanelResult: FC<Props> = ({ refTable }) => { return ( <section className={styles.wrapper}> <div className={s...
Bayesian epiallele detection Copyright (C) 2019 James E. Barrett (regmjeb@ucl.ac.uk) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at yo...
#!/bin/bash sed -i.bak '14i\ cmake_policy(SET CMP0042 NEW)' CMakeLists.txt export LD_LIBRARY_PATH=${PREFIX}/lib export LIBRARY_PATH=${PREFIX}/lib mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} \ -DCMAKE_CXX_COMPILER=${CXX} \ -DCMAKE_INSTALL_INCLUDEDIR=${PREFIX}/include \ -DCMAKE_INSTA...
<? include("../conn.php"); if (!$_SESSION["admin"]) { header("location: ..\..\site\content\index.php"); exit; } include("../header.php"); include("../sidebar.php"); ?> <? include("../footer.php"); ?>
// Copyright 2020 The Moov Authors // Use of this source code is governed by an Apache License // license that can be found in the LICENSE file. package gateways import ( "encoding/json" "errors" "fmt" "net/http" moovhttp "github.com/moov-io/base/http" "github.com/moov-io/paygate/internal/route" "github.com/...
require 'push_builder/version' require 'push_builder/payload' require 'push_builder/aps' require 'push_builder/compiler' require 'push_builder/string_cropper' module PushBuilder TypeError = Class.new(StandardError) def self.build(args={}) Payload.new.tap do |payload| args.each { |k, v| payload.aps.send(...
//Copyright (c) 2018 Yardi Technology Limited. Http://www.kooboo.com //All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Kooboo.IndexedDB { [Serializable] public class ObjectStorePar...
<!DOCTYPE html> <html> <head> <title>New Scooter Booking</title> </head> <body> <h1>{{ $name }} wish to book a scooter !</h1> <br> <h2>Booking Info</h2> <ul> <li>Pick Up date : {{ date_format(date_create($pickUp), "d/m/Y") }}</li> <li>Drop Off date : {{ date_format(date_create($dropOff), "d/m/Y") }}</li> </ul...
/* * QEMU PC System Emulator * * Copyright (c) 2003-2004 Fabrice Bellard * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights ...
# clean-architecture-boilerplate Clean Architecture setup -- my attempt ## Image for idea from Uncle Bob ![Picture](https://blog.cleancoder.com/uncle-bob/images/2012-08-13-the-clean-architecture/CleanArchitecture.jpg) ## Important 1. Push class diagram when start using this repo 2. Update Use Case document as goin...
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.test; import org.testng.Assert; import org.testng.annotations.Test; ...
class MigrateBuildToCommits < ActiveRecord::Migration def change execute <<eos INSERT INTO commits ( sha, project_id, ref, before_sha, push_data ) SELECT sha, project_id, ref, before_sha, push_data FROM builds WHERE id IN (SELECT MAX(id) FROM builds GROUP BY sha) eos if ActiveRecord::Base.connection.adapter...
import React from "react" import { PageProps, Link, graphql } from "gatsby" import Layout from "../components/layout" import Image from "../components/image" import SEO from "../components/seo" import Box from "../components/box" import SearchBar from "../components/index" // TODO type vs interface? type DataProps = ...
import { NextPage } from "next"; import React from "react"; import { Home } from "@/src/app/home/home"; import Head from "next/head"; import { defaultQueryClient } from "@/src/app/shared/queryClient/defaultQueryClient"; import { firstPage, pageSize, pageSizeLandingPage } from "@/src/app/shared/constants/constants"; imp...
using Pds.Core.ApiClient; namespace Pds.Contracts.Data.Api.Client.ConfigurationOptions { /// <summary> /// Structure to hold configuration for the Contracts Data API client. /// </summary> public class ContractsDataApiConfiguration : BaseApiClientConfiguration { } }
require 'kontena/cli/nodes/create_command' describe Kontena::Cli::Nodes::CreateCommand do include ClientHelpers include OutputHelpers it 'POSTs the node' do expect(client).to receive(:post).with('grids/test-grid/nodes', {name: 'node-4', labels: []}) subject.run(['node-4']) end it 'POSTs the node w...
--- layout: wiki title: categories: NewBibleDictionary description: 圣经新词典 - 目录 keywords: , comments: false --- ## 圣经新辞典 ◇ 序言 英文原书序言 中文版序一 中文版序二 ◇ 绪言 中文版上册绪言 中文版下册绪言 ◇ 本辞典的使用方法 ◇ 原文音译对照表 ◇ 略语表 Ⅰ·书籍与期刊 Ⅱ·古典作品 Ⅲ·圣经书卷 Ⅳ·一般略语 Ⅴ·圣经原文及中英译本 ◇ 撰述人名单 ◇ A 亚伦(AARON) 亚伦的杖(AARON'S ROD)...
--- layout: post title: Hive 重新配置元数据库 categories: [Hive] description: hive 重新配置 原数据库 keywords: Hive --- Hive 重新配置元数据库 --- #### 前言 有一套测试环境的 CDH 太久没维护了。各种组件都已经宕掉了。 作为一个合格的运维人员肯定得负责帮开发工程师整起来 在修复 Hive 的过程中,一直报 Hive Metastore canary创建数据库失败 。 通过定位发现是元数据库 mysql 宕了。凭借自己一点点mysql 知识准备把它启动起来。结果失败了。。。。。 后面找到负责搭建这个 mysql 的测...
export function generate_2fa_secret(): string; export function check_2fa_code(secret: string, token: string): boolean;
import * as fs from "fs"; const input = fs.readFileSync("02/input.txt").toString().split("\n") .map(row => row.trim()).map(row => row.match(/(\w+) (\d+)/)).filter(Boolean); let part1 = 0; let part2 = 0; let x = 0; let aim = 0; let depth = 0; for (let row of input) { switch(row[1]) { case "forward": ...
package com.copperleaf.kudzu.parser.text import com.copperleaf.kudzu.checkNotEmpty import com.copperleaf.kudzu.node.NodeContext import com.copperleaf.kudzu.node.text.TextNode import com.copperleaf.kudzu.parser.Parser import com.copperleaf.kudzu.parser.ParserContext import com.copperleaf.kudzu.parser.ParserException im...
#!/bin/bash set -e # clean up possible build results to avoid confusion # on further builds picking them up rm -f build/junit.xml rm -f build/test.log rm -f build/screenshots/*.png
# -*- coding: utf-8 -*- # ホスト名と IP アドレスのハッシュ $hosts = { "lv0" => "192.168.77.10", "lv1" => "192.168.77.11", "lv2" => "192.168.77.12", "w101" => "192.168.77.101", } # ゲートウェイ set :gateway, "210.251.121.180" # ロードバランサ role :lv, $hosts["lv1"], $hosts["lv2"] # Web サーバ role :web, $hosts["w101"] # データベースサーバ role ...
require 'rspec' require 'spec_helper' describe ToyRobot::ToyRobotGame do context 'when initializing a game' do toy_robot = ToyRobot::ToyRobot.new subject(:game) { ToyRobot::ToyRobotGame.new toy_robot } it 'sets the toy_robot field' do expect(game.toy_robot).to eq(toy_robot) expect(game.flat_...
import requests import numpy as np import time from datetime import datetime, timedelta site = 'http://vcm-7304.vm.duke.edu:5000' def my_data1(): df = { 'patient_id': "Matt", 'attending_email': 'mattdholbrook@gmail.com', 'user_age': '23', } return df def my_data2(): df = { '...
<?php /** * 设置主机环境 * */ class SetSystemController extends CommonController { //public $navTab = 'D707'; public $navTab = '2c948cfb51ec5db00151ec9ccdd8003d'; // 框架首页 public function index(){ if($_POST) { $_SESSION['SYSTEM_FLAG'] = $_POST['systemflag']; $ret = array("statusCode"=>"1","message"=...
# Model describes note's template, that is used as sceleton to create security notes class Template < ApplicationRecord belongs_to :user validates_presence_of :title, :config validates_uniqueness_of :title # DEPRECATED # Public: creates note and fills fields values from "values" hash def create_note(title...
import { PageContainer } from './page-container' export { PageContainer } export default PageContainer
#!/usr/bin/env bash mod=$1 bs=$2 dev='baseURL = ""' prod='baseURL = "http:\/\/tomis9\.com"' if [ "$mod" == "dev" ] then if [ "$bs" == "build" ] then sed -i "1s/.*/$dev/" config.toml Rscript -e "blogdown::build_site()" sed -i "1s/.*/$prod/" config.toml elif [ "$bs" == "serve" ] ...
class MailChimpAccountSerializer < ApplicationSerializer type :mail_chimp_accounts attributes :active, :api_key, :auto_log_campaigns, :lists_available_for_newsletters, :lists_link, :lists_present, :primary_list_id, :primary_...
require 'rails_helper' describe Vaalit::Public do before do @election = FactoryBot.create(:election) end context 'when voting has not started' do before do get "/api/public/elections/#{@election.id}/voting_percentage" end it 'was a successful request' do expect(response).to be_succ...
using UnityEngine; using UnityEngine.Events; public class GamePlayKeyControl : MonoBehaviour { public UnityEvent actionOnCancel; public UnityEvent actionOnStart; public UnityEvent actionOnSubmit; void Update () { if (Input.GetButtonDown("Cancel")) { if (actionOnCancel != nu...
@model IEnumerable<DAL.Models.Employer> <ul> @{ foreach (var employer in Model) { <li id="Employer_@employer.Id" data-jstree='{"icon":"glyphicon glyphicon-home"}' data-type="@typeof(DAL.Models.Employer)" @if (employer.SubContractors.Coun...
/* NexOS Kernel Version v1.01.00 Copyright (c) 2022 brodie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
# GAUDIAMUS Audio engine written in C11. An attempt to make a successor of faudio. ## Building In source root: mkdir -p build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project'...
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ScottPlotTests.Plot { class Guid { [Test] public void Test_Guids_AreUnique() { int reps = 100; var guids = new Li...
//! Strongly-typed implementation of the ES6 AST. #![feature(box_patterns)] extern crate binjs_shared; #[macro_use] extern crate assert_matches; #[macro_use] extern crate log; #[macro_use] extern crate json; /// A strongly-typed AST for ES6. pub mod ast; /// Computing scope information from a strongly-typed AST. ...
Online at https://css-backgrounds.netlify.app/ Background created with CSS gradients, initially created as a part of Codepen challenge. Codepen URL: [https://codepen.io/poulamic/pen/qBZKKrP](https://codepen.io/poulamic/pen/qBZKKrP).
using System; using System.Linq; namespace Demo.CalcEng.Domain { public class TwoNumbersOperationRequest { public decimal FirstNumber { get; set; } public decimal SecondNumber { get; set; } } public class DemoItem { public int PropA { get; set; } public int PropB {...
import React from "react"; import Link from "next/link"; import { Menu } from "antd"; import { UsergroupAddOutlined, HomeOutlined } from "@ant-design/icons"; const { SubMenu } = Menu; const Sidebar = () => { const handleClick = (e) => { console.log("click ", e); }; return ( <Menu onClick={handleCl...
package plugins import ( "errors" "fmt" "github.com/maodijim/sense-api" log "github.com/sirupsen/logrus" "gopkg.in/yaml.v3" "os" ) type SenseConfig struct { SenseUser string `yaml:"senseUser"` SensePass string `yaml:"sensePass"` SenseRefreshToken string `yaml:"senseRefreshToken"` } type Sens...
package cz.palda97.lpclient.view import android.content.Context import android.widget.ArrayAdapter import android.widget.Filter /** * Adapter that contains items of certain type and their text representation. * @param T The type of items stored in this adapter. * @param resource Dropdown item resource id. * @para...
package cluster import ( "fmt" "log" "net" "sync" "time" pb "github.com/go-sif/sif/internal/rpc" "golang.org/x/net/context" "google.golang.org/grpc/peer" ) type clusterServer struct { pb.UnimplementedClusterServiceServer workers sync.Map numWorkersLock sync.Mutex numWorkers int opts ...
{-# LANGUAGE CPP #-} #ifdef LANGUAGE_DataKinds {-# LANGUAGE DataKinds #-} #endif {-# LANGUAGE DefaultSignatures , DeriveGeneric , FlexibleContexts , GADTs , TypeFamilies , TypeOperators , UndecidableInstances #-} {- | Copyright : (c) Andy Sonnenburg 2013 License : BSD3 Maintainer : andy22286@g...
# frozen_string_literal: true describe StatusSerializer, :all_dbs do def status_hash(object) StatusSerializer.new(object).serializable_hash[:data][:attributes] end context "#appeal" do let(:judge) { create(:user) } let!(:hearings_user) { create(:hearings_coordinator) } let!(:receipt_date) { ama_...
# Top List ## Highest Ranked Videos 1. [《原神》角色演示-「八重神子:仙狐宫司异闻录」](https://www.bilibili.com/video/BV1M341177YQ) 1. [《崩坏3》概念动画短片「冬之记忆」](https://www.bilibili.com/video/BV1QP4y1c7K5) 1. [想不明白,整这么逼真的玩具干啥](https://www.bilibili.com/video/BV1sL411K7mY) 1. [2021年的总结 1000个星星小人画完拉](https://www.bilibili.com/video/BV1eS4y1G7ig) 1. [...
#ifndef _PARSER_H #define _PARSER_H #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "types.h" #include "constants.h" lf * get_lf(FILE * fp); void * free_lf(lf * f); #ifdef __cplusplus } #endif #endif
const Discord = require("discord.js"); module.exports = { commands: ['invites'], expectedArgs: '', permissionError: 'Vous n\'avez pas la permission nécessaire pour exécuter cette commande.', minArgs: 0, maxArgs: 0, description: 'Classement des membres par invitations envoyées', callback: (cl...
## # = Field # # A field definition tracks information that's necessary for # Flat::File to process a particular field. This is typically # added to a subclass of Flat::File like so: # # class SomeFile < Flat::File # add_field :some_field_name, :width => 35 # end # module Field ## # = Class Methods # # De...
use napi::bindgen_prelude::*; /// default enum values are continuos i32s start from 0 #[napi] pub enum Kind { /// Barks Dog, /// Kills birds Cat, /// Tasty Duck, } /// You could break the step and for an new continuous value. #[napi] pub enum CustomNumEnum { One = 1, Two, Three = 3, Four, Six = ...
using PowerUtils.Validations.Contracts; using PowerUtils.Validations.Tests.Fakes.Entities; namespace PowerUtils.Validations.Tests.Fakes.Validations.Strings; public class FakeMinLengthValidation : ValidationsContract<FakeEntity> { private readonly int _minLength; public FakeMinLengthValidation( FakeE...
# coding: utf-8 require 'corefines/support/alias_submodules' module Corefines module String ESCAPE_SEQUENCE = /\033\[([0-9]+);([0-9]+);([0-9]+)m(.+?)\033\[0m|([^\033]+)/m private_constant :ESCAPE_SEQUENCE ## # @!method camelcase # Returns a copy of the _str_ converted to camelcase. When no +:...
--- id: extension_examples title: Extension Examples slug: extension-examples.html sidebar_label: Examples --- ### System Out Listener A real example of an extension, is the `NoSystemOutListener` which comes with Kotest. This extension throws an error if any output is written to standard out. ```kotlin class MyTest...
require 'symath/product' module SyMath class Wedge < Product def initialize(arg1, arg2) super(arg1, arg2) @name = '^' end def type() if factor1.type.is_subtype?('tensor') and factor2.type.is_subtype?('tensor') # Wedge product of two tensor-like object. Determine index ...
package net.manub.embeddedkafka.schemaregistry.streams import net.manub.embeddedkafka.schemaregistry.EmbeddedKafkaConfig import net.manub.embeddedkafka.streams.EmbeddedKafkaStreamsAllInOneSupport /** Convenience trait exposing [[EmbeddedKafkaStreams.runStreams]] * as well as [[net.manub.embeddedkafka.Consumers]] ap...
require File.expand_path('../../../spec_helper', __FILE__) module Pod describe Generator::InfoPlistFile do describe '#target_version' do it 'returns 1.0.0 for the aggregate target' do generator = Generator::InfoPlistFile.new(fixture_aggregate_target) generator.target_version.should == '1.0....
SUBROUTINE SWILK (INIT, X, N, N1, N2, A, W, PW, IFAULT) C C ALGORITHM AS R94 APPL. STATIST. (1995) VOL.44, NO.4 C C Calculates the Shapiro-Wilk W test and its significance level C C IFAULT error code details from the R94 paper: C - 0 for no fault C - 1 if N1 < 3 C - 2 if ...
using Catalog.Domain.Contracts.Repositories; using Catalog.Domain.Contracts.Services; using Catalog.Domain.Services; using Catalog.Infra.Data.Mongo.Contexts; using Catalog.Infra.Data.Mongo.Contexts.Contracts; using Catalog.Infra.Data.Repositories; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.De...
package com.example.labratour.data.Entity; import com.google.gson.annotations.SerializedName; import java.util.HashMap; public class UserEntity { @SerializedName("userId") public String userId = null; @SerializedName("countrate") public double countRate = 0; @SerializedName("email") public ...
import {isArray, isNumber, isObject} from "./typeGuards" const deepMap: { <T, U, V extends string | number | symbol>( value: Record<V, T>, fn: (value: T, ...args: any[]) => U, ...args: any[] ): Record<V, U>, <T, U>(value: T[], fn: (value: T, ...args: any[]) => U, ...args: any[]): U[...
Mountain Info Please fill in some of the facts that are missing below! **Elevation:** 8,219 feet **Range:** Donner Summit area **Latitude, Longitude:** 39.35,-120.37 **Interesting facts:** Good Backcountry ski hill. Nearby Castle Peak and Peter Grubb SkiHut.
using System; using System.Collections.Generic; using System.Text; using System.Web; using MongoDB.Bson.Serialization.Attributes; namespace StoryForce.Shared.Models { [BsonIgnoreExtraElements] public class StoryFile : DatabaseEntity { public string Title { get; set; } public ...
# HackNC2017 roamIN README This website shows the relative rates and occurences of different social factors. By selecting a state, you can see the expected immigration rates of neighboring states to and from the selected state. Sliders are provided to test hypothetical changes to state laws.
require 'spec_helper' fixture = FixtureLoader.init('main.json') config_hash = ConfigLoader.init config_variables = config_hash['config_variables'] options = { api_key: config_variables['API_KEY'], api_secret: config_variables['API_SECRET'], username: config_variables['USERNAME'], password: config_variables['PAS...
package ru.org.codingteam.horta.plugins.markov import me.fornever.platonus.Network import ru.org.codingteam.horta.plugins.log.{LogRepository, MessageType} object LogParser { def parse(log: LogRepository, roomName: String, userName: String): Network = { val messages = log.getMessagesByUser(roomName, userName, M...
use seed::{prelude::*, *}; use std::rc::Rc; mod shared; const WS_URL: &str = "ws://127.0.0.1:9000/ws"; // ------ ------ // Model // ------ ------ pub struct Model { sent_messages_count: usize, messages: Vec<String>, input_text: String, input_binary: String, web_socket: WebSocket, web_soc...
# hiqdev/yii2-language ## [0.1.0] - 2017-05-06 - Renamed configs: `hidev.yml` and `web` <- hisite ([@hiqsol]) - Changed LanguageMenu to hide when no other languages ([@hiqsol]) - Changed: redone with LanguageMenu menu (was widget) ([@hiqsol]) ## [0.0.2] - 2016-12-06 - Changed container definitions settings ([@hiqso...
#!/bin/bash mkdir -p ~/.aws cat > ~/.aws/credentials << EOL [${AWS_PROFILE}] aws_access_key_id = ${AWS_ACCESS_KEY_ID} aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY} EOL
//VSOP87-Multilang http://www.astrogreg.com/vsop87-multilang/index.html //Greg Miller (gmiller@gregmiller.net) 2019. Released as Public Domain #include <math.h> #include "vsop87a_milli.h" double vsop87a_milli_earth_x(double t); double vsop87a_milli_earth_y(double t); double vsop87a_milli_earth_z(double t); do...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */ /* vi: set expandtab shiftwidth=4 tabstop=4: */ #include <stdio.h> #include "arraytoc.h" static void modp_toupper_map(void) { size_t i = 0; char map[256]; for (i = 0; i < sizeof(map); ++i) { if (i >= 'a' && i <= 'z') { ...
# API Documentation - [addCustomer](#addcustomer) - [getCustomer](#getcustomer) - [modifyCustomer](#modifycustomer) - [removeCustomer](#removecustomer) --- # addCustomer Adds a new customer. ### Prerequisites None. ### HTTP Request ``` POST /customer/addCustomer ``` ### Request parameters Do not supply a requ...
"""List all records in a zone.""" # :license: MIT, see LICENSE for more details. import click import SoftLayer from SoftLayer.CLI import environment from SoftLayer.CLI import formatting from SoftLayer.CLI import helpers # pylint: disable=redefined-builtin, redefined-argument-from-local @click.command() @click.argum...
//! Traits and associated utilities to handle and implement CLAP extensions. //! //! These traits are designed to be used for *implementing* custom or unsupported extensions. //! If you want to use an existing extension in your plugin, see the `clack_extensions` //! crate instead. //! //! # Example //! //! This example...
/** * For copyright information see the LICENSE document. */ package entice.server.database import entice.protocol._ import org.scalatest._ import org.scalatest.matchers._ class DatabaseSpec extends WordSpec with MustMatchers { "An entice database" must { "do CRUD on accounts and extras" in { ...
lui $1,59438 ori $1,$1,42773 lui $2,3529 ori $2,$2,30934 lui $3,56246 ori $3,$3,28838 lui $4,31550 ori $4,$4,35502 lui $5,52285 ori $5,$5,14320 lui $6,48010 ori $6,$6,25777 mthi $1 mtlo $2 sec0: nop nop nop slti $2,$2,-3783 sec1: nop nop and $2,$6,$4 slti $2,$2,-5407 sec2: nop nop slti $2,$2,-10891 slti $2,...
class LightsOut { constructor(W, H) { console.assert(0 < W && W < 32); console.assert(0 < H); this.W = W; this.H = H; this.mask = (1 << W) - 1; this.M = []; for (let i = 0; i < H; i++) { this.M.push(this.mask); } } setMatrix(M, W) { this.M = M; this.H = M.length; ...
import _ from "lodash"; import { pipe, trim } from "lodash/fp"; export function splitCols(line: string, delimiter: string): string[] { const deli = /^\s+$/.test(delimiter) ? /\s+/g : delimiter; return [line, ...line.split(deli).filter(Boolean).map(_.trim)]; } export function splitLines(content: string): string[] ...
#----------------------------------------------------------------------------------- # RBF Python3 library example. # # reads a RBF file and print-out record as CSV data # #----------------------------------------------------------------------------------- # standard imports import sys from datetime import datetime, d...
#pragma once namespace komposto { using floating_point_t = double; using integer_t = long; // timing using timestamp_beats_t = floating_point_t; using duration_beats_t = floating_point_t; using duration_seconds_t = floating_point_t; // tone using frequency_t = floating_point_t; using pitch_cents_t = floating_point_...
#!perl use strict; use warnings; use lib 't/lib'; use Test::More; use Test::Deep; use TestSchema; use DBIx::Class::Helper::ResultClass::Tee; my $schema = TestSchema->deploy_or_connect(); $schema->prepopulate; my $rs = $schema->resultset('Gnarly')->search(undef, { result_class => DBIx::Class::Helper::ResultClas...
import sys print ("Your Python version is: " + sys.version) import cv2 print("Your OpenCV version is: "+ cv2.__version__) output_folder = "V:/tmp" # 1. Open an image source # default web-cam #source = 0 # video-file source = "V:/01_job/12_datasets/test_videos/street_view_kempten.mp4" # open the im...
// <auto-generated /> Disable StyleCop on this file // This is comment line 1 // This is comment line 2 // This is comment line 3 using System; using System.Collections.Generic; using System.Text; namespace SampleNamespace { /// <summary> /// This is a sample class definition. /// </summary> public cl...
namespace _09.Students_Enrolled_in_2014_or_2015 { using System; using System.Collections.Generic; using System.Linq; public class GradesByYear { public static void Main() { string input = Console.ReadLine(); Dictionary<string, List<int>> students = new Dict...
#!/usr/bin/env dart import 'dart:async'; import 'package:tekartik_cmd_record/bin/cmd_record.dart' as cmd_record; Future main(List<String> arguments) => cmd_record.main(arguments);
/* * Designed and developed by 2019 skydoves (Jaewoong Eum) * * 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 appl...
<?php /** * Model pour le controller USER */ class user_model extends CI_Model { public function __construct() { $this->load->database(); $this->load->helper('date'); } public function set_user() { $date_actuelle = date('Y-m-d'); $data=array( 'USER'=>$this->input->post('email'), 'MDP' => $this...
import cv2 class Smile: def __init__(self): self.activated = True self.faceCascade = cv2.CascadeClassifier('SmileScanner/Cascades/haarcascade_frontalface_default.xml') self.smileCascade = cv2.CascadeClassifier('SmileScanner/Cascades/haarcascade_smile.xml') self.cap = cv2.VideoCap...
package crypto import ( "encoding/hex" "fmt" ejsonCrypto "github.com/Shopify/ejson/crypto" "regexp" ) type Decrypter struct { decrypter *ejsonCrypto.Decrypter } type Encrypter struct { encrypter *ejsonCrypto.Encrypter } func GenerateKeypair() (string, string, error) { var kp ejsonCrypto.Keypair if err := kp....
# Generate the Self signed PEM, JKS and P12 certificates To renew the certificate, run the following script: ```bash export SECRET=secret # 1. Create RSA private keys and certificates as a key store and export export JKS_FILE=server-keystore.jks export CERT_FILE=localhost.crt export PKCS_FILE=server-keystore.p12 exp...
/* * Copyright (c) Fundacion Jala. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ package org.fundacionjala.oblivion.apex.grammar.ast.sosl; import com.sun.source.tree.ExpressionTree; import com.sun.source.tree.LiteralTree; /** * Repres...
use crate::common::Location; use crate::lexer::{LexemeNode, LexerError}; #[derive(Debug, PartialEq)] pub enum ParserError { /// An error occurred in the lexer. LexerError(LexerError), /// An internal error (IO error, unexpected num parsing, etc) Internal(String, Location), /// Unexpected token ...
import * as Semigroup from './Semigroup'; export { Semigroup } ;
package io.testaxis.intellijplugin.settings import com.intellij.openapi.components.service import com.intellij.openapi.project.Project import com.intellij.openapi.ui.DialogWrapper import com.intellij.openapi.ui.Messages import com.intellij.ui.components.JBPasswordField import com.intellij.ui.components.JBTextField imp...
using Game.UnityWrapper; using UnityEngine; namespace Game.Unity { public class PaddleController : MonoBehaviour { [SerializeField] [Tooltip("The number of units per second to move.")] float movementSpeed = 3f; BreakoutGame.PaddleController paddleController; void Awak...
-- Create new game 'whisqy' if it does not exist INSERT INTO games(name) SELECT 'whisqy' WHERE NOT EXISTS ( SELECT 1 FROM games WHERE name = 'whisqy' );
Pico Speed ==== Pico Speed is a modification of Pico, a stupidly simple, blazing fast, flat file CMS (see http://picocms.org/). * Installed the Skull theme (https://github.com/bananana/skull) Install ------- Git clone Pico-Speed $ curl -sS https://getcomposer.org/installer | php $ php composer.phar install ...
<?php namespace Shetabit\Multipay\Traits; use Shetabit\Multipay\EventEmitter; trait HasPaymentEvents { /** * Event registerar. * * @var EventEmitter */ protected static $eventEmitter; /** * Add verification event listener. * * @param callable $listener * * @r...
/* Author: Eli Elad Elrom Website: https://EliElrom.com License: MIT License File: src/model/index.ts */ export * from './historicalPriceObject'
package io.hirasawa.server.bancho.packets import io.hirasawa.server.bancho.chat.message.ChatMessage class SendMessagePacket(chatMessage: ChatMessage): BanchoPacket(BanchoPacketType.BANCHO_SEND_MESSAGE) { init { writer.writeString(chatMessage.source.username) writer.writeString(chatMessage.message)...