text stringlengths 27 775k |
|---|
using QIQI.EProjectFile.Expressions;
using QuickGraph;
using System;
using System.Collections.Generic;
namespace QIQI.EplOnCpp.Core.Expressions
{
public abstract class EocExpression
{
public CodeConverter C { get; }
public ProjectConverter P => C.P;
public ILoggerWithContext Logger => ... |
'use strict';
const ensureError = (watchedFn, matcherFn) => {
return new Promise((res, rej) => {
watchedFn()
.then(() => rej(new Error('should have rejected!')))
.catch(err => {
if (matcherFn) matcherFn(err);
res();
})
.catch(rej);
});
};
module.exports = { ensureError ... |
ENSDARG00000092696 FALSE
ENSDARG00000104569 TRUE
ENSDARG00000008472 FALSE
ENSDARG00000058451 FALSE
ENSDARG00000035957 TRUE
ENSDARG00000043514 FALSE
ENSDARG00000058114 TRUE
ENSDARG00000102885 FALSE
ENSDARG00000005451 FALSE
ENSDARG00000058839 FALSE
ENSDARG00000073999 FALSE
ENSDARG00000079611 FALSE
ENSDARG00000042623 FALS... |
package com.superSaller.beans.outsideSupportSys;
import com.superSaller.beans.outsideSupportSys.entities.Customer;
public interface CustomerIO {
public Customer getCustomer(String cusID);
}
|
import { BaseRequest, BaseResponse, BaseConf } from '../base'
export interface ReqAdminAction extends BaseRequest {
}
export interface ResAdminAction extends BaseResponse {
result: string
}
export const conf: BaseConf = {
needLogin: true,
needRoles: ['Admin']
}; |
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BusinessLogic.Models;
using BusinessLogic;
namespace BeauCrumley_p1.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class... |
package my.candyshop.core.usecase.candy.create;
import my.candyshop.core.domain.candy.Ingredient;
import my.candyshop.core.domain.candy.Nutrient;
import my.candyshop.core.domain.candy.Weight;
import lombok.Data;
import java.util.List;
@Data
public class CreateRequest {
private String id;
private String name... |
module TentD
class Authorizer
module AuthCandidate
class App < Base
def read_post?(post)
post == resource
end
def write_post?(post)
post == resource
end
def write_post_id?(entity, public_id, type_uri)
entity == resource.entity && publi... |
#!/usr/bin/ruby -w
# Sample module to be included or extended
module Foo
def initialize
end
def foo
puts 'Called foo'
end
def self.foot
puts 'Called foot'
end
end
# Bar will include Foo
# So the methods defined in Foo become methods in Bar
class Bar
include Foo
def boo
puts 'Called boo'... |
//+build linux
package gosignal
import (
"syscall"
)
func init() {
SIGUSR1 = syscall.SIGUSR1
SIGUSR2 = syscall.SIGUSR2
}
// Kill ...
func Kill(pid int, sig syscall.Signal) error {
return syscall.Kill(pid, sig)
}
|
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:kernel/ast.dart';
import 'package:kernel/core_types.dart' show CoreTypes;
import 'packa... |
/*
* Copyright (c) 2017, Chennakesava Kadapa (c.kadapa@swansea.ac.uk).
* All rights reserved.
* Date: 17-July-2017
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* The author is n... |
export default class Vector {
constructor(i, j) {
this._i = i;
this._j = j;
}
get i() {
return this._i;
}
get j() {
return this._j;
}
set i(value) {
this._i = value;
}
set j(value) {
this._j = value;
}
}
//# sourceMappingURL=vector.... |
using Microsoft.Extensions.Logging;
using OmniSharp.Extensions.LanguageServer.Protocol.Server.Capabilities;
using System.IO;
using System.Text;
namespace DafnyLanguageServer.Commons
{
public static class LanguageServerConfig
{
private static string redirectedStreamFile;
private static string l... |
Note: this project is copyed form http://cesiumjs.org/.
code here is only used for study....
usage:
1. npm install
2. node server.js
3. APP/xxx.html is the core mission files ...
tip:
build directory is too large ,so it is ignored ,the full directory is:
###### 384B Apps
###### 160B Build (ignored)
###### ... |
import 'package:art_platform/models/post.dart';
import 'package:art_platform/models/user.dart';
import 'package:art_platform/screens/home/advertisement_list.dart';
import 'package:art_platform/screens/home/dashboard.dart';
import 'package:art_platform/screens/other/decorations.dart';
import 'package:art_platform/servic... |
use super::*;
pub trait Store {
fn put<T>(&self, id: &str, obj: &T) -> SdaClientStoreResult<()>
where T: ::serde::Serialize + ::serde::Deserialize;
fn get<T>(&self, id: &str) -> SdaClientStoreResult<Option<T>>
where T: ::serde::Serialize + ::serde::Deserialize;
fn put_aliased<T>(&self, a... |
package com.codeviking.kxg.platform
import com.codeviking.kxg.KxgException
import kotlinx.coroutines.experimental.*
import java.io.*
import java.net.URL
import java.util.*
import java.util.concurrent.Executors
class HttpCache private constructor(val cacheDir: File) {
private val cache = mutableMapOf<File, CacheE... |
# A-Simple-System-for-Library-Management
1.Intro
This is my project for JAVA course as a freshman. It is to implement a simple system for library management.
JAVA, IDE: Eclipse
2.Basic implemented functions
(1)Login for administrator/students
(2)Administrator functions
a.Readers management: Insert, edit, p... |
package br.inatel.cdg.algebra.scene;
public class Ponto
{
private float x; // Variável membro que armazena a coordenada x do ponto
private float y; // Variável membro que armazena a coordenada y do ponto
// Construtor
public Ponto(float x, float y) {
this.x = x;
this.y = y;
}
... |
package grasshopper.geocoder.model
import feature.FeatureCollection
case class GeocodeStats(total: Int, parsed: Int, points: Int, census: Int, geocoded: Int, fc: FeatureCollection)
|
use strict;
use warnings;
use Test::More tests => 2;
use Git::CPAN::Patch::Command::Clone;
use File::Temp qw/ tempdir /;
use Git::Repository 'AUTOLOAD';
use Test::MockObject;
my $data = {
name => 'Git-CPAN-Patch',
author => 'YANICK',
date => '2011-03-06T01:... |
package org.adligo.i.adig_tests.shared;
import org.adligo.i.adig.shared.BaseGInvoker;
import org.adligo.i.adig.shared.I_GInvoker;
/**
* this is what a impl should look like
* you should be able to upcast it to I_MockParam I_MockReturn exc;
*
* @author scott
*
*/
public class MockGInvokerWithImpls extends BaseG... |
# SupplyNet
Quick and Dirty System to help Hospitals, etc keep track of who needs supplies and who has them to give
|
package invalid
type Invalid struct {
Err error
}
func (invalid *Invalid) InitResource() error {
return invalid.Err
}
func (invalid *Invalid) MarshalState() (state string, err error) {
return "", invalid.Err
}
|
const m = require("mithril");
const b = require("bss");
const { lensPath, not, over } = require("ramda");
const { button } = require("../util/ui");
const createActions = update => ({
toggle: _event => update(over(lensPath(["active"]), not))
});
exports.createButton = update => {
const actions = createActions(upda... |
#
# Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
# All rights reserved.
#
# $Revision: 1.2 $
# $State: Release_0_09 $
#
package PGP::Armoury;
use strict;
use integer;
use PGP::CRC;
use Stream::IO;
use MIME::Base64;
# Is this needed?
# use FileHandle;
BEGIN {
%PGP::Armoury::types = (
# 'PGP:... |
import 'package:flutter/material.dart';
class TabMeal {
final String name;
double rating;
final double offerPrice;
final String imagePath;
final double originalPrice;
TabMeal({
@required this.name,
@required this.rating,
@required this.offerPrice,
@required this.imagePath,
@required th... |
#!/bin/bash
set -x
cp blank.dsk scott-adams-adventures-disk1.dsk
cp blank.dsk scott-adams-adventures-disk2.dsk
cp blank.dsk scott-adams-adventures-disk3.dsk
cp blank.dsk scott-adams-adventures-disk4.dsk
cp adventur.com dist1/
cp adventur.com dist2/
cp adventur.com dist3/
cp adventur.com dist4/
cpmcp -f adam scott-ada... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Net.Security;
using System.Runtime.Serialization;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using UnityEngine;
using System.Diagnostics;
public class Grapher1 : MonoB... |
class Message < ActiveRecord::Base
attr_accessible :body, :sender_id, :recipient_id
validates :body, presence: true, :allow_blank => false
end
|
require "spec_helper"
describe Traduce::Conjugation do
describe "knows about itself" do
it { is_expected.to_not be_plural }
end
context "with the active present indicative tense" do
let!(:parent_conjugation) {
Traduce::Conjugation.new(voice: :active, tense: :present, mood: :indicative)
}
... |
package command
import (
"fmt"
"strings"
"time"
"github.com/cli/cli/api"
"github.com/cli/cli/internal/ghrepo"
"github.com/cli/cli/utils"
"github.com/spf13/cobra"
)
func init() {
RootCmd.AddCommand(searchCmd)
searchCmd.Flags().IntP("limit", "L", 10, "limit the number of results")
}
var searchCmd = &cobra.Co... |
part of 'widgets.dart';
class BrowseButton extends StatelessWidget {
final String genre;
final Map<String, AssetImage> genreAssets = {
"Action": AssetImage("assets/ic_action.png"),
"War": AssetImage("assets/ic_war.png"),
"Drama": AssetImage("assets/ic_drama.png"),
"Music": AssetImage("assets/ic_mu... |
namespace CotacolApp.Settings
{
public class CotacolApiSettings
{
public string ApiUrl { get; set; }
public string SharedKeyHeaderName { get; set; }
public string SharedKeyValue { get; set; }
public string RedirectDomain { get; set; }
public int RedirectPort { get; set; }... |
USE ksa;
delimiter //
DROP PROCEDURE IF EXISTS insertEmployee;
CREATE PROCEDURE insertEmployee(
IN fullName nvarchar(30),
IN age int,
IN sex nvarchar(15),
IN degree nvarchar(40))
BEGIN
INSERT INTO employee (full_name, age, sex, degree) VALUES (fullName, age, sex, degree);
END
//
DELIMITER ;
CALL insertEmployee('Паве... |
# 62 - [MythX running time](./MythX%20running%20time.md)
MythX Quick scan runs for 5 minutes, Standard scan runs for 30 minutes, and Deep scan runs for 90 minutes.
___
## Slide Screenshot

___
## Slide Text
- Configurable Scans
- Quick: 5 Mi... |
import { expect } from '../../../setup'
/* External Imports */
import { ethers } from 'hardhat'
import { ContractFactory, Contract, constants, Signer } from 'ethers'
import { MockContract, smockit } from '@eth-optimism/smock'
/* Internal Imports */
import {
makeAddressManager,
DUMMY_OVM_TRANSACTIONS,
hashTransa... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#![feature(futures_api)]
mod collection;
mod font_info;
mod font_service;
mod freetype_ffi;
mod manifest;
use self::font_service::FontService;
use failur... |
import React, {
FC,
forwardRef,
ForwardRefRenderFunction,
Ref,
useImperativeHandle,
useRef
} from "react";
import {
StyleSheet,
View,
TextInput,
TouchableOpacity,
Dimensions
} from "react-native";
import IonIcon from "./UI/IonIcon";
type SearchInputProps = {
value?: any;
onChange?: ((text: s... |
import {ActionTimeline} from './ActionTimeline'
import BattleLitany from './BattleLitany'
import BloodOfTheDragon from './BloodOfTheDragon'
import Buffs from './Buffs'
import Combos from './Combos'
import Debuffs from './Debuffs'
import DragonSight from './DragonSight'
import Drift from './Drift'
import LanceCharge fro... |
package com.chrynan.expandable
sealed class ExpandableState(val progress: Float) {
companion object {
const val EXPANDED = 1f
const val COLLAPSED = 0f
}
val isExpanded: Boolean
get() = this == ExpandableState.Expanded
val isCollapsed: Boolean
get() = this == Expandab... |
$(window).scroll(function(){
console.log("gg");
var url = 'gallery.html';
$(location).prop('href', url);
}); |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace EasyWPFUI
{
public class ElementThemeChangedEventArgs : EventArgs
{
public FrameworkElement Element { get; internal set; }
public ElementTheme Th... |
/*
* Licensed to DuraSpace under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* DuraSpace licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file excep... |
/*
* Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
*
* A copy of the MIT License is included in this file.
*
*
* Terms of the MIT... |
class PostMailerTest < ActionMailer::TestCase
def test_invite
post = Post.new
email = PostMailer.notification(Post.new)
assert_emails 1 do
email.deliver_now
end
expected = "<p>\n Hello!\n</p>"
assert_equal expected, email.body.to_s
end
end
|
# SETUP.SH
# Do some build configuration after processing command line
# and user settings file
if (( ${PARALLEL} ))
then
# Auto-configure parallelism based on /proc/cpuinfo
if [[ -f /proc/cpuinfo ]]
then
MAKE_PARALLELISM=$( grep -c "model name" /proc/cpuinfo )
echo "Autodetected build parallelism: $MAK... |
using System.Threading.Tasks;
using GitHub.Primitives;
namespace GitHub.Api
{
/// <summary>
/// Creates <see cref="IGraphQLClient"/>s for querying the GitHub GraphQL API.
/// </summary>
public interface IGraphQLClientFactory
{
/// <summary>
/// Creates a new <see cref="IGraphQLClie... |
# Range 范围选择器
---
范围选择器,允许用户在一个区间中选择特定值
## 使用指南
Taro-UI 版本需要在 `v1.5.0` 以上,在 Taro 文件中引入组件
:::demo
```js
import { AtRange } from 'taro-ui'
```
:::
**组件依赖的样式文件(仅按需引用时需要)**
:::demo
```scss
@import "~taro-ui/dist/style/components/range.scss";
```
:::
## 一般用法
:::demo
```jsx
import Taro from '@tarojs/taro'
import { V... |
class IllustrationHasPhotographers < ActiveRecord::Migration
def change
create_join_table :users, :illustrations, table_name: :illustrations_photographers do |t|
t.index [:user_id, :illustration_id], name: 'photographer_illustration_index'
end
end
end
|
"""
Battery
"""
struct Battery <: Resource
index::Int # Index of the resource
num_timesteps::Int # Number of time-steps in the battery's operation
#==================================================
Battery dynamics
==================================================#
soc_min... |
package com.example.android.trackmysleepquality.sleepquality
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.android.trackmysleepquality.database.SleepDatabaseDao
import com.example.android.trackmysleepquality.database.SleepNight
impo... |
package unfiltered.filter.util
object IteratorConversions {
import org.apache.commons.{fileupload => fu}
import fu.{FileItemIterator, FileItemStream}
import java.util.{Iterator => JIterator}
/** convert java iterator to scala iterator */
implicit final class JIteratorWrapper[A](i: JIterator[A]) extends Iter... |
Capistrano::Configuration.instance(:must_exist).load do
namespace :deploy do
desc "Start application."
task :start, :roles => :app do
run "touch #{current_release}/tmp/restart.txt"
end
desc "Stop application."
task :stop, :roles => :app do
end
desc "Restart application."
task :... |
# #!/bin/bash
# sudo yum install wget -y
# sudo yum install git -y
# sudo yum install unzip -y
# sudo wget --no-check-certificate -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
# sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
# sudo yum upgrade -y
# sudo ... |
export const APP_NAME_HEADER_NAME = 'X-TMT-App-Name'
export const USERNAME_HEADER_NAME = 'X-TMT-Username'
export const USERNAME_PARAM = 'username'
export const APP_NAME_PARAM = 'appName'
export const UNKNOWN_USERNAME = 'unknown'
|
#pragma once
#include <string>
#include <map>
#include <GL/glew.h>
namespace Glitter {
class ModelDatabase {
public:
ModelDatabase() = default;
void loadTexture(std::string filename, unsigned int width, unsigned int height);
GLuint getTextureHandle(std::string filename);
private:
std::map<std::string, GLuint... |
package tools.forma.android.dependencies
import dep
import deps
import Forma
object versions {
object jetbrains {
const val annotations = "20.0.0"
}
}
object jetbrains {
val annotations
= "org.jetbrains:annotations:${versions.jetbrains.annotations}".dep
}
object kotlin {
val stdl... |
use core::result::Result;
use ckb_std::error::SysError as Error;
use crate::{check_args_len, decode_u128, decode_u64, decode_u8};
const LIQUIDITY_REQUEST_ARGS_LEN: usize = 137;
const MINT_LIQUIDITY_ARGS_LEN: usize = 97;
const SWAP_REQUEST_ARGS_LEN: usize = 105;
const INFO_CELL_DATA_LEN: usize = 80;
const SUDT_AMOUNT... |
# being nil, the rabbitmq defaults will be used
default['rabbitmq']['nodename'] = nil
default['rabbitmq']['address'] = nil
default['rabbitmq']['port'] = nil
default['rabbitmq']['config'] = nil
default['rabbitmq']['logdir'] = nil
default['rabbitmq']['mnesiadir'] = nil
# RabbitMQ version to install for "redhat", "cen... |
const Map<String, String> en = {
'my_cpu': 'My CPU',
'dummyPage': 'Dummy Page',
'device': 'Device',
};
|
package com.mctech.showcase.feature.flicker_domain.error
object NetworkException : RuntimeException("It was not possible to reach the server at the moment.") |
/** \file
* \brief Implements class BiconnectedShellingOrder which computes
* a shelling order for a biconnected planar graph.
*
* \author Carsten Gutwenger
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.txt in the root directory of... |
---
layout: post
title: 股票交易
subtitle: "\"汤臣倍健和等股票交易\""
date: 2017-11-28
author: Cosmo-Ma
header-img: img/post-bg-2015.jpg
catalog: true
tags:
- 股票
---
> “🙉🙉🙉 ”
## 正文
2017汤成倍健交易分析
买入原因:
业绩比较好:
营业收入:12.20%->20.60%->22.84%
净利润:25.78%->62.12%->41.37%
每股收益:-38.71%->60%->41.03%
净资产收益率:21.78%... |
using System;
using System.Doors;
namespace System.Doors.Data.Depot
{
public interface IDepotSocketEars : IDisposable
{
DepotIdentity Identity { get; set; }
IDorsEvent HeaderReceived { get; set; }
IDorsEvent MessageReceived { get; set; }
IDorsEvent HeaderSent { get; set; }
... |
//source:
library render.less;
import '../contexts.dart';
import '../environment/environment.dart';
import '../import_manager.dart';
import '../less_error.dart';
import '../less_options.dart';
import '../plugins/plugins.dart';
import '../sourcemap/sourcemap.dart';
import '../tree/tree.dart';
import '../visitor/visito... |
var storage = new LocalStorage();
storage.get("config").then(function checkDefaultValues(result) {
if(result.config) return;
storage.set("config", {
"templates-repo-uri": "http://163.10.5.42:3000/api/Templates"
});
}); |
module PageObjectModel
class AboutThisBookPage < PageObjectModel::Page
attr_accessor :book_label_text, :about_this_book_title, :about_this_book_author
trait "android.widget.TextView text:'About this book'"
element :book_cover, "* id:'bookcover'"
element :book_title, "* id:'textview_title'"
eleme... |
package nl.surf.dex.storage.owncloud
import cats.data.Kleisli
import cats.effect.{ContextShift, IO, Resource}
import cats.implicits._
import io.chrisdavenport.log4cats.slf4j.Slf4jLogger
import io.circe.Json
import io.circe.generic.auto._
import nl.surf.dex.storage.owncloud.config.DexResearchDriveConf
import nl.surf.de... |
import { ChangeDetectionStrategy, Component, OnInit, EventEmitter, Output } from '@angular/core';
@Component({
selector: 'app-install',
templateUrl: './install.component.html',
styleUrls: ['./install.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class InstallComponent impl... |
require 'spec_helper'
describe MeiliSearch::Configuration do
let(:configuration) do
{
meilisearch_host: 'http://localhost:7700',
meilisearch_api_key: 's3cr3tap1k3y'
}
end
describe '.client' do
let(:client_double) { double MeiliSearch::Client }
before do
allow(MeiliSearch).to r... |
/// <reference path="D.d.ts" />
/// <reference path="B.d.ts" />
/// <reference path="K.d.ts" />
import module_bi0 = require("./bi")
import module_bd1 = require("./bd")
import module_cl2 = require("./cl")
import module_cw3 = require("./cw")
import module_cu4 = require("./cu")
import module_ck5 = require("./ck")
import m... |
var path = require('path')
var utils = require('./utils')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var env = config.build.env
var webpackConfig = merge(baseWebpackConfig, {
devtool: config.build.pro... |
#include "damage_effect.hpp"
damage_effect::damage_effect(int damage, unsigned int count):
effect(),
m_damage(damage),
m_count(count)
{
}
damage_effect::damage_effect(const damage_effect& e): effect(e)
{
m_damage = e.m_damage;
m_count = e.m_count;
}
damage_effect::damage_effect(damage_effect&& e... |
package gcloud.scala.pubsub.testkit
import java.util.concurrent.TimeUnit
import com.google.api.gax.core.NoCredentialsProvider
import gcloud.scala.pubsub._
import org.scalatest.concurrent.{Eventually, ScalaFutures}
import org.scalatest.{Matchers, WordSpec}
import scala.collection.mutable.ArrayBuffer
import scala.conc... |
package com.prush.justanotherplayer.repositories
import android.content.Context
import com.prush.justanotherplayer.model.Genre
interface IGenreRepository {
suspend fun getAllGenres(context: Context): MutableList<Genre>
suspend fun getGenreById(context: Context, genreId: Long): Genre
} |
import random
class game_obj(object):
def __init__(self, x, y, pic_path):
"""
:param int x: inital x position of object
:param int y: inital y position of object
:param str pic_path: relative path of object picture
"""
self.x = x
self.y = y
... |
import getLocalizedWeekday from './getLocalizedWeekday'
const NUM_WEEKDAYS = 7
/**
*
* @author Sandy Lau https://github.com/sandylau333
*
* @param locale The locale code or an array of locale codes
* @param format
* @category dateTime
* @module getLocalizedWeekdays
* @category dateTime
* @module getLocalizedW... |
/*global define */
define(["jquery",
'underscore',
"text!app/template/game/lieu/map.html",
"app/model/game/ui/mouseModel",
"app/model/game/ui/cameraModel",
"app/view/game/lieu/terrainView",
"app/view/game/player/playerView",
"app/model/game/server/refreshM... |
/**
* Created by dcl on 2017/10/9 0009.
*/
function test( name:string, age:number ):string{
return `${name}:${age}`;
}
test( "dingchaolin", 45 ); |
import Control.Concurrent
import System.IO
delay = 1000000
seconds = 80
message = "\rWe're back from school: "
formatTimer :: (Int, Int) -> String
formatTimer (x, y) = insertZeroIfNeeded(x)++":"++insertZeroIfNeeded(y)
insertZeroIfNeeded :: Int -> String
insertZeroIfNeeded x
| elem x [0..9] = '0' : (show x)
|... |
import { createElement } from 'preact';
import { useEffect, useRef } from 'preact/hooks';
import propTypes from 'prop-types';
import classNames from 'classnames';
import Button from './Button';
import useElementShouldClose from '../common/use-element-should-close';
import { zIndexScale } from '../utils/style';
import ... |
#!/bin/sh
# Simple health check for the a running openvpn process
if [ $(pgrep openvpn) ]; then
exit 0
else
exit 1
fi
|
SUBROUTINE OPA_SIGNAL_GRID
& (lu_lwf,lu_grd,print_grd,
& prgm_id,prfl_id,
& area_id,xlat1,xlon1,xlat2,xlon2,
& freq,power,ralt,stndev,
& mxpath,nrpath,bearing,rhomax,rxlat,rxlon,
& mxprm,nrprm,param,
& mxpts,nr... |
---
name: Cause
github_url: https://github.com/CloudCannon/cause-jekyll-template
branch: master
---
|
package com.akinci.gymbercompose.ui.main.navigation
/**
* For parametered navigation define create route function.
* **/
sealed class Navigation(val route: String){
object Splash: Navigation("splash")
object Dashboard: Navigation("dashboard")
object Detail: Navigation("detail")
open fun createRoute... |
//@ts-ignore
import {LocalStorage} from 'node-localstorage'
import * as path from 'path'
import * as os from 'os'
import {random} from './readable-ids'
const homeFolder = os.homedir()
const localStorage = new LocalStorage(path.join(homeFolder, '.opticrc'))
interface ICLIUser {
user_id: string
doNotTrack: boolean
... |
using System.Threading;
using System.Threading.Tasks;
using API.Client;
using DLCS.HydraModel;
using MediatR;
namespace Portal.Features.Spaces.Requests
{
public class GetImage : IRequest<Image>
{
public int SpaceId { get; set; }
public string ImageId { get; set; }
}
public class Ge... |
const crypto = require('crypto')
const bcrypt = require('bcrypt')
const knex = require('./dbConnection')
const algorithm = 'aes-256-cbc';
const keySize = 32;
async function encrypt(text, password) {
try {
text = text.trim()
password = password.trim()
const salt = crypto.randomBytes(32);
... |
for (( i = 0 ; i < 8; i++ ))
do
echo "Scanning spark # $i..."
./linescan -f ../output/Mar21/cru3d_grid -i $i -n 26 || break
done
|
USE dolphins;
-- Basics
INSERT INTO Districtings (`ID`, `jobID`, `targetDemographic`, `districtingIndex`)
VALUES (4, null, null, 0);
INSERT INTO States (`ID`, `name`, `shape`, `canonicalDistrictingID`)
VALUES (111, 'Dummy', null, 4);
INSERT INTO Counties (`ID`, `name`, `stateID`, `shape`)
VALUES (101, 'DU-1', 111, n... |
package querio
import scala.annotation.Annotation
case class VendorType private[querio]()
object Mysql extends VendorType
object Postgres extends VendorType
/** Marker annotation. Used to denote list of supported vendors for this method */
class support(vendors: VendorType*) extends Annotation
|
/*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.types
import com.intellij.lang.annotation.Annotation
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.HighlightSeverity
import com.intellij.psi.... |
<?php
// Load Composer's autoloader
require 'autoload.php';
function newpdf($value='')
{
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML($value);
$mpdf->Output();
}
|
CREATE TABLE users (
id SERIAL NOT NULL,
created_at timestamp NOT NULL,
updated_at timestamp NOT NULL,
username varchar(100) UNIQUE NOT NULL,
password varchar(100) NOT NULL,
PRIMARY KEY (id)
);
|
/**
* Simple GraphQL query builder.
* @param chunks
* @param variables
* @returns
*/
export function gql (chunks: TemplateStringsArray, ...variables: any[]): string {
return chunks.reduce(
(accumulator, chunk, index) => `${accumulator}${chunk}${index in variables ? variables[index] : ''}`,
''
)
} |
import expect from 'expect'
import { shallow } from 'enzyme'
import React from 'react'
import { SearchBar } from '../../src/components/SearchBar'
describe('<SearchBar />', () => {
let props
beforeEach(() => {
props = {
value: 'A text',
onChange: undefined,
}
})
it('should render correctly... |
import React from 'react'
import { ThemeComponentInterface } from '@redesign-system/theme'
export interface TextboxInterface extends ThemeComponentInterface {
children?: React.ReactNode
disabled?: boolean
id: string
invalid?: boolean
name?: string
label: string
onBlur?: (e: React.SyntheticEvent<EventTar... |
# Resource breakdown structure
- Project
- Personnel
- Role 1
- Level 1
- Level 2
- Role 2
- Role 3
- Material
- Material 1
- Material 2
- Grade
- Equipment
- Equipment 1
- Equipment 2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.