text stringlengths 27 775k |
|---|
package com.sunnyweather.android.bean
data class BannerResponse(val data: List<Banner>)
data class Banner(val imagePath: String, val url: String) |
require "spec_helper"
describe OpenXml::DrawingML::Properties::AudioCd do
include PropertyTestMacros
it_should_use tag: :audioCd, name: "audio_cd"
it_should_have_properties :start, :end, :extension_list
end
|
import { ParticipantsCollection, ConversationsCollection, MessagesCollection } from '../../common.js';
MessagesCollection.allow({
// If the user is a participant, allow them to insert (send) a message
insert(userId, message) {
if (userId && ParticipantsCollection.findOne({ userId, conversationId: messa... |
// flog.c
#include "flog.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <assert.h>
#define DATE_START 7
#define TIME_START (DATE_START + 11)
typedef struct FLog
{
/// 日志文件名
char file_name[NLOG_MAX_PATH];
/// 单个日志文件最... |
#!/usr/bin/env bash
train_data=../../data/stance/IACv2_stance-train.csv
dev_data=../../data/stance/IACv2_stance-dev.csv
test_data=../../data/stance/IACv2_stance-test.csv
python train_model.py -s $1 -i ${train_data} -d ${dev_data}
|
from core import BeamXY, Propagator, FourierDiffractionExecutorXY, BeamVisualizer, xlsx_to_df
from tests.diffraction.test_diffraction import TestDiffraction
NAME = 'diffraction_xy_gauss'
class TestDiffractionXYGauss(TestDiffraction):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
... |
#! /usr/bin/env bash
#=========================================================================#
# run.sh #
# #
# Author: nic ... |
import javafx.scene.paint.Color;
public interface CellView {
/**
* Make cell appear lit up on game board
**/
void turnOn();
/**
* Set color of the cell in display
*
* @param color the color of the cell
**/
void setColor(Color color);
} |
using Microsoft.VisualStudio.PlatformUI;
using PortingAssistantVSExtensionClient.Common;
using PortingAssistantVSExtensionClient.Options;
using System;
namespace PortingAssistantVSExtensionClient.Dialogs
{
public partial class SelectTargetDialog : DialogWindow
{
private readonly UserSettings _userSett... |
// https://github.com/theGordHoard/hoardbot/blob/master/src/%40types/difflib.d.ts
// Copyright Katlyn Lorimer, all rights reserved.
declare module 'difflib' {
// The best (no more than n) matches among the possibilities are returned in a
// list, sorted by similarity score, most similar first.
export function ge... |
using Balta.SharedContext.Enums;
namespace Balta.SharedContext;
public class Lecture : Base
{
public int Ordem { get; set; }
public string Title { get; set; }
public int DurationInMinutes { get; set; }
public EContentLevel Level { get; set; }
} |
package amf.resolution
import amf.core.client.scala.config.RenderOptions
import amf.core.internal.remote.{AmfJsonHint, Raml10, Raml10YamlHint}
import scala.concurrent.ExecutionContext
class ExtensionResolutionTest extends ResolutionTest {
override implicit val executionContext: ExecutionContext = ExecutionContext... |
import Vue from 'vue';
import routify from './routify';
export default function modularize(definitions) {
const componentMap = definitions.components || {};
const components = Object.keys(componentMap).reduce((map,key)=>{
const component = componentMap[key];
const template = component.template || '';
c... |
#!perl
use strict;
use warnings;
use FFI::CheckLib qw{find_lib};
use FFI::Platypus qw{};
use Data::Dumper qw{Dumper};
use Convert::Binary::C qw{};
use FFI::C;
my $libPath = find_lib(lib=>'h3');
my $ffiObj = FFI::Platypus->new(api=>1);
$ffiObj->lib($libPath);
my $c = Convert::Binary::C->new->parse('
struct GeoCoord {
... |
package com.gildedrose.item
import com.gildedrose.Item
import com.gildedrose.Quality
import com.gildedrose.bonus.QualityBonus
import com.gildedrose.bonus.QualityBonuses
data class BackstagePasses(
override var name: String,
override var sellIn: Int,
override var quality: Int,
) : Item() {
private val... |
dest_dir=/usr/local/bin
sudo mkdir $dest_dir
sudo cp -i wifi $dest_dir
sudo chmod 775 $dest_dir/wifi
sudo cp -i internet $dest_dir
sudo chmod 775 $dest_dir/internet
sudo cp -i nettraf $dest_dir
sudo chmod 775 $dest_dir/nettraf
sudo cp -i dmenuunicode $dest_dir
sudo chmod 775 $dest_dir/dmenuunicode
sudo cp -i dmenumount... |
use thiserror::Error;
use solana_program::{msg, program_error::ProgramError};
#[derive(Error, Debug, Copy, Clone)]
pub enum StreamError {
#[error("Failed to parse the pubkey")]
PubKeyParseError,
#[error("Admin account invalid")]
AdminAccountInvalid,
#[error("Not enough lamports in account")]
N... |
#include "user_tree.h"
#include <iostream>
using namespace std;
void user_tree__create_node(TreeNodePtr &root, int value)
{
root = new TreeNode();
root->value = value;
}
void user_tree__preorder_traversal(TreeNodePtr root)
{
if (root != nullptr)
{
cout << root->value << endl;
user_tree__preorder_trav... |
using System;
using System.Collections.Generic;
using System.Linq;
using ARKit;
using CoreAnimation;
using CoreFoundation;
using CoreGraphics;
using Foundation;
using Newtonsoft.Json;
using OpenTK;
using SceneKit;
using UIKit;
namespace PlacingObjects
{
public class VirtualObjectManager : NSObject
{
static Virtua... |
// <Auto-Generated></Auto-Generated>
using System.Threading.Tasks;
namespace Cuture.Extensions.Modularity
{
/// <summary>
/// <inheritdoc cref="IAppModule"/>生命周期接口 - <inheritdoc cref="OnApplicationInitializationAsync"/>
/// </summary>
public interface IOnApplicationInitializationAsync
{
/... |
import React from 'react';
import config from 'src/config';
import ContentSection from './ContentSection';
function PrivacySection() {
return (
<ContentSection title="Privacy Policy">
<div>
<p>
<strong>{config.appDomainName}</strong> will collect certain non-personally identify
... |
package day1
import org.scalatest.{FunSpec, FunSuite, Matchers}
class InverseCaptchaTest extends FunSuite with Matchers {
import InverseCaptcha.captcha
test("Captcha '12' should return 0") {
captcha("12") shouldBe 0
}
test("Captcha '1111' should return 4") {
captcha("1111") shouldBe 4
}
test("C... |
#include <bits/stdc++.h>
#define MAXN 1005
using namespace std;
inline long long fpow(long long a,long long b,long long p)
{
long long r=1;
for (;b;a=(a*a)%p,b>>=1) if (b&1) r=(r*a)%p;
return r;
}
int main()
{
int w,h;
scanf("%d %d",&w,&h);
printf("%lld\n",fpow(2,w+h,998244353LL));
return 0;
} |
{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-name-shadowing #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE NamedFieldPuns #-}
module Yage.Rendering.Pipeline.Deferred.GuiPass where
import Yage.Prelude
import Yage.Lens
import Yage.Viewport
import Yage.Scene hiding (t... |
import com.typesafe.sbt.SbtGit.GitKeys._
lazy val commonSettings = Seq(
organization := "net.lullabyte",
scalacOptions ++= Seq(
"-Xlint",
"-deprecation",
"-Xfatal-warnings",
"-feature"
), unmanagedSourceDirectories in Compile ++= Seq(
baseDirectory.value.getParentFile / "shared" / "src" / "ma... |
# -*- coding: utf-8 -*-
module Xot
module Hookable
def hook(name, &block)
c = class << self; self; end
c.__send__ :define_method, name, &block
self
end
def on(name, &block)
hook name do |*a, &b|
block.call(*a, &b)
end
end
def before(name, &block)
... |
package org.simple.clinic.facility
sealed class FacilityPullResult {
object Success : FacilityPullResult()
object NetworkError : FacilityPullResult()
object UnexpectedError : FacilityPullResult()
}
|
CREATE TABLE users (
id INTEGER PRIMARY KEY,
username TEXT NOT NULL,
hash TEXT NOT NULL,
cash NUMERIC NOT NULL DEFAULT 10000.00
);
CREATE UNIQUE INDEX username ON users (username);
CREATE TABLE users_shares (
user_id INTEGER NOT NULL REFERENCES users(id),
symbol TEXT NOT NULL,
shares NUMERIC NOT NULL
);
CREATE INDEX ... |
package org.http4s
package parser
import cats.data.NonEmptyList
import java.nio.charset.{Charset, StandardCharsets}
import org.http4s._
import org.http4s.headers.Origin
import org.http4s.internal.parboiled2._
trait OriginHeader {
def ORIGIN(value: String): ParseResult[Origin] =
new OriginParser(value).parse
... |
package store4s
import com.google.cloud.datastore.{Datastore => _, _}
import shapeless._
import shapeless.labelled._
import scala.jdk.CollectionConverters._
trait ValueEncoder[T] { self =>
def encode(t: T): Value[_]
def contramap[A](f: A => T) = new ValueEncoder[A] {
def encode(a: A) = self.encode(f(a))
}... |
#include "shader.h"
#include "path.h"
#include <fstream>
std::string loadShaderString(std::string const& filename)
{
std::string shaderPath = SHADER_PATH;
std::string path = shaderPath + filename;
std::ifstream inputFile(path);
return std::string((std::istreambuf_iterator<char>(inputFile)), s... |
using System;
using System.Threading;
using System.Threading.Tasks;
namespace NugetProxy.Protocol.Catalog
{
/// <summary>
/// A cursor that does not persist any state. Use this with a <see cref="CatalogProcessor"/>
/// to process all leafs each time <see cref="CatalogProcessor.ProcessAsync(CancellationToke... |
package rorm
type RedisMode uint
const (
_ RedisMode = iota
Normal
Cluster
)
type SingleNodeDesc struct {
URL string
Port string
DB int
Username string
Password string
}
type Options struct {
Mode RedisMode
AddressMap map[string]*SingleNodeDesc
ReadOnly bool
}
//初始化
func NewRedisO... |
---
layout: default
modal-id: 1
date: 2020-8-11
img: certificate/cer1.jpg
alt: image-alt
project-date: September, 2019
client: none
category: TOEFL
description: 영어 능력 공인 성적으로 TOEFL 성적을 보유. (96 / 120)
---
|
package schema1
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
vtesting "github.com/grafeas/voucher/testing"
)
func TestConfigFromManifest(t *testing.T) {
pk := vtesting.NewPrivateKey()
newManifest := vtesting.NewTestSchema1SignedManifest(pk)
// we can pass nil... |
package com.coursion.mediapickerlib
import android.Manifest
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import android.app.Activity
import android.content.pm.PackageManager
import android.content.res.ColorS... |
# GLOM Functionality
```@autodocs
Modules = [GPLinearODEMaker]
Pages = ["src/gp_functions.jl"]
```
|
Authors
===============================================================================
These are the people that have contributed to the project, in no particular
order:
* Alexandre Anriot <alexandre@atlantilde.com>
* Adrien Nayrat <adrien.nayrat@dalibo.com>
* damien clochard <damien.clochard@dalibo.com>
* Guillaume... |
/*
* Copyright 2021 The Android Open Source Project
*
* 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 applica... |
using System;
using System.ComponentModel.DataAnnotations;
using MercadoLivre.Domain.Entities;
namespace MercadoLivre.Api.DTO
{
public class ProdutoOpiniaoReqDTO
{
[Required(ErrorMessage = "O campo {0} é obrigatório.")]
public int Nota { get; set; }
[Required(ErrorMessage = "O campo {... |
from dagster_gcp.gcs import FakeGCSBlob, FakeGCSBucket, FakeGCSClient
def test_fake_blob_read_write():
bucket = FakeGCSBucket("my_bucket")
blob = FakeGCSBlob("my_blob", bucket)
assert blob.exists()
my_string = "this is a unit test"
blob.upload_from_string(my_string)
assert blob.download_as_b... |
require File.dirname(__FILE__) + '/../../spec_helper'
describe "File.directory?" do
before :each do
platform :mswin do
@dir = "C:\\"
@file = "C:\\winnt\\notepad.exe"
end
platform :not, :mswin do
@dir = "/"
@file = "/bin/ls"
end
end
after :each do
@dir = nil
... |
#!/bin/bash
TOMCAT_VERSION=7.0.52
TOMCAT_FILE=apache-tomcat-$TOMCAT_VERSION
INSTALL_PATH=~/java
mkdir $INSTALL_PATH
cd $INSTALL_PATH
ENV_PATH=$INSTALL_PATH/custom-tomcat2
if [ ! -f $INSTALL_PATH/tomcat ]; then
echo "Tomcat not found at $INSTALL_PATH/tomcat"
if [ ! -f $TOMCAT_FILE.tar.gz ]; then
echo "Downloa... |
package smallest_search
func SmallestSearch(slice []int, smallest int) int {
if len(slice) == 0 {
return smallest
}
var current = slice[len(slice)-1]
if smallest > current {
smallest = current
}
return SmallestSearch(slice[:len(slice)-1], smallest)
}
|
import { testName } from '../../support';
import { VirtualMachineData } from '../../types/vm';
import { OS_IMAGES_NS, TEMPLATE } from '../../utils/const/index';
import { ProvisionSource } from '../../utils/const/provisionSource';
import { pvc } from '../../views/pvc';
import { virtualization } from '../../views/virtual... |
export const description = `
queue submit validation tests.
`;
import { TestGroup } from '../../../framework/index.js';
import { ValidationTest } from './validation_test.js';
export const g = new TestGroup(ValidationTest);
g.test('submitting with a mapped buffer is disallowed', async t => {
const buffer = t.devic... |
using Weave
using Test
function pljtest(source, resfile, doctype)
weave("documents/$source", out_path = "documents/plotsjl/$resfile", doctype=doctype)
result = read("documents/plotsjl/$resfile", String)
ref = read("documents/plotsjl/$resfile.ref", String)
@test result == ref
rm("documents/plotsjl/$resfile"... |
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package serialization
import "strconv"
type OrderUpdateType int8
const (
OrderUpdateTypeUNKNOWN OrderUpdateType = 0
OrderUpdateTypeRECEIVED OrderUpdateType = 1
OrderUpdateTypeOPEN OrderUpdateType = 2
OrderUpdateTypeDONE OrderUpdateType = 3
Or... |
package com.github.llmaximll.mystoryismyworld.presentation.settings.view
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView.ViewHold... |
package net.autoreconnect.mixin;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.font.TextRenderer;
import net.minecraft.client.gui.screen.DisconnectedScreen;
import net.minecraft.client.util.Window;
import net.minecraft.client.util.math.MatrixStack;
import org.spongepowered.asm.mixin.Mixin;
i... |
# -*- coding: utf-8 -*-
"""
Copyright (C) 2021 Stefano Gottardo (script.appcast)
Functions to create a new SQLite database
SPDX-License-Identifier: MIT
See LICENSES/MIT.md for more information.
"""
import sqlite3 as sql
import resources.lib.database.db_utils as db_utils
from resources.lib.helpers.logg... |
{-# LANGUAGE CPP #-}
-- !!! Testing Typeable instances
module Main(main) where
import Data.Dynamic
#if MIN_VERSION_base(4,10,0)
import Data.Typeable (TyCon, TypeRep, typeOf)
#endif
import Data.Array
import Data.Array.MArray
import Data.Array.ST
import Data.Array.IO
import Data.Array.Unboxed
import Data.Complex
import... |
"""
`PyPinYin` package to interface with Python's `pypinyin` through `PyCall`.
On loading, three functions are provided as generic functions:
+ pinyin
+ lazypinyin
+ hanzi2pinyin
To find documentation for those functions, one should go into
Julia's `?` REPL mode. README.md also provides many examples.
"""
m... |
/*
Copyright The ORAS 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 agreed to in writing, software
distrib... |
package io.provenance.scope.encryption.util
import java.io.FilterInputStream
import java.io.IOException
import java.io.InputStream
import java.security.MessageDigest
import javax.crypto.BadPaddingException
import javax.crypto.Cipher
import javax.crypto.IllegalBlockSizeException
class HashingCipherInputStream(
inp... |
import {
BatchSpecWorkspaceResolutionState,
WorkspaceResolutionStatusResult,
PreviewBatchSpecWorkspaceFields,
BatchSpecWorkspacesResult,
BatchSpecImportingChangesetsResult,
PreviewBatchSpecImportingChangesetFields,
} from '../../../../graphql-operations'
export const mockWorkspaceResolutionStat... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Text;
namespace Microsoft.MIDebugEngine
{
static public class EngineConstants
{
/// <summ... |
import moment from 'moment';
function formatDateString(date, intl) {
const aYearAgo = moment(new Date()).add(-1, 'y');
const dateText = moment(date).isBefore(aYearAgo)
? moment(date).format(intl.formatMessage({ id: 'dateOverAYear' }))
: moment(date).fromNow();
return dateText;
}
export default {
forma... |
package test.processor;
import org.coffee.ioc.core.processor.Processor;
import test.ser.IHello;
public class A implements Processor{
public Object beforeInit(Object instance) {
if(instance instanceof IHello){
System.out.println("Before");
IHello i = (IHello)instance;
i.say();
}
return null;
}
pub... |
- Feature Name: `prior_art`
- Start Date: 2018-02-12
- RFC PR: [rust-lang/rfcs#2333](https://github.com/rust-lang/rfcs/pull/2333)
- Rust Issue: **self-executing**
# Summary
[summary]: #summary
Adds a *Prior art* section to the RFC template where RFC authors
may discuss the experience of other programming languages an... |
#!/usr/bin/perl -w
use strict;
use Bio::AlignIO;
use File::Spec;
use Getopt::Long;
use List::Util qw(sum);
use Bio::SeqIO;
use constant GAP => '-';
my @distance;
$distance[0] = 0; # n.crassa -> n.crassa
$distance[1] = 1; # n.crassa -> n.tetrasperma (=2/3)
$distance[2] = 2; # n.crassa -> n.discreta (=1/3)
my $Factor... |
# opsmatic::handler
# Installs and configures the Opsmatic report and exception handler
include_recipe 'opsmatic::common'
chef_gem 'chef-handler-opsmatic' do
action :upgrade
version node['opsmatic']['handler_version']
end
require 'chef/handler/opsmatic'
chef_handler 'Chef::Handler::Opsmatic' do
source 'chef... |
// ObjectSecurity_TTest.cs - NUnit Test Cases for ObjectSecurity<T>
//
// Authors:
// James Bellinger (jfb@zer7.com)
#if NET_4_0
using System;
using System.Security.AccessControl;
using System.Security.Principal;
using NUnit.Framework;
namespace MonoTests.System.Security.AccessControl
{
[TestFixture]
public class ... |
/* Hibernate, Relational Persistence for Idiomatic Java
*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.loader.collection.impl;
import org.hibernate.HibernateException;
import org.hibernate.engine.spi.LoadQueryInfluencers;
import org.hiberna... |
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class UserPage extends StatefulWidget {
final String userid;
final String author;
const UserPage({Key key, @required this.userid, @required this.author})
: super(key: key);
@override
_UserPageState createState() => _UserP... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bullet : MonoBehaviour
{
private bool _exploding;
private float _timeToDestroy;
private void Update()
{
if (_exploding)
{
_timeToDestroy -= Time.deltaTime;
if (_timeToDestroy <= 0f)
{
Destroy(gameObject)... |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Aeson (encode)
import qualified Data.ByteString.Lazy as BS
import Data.Foldable (toList)
import qualified Data.Map as Map
import Grammar
main :: IO ()
main = BS.writeFile "output.tmGrammar.json" (encode grammar)
---------------------------------------... |
import 'dart:async';
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:netzpolitik_mobile/extensions/context_ext.dart';
import 'package:netzpolitik_mobile/models/article.dart';
import 'package:netzpolitik_mobile/persiste... |
package io.smallibs.pilin.effect
import io.smallibs.pilin.abstractions.Monad
import io.smallibs.pilin.effect.Effects.Companion.handle
import io.smallibs.pilin.standard.continuation.Continuation.Companion.continuation
import io.smallibs.pilin.standard.continuation.Continuation.Companion.monad
import io.smallibs.pilin.s... |
#!/bin/sh
set -e
#
# LXD images recipe: Composer
#
# Dependencies: curl, php, zsh
#
# Environment variables:
#
# - none
#
installComposer() {
# Check the dependencies
command -v curl > /dev/null || (echo "installComposer recipe requires curl, missing"; exit 1)
command -v php > /dev/null || (echo "installComposer re... |
# Allows for using keyword arguments with Struct instead of order dependent args
#
# Usage:
#
# SomeStruct = KeywordStruct.new(:attribute_one, :attribute_two)
# struct_instance = SomeStruct.new(attribute_one: 'hello', attribute_two: 'world')
module Core
class KeywordStruct < Struct
def initialize(**kwargs)
... |
<?php
// This file is used inside of the router function which
// does not have the $app variable in its scope.
// So we call it here and not in the router function
// mainly to avoid a "Cannot start session when headers already sent" error.
global $app;
// Start the session.
_session_start(
$app['configs']['app... |
using IRTools, Test
using IRTools: Meta, TypedMeta, meta, typed_meta
@generated f(x) = :(x+x)
@test meta(Tuple{typeof(gcd),Int,Int}) isa Meta
@test meta(Tuple{typeof(f),Int}) isa Meta
@test typed_meta(Tuple{typeof(gcd),Int,Int}) isa TypedMeta
@test typed_meta(Tuple{typeof(f),Int}) isa TypedMeta
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Ty... |
/*
* Copyright 2019
* Ubiquitous Knowledge Processing (UKP) Lab and FG Language Technology
* Technische Universität Darmstadt
*
* 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
*
* htt... |
<?php
namespace myfanclub\tests\core\model;
use myfanclub\core\events\MyfcEvent;
class ExampleEvent implements MyfcEvent
{
public static function className()
{
return 'ExampleEvent';
}
public function handle($params = [])
{
return $params[0];
}
}
|
class RemoveAttributesFromTypes < ActiveRecord::Migration
def change
remove_column :types, :origin
remove_column :types, :leaves
remove_column :types, :caffeine
remove_column :types, :pairing
remove_column :types, :brew_time
remove_column :types, :tasting_notes
remove_column :types, :comme... |
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Input;
using Harmony;
namespace WpfUnit
{
/// <summary>
/// </summary>
/// <remarks>
/// Given the singleton nature of the <see cref="Mouse" /> class, you should NOT enable
/// parallel tests for your controls when... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
---
first_name: Peter
full_name: Peter Karman
last_name: Karman
name: pkarman
redirect_from: "/team/pkarman/"
published: true
---
|
// file : libbuild2/dist/rule.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef LIBBUILD2_DIST_RULE_HXX
#define LIBBUILD2_DIST_RULE_HXX
#include <libbuild2/types.hxx>
#include <libbuild2/utility.hxx>
#include <libbuild2/rule.hxx>
#include <libbuild2/action.hxx>
#include <libbuild2/target... |
package com.mass.util;
import java.lang.annotation.*;
/**
* @Auther :huiqiang
* @Description :
* @Date: Create in 下午5:59 2018/5/22 2018
* @Modify:
*/
@Documented
@Inherited
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface NotNull {
String message() default "有字段";
}
|
// constants
const headers = () => {
return {'Content-Type': 'application/json',
Accepts: 'application/json',
Authorization: localStorage.getItem('token') }
};
const signup_headers = {
'Content-Type': 'application/json',
Accepts: 'application/json'
};
const URL_ROOT = 'http://localhost:3001';
const API_ROO... |
var _ = require('lodash'),
http = require('http');
module.exports = require('./component').extend({
buildControllers: function() {
this.initUse();
this.buildModels();
this.buildViews();
var dir = this.cwd + '/controller/';
this.controllers = this.initComponentsFromPath(dir, this.controllers, {
... |
// Package log provides a logger. The logger currently wraps sirupsen/logrus's
// Logger but it could be easily replaced.
package log
import (
"io"
"github.com/sirupsen/logrus"
)
// Logger is used to log error, warning and info messages
type Logger interface {
Error(...interface{})
Errorf(string, ...interface{})... |
import Icon from "@components/@core/icon";
import loadable from "@loadable/component";
import { getIcons } from "@utils/getIcons";
import React from "react";
import IconsPageLoading from "./loading";
export default function IconSetViewer({ icon }) {
const IconSet = loadable.lib(() => getIcons(icon.id));
return (... |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'applied_gift_cards.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$_AppliedGiftCards _$_$_AppliedGiftCardsFromJson(Map<S... |
# == Schema Information
#
# Table name: patient_physiologicals
#
# id :bigint(8) not null, primary key
# patient_id :bigint(8)
# other_diseases :text
# continuing_medication :text
# previous_surgeries :text
# hospitalization :text
# first_menstruation :text... |
use std::sync::mpsc::{Sender, Receiver};
use std::sync::mpsc;
use crate::lib::Solver;
use crate::lib::intcode_computer;
pub(crate) struct Day5Solver {}
impl Solver for Day5Solver {
fn solve(&self, lines: Vec<String>, part_two: bool) -> String {
let orig_program: Vec<i128> = intcode_computer::... |
import 'dart:math';
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
import 'named_image.dart';
import 'painter_presets.dart';
class SpinwheelPainter extends CustomPainter {
/// List of menu options as strings.
final List<dynamic> _items;
final int _itemCount;
/// Boolean that determines whet... |
=head1 LICENSE
Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
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/licen... |
<?php
namespace App\Engines\ParserEngine\Modules\Interface;
use App\Engines\ParserEngine;
use App\Engines\ParserEngine\Parsers\ArchiveParser;
interface XmlInterface
{
public static function parse(ArchiveParser $parser): ParserEngine;
}
|
-- 1.
-- Modify the `fibs` function to only return the first 20 Fibonacci numbers.
fibs :: [Integer]
fibs = 1 : scanl (+) 1 fibs
first20Fibs :: [Integer]
first20Fibs = take 20 fibs
-- 2.
-- Modify `fibs` to return the Fibonacci numbers that are less than 100.
lessThan100Fibs :: [Integer]
lessThan100Fibs = takeWhile (... |
#!/usr/bin/env bash
set -e
if [ -f "${SUBPROJECT}/install.sh" ]; then
(cd "${SUBPROJECT}"; ./install.sh)
else
git clone https://github.com/BNFC/bnfc.git
cd bnfc/source
sudo cabal install --global
fi |
var http = require('http');
var app = require('./app');
app.set('port' process.env.PORT||3000);
var server = http.createServer(app);
}
server.listen(process.env.PORT||3000);
|
// @doc
// https://github.com/artemii235/developer-docs/blob/mm/docs/basic-docs/atomic-swap-dex/dex-api.md#cancel_order
interface CancelOrderType {
uuid: string
};
export default function cancelOrderFactory() {
return {
cancelOrder(params: CancelOrderType) {
const serverparams = Object.assign({}, params... |
#!/bin/sh
set -e
mkdir -p /radium_data/logs
/radium/radium --data-dir /radium_data -b 0.0.0.0:8080 2>/radium_data/logs/stderr.log |
# Have an athletic mindset.
The last play is over.
You can't do anything about it.
Feeling bad about it or replaying it in your head over and over does not help anyone.
Feel bad about it for 60 seconds if you must.
Then, focus on what you can do now.
|
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Concurrent;
using FluentAssertions;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Its... |
import ImperativeBase from './ImperativeBase'
// fallback to experimental CSS transform if browser doesn't have it (fix for Safari 9)
if (typeof document.createElement('div').style.transform == 'undefined') {
if (typeof CSSStyleDeclaration !== 'undefined') {
// doesn't exist in Jest+@skatejs/ssr environmen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.