text stringlengths 27 775k |
|---|
package csw.services.internal
class Environment(settings: Settings) {
def setup(): Unit = {
import settings._
System.setProperty("CLUSTER_SEEDS", s"$hostName:$clusterPort")
System.setProperty("csw-location-server.http-port", locationHttpPort)
System.setProperty("INTERFACE_NAME", insideInterfaceName)
... |
#!/usr/bin/env kotlin
println((1..999).filter { it % 3 == 0 || it % 5 == 0}.sum())
|
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/Vector3.hpp>
#include <RED4ext/Scripting/Natives/Generated/game/EntityReference.hpp>
#i... |
unit ce_dastworx;
{$I ce_defines.inc}
interface
uses
Classes, SysUtils, process, ce_common;
(**
* Gets the module name and the imports of the source code located in
* "source". The first line of "import" contains the module name, double quoted.
* Each following line contain an import.
*)
procedure getModuleImp... |
# Ordered Floats
Provides several wrapper types for Ord and Eq implementations on f64.
See `src/lib.rs` for documentation and details.
## License
MIT
## Tools
Built using Cargo
Tested using Stainless
|
# AutocompletionSystem
Building a naive recommendation system on AWS using amazon ec2 and Elastic Cache's Redis Database.
|
using System;
using System.Numerics;
public class Catch_the_Thief
{
public static void Main()
{
var numeralType = Console.ReadLine();
var countOfIds = int.Parse(Console.ReadLine());
BigInteger thiefsId = 0;
BigInteger minPositiveDifference = ulong.MaxValue;
for (... |
<?php
namespace Enhavo\Bundle\AppBundle\Action\Type;
use Enhavo\Bundle\AppBundle\Action\AbstractUrlActionType;
use Enhavo\Bundle\AppBundle\Action\ActionTypeInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Contracts\Translation\TranslatorInter... |
<?php
class Service_Adresse
{
/**
* Récupération de l'ensemble des communes
*
* @return array
*/
public function getAllCommunes()
{
$model_commune = new Model_DbTable_AdresseCommune;
return $model_commune->fetchAll()->toArray();
}
/**
* Récupération des communes ... |
#ifndef EMPLOY_SCOREBOARD_H
#define EMPLOY_SCOREBOARD_H
#include <employees.h>
#include <json.hpp>
class EmployScoreboard : public WsjcppEmployBase {
public:
EmployScoreboard();
static std::string name() { return "EmployScoreboard"; }
virtual bool init();
virtual bool deinit() over... |
#! /bin/bash
which protoc
if [ $? != 0 ]; then
echo "Protocol buffer installation not found"
exit 1
fi
which protoc-gen-go
if [ $? != 0 ]; then
echo "Installing go extension for protocol buffers"
go get -u github.com/golang/protobuf/protoc-gen-go
fi
|
/*
* Copyright 2017 Chris Nappin
*
* 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... |
<?php
namespace App\Http\Requests\Backend\Auth;
use App\Http\Requests\BaseRequest;
class RuleRequest extends BaseRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* 表单验证.... |
use Test::More tests => 17;
BEGIN { use_ok('P4'); } ## test 1
# Load test utils
unshift( @INC, "." );
unshift( @INC, "t" );
require_ok("p4test"); ## test 2
my $test = new P4::Test;
my $p4 = $test->InitClient();
ok( defined($p4) ); ## test 3
ok( $p4->Connect() ); ## test 4
## Read value from r... |
# frozen_string_literal: true
CommandDispatcher.register name: 'image', help_text: 'displays information about a specific image' do |msg, args|
msg.reply '_no such image!_' unless Image.send_image(msg, args.raw)
end
CommandDispatcher.alias 'i', 'image'
CommandDispatcher.alias 'img', 'image'
|
import numpy as np
import os
import datetime
import cv2
import torch
import glob
import time
import shutil
import gym
from utils import utils
from tqdm import tqdm
from scipy.stats import multivariate_normal
from tensorboardX import SummaryWriter
from shutil import copyfile
from scipy import signal
from methods import ... |
# frozen_string_literal: true
require "test_helper"
class MessagingServicesControllerTest < ActionDispatch::IntegrationTest
setup do
@messaging_service = create(:messaging_service)
end
test "should get index" do
get messaging_services_url
assert_response :success
end
test "should get new" do
... |
#!/bin/bash
# Build config for build.sh
APP_NAME=extensiondev
CHROME_PROVIDERS="content locale skin"
ROOT_FILES="install.js 7zip.bat cygzip.bat winrar.bat winzip.bat wzcline.bat zip.bat zip.sh"
ROOT_DIRS="chrome"
|
// Interfaces shared across the app but not necessary going into database
export enum ScoreType {
ORES_DAMAGING = 'ores_damaging',
ORES_BADFAITH = 'ores_badfaith',
STIKI = 'stiki',
CLUEBOTNG = 'cbng',
WIKITRUST = 'wikitrust'
}
export enum BasicJudgement {
LooksGood = 'LooksGood',
NotSure = 'NotSure',
... |
from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
#from django.forms import CharField, PasswordInput
import hashlib
import urllib2
from django.conf import settings
from datetime import datetime
class UserManager(BaseUserManager):
def create_user(self, email, fi... |
export default class Player {
constructor(playerId, playerIndex, playerName) {
this._playerId = playerId;
this._playerIndex = playerIndex;
this._playerName = playerName;
}
playerId() {
return this._playerId;
}
playerIndex() {
return this._playerIndex;
}
... |
using System.Threading;
using System.Threading.Tasks;
namespace Snijderman.Common.Async.ProducerConsumer;
public interface IProducerConsumerChannelBase<T>
{
/// <summary>
/// This method wil produce the content that can be picked up by the worker tasks
/// </summary>
/// <param name="contentToProduce">Con... |
/**
* @license
* Copyright 2016 Google Inc.
* 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... |
package akkaviz.server
import akka.actor.ActorSystem
import akka.http.scaladsl.marshalling.Marshaller
import akka.http.scaladsl.marshalling.Marshalling.WithFixedContentType
import akka.http.scaladsl.model.MediaTypes
import akka.http.scaladsl.testkit.ScalatestRouteTest
import akka.stream.ActorMaterializer
import akka.s... |
import { baseAddressFromXpub} from './helpers/addresses'
const HARDENED_THRESHOLD = 0x80000000;
const shelleyPath = (account: number, isChange: boolean, addrIdx: number) => {
return [
HARDENED_THRESHOLD + 1852,
HARDENED_THRESHOLD + 1815,
HARDENED_THRESHOLD + account,
isChange ? 1 : 0,
addrIdx,
... |
package d3.genericMethods;
import java.util.ArrayList;
import java.util.List;
public class GenericMethods {
public static <T> List<T> createList(T item, int count) {
List<T> list = new ArrayList<>();
for (int i = 0; i < count; i++) {
list.add(item);
}
return list;
... |
# 快速搜索
* [Everything](http://www.voidtools.com)
* http://www.voidtools.com/Everything-1.4.1.895.x86-Setup.exe |
require 'spec_helper'
require 'actions/package_create'
module VCAP::CloudController
describe PackageCreate do
let(:package_create) { PackageCreate.new(user, user_email) }
describe '#create' do
let(:app) { AppModel.make }
let(:type) { 'docker' }
let(:app_guid) { app.guid }
let(:messag... |
// All web components polyfills (including platform) with "window" passed as argument to the iife
import "../thirdparty/webcomponents-sd-ce-pf.js";
// All IE11 polyfills, needed by the project itself
import "./IE11.js";
|
// Copyright (C) 2003-2010 Xtensive LLC.
// All rights reserved.
// For conditions of distribution and use, see license.
// Created by: Alex Yakunin
// Created: 2010.06.24
using System;
using System.Linq;
using NUnit.Framework;
using Xtensive.Core;
using Xtensive.Orm.Configuration;
namespace Xtensive.O... |
import 'dart:async';
import 'package:flutter/services.dart';
import 'constants.dart';
import 'extensions/extensions.dart';
import 'models/authentication_completed.dart';
import 'models/ignore_device_completed.dart';
import 'models/logs_sent_server.dart';
import 'models/pairing_options_required.dart';
import 'models/p... |
<?php
$data = Timber::get_context();
$post = Timber::query_post();
$data['post'] = $post;
// Solution
if (is_singular('solution')) :
// Get header image
$data['header_img'] = get_field('acf_solution_image');
// Get connected cases
if (get_field('acf_s... |
#!/usr/bin/env bash
## Firefox
## https://www.mozilla.org/firefox/
## Remove
export HOSTNAME=$(hostname -s)
if (type "porg" > /dev/null 2>&1); then
porg -r firefox
fi
rm -rf ${HOME}/.porg/$HOSTNAME/src/firefox
## Setup
mkdir -pv ${HOME}/.porg/$HOSTNAME/src/firefox
cd ${HOME}/.porg/$HOSTNAME/src/firefox
... |
MyCuteAssistant
=========================================
Your cute girl-for-all on your screen. Let her plan, automate & assist by jobs, making your life easier. |
const sass = require('node-sass')
module.exports = {
'_hypot($x...)': x => {
const list = []
for (let i = 0; i < x.getLength(); i++) {
const value = x.getValue(i)
if (!(value instanceof sass.types.Number)) {
throw "$x: Expected a number."
} else if (value.getUnit()) {
... |
package egovframework.com.uss.umt.service;
import java.util.List;
public interface EgovDeptManageService {
/**
* 부서를 관리하기 위해 등록된 부서목록을 조회한다.
* @param deptManageVO - 부서 Vo
* @return List - 부서 목록
*
* @param deptManageVO
*/
public List<DeptManageVO> selectDeptManageList(DeptManageVO deptMana... |
package hdzi.editstarters.ui
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.project.Project
import com.intellij.ui.CollectionComboBoxModel
import com.intellij.ui.CollectionListModel
import hdzi.editstarters.buildsystem.BuildSys... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.OfficeProPlus.Downloader.Model
{
public class UpdateChannel
{
public UpdateChannel()
{
if (Updates == null) Updates = new List<Update>();
... |
using System;
using NUnit.Framework;
namespace XmlDiff.Tests
{
[TestFixture]
public class DiffValueTests
{
private readonly string Raw = "theValue";
[Test]
[TestCase(null)]
[TestCase("")]
[ExpectedException(typeof(ArgumentNullException))]
public void Ctor_ShouldNotAllowRaw_ToBeNull(string raw)
{
... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ItemLibrary
{
private Dictionary<int, Item> library = new Dictionary<int, Item>();
private Item[] items;
public ItemLibrary()
{
SetLibrary();
}
private void SetLibrary()
{
items =... |
using System;
using System.Collections.Generic;
using System.Text;
namespace ServicePublisher.GeoSpatial
{
public class SdeServerInfo
{
private string _server;
public string server
{
get { return _server; }
set { _server = value; }
}
private str... |
module lagmod
!$$$ module documentation block
! . . . .
! module: lagmod
! prgmmr: purser/cucurull org: np23 date: 2005-12-01
!
! abstract: This module contains routines (including tangent linear and adjoint code)
! to perfo... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpellforceDataEditor.SFLua.LuaDecompiler
{
public class Executable : Node
{
public ILValue Name;
public Table Arguments;
public override void ... |
package models.bench
import scala.concurrent.duration.DurationInt
import akka.util.Timeout
import akka.pattern.ask
import models.akka.AbstractActorSpec
import models.akka.Messages.GetDSLinkNames
import models.akka.local.{ LocalDSLinkFolderActor, LocalDSLinkManager }
/**
* BenchmarkActor test suite.
*/
class Benchm... |
standard_cards = MTG::Card.where(gameFormat: 'standard').all
# standard_cards.map {|card| puts "Type: #{card.type} Supertype: #{card.supertypes} Subtypes: #{card.subtypes}"}
# puts standard_cards.last.type
# puts standard_cards.last.supertypes
# puts standard_cards.last.subtypes
# puts standard_cards.last.legalities.ma... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using WebVella.Erp.Api.Models;
using WebVella.Erp.Api.Models.AutoMapper;
using WebVella.Erp.Database;
using WebVella.Erp.Eql;
using WebVella.Erp.Utilities;
namespace WebVella.Erp.Web.Services
{
public class UserService : BaseService
... |
<?php
namespace app\modules\canteen\models;
use Yii;
use yii\base\Model;
use yii\bootstrap\Html;
/**
* @property Dish $dish
*/
class DishForm extends Model
{
public $name;
public $week_day;
public $price;
public $portion;
/**
* @var Dish
*/
private $_dish;
/**
* @inherit... |
#
# Cookbook Name:: fmw_domain
# Resource:: nodemanager_service
#
# Copyright 2015 Oracle. All Rights Reserved
#
provides :fmw_domain_nodemanager_service, os: 'solaris2'
# Configure the nodemanager service on Solaris
actions :configure
# Make create the default action
default_action :configure
# webLogic bin dir pat... |
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Threading.Tasks;
using Xamarin.App.Models;
using Xamarin.App.Repositories.Interfaces;
using Xamarin.App.Views;
using Xamarin.Forms;
namespace Xamarin.App.ViewModels
{
public class UsersViewModel : BaseViewModel
{
... |
// WITH_RUNTIME
import java.lang.Math.abs
fun x() {
// comment
<caret>abs(5)
} |
# Copyright 2017 Google, Inc
#
# 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 in writing, ... |
% 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 in writing, software
% distributed under the ... |
import React, { Component } from "react"
import styled from "styled-components"
import Img from "gatsby-image"
class RecentProjects extends Component {
render() {
const json = this.props.frontmatter
// console.log(json)
const some_projects_title = json.some_projects_title
const some_projects_descrip... |
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128-n32"
target triple = "powerpc-apple-darwin9.8"
define i32 @main() nounwind {
entry:
%retval = alloca i32
%0 = alloca i32
%"alloca point" = bitcast i32 0 to i32
store... |
//! Bitwise operators.
use crate::{
arch::word::Word,
buffer::Buffer,
ibig::IBig,
math,
ops::{AndNot, NextPowerOfTwo, UnsignedAbs},
primitive::{double_word, WORD_BITS_USIZE},
sign::Sign::*,
ubig::{Repr::*, UBig},
};
use core::{
mem,
ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign... |
Dust core unit-tests
------------------------
core tests run on node, use the following command
node test/server.js
Dust unit-tests using jasmine
-----------------------------
In the current distribution of dust, we have unit tests in jasmine for both the client and the nodejs version.
If you want to run the cl... |
<!-- Id Field -->
<div class="col-md-12">
{!! Form::label('id', 'Id:') !!}
<p>{!! $product->id !!}</p>
</div>
<!-- Company Id Field -->
<div class="col-md-12">
{!! Form::label('company_id', 'Company Id:') !!}
<p>{!! $product->company_id !!}</p>
</div>
<!-- Code Field -->
<div class="col-md-12">
{!... |
**Deprecation Notice:** I've switched from this repo to deploying static sites on S3 and Cloudfront.
dock0/nginx
=======
[](https://hub.docker.com/r/dock0/nginx/)
[](https://travis-... |
import React from 'react';
import './Arrecode.css';
import './wordsPosition.css';
const Arrecode = () => {
return (
<div className="principal">
<div className="containerArrecode">
<span id="a" className="principal_word" >a</span>
<span id="r1" className="principal_word">r<... |
<?php
namespace Electro\WebServer\Config;
use Electro\Interfaces\DI\InjectorInterface;
use Electro\Interfaces\Http\MiddlewareAssemblerInterface;
use Electro\Interfaces\KernelInterface;
use Electro\Interfaces\ModuleInterface;
use Electro\Kernel\Lib\ModuleInfo;
use Electro\Profiles\ApiProfile;
use Electro\Profiles\WebPr... |
import * as _ from 'lodash';
import code from './code';
import remove from './remove';
import list from './list';
import report from './report';
import allow from './allow';
import deny from './deny';
import owner from './owner';
import help from './help';
import lock from './lock';
import unlock from './unlock';
type... |
% The "AlfTheHawk" Program
% ALF THE HAWK
% The program controls two infrared receivers and one stepper
% motor. The IR receivers react, in this case, to light from a.
% flashlight As light is shone in one receiver the motor turns
% clockwise. When light is shone in the other receiver the
% motor turns counter-... |
describe Spaceship::ConnectAPI::AppStoreVersion do
before { Spaceship::Tunes.login }
describe "AppStoreVersion object" do
describe "reverse maps attributes" do
let(:app_store_version) { Spaceship::ConnectAPI::AppStoreVersion.new('id', {}) }
let(:attribute_attributes) do
{
contact_... |
# Globals
[Bancor SDK](./) › [Globals](globals.md)
## Bancor SDK
### Index
#### Enumerations
* [BlockchainType](enums/blockchaintype.md)
#### Classes
* [History](classes/history.md)
* [Pricing](classes/pricing.md)
* [SDK](classes/sdk.md)
* [Utils](classes/utils.md)
#### Interfaces
* [ConversionEvent](interface... |
import { CalendarProps as CP } from "react-calendar";
import { Omit } from "utility-types";
interface TileDot {
timeStamp?: number | Date;
colors?: string[];
}
interface CommonCalendarProps extends Omit<CP, "onChange"> {
hideShadow?: boolean;
className?: string;
onClear?: () => void;
tileDots: TileDot[];
... |
val artifactIdVal = "dag-command"
val versionVal = "1.5.3"
val publicationName="dagCommand"
group = "com.github.leandroborgesferreira"
version = versionVal
fun getNexusUserName(): String? = System.getenv("SONATYPE_NEXUS_USERNAME")
fun getNexusPassword(): String? = System.getenv("SONATYPE_NEXUS_PASSWORD")
plugins {
... |
namespace StirlingLabs.LsQuic.Native
{
public unsafe partial struct lsquic_out_spec
{
[NativeTypeName("struct iovec *")]
public iovec* iov;
[NativeTypeName("size_t")]
public nuint iovlen;
[NativeTypeName("const struct sockaddr *")]
public sockaddr* local_sa;
... |
# frozen_string_literal: true
module Faker
class Aircraft < Base
class << self
# Generates random aircraft manufacturer
#
# @return [String] a manufacturer of aircrafts
def manufacturer
fetch('aircraft.manufacturer')
end
# Generates a random model of aircraft based o... |
<?php
namespace App\Repositories\Posts;
use Exception;
use Illuminate\Support\Facades\Http;
class PostsRepository implements PostsRepositoryInterface
{
public function get(string $url): object
{
$response = Http::get($url);
if ($response->failed()) {
throw new Exception($response... |
package elementary.pipeline
import akka.stream.{ActorMaterializer, OverflowStrategy}
import akka.stream.scaladsl.{Source, Sink, FlowGraph, Broadcast, Merge, Flow, RunnableGraph, Keep}
import elementary.util.common.Communication._
import elementary.pipeline.PipeCommunication._
import elementary.pipeline.analysis.Analy... |
// Copyright 2015-2021 Swim.inc
//
// 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 i... |
import {inject} from '@loopback/core';
import {PgdbDataSource} from '../datasources';
import {Role} from '../models';
import {DefaultSoftCrudRepository} from './default-soft-crud.repository.base';
import {DataObject, Options} from '@loopback/repository';
export class RoleRepository extends DefaultSoftCrudRepository<
... |
package com.ip192.spring.service.executors;
import com.ip192.spring.entity.User;
import com.ip192.spring.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.sprin... |
import 'package:test/test.dart';
import 'package:youtube_explode_dart/youtube_explode_dart.dart';
void main() {
YoutubeExplode yt;
setUpAll(() {
yt = YoutubeExplode();
});
tearDownAll(() {
yt.close();
});
test('Get comments of a video', () async {
var videoUrl = 'https://www.youtube.com/watch... |
DROP TABLE purchase;
DROP TABLE loan;
DROP TABLE sale_artwork;
DROP TABLE loan_artwork;
DROP TABLE owner;
DROP TABLE member;
DROP TABLE purchase_status_lov;
DROP TABLE artwork_state_lov; |
import { Component, OnInit } from '@angular/core';
import {Post} from "../../post/model/post.model";
import {LazyLoadEvent, SelectItem} from "primeng/primeng";
import {PostTableService} from "./services/post-table.service";
import {CategoryTableService} from "app/manage/category-table/services/category-table.service";
... |
import 'package:open_cx/networking/model/person_found.dart';
import 'known_person.dart';
class AppState {
Map content = Map<String, dynamic>();
Map getInitialContent() {
return {
"counter": 0,
"scanning_on": false,
"bluetooth_devices": Map<String, PersonFound>(),
"friends": Set<Known... |
using System;
using System.Collections.Generic;
namespace Deconstruction.DeconstructMethod
{
class Program
{
static void Main()
{
var pair = new KeyValuePair<string, int>("one", 1);
var (k, v) = pair;
// 以下のようなコードに展開される
// string k;
/... |
#include "UEImgui.h"
#define LOCTEXT_NAMESPACE "FUEImguiModule"
void FUEImguiModule::StartupModule()
{
}
void FUEImguiModule::ShutdownModule()
{
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FUEImguiModule, UEImgui) |
/**
* 项目名称:quickstart-javase
* 文件名:HelloListener.java
* 版本信息:
* 日期:2018年6月11日
* Copyright yangzl Corporation 2018
* 版权所有 *
*/
package org.quickstart.javase.jmx.example;
import javax.management.Notification;
import javax.management.NotificationListener;
/**
* HelloListener
*
* @author:youngzil@163.com
* @... |
<?php
namespace App\Interfaces\Data;
interface ProfileDataInterface {
/**
* Takes in a model
* Inserts model into the database if no model exists
* @param $model Model information to create
* @return true or false for create
*/
public function create($model);
/**
* Tak... |
function left_side(side)
return HorizonSide(mod(Int(side) + 1 + 4, 4))
end
function right_side(side)
return HorizonSide(mod(Int(side) - 1 + 4, 4))
end
function inverse(side)
return HorizonSide(mod(Int(side) + 2, 4))
end
function mark_line(r, side, dif)
res = 0
while !isborder(r, side)
... |
import System.Environment (getArgs)
import System.Exit (exitSuccess)
import qualified Year2015.Day1.Solution as Y2015D1
import qualified Year2015.Day2.Solution as Y2015D2
import qualified Year2015.Day3.Solution as Y2015D3
import qualified Year2015.Day4.Solution as Y2015D4
import qualified Year2021.Day1.Solution as Y202... |
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.SwaggerToPostman.PostmanSchema.Common;
using System;
using System.Collections.Generic;
using System.Text;
namespace Swashbuckle.SwaggerToPostman.Converters
{
public interface IHeaderParameterObjectConverter
{
List<PostmanHeader> Convert(List<NonB... |
# http-petitioner - Generador de peticiones HTTP
Resources:
- Vue2
- http://ionicons.com/
- Bootstrap4
|
# Copyright 2016, Juan I. Gesino.
# Licensed under MIT license: https://github.com/juangesino/algebra/blob/master/LICENSE
# This script requires the Matrix Ruby class (https://ruby-doc.org/stdlib-2.2.0/libdoc/matrix/rdoc/Matrix.html)
require 'matrix'
class Algebra
# Returns the best approximation for an incompatib... |
import Colourista (errorMessage, successMessage)
import Fbpmn.Analysis.Alloy.IO.Alloy as BGAlloy (writer)
import Fbpmn.Analysis.Tla.IO.Dot as LogDot (writer)
import Fbpmn.Analysis.Tla.IO.Html as LogHtml (writer, Extension (Communication, Space))
import Fbpmn.Analysis.Tla.IO.Json as LogJson (writer)
import Fbpmn.Analysi... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/components/tether/wifi_hotspot_connector.h"
#include <memory>
#include <sstream>
#include "base/bind.h"
#include "base/memory/ptr_uti... |
namespace Swan.Test
{
using NUnit.Framework;
using Swan.Utilities;
using System;
using System.Text;
using System.Threading.Tasks;
[TestFixture]
public class GetProcessOutputAsync
{
[Test]
public void WithInValidParams_ThrowsArgumentNullException()
{
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SamSeifert.Utilities.Timing
{
public class RateTracker
{
private float _AverageElapsed = 0;
private bool _First = true;
private bool _Second = true;
pri... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PseudoInternationalization {
abstract class BaseProcessor : IProcessor {
public void Process(string path) {
using(var fs = new FileStream(path, FileM... |
# Search for a Correlation between Very-high-energy Gamma Rays and Giant Radio Pulses in the Crab Pulsar
Reference:
Aliu, E. et al. (The VERITAS Collaboration), The Astrophysical Journal, 760, 136 (2012)
- ADS: [2012ApJ...760..136A](http://adsabs.harvard.edu/abs/2012ApJ...760..136A)
- DOI: [10.1088/0004-637X/760/2/13... |
// tslint:disable
import { DocumentNode } from 'graphql';
import * as ReactApollo from 'react-apollo';
import * as ReactApolloHooks from 'react-apollo-hooks';
export type Maybe<T> = T | null;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: string;
String: string;
... |
#if CHRONOS_PLAYMAKER
using HutongGames.PlayMaker;
using UnityEngine;
namespace Chronos.PlayMaker
{
public abstract class ChronosComponentAction<T> : FsmStateAction where T : Component
{
private GameObject cachedGameObject;
protected T component;
protected Timeline timeline
{
get { return component as T... |
#ifndef CPLUSPLUS10_DISCRETEMETRIC_H
#define CPLUSPLUS10_DISCRETEMETRIC_H
#include "MetricI.h"
struct DiscreteMetric : MetricI{
virtual double distance(const Point& first, const Point& second);
};
#endif //CPLUSPLUS10_DISCRETEMETRIC_H
|
import { z, ZodType } from 'zod';
import { CpuGeneratedSchema, GpuGeneratedSchema } from './generated';
export const CpuSchema = CpuGeneratedSchema.omit({
id: true,
updatedAt: true,
createdAt: true,
});
export const GpuSchema = GpuGeneratedSchema.omit({
id: true,
updatedAt: true,
createdAt: true,
});
expor... |
# hzDesktop
A web desktop FOR FUN
[demo](https://lionzhunter.github.io/hzDesktop/)
|
#### Description
This is a program to find the distinct permutations of the string
### Author
[wjyeap123](https://github.com/wjyeap123/)
|
<?php
/**
* Created by PhpStorm.
* User: carlos_pambo
* Date: 3/17/18
* Time: 8:30 AM
*/
namespace App\Http\Controllers\Address;
use App\Address;
use App\Http\Controllers\ApiController;
use Carbon\Carbon;
use Validator;
use Illuminate\Http\Request;
/**
* Class DeviceController
*
* @package App\Http\Controlle... |
package com.acrylic.ui
import java.awt.Dimension
import java.awt.Image
import java.awt.Toolkit
import javax.swing.JFrame
import javax.swing.WindowConstants
interface BaseUI {
val jFrame: JFrame
fun render()
fun setupJFrame() {
val jFrame = jFrame
jFrame.defaultCloseOperation = WindowConsta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.