text stringlengths 27 775k |
|---|
import { Contract } from '../contract'
export type AssetPredefined = 'usd' | 'eur' | 'gold' | 'eos' | 'liborodollar' | 'liboropoints'
export type AssetType = AssetPredefined | string
export type WalletType = {
id: string,
assets: {
[A in AssetType]?: number
}
}
export type ContractType = {
id: string,
... |
package main
import "imgo/libs/define"
// developer could implement "Auth" interface for decide how get userId, or roomId
type Auther interface {
Auth(token string) (AuthRes, error)
}
type AuthRes struct {
Uid int64
RoomId int32
}
type DefaultAuther struct {
}
func NewDefaultAuther() *DefaultAuther {
return... |
# image-worker
## description
Quickly get the dimensions and base64 url of an image file without blocking the UI (additional features coming later).
## installation
#### recommended
```
npm install --save-dev image-worker
```
#### old school
```
<script type="text/javascript" src="dist/image-processor-worker.js">... |
require 'rails_helper'
RSpec.describe Message, type: :model do
describe 'validates message' do
context "When all fields are given" do
let(:message) { build(:message)}
it "creates message if all fileds are filled" do
expect(message).to be_valid
end
end
context "When fileds... |
---
title: "Three papers submitted as a <b>first author</b> to The ACM CHI 2019"
collection: publications
permalink: /publication/2019-05-04-three-papers
date: 2019-05-04
venue: 'The ACM CHI Conference on Human Factors in Computing Systems 2019'
---
|
export const PLAY = 'PLAY';
export const PAUSE = 'PAUSE';
export const UPDATE_CURRENT_TIME = 'UPDATE_CURRENT_TIME';
export const UPDATE_BUFFERED = 'UPDATE_BUFFERED';
export const UPDATE_DURATION = 'UPDATE_DURATION';
export const UPDATE_TIME = 'UPDATE_TIME';
export const HYDRATE_SESSIONS = 'HYDRATE_SESSIONS';
export... |
import React from 'react';
import "../css/mycard.css"
import Grid from '@material-ui/core/Grid';
function MyCard(projectDetails){
return(
<div class="column mycard">
<img class="card-image" src={require("../assets/img/project-images/"+projectDetails.imageName)}></img>
<p class="... |
# utopia-service
======
New Utopia Framework slimmed down specifically designed for
RESTFul services. Designed to be used within Utopia Wrapper
|
cd lambda-auth
zip -r ../lambda-auth.zip *
cd ..
aws lambda update-function-code --function-name my-react --zip-file fileb://lambda-auth.zip
rm lambda-auth.zip
|
import puppeteer from 'puppeteer';
import { parseDomain, fromUrl, ParseResultType } from 'parse-domain';
import { performance } from 'perf_hooks';
import isUrl from 'is-url';
import ms from 'ms';
interface IEmailCrawler {
queries: string[];
urlsPerQuery: number;
}
class EmailCrawler {
private queries: string[];... |
///*
// * Copyright (c) 2019 Naman Dwivedi.
// *
// * Licensed under the GNU General Public License v3
// *
// * This is free software: you can redistribute it and/or modify it
// * under the terms of the GNU General Public License as published by
// * the Free Software Foundation, either version 3 of the License, or (... |
// "WaveVR SDK
// © 2017 HTC Corporation. All Rights Reserved.
//
// Unless otherwise required by copyright law and practice,
// upon the execution of HTC SDK license agreement,
// HTC grants you access to and use of the WaveVR SDK(s).
// You shall fully comply with all of HTC’s SDK license agreement terms and
// con... |
// Copyright (c) 2012 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.
#ifndef CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_
#define CHROME_BROWSER_SESSIONS_TAB_RESTORE_SERVICE_DELEGATE_H_
#include <string>
#in... |
# == Schema Information
#
# Table name: chores
#
# id :bigint(8) not null, primary key
# description :string not null
# frequency :integer not null
# frequency_type :integer default("days"), not null
# last_performed :datetime
# perform_next :datetime
# cr... |
{-# LANGUAGE OverloadedStrings #-}
module Day03.Main where
import Data.List ( foldl'
, find
)
import Data.Text ( Text )
import qualified Data.Text ... |
let data;
let pollutionMap;
const mappa = new Mappa();
let canvas;
let smokeInTheWorld;
const options = {
lat: 0,
lng: 0,
zoom: 0.5,
width: 640,
height: 580,
}
function preload() {
data = loadTable("assets/data/co2_emissions.csv", "csv", "headers");
}
function setup() {
canvas = createCanvas(640, 580).p... |
#region Copyright notice
//===================================================================================
//
//===================================================================================
#endregion
#region Using Directives
using System;
using System.Collections.Generic;
using System.Text;
using System.Da... |
package br.com.devsrsouza.mcheads.common
enum class HeadCategory {
ALPHABET,
ANIMALS,
BLOCKS,
DECORATION,
FOOD_AND_DRINKS,
HUMANS,
HUMANOID,
MISCELLANEOUS,
MONSTERS,
PLANTS
} |
import {AfterViewInit, Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {MAT_DATE_FORMATS} from "@angular/material/core";
import {MatDatepickerInputEvent} from "@angular/material/datepicker";
import moment, {Moment} from "moment";
import {FormControl} from "@angular/forms";
import {debounce}... |
<?php
/**
* Created by PhpStorm.
* User: tangchunlin
* Date: 2018/9/26
* Time: 11:30 PM
*/
namespace bootstrap;
class app
{
/**
* @var array
*/
public static $classMap = [];
/**
* @throws \Exception
*/
public static function run() {
\core\lib\log::init();
//\c... |
# Any requests that continue for x seconds will be terminated and
# a stack trace output to the logs. The stack trace should help to
# determine what part of the application is causing the timeout.
Rack::Timeout.timeout = 15 # seconds
|
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// IL2C - A translator for ECMA-335 CIL/MSIL to C language.
// Copyright (c) 2016-2019 Kouji Matsui (@kozy_kekyo, @kekyo2)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this f... |
/**
* @author <a href="mailto:eni@edu.hse.ru"> Eduard Ni</a>
*/
package lib.helpers
/**
* Класс для хранения информации о битах режима.
*/
internal data class RegimeInfo(
val regimeLen: Int,
val regimeK: Int,
val regimeBits: ULong
)
/**
* Класс для хранения информации о битах экспоненты.
*/
internal... |
# EVTCLI
The CLI is an application developed using the gateway framework to display
the current stats and variables of the EVTCAN CAN bus.

## How to Run
To run on virtual interfaces execute the following in the evtcli directory
```
gateway start
```
to run on physical can interfaces aka, the ... |
# PHP Projekt mit Symfony
Umsetzung von diversen Tools mit Symonfy.
-> ViteJs
-> PHP Symfony
-> SASS
-> Twig
-> Mail
-> JSON
-> Logger
## Vernetze dich:
## License
[MIT](LICENSE)
|
<table width=98%>
<tr>
<td>
<table style="float:right;">
<tr>
<td>
<ul class="pureCssMenu pureCssMenum">
<li class="pureCssMenui"><a class="pureCssMenui" href="http://madsac.in/">Home</a></li>
... |
package org.humancellatlas.ingest.state;
/**
* Javadocs go here!
*
* @author Tony Burdett
* @date 29/11/17
*/
public class MetadataDocumentInfo {
public static final String ENVELOPE_UUID = "ENVELOPE_UUID";
public static final String DOCUMENT_ID = "DOCUMENT_ID";
public static final String DOCUMENT_STAT... |
(function(){
function pop () {
$('#corpsename').html("Demo");
$('#instructions').html("do Different things");
$('#corpsecount').html("3");
$('#corpsenum').html("5");
$('#global').html("number");
}
$.get("/username", function(data, status){
if (status === "success"){
... |
<?php
return [
'programs.view-any' => 'عرض كل البرامج',
'programs.view' => 'عرض البرنامج',
'programs.create' => ' جديدإضافة برنامج',
'programs.update' => 'التعديل على البرامج',
'programs.delete' => 'حذف برنامج',
'patients.view-any' => 'عرض كل المستخدمين',
'patients.view' => 'عرض مستخدم معي... |
# Collect user feedback
#
class DownloadSpecificationForm < Form
# @!attribute [r] choice
# @return [String]
option :finished, Types::ConfirmationField | Types::Nil, default: proc { nil }
end
|
using System.Collections.Generic;
namespace Engine.Data
{
public class BattleContext
{
/// <summary>
/// ОД у нашего игрока
/// </summary>
public int CurrentCharacterAP { get; set; } = 0;
/// <summary>
/// Индекс группы текущего хода
/// </summary>
... |
<?php
namespace App\Policies;
use App\Models\Applicant;
use App\Models\User;
use App\Models\Degree;
use App\Policies\BasePolicy;
class DegreePolicy extends BasePolicy
{
/**
* Determine whether the user can view the degree.
*
* @param \App\Models\User $user
* @param \App\Models\Degree $de... |
const tempCandidateCss = `
:host {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
display: block;
}
slot {
display: block;
}
`;
interface TempNodeOptions {
className?: string;
slot?: string;
style?: string;
attributes?: Record<string, st... |
# php-express
A pipeline framework use express.js api and reactphp framework for php
# example
```php
$app = Express::Application();
$app->get('/', function(Request $req, Response $res){
return $res->send('Hello World');
});
$app->listen(8080);
```
# example 2 sub router
```php
$app = Expre... |
class CheckboxListTileModel {
String title;
bool value;
CheckboxListTileModel({this.title, this.value = false});
}
|
package ability.co.mz.nahuexample
import ability.co.mz.nahu.handlePermissionsResult
import ability.co.mz.nahu.requestNahuPermissions
import android.Manifest
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import and... |
require "decoplan/algorithm/buhlmann"
require "decoplan/dive_profile"
RSpec.describe Decoplan::Algorithm::Buhlmann do
it "after 8 half times on 32% the first compartment is nearly saturated" do
dive_profile = Decoplan::DiveProfile.new
dive_profile.level(depth: 4.0, time: 4 * 8)
buhlmann = Decoplan::Algo... |
package controller
import (
"github.com/fatelei/juzimiaohui-webhook/pkg/dao"
"github.com/fatelei/juzimiaohui-webhook/pkg/model"
)
type NotificationController interface {
CreateNotification(message *model.WechatMessage)
CreateWechatDeathNoti()
SendRecentMessagesCard(chatID string, messages []*dao.WechatMessage)
}... |
import React, { PropTypes, Component } from 'react';
import M from '../_common/M';
import NumberColored from '../_common/NumberColored';
import shouldPureComponentUpdate from 'react-pure-render/function';
export default class PayoutCard extends Component {
shouldComponentUpdate = shouldPureComponentUpdate;
sta... |
#!/bin/bash
GIT_FILES_ADDED=$(git status --porcelain | grep -c "^A ")
GIT_FILES_STAGED_MODIFIED=$(git status --porcelain | grep -c "^M ")
GIT_FILES_STAGED_NOT_MODIFIED=$(git status --porcelain | grep -c "^ M")
GIT_FILES_UNTRACKED=$(git status --porcelain | grep -c "^?? ")
GIT_TOTAL_DIRTY_FILES=$((GIT_FILES_ADDED+GIT_F... |
import 'dart:async';
import 'dart:io';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
// import 'package:image_picker/image_picker.dart';
import 'package:mobilelabelimg/entity/imageObjs.dart';
import 'package:mobilelabelimg/widgets/rect.dart';
import 'package:path_provider/path_provider.da... |
":" /*
rm -f "$HOME/electron.log"
rm -f /tmp/electron.done
for vv in \
v0.24 \
v0.25 \
v0.26 \
v0.27 \
v0.28 \
v0.29 \
v0.30 \
v0.31 \
v0.32 \
v0.33 \
v0.34 \
v0.35 \
v0.36 \
v0.37 \
v1.0 \
v1.1 \
v1.2 \
v1.3 \
v1.4 \
v1.5 \
v1.6 \
... |
part of '../module.dart';
// MV详情
Handler mv_detail = (query, cookie) {
final data = {'id': query['mvid']};
return request('POST', 'https://music.163.com/weapi/mv/detail', data,
crypto: Crypto.weapi, cookies: cookie);
};
// 最新MV
Handler mv_first = (query, cookie) {
final data = {
'limit': query['limit... |
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "ApplicationBellMeditationTimer.hpp"
#include "SessionEndWindow.hpp"
namespace gui
{
SessionEndWindow::SessionEndWindow(
app::ApplicationCommon *app,
std:... |
package lspace.services.rest.endpoints
import cats.effect.IO
import io.finch.Endpoint
import lspace._
import lspace.codec.ContextedT
import lspace.librarian.traversal.Collection
trait SparqlApi extends ExecutionApi {
def query: Endpoint[IO, _root_.fs2.Stream[IO, ContextedT[Collection[Any, ClassType[Any]]]]] = ???
... |
require 'dnssd'
Thread.abort_on_exception = true
trap 'INT' do exit end
trap 'TERM' do exit end
DNSSD.browse! '_ssh._tcp.' do |reply|
p reply.fullname
p reply.name
end
|
import 'dart:convert';
import 'package:flutter/services.dart';
import 'package:flutter_academy/model/course.dart';
Future<List<Course>> getCourses() async {
final courses = rootBundle.loadStructuredData<List<Course>>(
'asset/data/courses.json',
(value) => jsonDecode(value).map((course) => Course.fromMap(... |
package com.fingolfintek.bot.handler
import com.fingolfintek.swgohgg.guild.GuildChannelRepository
import com.fingolfintek.swgohgg.player.PlayerCollection
import com.fingolfintek.teams.Teams
import com.fingolfintek.util.createCell
import com.fingolfintek.util.wrappableTextStyle
import io.vavr.Tuple
import io.vavr.Tuple... |
/*
* Copyright (C) CoSMo Software Consulting Pte. Ltd. - All Rights Reserved
*/
package io.cosmosoftware.kite.report;
import static io.cosmosoftware.kite.report.CSVHelper.jsonToString;
import static io.cosmosoftware.kite.util.ReportUtils.getStackTrace;
import static io.cosmosoftware.kite.util.ReportUtils.timestamp;... |
procedure TUL_Form.BtnFileClick(Sender: TObject);
begin
If OpenDlg.Execute Then Begin
TxtFile.Text := OpenDlg.FileName;
End;
end;
procedure TUL_Form.BtnImportClick(Sender: TObject);
begin
ImportAscIIData(TxtFile.Text);
Close;
end;
|
; Assembly for hurkle.bas
; compiled with mcbasic -native
; Equates for MC-10 MICROCOLOR BASIC 1.0
;
; Direct page equates
DP_LNUM .equ $E2 ; current line in BASIC
DP_TABW .equ $E4 ; current tab width on console
DP_LPOS .equ $E6 ; current line position on console
DP_LWID .equ $E7 ; current line width of console
;
; ... |
# jQuery-dw_paging
前端jquery分页插件,只需后端传一个参数.
##API
###dw_paging(max,len,pream);
`max`:最大页数(总页数) 唯一需要后端传的一个参数: 总页数. 就是 sum/size 数.
`len`:分页菜单的长度.默认为10;
`pream`url?后面的判定的参数,默认为page=
##例:
```html
<html>
<head>
<style>
.dw_pading , .dw_paging_body{line-height: 30px;height: 30px; font-size:20px;float: left;}
... |
import './access_config';
import './emergency_plans';
import './global_help';
import './global_search';
import './loading';
import './map';
import './map_icon';
import './object_configs';
import './send_signals';
import './organizations';
import './smart_zoom';
import './statistics';
import './tab_state';
import './typ... |
use std::marker::PhantomData;
use specs::{Join, System, WriteExpect, WriteStorage};
use crate::{bodies::PhysicsBody, pose::Pose};
use nalgebra::RealField;
use nphysics::object::DefaultBodySet;
/// The `SyncBodiesFromPhysicsSystem` synchronised the updated position of
/// the `RigidBody`s in the nphysics `World` with... |
#!/bin/bash
HOST_CMD="cmd /c calc.exe && echo T1023 > C:\\t1023.txt && whoami >> C:\\t1023.txt && date /t C:\\t1023.txt && time /t >> C:\\t1023.txt"
case $1 in
"x86"*)
`msfvenom -p windows/exec CMD="${HOST_CMD}" -f exe -o t1023_x86.exe`
;;
"x64"*)
`msfvenom -p windows/x64/exec CMD="${HOST_CMD}" -f exe -o t1023_... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Driver;
namespace mat_process_api.V1.Infrastructure
{
public interface IMatDbContext
{
IMongoCollection<BsonDocument> matProcessCollection { get; set; }
IMongoColl... |
#!/bin/sh
db=test.db
rm -f $db
echo 'create table foo(id int primary key not null, blah char(50) not null);' | sqlite3 $db
echo 'insert into foo values (1, "hello");' | sqlite3 $db
echo 'insert into foo values (2, "world");' | sqlite3 $db
value=$(echo 'select blah from foo where id=2;' | sqlite3 $db)
rm -f $db
i... |
package com.shuyu.github.kotlin.repository
import android.app.Application
import android.content.Context
import com.shuyu.github.kotlin.common.config.AppConfig
import com.shuyu.github.kotlin.common.net.*
import com.shuyu.github.kotlin.common.utils.Debuger
import com.shuyu.github.kotlin.common.utils.GSYPreference
impor... |
module Magan
# depth computation (see also rule_nodes.rb)
# default = 0
# before every try(), depth += 1
# after try(), depth -= 1
# max_depth is computed by iterating nodes of or/?/*/+
#
# var_id used in assign / acc:
# depth * vars_size + var_id
#
# NOTE rewriting in C nearly no improvem... |
! $UWHPSC/codes/openmp/demo2
program demo2
use omp_lib
implicit none
integer :: i
integer, parameter :: n = 100000
real(kind=8), dimension(n) :: x,y,z
! Specify number of threads to use:
!$ call omp_set_num_threads(2)
!$omp parallel ! spawn two threads
!$omp sections ! split up w... |
package hulk.routing
import hulk.http.Action
/**
* Created by reweber on 18/12/2015
*/
trait Router {
def router: Map[RouteDef, Action]
}
|
import React from 'react';
const reducer = (state: boolean, action: null): boolean => !state;
export const useForceUpdate = () => {
const [, dispatch] = React.useReducer(reducer, true);
// Turn dispatch(required_parameter) into dispatch().
return React.useCallback(() => {
dispatch(null);
}, [dispatch]);
... |
import 'package:ajudancia_total/modelos/usuario.dart';
import 'package:ajudancia_total/repositorios/user_repository.dart';
import 'package:mobx/mobx.dart';
import 'package:ajudancia_total/helpers/extensions.dart';
part 'criar_login_store.g.dart';
class CriarLoginStore = _CriarLoginStore with _$CriarLoginStore;
abstr... |
# The Hazard Library
# Copyright (C) 2012-2018 GEM Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#... |
module PhoneWrangler
class PhoneNumber
NUMBER_PARTS = [:area_code, :prefix, :number, :extension]
attr_accessor :area_code, :prefix, :number, :extension
attr_reader :original
unless defined? @@default_area_code
@@default_area_code = nil
end
def self.default_area_code
@@default_... |
---
layout: tag
tag: drupal
permalink: /tag/drupal/
--- |
export interface AngularComponent {
destroy(): void;
digest(): void;
getScope(): any;
}
export interface AngularLoader {
load(elem: any, scopeProps: any, template: string): AngularComponent;
}
let instance: AngularLoader;
export function setAngularLoader(v: AngularLoader) {
instance = v;
}
export function... |
use crate::command::config::*;
use clap::Parser;
#[derive(Parser, Debug)]
#[clap(
name = "harvest",
about = "A CLI for the Harvest API",
author = "Matti Virkkunen"
)]
pub enum Module {
Config(Config),
Sync,
Log,
}
/*
#[derive(Debug, StructOpt)]
struct Log {
#[structopt(subcommand)]
meth... |
namespace Simple.Data.Ado
{
public interface ISchemaConnectionProvider : IConnectionProvider
{
void SetSchema(string schema);
string Schema { get; }
string ConnectionProviderKey { get; }
}
}
|
require('./../main.js').server(
function(term, from, current_amount, done) {
term.unpack((command, argument) => {
switch (command.toString()) {
case "get": return done("reply", current_amount);
case "add": return done("noreply", current_amount + argument);
case "rem": return done("no... |
pub mod context;
pub mod declaration;
pub mod expression;
pub mod ident;
pub mod model;
pub mod query;
pub mod sort;
pub use context::*;
pub use declaration::{
Declarations, FunctionDeclaration, LabelDeclaration, UninterpretedSortDeclaration,
VariableDeclaration,
};
pub use expression::{
BinaryOperation, B... |
=head1 LICENSE
See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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/l... |
from brownie import accounts
def test_aprove_event(foo, accounts):
tx = foo.approve(accounts[2], 300, {"from": accounts[1]})
assert "Approval" in tx.events
expected = {"owner": accounts[1], "spender": accounts[2], "value": 300}
assert tx.events["Approval"] == expected
def test_transfer_event(foo, ac... |
/* https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#repositories */
/* http://docs.spring.io/spring-data/data-jpa/docs/current/reference/html/#repositories.single-repository-behaviour */
package com.repository;
import java.util.List;
import com.domain.Contact;
import org.springframework.data.repos... |
export * from './icons'
export { default } from './components/CustomIcon'
export { default as createFromIconfontCN } from './components/IconFont'
|
package controllers.common;
/**
* Error message for Api.
*/
public final class ErrorMessage {
/**
* Error message.
*/
private String errMsg;
/**
* Custom message.
*/
private String ctmMsg;
public ErrorMessage() {
this(null);
}
public ErrorMessage(String errM... |
import java.io.*;
import java.util.*;
public class lamps {
static boolean[] lit;
static ArrayList<Integer> on = new ArrayList<Integer>(), off = new ArrayList<Integer>();
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new FileReader("lamps.in"));
int n = Inte... |
import * as Config from "./config"
import * as Tasks from "./tasks"
import * as Init from "./init"
import { Mode } from "./spawn"
import { println } from "./logger"
export async function listTasks(cwd: string) {
let config = await Config.getConfig(cwd)
println("")
println("{bold Available tasks:}")
println("")
fo... |
require 'rails_helper'
RSpec.feature 'Staff can view a report for a scheme' do
before(:each) do
stub_authenticated_session
end
let(:scheme) { create(:scheme, created_at: 5.days.ago) }
let(:priority) { create(:priority, scheme: scheme) }
let(:property) { create(:property, scheme: scheme) }
let(:communa... |
# Canadian Amateur Radio Exam Preparation
Multiple choice questions for the HAM radio exam.
|
(ns flow-editor.runner
(:require [doo.runner :refer-macros [doo-tests]]
[flow-editor.core-test]))
(doo-tests 'flow-editor.core-test)
|
package com.polidea.rxandroidble.internal.connection;
import bleshadow.dagger.internal.Factory;
import bleshadow.javax.inject.Provider;
public final class LoggingIllegalOperationHandler_Factory implements Factory<LoggingIllegalOperationHandler> {
private final Provider<IllegalOperationMessageCreator> messageCreat... |
<?php
defined('BASEPATH')OR exit('No direct script access allowed');
class HtmltoPDF extends CI_Controller{
public function __construct()
{
parent::__construct();
$this->load->Model('HtmltoPDFmodel');
//$this->load->Library('pdf');
}
public function index()
{
$data['uses_data'] = $this->HtmltoPDFmodel->... |
import React from 'react';
import { Image, ImageStyle, StyleProp, StyleSheet, TouchableOpacity } from 'react-native';
import { Navigator, useNavigator } from '@brandingbrand/fsapp';
const styles = StyleSheet.create({
backButton: {
position: 'absolute',
zIndex: 10,
top: 50,
left: 8,
padding: 12
... |
package arithmatic
/*
P35 (**) Determine the prime factors of a given positive integer.
Construct a flat list containing the prime factors in ascending order.
scala> 315.primeFactors
res0: List[Int] = List(3, 3, 5, 7)
*/
object P35 {
def main(args: Array[String]): Unit = {
println
printf("primeFactors(... |
export type Card = string;
export class Deck {
static BASE_64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
static suits = ['c', 'h', 's', 'd'];
static ranks = ['A', '2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K'];
static CARDS_PER_SUIT = 13; // 13 * 4 = 52 = total cards.
... |
use std::ops::Add;
use convert_case::{Case, Casing};
#[derive(Debug, Hash, PartialEq, Eq, PartialOrd, Ord, Clone)]
pub struct TypePath {
pub segments: Vec<String>,
}
impl TypePath {
pub fn new() -> Self {
Self {
segments: vec![],
}
}
pub fn parse<T: Into<String>>(s: T) ->... |
import { AutoformatRule } from '../types';
export const autoformatLegal: AutoformatRule[] = [
{
mode: 'text',
match: ['(tm)', '(TM)'],
format: '™',
},
{
mode: 'text',
match: ['(r)', '(R)'],
format: '®',
},
{
mode: 'text',
match: ['(c)', '(C)'],
format: '©',
},
];
expor... |
namespace QuGo.Core.Domain.Security
{
/// <summary>
/// Represents an entity which supports ACL
/// </summary>
public partial interface IAclSupported
{
/// <summary>
/// Gets or sets a value indicating whether the entity is subject to ACL
/// </summary>
bool SubjectTo... |
---
widget: accomplishments
headless: true
weight: 50
title: Honors and Awards
subtitle: null
date_format: Jan 2006
item:
- certificate_url: ""
date_end: "2020-12-31"
date_start: "2019-03-01"
description: Awarded to top 200 high school students in Korea, $10000 over 2 years
organization: Hansung Son J... |
<?php
ob_start();
if (!function_exists('add_action')) {
$path='./';
for ($x=1; $x<6; $x++) {
$path .= '../';
if (@file_exists($path . 'wp-config.php')) {
require_once($path . "wp-config.php");
break;
}
}
}
ob_end_clean();
if ($Knews_plugin) {
if (! $Knews_plugin->initialized) $Knews... |
import path from 'path';
import { loadFilesSync, mergeTypeDefs, mergeResolvers } from 'graphql-tools';
import { PrismaClient, PrismaClientOptions } from '@prisma/client';
const typesArray = loadFilesSync(path.join(__dirname, './types'), {
extensions: ['graphql'],
recursive: true,
});
const resolversArray = loadFi... |
using UnityEngine;
namespace Lockstep
{
public abstract class ActiveAbility : Ability
{
const bool UseCooldown = true;
[SerializeField, FrameCount]
protected int _cooldown;
public int Cooldown { get { return _cooldown; } }
public ushort ListenInput { get; private set; }
private int _heat;
public int... |
use strict;
use warnings;
use Test::More;
use Cwd;
our $orig_inc;
BEGIN {
# Copy of the original @INC
# Do it in a separate BEGIN block
# (the import magic in a Namespace module gets
# executed when parsing the BEGIN block)
$orig_inc = [@INC];
diag "orig_inc ", explain $orig_inc;
}
BEGIN {
... |
package com.evvo
import akka.actor.FSM.->
import com.evvo.island.population.{
HashingStrategy, Minimize, Scored}
import org.scalatest.{Matchers, WordSpec}
class ScoreHashingTest extends WordSpec with Matchers {
"A Scored" should {
"hash on scores when hashStrategy = ON_SCORES" in {
val a = Scored(Map(("... |
package com.github.kerubistan.kerub.planner
import com.github.k0zka.finder4j.backtrack.TerminationStrategy
/**
* At optimization, we do not want to stop at the first solution, but wait for better solutions to come
* and terminate when the solutions do not improve for a while
*/
class OptimizationTerminationStrateg... |
//jgl (Jordan GL) library for common graphics stuff.
package jgl
// Feature List
// * Support for ModelViewProjection matrices[x]
// * Materials[x]
// * Material JSON reader[x]
// * Ray/HitRecord
// * SceneNode/SceneGraph
// * Primitives
// - Sphere
// - Triangle
// - Plane
// - TriMesh
var (... |
# It pings the target board to check network status of the target board.
# Usage: pingtest.sh [-h|--help] {ipaddr}
MAX_DURATION=1
INTERVAL=0.3
COUNT=3
usage() {
cat <<HERE
Usage: pingtest.sh [options] {ipaddr}
Pings a network address (or hostname) to check the network
status of a board. The default is 3 pings i... |
package typingsSlinky.googleAppsScript.GoogleAppsScript.Forms
import typingsSlinky.googleAppsScript.GoogleAppsScript.Base.Date
import typingsSlinky.googleAppsScript.GoogleAppsScript.Base.User
import typingsSlinky.googleAppsScript.GoogleAppsScript.Integer
import org.scalablytyped.runtime.StObject
import scala.scalajs.j... |
# Copyright 2013, Joyent. Inc. All rights reserved.
for _HASHTOOL in /usr/lib/cryptpass $(type -p genbfpw); do
if [ -x ${_HASHTOOL} ]; then
HASHTOOL=${_HASHTOOL/genbfpw/genbfpw -p}
break
fi
done
for _PASSTOOL in $(type -p changepass); do
if [ -x ${_PASSTOOL} ]; then
PASSTOOL=${_PASSTOOL}
break
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.