text
stringlengths
27
775k
export default [{ question: 'How many stuff', options: [1, 2, 3, 4, 0] }, { question: 'Something something', options: [ 'Yes', 'No' ] }, { question: 'Super duper', options: [590, 45] }];
package io.wax911.challenge.feature.detail.component.viewmodel import androidx.lifecycle.* import io.wax911.challenge.core.component.viewmodel.AbstractViewModel import io.wax911.challenge.domain.common.DataState import io.wax911.challenge.domain.credit.enity.Credit import io.wax911.challenge.domain.detail.interactor.I...
package com.badoo.reaktive.utils.atomic actual class AtomicBoolean actual constructor(initialValue: Boolean) { private val delegate = kotlin.native.concurrent.AtomicInt(initialValue.intValue) actual var value: Boolean get() = delegate.value != 0 set(value) { delegate.value = value...
echo -e '\e[31;1m* Generating random data file\e[m' dd if=/dev/urandom of=test64M bs=64M count=1 iflag=fullblock echo -e '\n\e[31;1m* Sending data file through mypipe\e[m' dd if=test64M of=/dev/mypipe_in bs=64M count=1 iflag=fullblock & dd if=/dev/mypipe_out of=recv64M bs=64M count=1 iflag=fullblock wait echo -e '\n\...
#!/bin/bash # we cannot use the --verbose anymore since this would block #asadmin start-domain --verbose asadmin --user admin --passwordfile=/opt/payara41/pwdfile --interactive=false start-domain --debug --verbose & PID=$! # sleep a few seconds to give the broker time to bootup sleep 20 asadmin --user admin --password...
<?php declare(strict_types=1); namespace Sunkan\Dictus; final class FrozenClock implements ClockInterface { public static function fromString(string $date): self { return new self(DateParser::fromString($date)); } public function __construct( private \DateTimeImmutable $now, ) {} public function now(): \D...
/* Title: De spanning begint te komen... Description: Voorbereiding op mijn stage bij Mangrove Date: 2015/08/27 */ De spanning voor mijn stage begint te komen. Hoe zal het zijn? Hoe zal het gaan? Wat wordt van mij verwacht? Heb ik wel genoeg kennis? Allemaal vragen die in mijn hoofd rondspoken en waar ik over 4 dagen ...
#pragma once #include "../Module.hpp" namespace tge::gui { class GUIModule : public tge::main::Module { public: void *pool; void *buffer; void *renderpass; void *framebuffer; main::Error init() override; void tick(double deltatime) override; void destroy() override; virtual void renderGUI() = 0...
-- +migrate Up CREATE TABLE IF NOT EXISTS users ( id CHAR(36) NOT NULL, firstname VARCHAR(255) NOT NULL, lastname VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL, PRIMARY KEY (id) ); -- +migrate Down DROP TABLE users;
export const pending = actionType => `${actionType}_PENDING` export const fulfilled = actionType => `${actionType}_FULFILLED` export const rejected = actionType => `${actionType}_REJECTED`
[![Pub Package](https://img.shields.io/pub/v/mime.svg)](https://pub.dev/packages/mime) [![Build Status](https://travis-ci.org/dart-lang/mime.svg?branch=master)](https://travis-ci.org/dart-lang/mime) Package for working with MIME type definitions and for processing streams of MIME multipart media types. ## Determining...
// Esse método retorna o primeiro índice em que o elemento pode ser encontrado no array let nums = [1, 2, 3, 4, 5] console.log(nums.indexOf(2)) console.log(nums.indexOf(3, 1)) // o "1" indica qual o indice que deve ser o primeiro a ser buscado console.log(nums.indexOf(6)) let nomes = ['Ana', 'Bia', 'Caio', 'Duda...
import knex, { Config, RawBinding, Sql } from 'knex' import QueryBuilder from 'knex/lib/query/builder' import Raw from 'knex/lib/raw' import Runner from 'knex/lib/runner' import SchemaBuilder from 'knex/lib/schema/builder' import createDebug from './debug' import { after, before, override } from './override' const de...
# config/initializers/high_voltage.rb HighVoltage.configure do |config| config.routes = false end
{-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeSyn...
package r2.util import zio.interop.reactivestreams._ import zio.stream._ import zio.test.Assertion._ import zio.test._ object ReactiveStreamsUtilsSpec extends DefaultRunnableSpec { import ReactiveStreamsUtils._ val spec = suite("ReactiveStreamsUtils")( suite("mono")( testM("returns a single element") {...
# Copyright (C) 2011-2012 Yaco Sistemas (http://www.yaco.es) # Copyright (C) 2010 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> # # 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 # # ...
2019年10月1日 vesion: 0.3.26 新添加一个群助手功能:空气质量PM2.5查询 也可以添加到每日提醒中。 2019年9月5日 vesion: 0.3.20 新添加一个群助手功能:快递物流信息查询 2019年8月27日 vesion: 0.3.10 新添加一个群助手功能:实时票房查询 2019年8月27日 vesion: 0.3.07 1.添加了一个新的机器人渠道:思知机器人 2019年8月14日 1. 更新天气更新不及时的 Bug。 2019年7月13日 1. 天气预报、星座运势、日历的提醒可以用明日。...
{-# LANGUAGE FlexibleContexts #-} module Content.Service.TimeSeriesService ( TimeSeriesService , mkTimeSeriesService , GroupedTimeSeriesService , mkGroupedTimeSeriesService ) where import qualified Content.Model.TimeSeries as TimeSeries import Control.Monad.Reader (MonadReader) import quali...
module ActiveCucumber # A decorator for ActiveRecord objects that adds methods to # format record attributes as they are displayed in Cucumber tables. # # This class is used by default. You can subclass it to create # custom Cucumberators for your ActiveRecord classes. class Cucumberator # object - th...
using System.Threading.Tasks; using System.Windows; using NgDesk; namespace Wpf { public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var server = NgDesk.Factory.GetServerUsingFilePath(); Task....
package io.holyguacamole.bot.controller import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper import com.nhaarman.mockito_kotlin.mock import io.holyguacamole.bot.MockAppMentions import io.holyguacamole.bot.MockJoinedChannelEvents import io.holyguacamole.bot.MockMessages import io.holyguacamole.bot.MockUrlVeri...
module Math.LinearAlgebra.Sparse.Algorithms.SolveLinear ( solveLinear, solveLinSystems ) where import Data.Maybe import Data.Monoid import Data.IntMap as M hiding ((!)) import Math.LinearAlgebra.Sparse.Matrix import Math.LinearAlgebra.Sparse.Vector import Math.LinearAlgebra.Sparse.Algorithms.Staircase import Math.L...
(ns coffee-app.core (:require [coffee-app.utils :as utils]) (:import [java.util Scanner]) (:gen-class)) (def input (Scanner. System/in)) (def ^:const orders-file "orders.edn") (def ^:const price-menu {:latte 0.5 :mocha 0.4}) (defn buy-coffee [type] (println "How many coffees do you want to buy?") ...
using ReliableNetcode.Utils; namespace ReliableNetcode { internal class SequenceBuffer<T> where T : class, new() { private const uint NULL_SEQUENCE = 0xFFFFFFFF; public int Size { get { return numEntries; } } public ushort sequence; int numEntries; uint[] entrySequence; T[] entryData; publ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Http; use Sushi\Sushi; class Ventas extends Model { use Sushi; public function getRows() { return Http::withToken(env('API_TOKEN'))->get(env('URL_API')); } }
package net.whg.we.ui; import org.joml.Matrix4f; import org.joml.Vector2f; import net.whg.we.utils.Transform; public class Transform2D implements Transform { private Transform _parent; private Vector2f _position = new Vector2f(0f, 0f); private Vector2f _size = new Vector2f(1f, 1f); private float _rotation; priva...
<?php namespace App\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Model; class Province extends BaseModel { public function getSelectDistrict() { $collection = $this->districts; $items = []; foreach ($collection as $model) { $items[$model->id] = $model->name .' :: '. $model->na...
#!/usr/bin/env bash # Ard: helper for Arduino sketch folder set -e -o nounset -o pipefail grep="git grep" bases="Mpe Misc Prototype" sections=.sections.list update_section_lists() { eval $grep -l '{{{' $bases | while read fn do mkdir -p $(dirname .build/$fn ) test .build/$fn.list -nt $fn || { ...
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package kotlin.script.experimental.jvmhost import java.io.File import kotlin.script.experimental.api.Compiled...
function buildFromSchema(schema) { const newObject = {}; const schemaProperties = Object.keys(schema); schemaProperties.forEach(property => newObject[property] = undefined); return newObject; } export default { buildFromSchema };
{-# LANGUAGE TemplateHaskell #-} module Music where import Control.Monad import Test.QuickCheck import Music.Ring import Music.Util -- http://www.mta.ca/pc-set/pc-set_new/pages/introduction/toc.html -- https://youtu.be/P6DvIfTJhx8?t=437 -- http://reasonablypolymorphic.com//blog/modeling-music -- https://fgiesen.wo...
# LI3-Project It's a simple sales tool that answers to some queries. ## Test First you need to have glib installed: ```bash $ sudo apt install libglib2.0-dev ``` Then clone and compile: ```bash $ git clone https://github.com/pedrordgs/LI3-Project.git $ cd LI3-Project $ make $ ./main ```
package org.openforis.commons.collection; /** * * @author S. Ricci * @author A. Sanchez-Paus Diaz * * @param <T> */ public interface Predicate<T> { boolean evaluate(T item); }
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Build.Execution; namespace Microsoft.Build.Prediction.StandardPredictors.CopyTask { /// <summary> /// Class for literal expressions, e...
import java.util.Scanner; public class A3Q10 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); System.out.print("Enter today's day: "); int today = sc.nextInt() % 7; System.out.print("Enter the number of days elapsed since today: "); int days...
CREATE DATABASE IF NOT EXISTS sampledb; USE sampledb; CREATE TABLE IF NOT EXISTS users ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, lastname VARCHAR(256) NOT NULL, firstname VARCHAR(256) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO users(id, lastname, firstname) VALUES (1, "Yamada", "Takashi")...
<?php namespace frontend\controllers; use common\models\LoginForm; use frontend\models\ContactForm; use frontend\models\PasswordResetRequestForm; use frontend\models\ResetPasswordForm; use frontend\models\SignupForm; use Yii; use yii\base\InvalidParamException; use yii\filters\AccessControl; use yii\filters\VerbFilter...
using AutoMapper; using Demo.Application.UserPreferences.Queries.GetUserPreferences.Dtos; namespace Demo.Application.UserPreferences.Queries.GetUserPreferences { public class GetUserPreferencesMappingProfile : Profile { public GetUserPreferencesMappingProfile() { CreateMap<Domain.U...
高动态范围 作者|OpenCV-Python Tutorials 编译|Vincent 来源|OpenCV-Python Tutorials ### 目标 在本章中,我们将 - 了解如何根据曝光顺序生成和显示HDR图像。 - 使用曝光融合来合并曝光序列。 ### 理论 高动态范围成像(HDRI或HDR)是一种用于成像和摄影的技术,可以比标准数字成像或摄影技术重现更大的动态亮度范围。虽然人眼可以适应各种光照条件,但是大多数成像设备每通道使用8位,因此我们仅限于256级。当我们拍摄现实世界的照片时,明亮的区域可能会曝光过度,而黑暗的区域可能会曝光不足,因此我们无法一次拍摄所有细节。HDR成像适用于每个通道使用8位以上(通常为3...
--- path: Duos date: 2021-03-03T23:54:32.133Z name: Duos image: /assets/duos.001.jpeg ---
--- name: Bug about: Use this template for report a bug. labels: bug assignees: lgaticaq --- ## What is affected by this error?? ## When does this happen?? ## How do we replicate the problem? ## Expected Behavior (i.e. solution) ## Other comments (optional)
// SVG dimensions var width = 1000, height = 1000; // Create the main SVG var svg = d3.select("#container") .append("svg:svg") .attr("width", width) .attr("height", height); // Setup scales to map game co-ordinates to dimensions var xScale = d3.scaleLinear() .domain(scale.x) .range([0, width])...
package models type Margin struct { Top uint Bottom uint Left uint Right uint }
// +build !windows package nodos func osDateLayout() (string, error) { return "Jan.02,2006", nil }
package org.example.usage import org.example.declarations.getLongestString fun main() { val list = listOf("red", "green", "blue") list.getLongestString() }
<?php /** * Created by PhpStorm. * Users: kenny * Date: 06/11/17 * Time: 15:55 */ namespace App\Models; use Illuminate\Database\Eloquent\Model; class Place extends Model { protected $fillable = ['title','picture']; protected $table='places'; public function owner(){ return $this->belo...
# frozen_string_literal: true class WorkshopFeedbackMailer < ApplicationMailer def admin_notification(workshop_feedback) @feedback = workshop_feedback mail to: 'Workshops Team <workshops@hackclub.com>', subject: 'New Workshop Feedback Received!' end end
package com.codeflowcrafter.Sample; import com.codeflowcrafter.LogManagement.Interfaces.IStaticLogEntryWrapper; import com.codeflowcrafter.LogManagement.Priority; import com.codeflowcrafter.LogManagement.Status; import com.codeflowcrafter.PEAA.DataManipulation.BaseMapperInterfaces.IInvocationDelegates; import com.code...
import { Entity } from "./Entity"; import Collisions from './collisions/src/Collisions'; import { PhysicEntity } from "./PhysicEntity"; import { GraphicEntity } from "./GraphicEntity"; export class Room { public entities: Array<Entity>; private collisionSystem: Collisions; constructor(initialEntities: Array<Ent...
{-# LANGUAGE OverloadedStrings #-} module Emit where import LLVM.General.Module import LLVM.General.Context import qualified LLVM.General.AST as AST import qualified LLVM.General.AST.Constant as C import qualified LLVM.General.AST.Float as F import qualified LLVM.General.AST.FloatingPointPredicate as FP import Data...
#!/usr/bin/env ruby # encoding: utf-8 require_relative '../../environment.rb' include Sinatra::Mimsy::Helpers catalog_counts = CatalogTaxon.group(:mkey).count catalog_counts.each do |pr| next if pr[1] < 2 ct = CatalogTaxon.where(mkey: pr[0]).pluck(:affiliation, :speckey) collection = Taxon.find(ct.first[1]).col...
/* * Copyright 2020 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
RSpec.describe Ruboty::Handlers::Echo do let(:robot) do Ruboty::Robot.new end describe '#echo' do shared_examples 'echoes given message' do it 'echoes given message' do expect(robot).to receive(:say).with( hash_including( body: given_message, ), ) ...
<?php namespace Test\Entity\Beneficiary; use PHPUnit\Framework\TestCase; use Railsbank\Entity\Beneficiary\BeneficiaryId; class BeneficiaryIdTest extends TestCase { public function testBeneficiaryId() { $response = [ 'beneficiary_id' => '1234', ]; $entity = new Beneficiary...
class TrendingEntryType { TrendingEntryType._(); static const int News = 0; static const int DestinyItem = 1; static const int DestinyActivity = 2; static const int DestinyRitual = 3; static const int SupportArticle = 4; static const int Creation = 5; static const int Stream = 6; static const int Upda...
# mod p の原子根を全部求める O(p log p) def primitive_roots(p) return [1] if p == 2 visited = [false] * p (2 ... p).each do |r| roots = [] x = r count = 1 while x != 1 roots << x if count.gcd(p - 1) == 1 visited[x] = true x = x * r % p count += 1 end return roots if count == ...
# frozen_string_literal: true require "test_helper" class PrimerButtonComponentTest < Minitest::Test include Primer::ComponentTestHelpers def test_renders_content render_inline(Primer::ButtonComponent.new) { "content" } assert_text("content") end def test_defaults_button_tag_with_scheme render_...
import { RouteMiddleware } from '../../types/route-middleware'; import { userWithScope } from '../../utility/user-with-scope'; export const deleteSlot: RouteMiddleware<{ slotId: string }> = async context => { const { siteId } = userWithScope(context, ['site.admin']); const slotId = Number(context.params.slotId); ...
<?php $link =mysqli_connect('localhost','root',''); if($link==false) { echo "Error:Could not connect" . mysqli_connect_error(); } $sqli= "CREATE DATABASE homework1"; if(mysqli_query($link,$sqli)) { echo "DB CREATED"; } else { echo "DB Not CREA...
#!/bin/sh # Teste da função GOLDEN phi=3 # chute inicial prec=15 # casas decimais . ./golden.sh $phi $prec printf "$iter iterações: ϕ = %1.${prec}f\n" $phi
import "../output/output_ast.dart" as o; import "../template_ast.dart" show TemplateAst; import "compile_view.dart" show CompileView; class _DebugState { num nodeIndex; TemplateAst sourceAst; _DebugState(this.nodeIndex, this.sourceAst); } var NULL_DEBUG_STATE = new _DebugState(null, null); class CompileMethod ...
package types import ( "testing" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" sdk "github.com/cosmos/cosmos-sdk/types" ) var ( key = secp256k1.GenPrivKey() pub = key.PubKey() addr = sdk.AccAddress(pub.Address()) ) func TestWalletAction(t *testing.T) { for _, tt := range []struct { name strin...
public class Solution { public IList<string> GenerateParenthesis(int n) { List<string> res=new List<string>(); if(n<=0) return res; else Parenthesis(n,n,"",res); return res; } private void Parenthesis(int left,int right,string str,List<string>...
# dumper Windows service for uploading files added to a watched directory to a FTP server. #### Install and start service ``` $ py dumpersvc.py install $ NET START DumperSvc ``` #### Stop and uninstall service ``` $ NET STOP DumperSvc $ py dumpersvc.py remove ``` #### Run as script ``` $ py dumper/run.py ``` ###...
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.4 -- Dumped by pg_dump version 9.5.4 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; ...
package interfaces type WithAddress interface { GetAddress() (address Address) SetAddress(address Address) }
package jsoniter import ( "testing" "github.com/stretchr/testify/assert" ) func TestFrozenConfig_MarshalIndentErrors(t *testing.T) { var panicOccured interface{} = nil defer func() { panicOccured = recover() }() _, err := MarshalIndent(`{"foo":"bar"}`, "", "\n\n") assert.NoError(t, err) assert.NotNil(t, p...
package eu.kanade.tachiyomi.data.database.queries import com.pushtorefresh.storio.Queries import com.pushtorefresh.storio.sqlite.queries.DeleteQuery import eu.kanade.tachiyomi.data.database.AnimeDbProvider import eu.kanade.tachiyomi.data.database.inTransaction import eu.kanade.tachiyomi.data.database.models.Anime impo...
2020年12月20日01时数据 Status: 200 1.张檬最后悔的事情是整容 微博热度:1073628 2.香港一确诊男子擅自离开医院 微博热度:735472 3.杨幂郑爽同框吐槽好敢说 微博热度:674094 4.盛一伦 我现在已经凉透了 微博热度:552750 5.追光吧哥哥 微博热度:381074 6.我就是演员 微博热度:348865 7.青春有你3初C 微博热度:330506 8.中国已为全球提供超2000亿只口罩 微博热度:328760 9.奇葩说 微博热度:324242 10.于正我从来不用流量 微博热度:318406 11.路人镜头下的丁真 微博热度:312097 ...
import axios, {AxiosResponse} from "axios"; import * as React from "react"; import {Theme, withStyles, WithStyles} from "@material-ui/core"; import HitsChart from "./HitsChart"; import {HitsData} from "./Types"; import {PlotDatum} from "plotly.js"; import HitsImages from "./HitsImages"; import Export from "../export/E...
{-| Module : Elab Description : Elabora un término fully named a uno locally closed. Copyright : (c) Mauro Jaskelioff, Guido Martínez, 2020. License : GPL-3 Maintainer : mauro@fceia.unr.edu.ar Stability : experimental Este módulo permite elaborar términos y declaraciones para convertirlas desde fully nam...
--- title: SizedDtblCheckBox manager: soliver ms.date: 03/09/2015 ms.audience: Developer ms.topic: reference ms.prod: office-online-server ms.localizationpriority: medium api_name: - MAPI.SizedDtblCheckBox api_type: - COM ms.assetid: 9d04a124-54d4-43ac-967f-ea8e7a09b1d0 description: 上次修改时间:2015 年 3 月 9 日 ms.openlocfile...
package whatsub.convert import cats.Applicative import cats.syntax.all.* import effectie.cats.Effectful.* import extras.cats.syntax.all.* import effectie.cats.Fx import whatsub.{Smi, Srt, SupportedSub} /** @author Kevin Lee * @since 2021-06-18 */ trait Convert[F[*], A, B] { def convert(a: A): F[Either[Conversio...
--- title: '&lt;扩展&gt;' ms.date: 03/30/2017 ms.assetid: bcfe5c44-04ef-4a20-96a5-90bfadf39623 ms.openlocfilehash: 9f25c5f99eafe0f87123d8c8c3f5c182220e8c58 ms.sourcegitcommit: 11f11ca6cefe555972b3a5c99729d1a7523d8f50 ms.translationtype: MT ms.contentlocale: zh-CN ms.lasthandoff: 05/03/2018 ms.locfileid: "32746873...
source /opt/intel/openvino_2021/bin/setupvars.sh cd Modules/object_detection_yolov5openvino python3 yolo_openvino.py -m weights/yolov5s.xml -i cam -at yolov5 --rtmp_stream
exclude :test_define_method, "needs investigation" exclude :test_double_include, "needs investigation" exclude :test_double_include2, "needs investigation" exclude :test_super_in_BEGIN, "needs investigation" exclude :test_super_in_END, "needs investigation" exclude :test_super_in_at_exit, "needs investigation" exclude ...
namespace ApprovalTests.Reporters.Mac { public class P4MergeReporter : GenericDiffReporter { public static readonly P4MergeReporter INSTANCE = new P4MergeReporter(); public P4MergeReporter() : base(DiffPrograms.Mac.P4MERGE) { } } }
const fs = require('fs'); const path = require('path'); const target = path.resolve(__dirname, '..', 'test', 'setup', 'McashWeb.js'); try { fs.unlinkSync(target); } catch(ex) {} fs.copyFileSync( path.resolve(__dirname, '..', 'test', 'setup', 'node.js'), target );
#[macro_use] mod macros; test!( named_args, "a {\n color: selector-parse($selector: \"c\");\n}\n", "a {\n color: c;\n}\n" ); test!( simple_class, "a {\n color: selector-parse(\".c\");\n}\n", "a {\n color: .c;\n}\n" ); test!( simple_id, "a {\n color: selector-parse(\"#c\");\n}\n", ...
import gulp from 'gulp'; import {CLIOptions} from 'aurelia-cli'; import project from '../aurelia.json'; export default function copy() { const output = CLIOptions.getFlagValue('out', 'o'); if (!output) { throw new Error('--out argument is required'); } return gulp.src(project.deploy.sources, { base: './' }).pip...
use super::{Fold, FoldWith, Visit, VisitWith}; use crate::{ pass::{CompilerPass, Repeated, RepeatedPass}, util::move_map::MoveMap, }; use std::borrow::Cow; #[macro_export] macro_rules! chain { ($a:expr, $b:expr) => {{ use $crate::fold::and_then::AndThen; AndThen { first: $a, ...
using System; using System.Data; using System.ComponentModel; using System.Windows.Forms; public class Form1: Form { protected TextBox textBox1; // <Snippet1> public void CreateMyTextBoxControl() { // Create a new TextBox control using this constructor. TextBox textBox1 = new TextBox(); // Assign a strin...
package FunCLBMSpark import Tools._ import breeze.linalg.{DenseMatrix, DenseVector} import breeze.numerics.sin import scala.math._ import breeze.stats.distributions.MultivariateGaussian import org.apache.spark.SparkContext import org.apache.spark.rdd.RDD import com.github.unsupervise.spark.tss import com.github.unsup...
namespace SFA.DAS.Payments.Automation.Application.GherkinSpecs { public class ValidationViolation { public string RuleId { get; set; } public string SpecificationName { get; set; } public string Description { get; set; } } }
using System.Collections; using System.Collections.Generic; using UnityEngine; public class DiceRoll : MonoBehaviour { // Message if you win private string winMessage = "GEWONNEN! Deine Nummer lautet: "; // Prints the Description in the console void Start() { Debug.Log("Lucky Number Zahlen...
# newmoney-cointracker-api API for NewMoney Cryptocurrency Cointracker ## Getting Started - ```git clone ...``` - ```npm i``` ### Set up the database - ```npm run db:init``` ### Run the server - ```npm start``` ## Contributing - Fork the repository - ```git clone ...``` - ```npm i``` ### Set up the database - ```npm r...
import 'package:dig_core/dig_core.dart'; import 'package:dig_mobile_app/app/viewmodel/import_account_viewmodel.dart'; import 'package:equatable/equatable.dart'; abstract class ImportAccountState extends Equatable { final ImportAccountViewmodel viewmodel; const ImportAccountState({this.viewmodel = const ImportAcco...
using System; using System.Collections.Generic; using System.Text; namespace Inventory.Application.Items.Commands.CreateItem { public class CreateItemDto { public string Name { get; set; } public string Description { get; set; } public Guid ItemTypeId { get; set; } public DateT...
use crate::config::{Named, Project, Test}; use crate::docker::Verification; use crate::io::Logger; use curl::easy::{Handler, WriteError}; use serde::Deserialize; #[derive(Clone, Debug)] pub struct Verifier { pub verification: Verification, logger: Logger, } impl Verifier { pub fn new( project: &Pro...
package com.example.muumuu.animationshowcase import android.content.Intent import android.net.Uri import android.os.Bundle import androidx.constraintlayout.widget.ConstraintLayout import androidx.transition.ArcMotion import androidx.transition.ChangeBounds import androidx.transition.TransitionManager import androidx.f...
--- layout: post category: project title: "Grandy" brief: "freelance design marketplace" date: 2014-11-17 thumbnail: grandy_logo.png color: "#76C185" --- {% contentfor intro %} Grandy removes the pain from freelancing for designers and clients with a marketplace for $1,000 projects. {% endcontentfor %} {% include pic...
/* * Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.load.java.components import org.jetbrains.kotlin.fileClasses.javaFileFacadeFqName import org.jetbrains.kotlin.name.FqName impo...
use super::gtk_widget_event_type::*; use flo_ui::*; use flo_canvas::*; use gtk::*; /// ID used to identify a Gtk window #[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] pub enum WindowId { Unassigned, Assigned(i64) } /// ID used to identify a Gtk widget #[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] p...
package com.syleiman.gingermoney.ui.common.navigation import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity interface NavigationHelperBase { /** * Move back in back stack */ fun moveBack(currentFragment: Fragment, finishCurrentActivity: Boolean = false) /** * ...
use super::ecs::*; use ron; use specs::error::NoError; use specs::prelude::*; use specs::saveload::{DeserializeComponents, SerializeComponents, U64Marker, U64MarkerAllocator}; use std::fs::File; pub fn save(world: &mut World) { //SaveWorld(format!("{}/save", env!("CARGO_MANIFEST_DIR"))).run_now(&world.res); Sa...
@file:Suppress("unused") package com.library.common.extension import android.view.View /** * 批量设置控件点击事件。 * * @param v 点击的控件 * @param block 处理点击事件回调代码块 */ fun setOnClickListener(vararg v: View?, block: View.() -> Unit) { val listener = View.OnClickListener { it.block() } v.forEach { it?.setOnClickListener...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; using System.Threading; using System.Windows; using System.Windows.Threading; namespace Jeuxjeux20.Mvvm { public abstract class MultiThreadedPropertyChangedObject : PropertyChangedObject {...
package io.github.forezp.cache; import com.github.benmanes.caffeine.cache.CacheLoader; import com.github.benmanes.caffeine.cache.Caffeine; import com.github.benmanes.caffeine.cache.LoadingCache; import java.util.concurrent.TimeUnit; public class RouteRuleCache<AuthRule> extends AbstractCaffineCache { @Overrid...
package com.frogobox.appadmob.mvvm.main import android.os.Bundle import android.view.Menu import android.view.MenuItem import com.frogobox.appadmob.R import com.frogobox.appadmob.base.BaseActivity import com.frogobox.appadmob.databinding.ActivityMainBinding import com.frogobox.appadmob.mvvm.compose.ComposeActivity imp...