text
stringlengths
27
775k
using Godot; using System; public class Chopper : Peripheral { private Area hitArea; private Godot.Collections.Array<Robot> bodiesInRange = new Godot.Collections.Array<Robot>(); private Vector3 impactPoint; /*Signal*/public void hitAreabodyEnteredExit(Node body){ //if( !(body is Robot) || body.Eq...
using C2048.WebExtends.MVC; using BLL; using Model; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Common; namespace C2048.Controllers { [SkipLogin] public class LoginController : BaseController { public ActionResult Login(string u...
package org.openfact.services.resources.admin; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.util.HashMap; import java.util.Locale; import java.util.Map; import java.util.Properties; import javax.inject.Inject; import javax.ws.rs.core.Context; import javax.ws.rs.core...
using System; using System.Threading; namespace PhotoSyncLib.Interface { public interface IPhotoSyncEngine { void AddImagePath(string path); void LoadImageMetadata(IProgress<IProgressValue> progress, CancellationToken ct); } public interface IPhotoSet { } }
# Please Read first the READ.md for instructions. for directory in /var/www/*; do cd "$directory" && /usr/local/bin/wp core update; /usr/local/bin/wp plugin update --all; /usr/local/bin/wp theme update --all; /usr/local/bin/wp core language update; /usr/local/bin/wp transient delete --expired; done
def convert_hsl_to_rgb(hue: float, sat: float, lum: float, max_input=255.0, max_output=255.0): """Converts HSI or HSL colors into RGB. Accepts hue, sat, and lum as floats or ints, defaulting to 0.0-255.0 range. Returns RGB as a list of three floats, defaulting to 0.0-255.0 range. Change max_input and ...
#!/usr/bin/env bash # code snippet by https://github.com/rockyshimithy current_coverage=$(cat COVERAGE) new_coverage=$(cat xmlcov/coverage.xml | sed -rn 's/.*coverage.*line-rate="([^"]*)".*/\1/p') echo "Current coverage: $current_coverage" echo "New coverage: $new_coverage" evaluation=$(python -c "print($new_covera...
class LibXmlRubyXXE < ApplicationController content = params[:xml] LibXML::XML::Document.string(content, { options: 2 | 2048, encoding: 'utf-8' }) LibXML::XML::Document.file(content, { options: LibXML::XML::Parser::Options::NOENT | 2048}) LibXML::XML::Document.io(content, { options: XML::Parser::Option...
<?php require_once 'Zend/Gdata/App/MediaSource.php'; abstract class Zend_Gdata_App_BaseMediaSource implements Zend_Gdata_App_MediaSource { protected $_contentType = null; protected $_slug = null; public function getContentType() { return $this->_contentType; } public function setC...
import { RequestContext } from '@zetapush/core'; import { CloudServiceInstance } from '@zetapush/common'; export const inject = (instance: any, requestContext: RequestContext) => new Proxy(instance, { get: (target: any, property: string): any => { if (property === 'requestContext') { return request...
#--------------------------------------------------------------------------- # bash script to build Altair's docs # # we run this first with Python 2.7 to correctly create image thumbnails # (this relies on nodejs tools that fail in Python 3.5) # and then run again in Python 3.5 to get the final doc build. # # Usage: b...
import React from "react"; import Avatar from "../index"; import renderer from "react-test-renderer"; test("The Avatar should be rendered properly", () => { const component = renderer.create( <Avatar src="https://www.gravatar.com/avatar" /> ); expect(component).toMatchSnapshot(); }); test("The Avatar should...
# frozen_string_literal: true FactoryBot.define do factory :custom_error, class: Errors::CustomError do title { 'Server Error' } detail { 'A server error occured.' } status { '500' } end end
Spree Reorder (Repeat the last order) ============ A Spree 3.0 extension to repeat the last order in a single click of button ## Installation 1. Add this extension to your Gemfile with this line: ```ruby gem 'spree_reorder', github: 'spkprav/spree_reorder', branch: '3-0-stable' ``` The `branch` option is imp...
// @Title: 把数字翻译成字符串 (把数字翻译成字符串 LCOF) // @Author: Singularity0909 // @Date: 2020-10-11 23:40:14 // @Runtime: 0 ms // @Memory: 5.8 MB class Solution { public: int cnt; void dfs(const string& str, int cur, int last) { if (cur == str.length()) { ++cnt; return; } ...
export PATH=${PATH}:$HOME/.lua:$HOME/.local/bin bash .travis/setup_lua.sh
use serde::{Serialize, Deserialize}; use super::battle::BattleResult; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Batlog { // nananananananana bat log (battle log) pub fights: Vec<Battle>, count: i32, pub round_no: i32, } impl Batlog { pub fn new(round_no: i32) -> Self { ...
use crate::i18n::I18NHelper; use rand::seq::SliceRandom; use std::error::Error; static SPONSORS_YML_PATH: &str = "src/data/sponsors.yml"; lazy_static! { static ref SPONSORS: Vec<Sponsor> = load_sponsors(SPONSORS_YML_PATH).unwrap(); } #[derive(Deserialize)] struct Sponsor { id: String, name: String, } fn...
module Iri.Optics.Defs where import Iri.Prelude import Iri.Data import Iri.Optics.Basics import qualified Iri.Rendering.ByteString as A import qualified Iri.Parsing.ByteString as B import qualified Iri.Rendering.Text as C import qualified Iri.Parsing.Text as D import qualified Data.Text.Encoding as Text -- * Definit...
package com.gdxsoft.easyweb.script.display; import java.util.ArrayList; import java.util.HashMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.Document; public class HtmlCombineGrp { private HashMap<String, ArrayList<HtmlCombineItem>> map_; private Document combineDoc_; private Array...
package com.blog.service.impl; import com.blog.dao.ViewsDao; import com.blog.service.ViewsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class ViewsServiceImpl implements ViewsService { @Autowired private ViewsDao viewsDa...
import * as app from '..'; import * as mobx from 'mobx'; export class MainSettingsViewModel { @mobx.action changePageSize(pageSize: app.PageSize) { if (pageSize === this.pageSize) return; this.pageSize = pageSize; localStorage.setItem('SessionPageSize', String(this.pageSize)); } @mobx.action tog...
@extends('common.admin') @section('content') <div class="mws-panel grid_8"> <div class="mws-panel-header"> <span><i class="icon-table"></i> 轮播图列表</span> </div> <div class="mws-panel-body no-padding"> <table class="mws-table"> <tr> <th>编号</th> <th>标题</th> ...
export declare function uniq<T>(array: T[]): T[]; export declare function castArray<T>(value: T): unknown[]; export declare function isUsableColor(color: string, values: string | { [key: string]: string; }): boolean; export declare const round: (num: number) => string; export declare const rem: (px: number) => stri...
#!/usr/local/env zsh if test $(which npm); then source <(npm completion) fi
class Solution { int MatchGroup(const vector<int>& group, const vector<int>& nums, int index) { for (int start = index; start <= nums.size() - group.size(); start++) { bool match = true; for (int l = 0; l < group.size(); l++) { if (group[l] != nums[start+l]) { ...
import React, {useEffect, useState} from 'react'; import './css/App.css'; import LineChartCO2 from './Components/LineChartCO2'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; import {Col, Container, Row} from 'react-bootstrap'; import axios from 'axios'; function Home() { const [sensors, setSensors...
module GitBlog module Parsers def self.fix_pres string string.gsub %r!([ \t]*)<pre>(.*?)</pre>!m do |match| match.gsub(/^#{$1}/, '') end end end end
- [Kafdrop – Kafka Web UI](https://github.com/obsidiandynamics/kafdrop) ```bash $ git clone https://github.com/obsidiandynamics/kafdrop $ cd kafdrop $ helm template -n geek-apps kafdrop chart \ --set image.tag=3.27.0 \ --set kafka.brokerConnect=kafka:9092 \ --set server.servlet.contextPath="/" \ --se...
<?php namespace Dg482\Red\Builders\Form\Fields\Values; /** * Class FieldValues * @package Dg482\Red\Values */ class FieldValues { protected array $values = []; /** * @param FieldValue $value * @return $this */ public function push(FieldValue $value): FieldValues { if (!$th...
/** * */ package fr.imie.jdbc.DAO; import java.sql.Connection; import java.util.List; import fr.imie.jdbc.DTO.PersonneDTO; import fr.imie.jdbc.ipersistence.IPersonneDAO; import fr.imie.jdbc.itransactional.ITransation; /** * @author imie * */ public class ProxyPersonneDAO implements ITransation, IPersonneDAO { ...
*AZ-104* _AZ-900_ **Soon should get AZ-400** __This will also be bold__ _You **can** combine them_
using Jammo.ParserTools; using Microsoft.CodeAnalysis.Text; namespace Jammo.TextAnalysis { public static class IndexSpanHelper { public static IndexSpan FromTextSpan(TextSpan textSpan) { return new IndexSpan(textSpan.Start, textSpan.End); } } }
# Script to regenerate data/data.yml. This is only used in the gem's development. require 'rubygems' require 'nokogiri' require 'open-uri' require 'yaml' zip_to_state = {} doc = Nokogiri::HTML(open("http://en.wikipedia.org/wiki/ZIP_code_prefixes")) # puts doc doc.css('#bodyContent table td b').each do |code| put...
package response import ( "github.com/ArtisanCloud/PowerWeChat/v2/src/kernel/response" ) type ResponseOperationGetPerformance struct { *response.ResponseMiniProgram DefaultTimeData string `json:"default_time_data"` CompareTimeData string `json:"compare_time_data"` }
<?php declare(strict_types=1); return [ "xyz" => "xyz", "param" => "Param2: %param1%", ]; ?>
module.exports = function (input) { let coords if (!input) return undefined if (!isNaN(input.xmin)) return input if (Array.isArray(input)) { if (Array.isArray(input[0])) coords = input else coords = [[input[0], input[1]], [input[2], input[3]]] } else { throw new Error('invalid extent passed in met...
import 'package:flutter/material.dart'; import 'package:wings/core/immutable/base/widgets/widget.wings.dart'; import 'package:wings/features/index/watcher/index.watcher.dart'; class IndexWidget extends WingsWidget { final dynamic controller; IndexWidget({Key? key, this.controller}) : super(key: key, watcher...
package com.chinazyjr.haollyv2.ui.login.view import com.chinazyjr.haollyv2.base.IBaseView import com.chinazyjr.haollyv2.entity.login.LoginBean import com.chinazyjr.haollyv2.entity.login.TokenBean /** * Created by niudeyang on 2017/12/8. */ interface RegisterView :IBaseView{ fun showIamgeCode(tokenBean: TokenBean) ...
use crate::Repository; #[cfg(all(feature = "unstable", feature = "git-worktree"))] pub use git_worktree::*; /// #[cfg(feature = "git-index")] pub mod open_index { use crate::bstr::BString; /// The error returned by [`Worktree::open_index()`][crate::Worktree::open_index()]. #[derive(Debug, thiserror::Error...
#我的Home Assistant控件和配置 中国工作日,HA中自带了一个holiday的控件,但是没有中国的。。。 所以访问 http://www.k780.com 的API写了一个判断中国工作日的控件,试了一下包括19年五一这种比较奇葩的放假规定都可以支持。 copy custom_components 文件夹到HA的配置目录 configuration.yaml文件里添加: ```binary_sensor: - platform: china_holiday api_key: 10003 token: b59bc3ef6191eb9f747dd4e83c99f2a4 ``` 自动化添加里可...
package com.canvas.arc import android.animation.TimeAnimator import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.PointF import android.graphics.RadialGradient import android.graphics.RectF import android.graphics.Shader impor...
'use strict'; var slug = require('./'); var test = require('tape'); test(function( t ) { t.equal(slug('apple'), 'apple'); t.equal(slug('PIE'), 'pie'); t.equal(slug('Vrå öster'), 'vraa-oester'); t.equal(slug(' Vrå '), 'vraa'); t.equal(slug('Søren\'s party- and surprise store/shop'), 'soerens-party-and-surprise-st...
#pragma once #include "Resources/Resource.h" class ResourceScene : public Resource { public: REGISTER_RESOURCE(ResourceScene, ResourceType::SCENE); void BuildScene(); };
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; public class GameManager : MonoBehaviour { Controls controls; Vector2 _mousePos; Vector2 mousePos; float shift; public Texture2D[] cursors; void Awake() // VERY First thing called ...
package taskrunner import ( "context" "fmt" "testing" "github.com/hashicorp/nomad/client/allocrunner/interfaces" "github.com/hashicorp/nomad/client/devicemanager" "github.com/hashicorp/nomad/helper/testlog" "github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/plugins/device" "github.com/has...
#!/bin/sh # Source test support functions . ./test-support.sh # Source the configuration to get a reference to the queue . ./test-steve.conf #### Arrange goes here touch $QUEUE/20150102125050.request touch $QUEUE/20150102122020.request touch $QUEUE/20150102123030.request #### Act: Run steve ./execsteve.sh EXITCODE=...
package com.mb.scrapbook.app.stock.api import com.mb.scrapbook.lib.base.network.response.BaseResponse import okhttp3.Response import retrofit2.http.GET interface ApiStocks { @GET("/") suspend fun loadStock(): BaseResponse<String> }
package com.epicodus.localbusinessapp; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; import java.util.ArrayList; import butterknife.Bind; import butterknife.ButterKnife; public class MenuA...
// crypto_generichash_blake2b.h use libsodium_sys::*; #[test] fn test_crypto_generichash_blake2b_state_alignment() { // this asserts the alignment applied in alignment_fix.patch (see gen.sh) assert_eq!(64, std::mem::align_of::<crypto_generichash_blake2b_state>()); } #[test] fn test_crypto_generichash_blake2b...
package datawave; import datawave.ingest.data.RawRecordContainer; import datawave.ingest.data.config.NormalizedContentInterface; import datawave.ingest.data.config.ingest.BaseIngestHelper; import com.google.common.collect.Multimap; public class TestBaseIngestHelper extends BaseIngestHelper { private final Multim...
#### 指令 ``` su [username] // 切换用户 useradd [username] // 添加用户,默认会添加同名的用户组(root) passwd [username] // 设置用户的登录密码(root) userdel [username] -r // 删除用户(root),-r表示同时删除用户目录 ``` #### 使用户可获得sudo执行权限 ``` // 方式1:将用户添加至wheel群组中 sudo gpasswd -a zhangsan wheel // 查看群组下的用户:sudo lid -g wheel // 方式2:添加用户同名文件夹至 /etc/s...
require 'sequel' class Cranium::Sequel::Hash < Hash def qualify(options) invalid_options = options.keys - [:keys_with, :values_with] raise ArgumentError, "Unsupported option for qualify: #{invalid_options.first}" unless invalid_options.empty? Hash[qualify_fields(options[:keys_with], keys).zip qualify_fi...
--- layout: post title: "Subdom" date: 2020-01-26 06:02:53 -0500 categories: comic procreate --- ![Wait here.](/images/2020/01/SUBDOM.jpg) ... Wait here.
use std::{cell::RefCell, collections::HashSet, rc::Rc, sync::Arc}; use crate::{ communication::{RecvEndpoint, TryRecvError}, dataflow::{Data, Message, State, Timestamp}, node::operator_event::OperatorEvent, }; use super::{ errors::{ReadError, TryReadError}, EventMakerT, InternalStatefulReadStream,...
<?php /** * 后台入口文件 */ @session_start(); $_SESSION['adminlogin'] = 1; header("Location: ../index.php?g=admin");
<?php App::uses('AclNode', 'Model'); /** * AclAro Model * * PHP version 5 * * @category Model * @package Croogo.Acl.Model * @version 1.0 * @author Fahad Ibnay Heylaal <contact@fahad19.com> * @license http://www.opensource.org/licenses/mit-license.php The MIT License * @link http://www.croogo.org *...
#!/bin/sh echo "This script helps you to find files which are not documented" echo "in debian/copyright. When a set of files has been documented," echo "please write a short regexp into $0's source." # write the regexps of already documented files there: alreadyOKpatterns='uglifyjs2|uglify|source-map|esprima|opto.bu...
#!/usr/bin/env python3 # usage python3 publisher_demo.py [topic] [data] import paho.mqtt.client as mqtt import sys MQTT_BROKER_ADDRESS = "192.168.1.125" MQTT_PORT = 1883 MQTT_STAYALIVE = 60 topic = sys.argv[1] data = sys.argv[2] print("topic: " + str(topic) + "\t data: " + str(data)) client = mqtt.Client() client.c...
package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.uss import com.intellij.psi.css.impl.util.editor.CssBreadcrumbsInfoProvider // Allows enabling/disabling breadcrumbs for USS class UssFileBreadcrumbsProvider: CssBreadcrumbsInfoProvider() { override fun getLanguages()= arrayOf(UssLanguage) }
// Auto-Generated package com.github.j5ik2o.reactive.aws.s3.model.ops import software.amazon.awssdk.services.s3.model._ final class ObjectLockRetentionBuilderOps(val self: ObjectLockRetention.Builder) extends AnyVal { @SuppressWarnings(Array("org.wartremover.warts.AsInstanceOf")) final def modeAsScala(value: Opt...
// run-pass // aux-build:issue-11529.rs // pretty-expanded FIXME #23616 extern crate issue_11529 as a; fn main() { let one = 1; let _a = a::A(&one); }
 // Copyright (c) Microsoft Corporation. All Rights Reserved. using System; using System.Configuration; using System.ServiceModel; using System.ServiceModel.Description; namespace Microsoft.ServiceModel.Samples { // Define a service contract. [ServiceContract(Namespace="http://Microsoft.ServiceM...
/* El gran libro de Kotlin (para programadores de back end) Editorial: Marcombo (https://www.marcombo.com/) Autor: Luis Criado Fernández (http://luis.criado.online/) CAPÍTULO 9: NÚMEROS. */ package marcombo.lcriadof.capitulo9 // rango de numeros fun main() { println("tipo, tamaño, rango ") println(...
package handler import ( "encoding/json" "net/http" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" ) func New(reconciler reconcile.Reconciler) *Handler { return &Handler{reconciler: reconciler} } type Handler struct { reconciler reconcile.Reconciler } func (h *Handler) Handle(...
function update_W!(i::Int, s::State, c::Constants, d::Data) currParam = c.W_prior.alpha counts = zeros(c.K) for n in 1:d.N[i] k = s.lam[i][n] if k > 0 counts[k] += 1 end end updatedParam = currParam .+ counts s.W[i, :] = rand(Dirichlet(updatedParam)) end function update_W!(s::State, c::Co...
# frozen_string_literal: true require "test_helper" describe Committee::RequestUnpacker do it "unpacks JSON on Content-Type: application/json" do env = { "CONTENT_TYPE" => "application/json", "rack.input" => StringIO.new('{"x":"y"}'), } request = Rack::Request.new(env) unpacker = Commi...
class RailsProxify::ApplicationController < ActionController::Base rescue_from Exception do |e| render json: { error: "An error occured: #{e.message}" }, status: 422 end end
package typingsSlinky.twilioVideo.mod import typingsSlinky.twilioVideo.mod.Track.ID import typingsSlinky.twilioVideo.mod.Track.SID import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess...
Ignore this directory ===================== These scripts are ephemeral and were only ever meant to work on the pinned revisions listed in the makefile. They were created to generate `latest.json` adhoc by scraping source code and documentation. Such material, by nature, has no reliable interface. The date of the last...
import 'package:vector_math/vector_math_64.dart'; import 'dart:math' as math; Matrix4 createTransformMatrix(Matrix4? origin, Vector3? position, Vector3? scale, Vector4? rotation, Vector3? eulerAngles) { final transform = origin ?? Matrix4.identity(); if (position != null) { transform.setTranslation(positi...
# Clipboard To Script #### Designed for those who love testing internet ready codes and do not like waiting! 1. Just copy the code / shader / text. 2. Right click on the project tab. 3. Choose the file format from the "From Clipboard" menu. 4. Enter the File Name. ## AWSOME *Your script was created!* [AssetS...
-module(raft_stm). -export([load/2, get_last_lid/2, make_wal/2, apply_wal/4]). -export_type([cfg/0, stm/0]). -type cfg() :: term(). -type stm() :: term(). -type lid() :: raft:lid(). -type wal() :: raft:wal(). -type op() :: term(). -callback load(Cfg :: term()) -> stm(). -callback get_last_lid(stm()) -> lid(). -callba...
# -*- coding: utf-8 -*- """ Created on Thu Mar 8 13:17:12 2018 @author: Raj """ from ffta.hdf_utils import hdf_utils from matplotlib import pyplot as plt def test_pixel(h5_file, param_changes={}, pxls = 1, showplots = True, verbose=True, clear_filter = False): """ Takes a random pixel and does standard pro...
<?php /** * @package oakcms * @author Hryvinskyi Volodymyr <script@email.ua> * @copyright Copyright (c) 2015 - 2017. Hryvinskyi Volodymyr * @version 0.0.1-beta.0.1 */ use app\modules\form_builder\components\ActiveForm; /** * @var $model \app\modules\form_builder\models\FormBuilderForms * @var $formM...
'use strict'; module.exports = (name) => { return `<div> <div class="${name.original}" data-o-component="${name.original}"></div> </div>`; };
set -o allexport; source ../.env; set +o allexport echo ${DB_HOST} mongoimport --db ${DB_NAME} --collection JMDict \ --host ${DB_HOST} --port ${DB_PORT} \ --username ${DB_USER} --password ${DB_PASS} \ --drop --file "./JMdict Kanjidic files/JMdict/Finalize_JMdict_e.json" --jsonArray
<?php namespace Oro\Bundle\ApiBundle\Processor; /** * The base execution context for processors for actions that execute processors * only from one group at the same time. */ class ByStepNormalizeResultContext extends NormalizeResultContext { /** * the name of the group after that processors from "normali...
##PubNub C-sharp-based APIs Learn more at http://www.pubnub.com ## Subdirectory Description This repo contains the following platform-specific subdirectories: #### NugetPkg The latest on Nuget #### csharp.net PubNub for MSVS C-Sharp / .net #### iis PubNub for the IIS web server #### mono-for-android PubNub for Xam...
import * as Helpers from '../src/helper'; import moment from 'moment'; const DATE_FORMAT = 'YYYY-MM-DD hh:mm A'; const formatDateString = (date: Date) => { const parsedDate = moment(date); return parsedDate.format(DATE_FORMAT); }; // todo: add a mock Slack application instance for sending packets and listeni...
#!/usr/bin/env bash -x source ~/env.sh cd ${AMIGO_SRC}/user-service mvn clean install -DskipTests export DB="localhost" java -jar target/user-service-1.0-SNAPSHOT.jar server config_dev.yml
#!/usr/bin/env bash # tabulate tweet files ./tabulateTweets.py 'A' '09232017-09232017' ./tabulateTweets.py 'A' '09232017-09242017' #./tabulateTweets.py 'A' '10022017-10082017' #./tabulateTweets.py 'A' '10102017-10142017' #./tabulateTweets.py 'A' '10152017-10192017'
# Encapsulates some user-oriented business logic module UsersHelper # Displays a gravatar, because people still use these, right? def gravatar_url(email, size) gravatar = Digest::MD5.hexdigest(email).downcase "http://gravatar.com/avatar/#{gravatar}.png?s=#{size}" end def reinvite_user_link(user) if...
# frozen_string_literal: true Test::Container.register_provider(:client) do module Test class Client end end start do register(:client, Test::Client.new) end end
function initTask(subTask) { subTask.gridInfos = { hideSaveOrLoad: false, actionDelay: 200, buttonScaleDrawing: false, includeBlocks: { groupByCategory: false, generatedBlocks: { map: [ 'clearMap', 'add...
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn, RelationId } from "typeorm"; import { Addresses } from "./Addresses"; import { Interventions } from "./Interventions"; import { Machines } from "./Machines"; import { Technicians } from "./Technicians"; @Entity("Taches") export class Ta...
import vapoursynth as vs import audiocutter core = vs.core ts = "cap/Senki Zesshou Symphogear XV - 01 (MX).d2v" src = core.d2v.Source(ts) src = src.vivtc.VFM(1).vivtc.VDecimate() ac = audiocutter.AudioCutter() audio = ac.split(src, [(812, 11288, "Intro"), (12966, 23349, "Part A"), (24788, 347...
/** * @jest-environment jsdom */ import documentItem from '../../src/source/objects/documentItem' test('documentItem has valid head', () => { expect(documentItem.children[0].tagName).toBe('head') }) test('documentItem has valid body', () => { expect(documentItem.children[1].tagName).toBe('body') })
module Solutions.Day20 ( aoc20 ) where import Common.AoCSolutions (AoCSolution (MkAoCSolution), printSolutions, printTestSolutions) import Common.Geometry (Grid, Point, enumerateMultilineStringToVectorMap, ...
package scala package collection package immutable import scala.collection.mutable.{Builder, ImmutableBuilder} /** * An immutable multidict * @tparam K the type of keys * @tparam V the type of values */ class MultiDict[K, V] private (elems: Map[K, Set[V]]) extends collection.MultiDict[K, V] with Iterabl...
# Copyright 2020 The TensorFlow Ranking 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 ag...
using System.Reflection; using System.Threading.Tasks; using Tharga.Quilt4Net.DataTransfer; namespace Tharga.Quilt4Net { public static partial class Session { public static async Task<SessionResponse> RegisterAsync(Assembly firstAssembly) { return await Task<SessionResponse>.Factor...
const express = require('express') const staticPath = `${__dirname}/../../static` const fileServer = express.static(staticPath) module.exports = fileServer
namespace CIOSDigital.FlightPlanner.Model { public struct Coordinate { private const int precision = 1000000; public decimal Latitude { get; } public decimal Longitude { get; } public string dmsLatitude { get; } public string dmsLongitude { get; } public Coordin...
// Copyright (c) 2020-2021 Yinsen (Tesla) Zhang. // Use of this source code is governed by the MIT license that can be found in the LICENSE.md file. package org.aya.tyck.pat; import kala.collection.SeqView; import kala.collection.immutable.ImmutableSeq; import kala.collection.mutable.DynamicSeq; import org.aya.concret...
ALTER TABLE `qb_fenlei_module` ADD `haibao` VARCHAR( 255 ) NOT NULL COMMENT '海报模板路径,多个用逗号隔开'; ALTER TABLE `qb_fenlei_sort` ADD `haibao` VARCHAR( 255 ) NOT NULL COMMENT '海报模板路径,多个用逗号隔开';
```div-parameter ## Parameter Console | Parameter | Format | Default | Mandatory | Description | | --- | --- | :---: | :---: | --- | | markdown | <dt>&lt;Boolean&gt; | true | yes | <dt>true<dd><dt>false<dd> | ``` @@include(../../core/dom/dom_p.md)
// Copyright 2019 themis.rs maintainers // // 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...
require 'mspec/utils/version' require 'mspec/guards/guard' class Object # Accepts either a single argument or an Array of arguments. If RUBY_VERSION # is less than 1.9, converts the argument(s) to Strings; otherwise, converts # the argument(s) to Symbols. # # If one argument is passed, the converted argument...
package Paws::MTurk::ReviewResultDetail; use Moose; has ActionId => (is => 'ro', isa => 'Str'); has Key => (is => 'ro', isa => 'Str'); has QuestionId => (is => 'ro', isa => 'Str'); has SubjectId => (is => 'ro', isa => 'Str'); has SubjectType => (is => 'ro', isa => 'Str'); has Value => (is => 'ro', isa => ...