text stringlengths 27 775k |
|---|
class RootViewController < UIViewController
def shouldAutorotate
true
end
def didRotateFromInterfaceOrientation(orientation)
super
MG::Application.shared._screen_size_changed
end
def prefersStatusBarHidden
true
end
end
|
angular.module('Billing.controllers').controller('Billing.controllers.AutoRenew.WarnPendingDebt', class {
constructor($scope, $state, $timeout) {
this.$scope = $scope;
this.$state = $state;
this.$timeout = $timeout;
}
$onInit() {
this.service = this.$scope.currentActionData;
}
close() {
... |
# QuaStore
Persistent browser-side state management module.
This package was developed primarily for the needs of QuaEngine, but it also supports the standalone usage.
## Features
- Presistent state management, APIs are inspired by `vuex`.
- Multi-Slot Continuous Storage.
- Provide composition APIs for convenienc... |
#!/bin/bash
set -xe
#
# Script for releasing new versions
# Handles version updating and publishing to:
# - GitHub
# - NPM
#
DIST_FOLDER="./dist"
function cleanup() {
rm -rf "$DIST_FOLDER"
}
trap cleanup EXIT
mkdir -p "$DIST_FOLDER"
npm run build
# check package version
VERSION=$(node --eval "console.log(r... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application/ These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace App\Http\Controllers\FrontEnd\News;
use App\Http\Controllers\FrontendController;
use Illuminate\Http\Request;
use App\Models\FrontEnd\NewsModel;
use Illuminate\Support\Facades\Input;
use Session;
class NewsController extends FrontendController {
public function __construct(){
parent::__con... |
require_relative "../../repositories/story_repository"
class MarkAsUnread
def initialize(story_id)
@story_id = story_id
end
def mark_as_unread
StoryRepository.fetch(@story_id).update!(is_read: false)
end
end
|
<?php
declare(strict_types=1);
namespace Siler\Test\Unit;
use PHPUnit\Framework\TestCase;
use Siler\Route;
class RouteFacadeTest extends TestCase
{
protected function setUp(): void
{
$_GET = $_POST = $_REQUEST = ['foo' => 'bar'];
$_SERVER['HTTP_HOST'] = 'test:8000';
$_SERVER['SCRI... |
# Lattice HX8K Board

## Pins
Clock
```
CLKIN
```
USART
```
DCD
DSR
DTR
CTS
RTS
TX
RX
```
## Headers
```
J1
J2
J3
J4
```
## Peripherals
Clock
```
Clock
```
Timer
```
Timer
```
8 LEDs
```
leds
```
FT232R USART
```
usart
```
|
// ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
// ----------------------------------------------------------------------------
function LoadReport(embedToken, embedUrl) {
embedUrl = decodeURIComponent(embed... |
require File.dirname(__FILE__) + '/../../spec_helper'
require 'mspec/runner/mspec'
require 'mspec/runner/filters/match'
require 'mspec/runner/filters/tag'
describe TagFilter, "#load" do
before :each do
@match = double("match filter").as_null_object
@filter = TagFilter.new :include, "tag", "key"
@tag = Sp... |
using System;
using System.Collections.Generic;
using System.Text;
using MyWebServer.Server.Common;
namespace MyWebServer.Server.Http
{
public abstract class HttpResponse
{
protected HttpResponse(HttpStatusCode statusCode)
{
this.StatusCode = statusCode;
this.AddHeader... |
---
author: dschaaff
comments: true
date: 2012-04-04 01:38:58+00:00
layout: post
link: http://danielschaaff.com/2012/04/04/still-rocking-20-years-later-taken-with/
slug: still-rocking-20-years-later-taken-with
title: No Content Found
wordpress_id: 270
post_format:
- Image
---
: Boolean
/**
... |
export namespace parserUtils {
export { childByName };
export { childrenByName };
export { resolveVastAdTagURI };
export { parseBoolean };
export { parseNodeText };
export { copyNodeAttribute };
export { parseAttributes };
export { parseDuration };
export { splitVAST };
export { ... |
import ThreadSystem from "../../thread/ThreadSystem";
import IThreadSendData from "../../thread/base/IThreadSendData";
import {ThreadSystemTask} from "../../thread/control/ThreadSystemTask";
var pwindow: any = window;
if(pwindow["VoxCore"] == undefined) {
pwindow["VoxCore"] = {};
}
var VoxCore = pwindow["VoxCore... |
/*
* Copyright (c) 2014-2016 Manuel Mauky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... |
#Editado de Step
version = "1"
def intro():
msg = "Assistente - version {} / by: Professor Flávio Oliveira".format(version)
print("-" * len(msg) + "\n{}\n".format(msg) + "-" * len(msg))
lista_erros = [
"Não entendi nada",
"Desculpe, não entendi",
"Repita novamente por favor"
]
convers... |
const Arr = Array.prototype;
Arr.ancestor = function() {
const list = this.slice();
let parent = list.shift();
if (!parent) return;
if (typeof parent.contains != "function") {
throw new TypeError("Expected an array of DOM elements");
}
do {
if (list.every((node) => parent.contains(node))) {
return parent;... |
<?php
require_once("database.php");
require_once("config.php");
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (isset($_POST['url'])) {
$url = $_POST['url'];
header('Content-Type: application/json');
if (!validateURL($url)) {
die(json_encode(array("status" => "0", "me... |
/*
* Copyright (C) 2021 Yauhen Landarski.
*
* 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 agre... |
#pragma once
#include <VGA/VGA14BitI.h>
#include <VGA/VGA14Bit.h>
#include <VGA/VGA6BitI.h>
#include <VGA/VGA6Bit.h>
#include <VGA/VGA3BitI.h>
#include <VGA/VGA3Bit.h>
#include <Composite/CompositeL8.h>
#include <Composite/CompositePAL8.h>
#include <LED/SerialLED.h>
#include <LED/ParallelLED.h>
#include <LED/Parallel... |
def add(a = 0, b = 0):
return a + b
print(add())
print(add(150,12))
print(add(120)) |
package com.doool.pokedex.data.mapper
import com.doool.pokedex.data.response.AbilityResponse
import com.doool.pokedex.domain.model.Ability
import com.doool.pokedex.domain.model.LocalizedString
fun AbilityResponse.toModel(): Ability = with(this) {
Ability(
id,
name,
names = names.map { Loca... |
namespace UrlReplace
{
using System;
public class StatusChangedEventArgs : EventArgs
{
public StatusChangedEventArgs(string status)
{
this.Status = status;
}
public string Status { get; }
}
} |
# P4t
---
P4t is a tiny IMGUI-based replacement for some of p4v's common tasks.
---
License
-------
P4t is licensed under the MIT License; see License.txt for more information.
|
program test
implicit none
real*8 fc,adf,edf,ncp,dncf,dfqf,p,df1,df2
integer ifault
external dncf, dfqf
fc = 3.0
adf=3.0
edf = 24.0
ncp = 56.0
ifault = 0
write(*,*) 1.0-dncf(fc,adf,edf,ncp,ifault)
ncp = 100.0
write(*,*) 1.0-dncf(fc,adf,edf,n... |
json.code (@mall_item_records ? 0 : 1)
json.data do
json.list(@mall_item_records) do |mall_item_record|
json.partial! 'jshare/campaign_record',campaign_record: mall_item_record
end
end |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Test.P.Applicative where
import Control.Appli... |
using LinearMaps
using IterativeSolvers
using ProgressMeter
@doc raw"""
Compute the independent-particle susceptibility. Will blow up for large systems.
For non-spin-polarized calculations the matrix dimension is
`prod(basis.fft_size)` × `prod(basis.fft_size)` and
for collinear spin-polarized cases it is
`2prod(basis.... |
import { ConflictException, Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/mongoose';
import { concatMap, map, Observable } from 'rxjs';
import { Model } from 'mongoose';
import { SocialMediaType } from '@dark-rush-photography/shared/types';
import {
postSocialMediaImage$,
postSocialMedi... |
module Alephbet
class ApplicationController < ActionController::Base
protect_from_forgery :with => :exception
before_action :cors_headers, :if => -> { Alephbet.enable_cors }
private
def cors_headers
response.headers["Access-Control-Allow-Origin"] = Alephbet.cors_allow_origin
response.hea... |
#!/usr/bin/perl
use warnings FATAL => 'all';
use strict;
use v5.20;
use lib "../../lib-perl";
use AoC::Helpers qw/:all/;
use Carp::Always qw/carp verbose/;
sub sumseries {
$_[0]*($_[0]+1)/2
}
sub pos2index {
my ($x, $y) = @_;
return ($y*($x-1)) + sumseries($x-2) + sumseries($y);
}
sub expmod {
my($a, $b, $n)... |
module ForbidBrowser
class Config
attr_reader :forbids, :exclusions, :redirect_to
def initialize
@forbids = []
@exclusions = []
@redirect_to = nil
end
def forbid(name)
@forbids << Browser.new(name)
end
def exclude(path)
@exclusions << path
end
def redi... |
const { DefinePlugin } = require("webpack"); // HotModuleReplacementPlugin
const BundleAnalyzerPlugin =
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const InlineChunkHtmlPlugin = require("react-dev-utils/InlineChunkHtmlPlugin");
// const ErrorOverlayPlugin = require("error-overlay-webpack-plugin");
const ... |
using FlightNode.DataCollection.Domain.Entities;
using FlightNode.DataCollection.Domain.Managers;
using FlightNode.DataCollection.Services.Controllers;
using FlightNode.DataCollection.Services.Models.Survey;
using System;
using Xunit;
namespace FlightNode.DataCollection.Domain.UnitTests.Services.Controller.RookeryCen... |
## LUSOL fortran code
This directory contains LUSOL fortran 77 and fortran 90 code.
## Contents
* `clusol.c`: generated interface code
* `clusol.h`: generated interface header
* `lusol6b.f`: contains lu6mul
* `lusol7b.f`: contains lusol helper functions
* `lusol8b.f`: contains lusol update functions (not lu8rpc)
* `... |
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --job-name=AAFFT_R2R_conv
#SBATCH --partition=htc
#SBATCH --gres=gpu:1 --constraint='gpu_sku:P100'
module load gpu/cuda/10.0.130
./benchmark_all.sh
|
#!/bin/bash
yum install -y epel-release
# process monitoring
yum install -y python-psutil
# required to build s3fs-fuse
# curl & xml2 pull xz-devel and zlib-devel
yum install -y fuse-devel libcurl-devel libxml2-devel openssl-devel
#yum install -y R-core
|
import { Entry, EntryFromXml, EntryFromJSON, EntryToJSON } from "./Entry";
import { ItemsPerPage, ItemsPerPageFromXml, ItemsPerPageFromJSON, ItemsPerPageToJSON } from "./ItemsPerPage";
import { Link, LinkFromXml, LinkFromJSON, LinkToJSON } from './Link';
import { Title, TitleFromXml, TitleFromJSON, TitleToJSON } from "... |
namespace OMX.Web.Areas.Administration.Controllers
{
using System.Web.Mvc;
using OMX.Common;
using OMX.Data.UoW;
using OMX.Web.Controllers;
[Authorize(Roles = GlobalConstants.AdminRole)]
public class BaseAdminController : BaseController
{
public BaseAdminController(IOMXData data)
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Catalogo extends Model
{
protected $table = "catalogo";
protected $fillable = ["nombres","slug","referencias"];
public function jeroglifico()
{
return $this->hasMany('App\Jeroglifico');
}
}
|
package com.atanana
import javax.inject.Inject
import play.api.http.DefaultHttpFilters
import play.filters.gzip.GzipFilter
class Filters @Inject()(gzipFilter: GzipFilter) extends DefaultHttpFilters(gzipFilter)
|
// coralPink
export const coralPink_05 = '#fff4f4';
export const coralPink_10 = '#ffcdcf';
export const coralPink_20 = '#ffacaf';
export const coralPink_30 = '#ff9094';
export const coralPink_40 = '#ff7a7e';
export const coralPink_50 = '#ff6a6e';
export const coralPink_70 = '#ff4c52';
export const coralPink_90 = '#ff2e... |
using UnityEngine;
using System.Collections;
using Thalmic;
using Pose = Thalmic.Myo.Pose;
public class MyoAndroidManager : MonoBehaviour {
#if UNITY_ANDROID
public static bool isInitialized = false;
public static bool isAttached = false;
void Start()
{
Debug.Log("Starting Android Manager"... |
var asa = require('./../src/appleSearchAds.js');
var AppleSearchAds = asa.AppleSearchAds;
const password = '';
const username = '';
const testGetPopularity = async function() {
const instance = new AppleSearchAds({
twoFAHandler: function (successCallback) {
const rl = readline.createInterface(... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class DiagnosticoAudiometria extends Model
{
protected $table="diagnostico_audiometrias";
protected $fillable=[
'examenes_auxiliares',
'observaciones',
'diagnosticos_cie10_medico',
'concluciones',
'recomendaciones',
'audiometria... |
<?php
/**
* * * * *
* 登录 *
* * * * *
*
* Created by PhpStorm.
* User: xiezicheng
* Date: 2019-03-20
* Time: 23:20
*/
namespace App\Http\Controllers\Admin;
use App\Http\Model\Admin;
use Illuminate\Support\Facades\Cache;
class LoginController extends AdminController
{
/**
* 登录
*/
publ... |
import {HttpException, HttpStatus, Injectable} from "@nestjs/common";
import {InjectRepository} from "@nestjs/typeorm";
import {Payment} from "./entities/payment.entity";
import {TypeOrmCrudService} from "@nestjsx/crud-typeorm";
import {MailerService} from "@nestjs-modules/mailer";
import {Stores} from "../stores/entit... |
/*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using System;
namespace Microsoft.Azure.SpatialAnchors.Unity.Examples
{
public cla... |
#!/bin/bash
# $Id$
OS=`uname -s`
COMPILER=ifort
OUTDIR=~/genie_output
PROC=`uname -p`
NCCOMPARE=src/c/nccompare.exe
TXTDIFF="diff --strip-trailing-cr"
# Usage information
usage () {
echo "usage: $0 [-d OUTDIR] [-c COMPILER]"
}
# remove unrequired files
cleanup () {
rm -rf $OUTDIR/$EXPDIR
}
cleanupboth () {
... |
---
permalink: /nodes/n8n-nodes-base.mailcheck
description: Learn how to use the Mailcheck node in n8n
---
# Mailcheck
[Mailcheck](https://www.mailcheck.co/) is an application that allows you to clean your subscription list from bounces and enrich data with customers.
::: tip 🔑 Credentials
You can find authenticati... |
<?php
/**
* Created by PhpStorm.
* User: adebril
* Date: 16/06/17
* Time: 13:46
*/
namespace FeedIo\Parser;
use FeedIo\Feed;
use FeedIo\Reader\Document;
use FeedIo\Rule\DateTimeBuilder;
use FeedIo\Standard\Json;
use Psr\Log\NullLogger;
use \PHPUnit\Framework\TestCase;
class JsonParserTest extends TestCase
{
... |
/**
* Problem: https://leetcode.com/problems/roman-to-integer/description/
*/
/**
* @param {string} s
* @return {number}
*/
var romanToInt = function(s) {
var len = s.length, sum = 0, cur = 0, level = null;
var letterToNum = {
I : 1,
V : 5,
X : 10,
L : 50,
C : 100,
D : 500,
M : 1000... |
#include "udpspriteclient.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <chrono>
#include <thread>
#include <algorithm>
#include <cstring>
using namespace std;
// Sockets/Networking Reference : http://www.linuxhowtos.or... |
# TMX
CourtHive/TMX 2.0 is an open source tournament management application built in React.
[Online Documentation and Blog](https://courthive.github.io/tmx/)
## Quick Start
```shell
git clone git@github.com:CourtHive/TMX.git
cd TMX/
yarn install
yarn start
```
|
#!/bin/bash
# Сценарий регрессионного тестирования функций расширения pg_dbwa.
# Предполагается запуск сценария на пустом экземпляре без других активностей.
# Настройки теста
export test_version="0.3.1"
export test_prev_version="0.3"
export test_dbname_new="pg_dbwa_test_new"
export test_dbname_upd="pg_dbwa_test_upd... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Xunit.Sdk;
namespace Akka.Tests.Shared.Internals
{
/// <summary>
/// This is an internal utility to test flaky/racy unit tests.
/// It allows the test runner to run a single unit test repe... |
package util
import scala.annotation.tailrec
trait Pondered[T] {
class Ponderation(val pnd: Double, val item: T) extends Tuple2[Double, T](pnd, item)
var items: Seq[Ponderation] = Seq()
var size = 0D
var ptr = (0D, -1)
def add(i: Double, item: T) {
size += i
items = items :+ new Ponderation(i, item)
}
... |
package science.credo.mobiledetector2.settings
import android.graphics.ImageFormat
import android.hardware.Camera
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RadioButton
import android.widget.RadioGroup
import android.widget.T... |
//!
//! The Zinc constants.
//!
pub mod app_name;
pub mod base;
pub mod bitlength;
pub mod contract;
pub mod directory;
pub mod exit_code;
pub mod extension;
pub mod file_name;
pub mod limit;
pub mod panic;
pub mod path;
pub mod size;
pub mod source;
pub mod tester;
pub mod zandbox;
pub mod zargo;
pub use self::exit_... |
module Admin
class SettingsController < ApplicationController
before_action :require_admin!
before_action :create_search_log
def follow_requests
@requests = fetch_user.follow_requests.limit(20)
render template: 'settings/follow_requests'
end
def unfollow_requests
@requests = f... |
# Print Mac serial number
/usr/libexec/PlistBuddy -c "Print IORegistryEntryChildren:0:IOPlatformSerialNumber" \
/dev/stdin <<< $(ioreg -c IOPlatformExpertDevice -d 2 -a)
|
package jobs
import (
"sync"
"time"
"readygo/models"
"readygo/services"
)
// Permission permissions
type permission struct {
mu sync.RWMutex
permissions []string
}
var ps = permission{}
func (p *permission) set() {
s := services.New(&models.Permission{})
var list []models.PermissionView
conds := ... |
require 'securerandom'
require 'common/version/stemcell_version_list'
module Bosh::Director
module Api
class StemcellManager
include ApiHelper
def all_by_name_and_version(name, version)
Models::Stemcell.where(:name => name, :version => version).all
end
def find_by_name_and_versi... |
#! /bin/sh
# see https://www.claudiokuenzler.com/blog/796/install-upgrade-cmake-3.12.1-ubuntu-14.04-trusty-alternatives
FULLVERSION=3.12.1
VERSION=v3.12
me=`id -u`
err(){
echo "ERROR: $*"
exit 1
}
if [ "$me" != 0 ]; then
err must be run as root
fi
apt-get update
apt-get install wget
cd
url="http://www.cmak... |
#=========================================================================
#
# Name: meta_demo.rb
#
# Purpose: Define a simple class that uses ActiveModel::Validations
# so WebTools can observe the methods generated by ActiveModel.
#
# WARNING: Running WebTools is safe, BUT RUNNING meta_demo.rb IS NOT!!... |
<?php
namespace Pantheon\Terminus\UnitTests\Collections;
use Pantheon\Terminus\Collections\Loadbalancers;
use Pantheon\Terminus\Collections\Workflows;
use Pantheon\Terminus\Models\Environment;
use Pantheon\Terminus\Models\Loadbalancer;
use Pantheon\Terminus\Models\Workflow;
/**
* Class LoadbalancersTest
* Testing ... |
const empty = require("./empty")
const argv = require("yargs")
.usage("Usage: css-min-cmd <options> <option source> [source] <option output> [output]")
.alias("v", "version")
.describe("v", "show version info")
.boolean("v")
.alias("l", "log")
.describe("l", "show the log, in process directory mode")
.b... |
using Microsoft.AspNetCore.Mvc;
using System;
namespace SF.IY.InsurancePolicy.DemoAPI.Controllers;
[ApiController]
[Route("[controller]")]
public class HealthController : ControllerBase
{
[HttpGet]
public ActionResult<string> Health()
{
return Ok($"Pong! {DateTime.UtcNow.ToString("dddd, dd MMMM y... |
UPDATE licitacion
SET
codigo = :codigo,
nombre = :nombre,
descripcion = :descripcion,
presupuesto = :presupuesto,
fecha_inicio = :fechaInicio,
fecha_fin = :fechaFin,
estado = :estado
WHERE id = :id
|
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GeneratePropsJavaInterface.js
*/
package com.facebook.react.... |
#!/usr/bin/env bash
# Ensures hostname exists in the hosts file
# Variables
HOSTNAME=$(hostname)
HOSTSFILE=${HOSTSFILE:-'/etc/hosts'}
LOCALHOST=${LOCALHOST:-'127.0.0.1'}
REGEXLOCALHOST=$(echo ${LOCALHOST} | sed 's/\./\\./g')
EXPRESSION="^${REGEXLOCALHOST}\s\+${HOSTNAME}$"
LOG_PATH=${LOG_PATH:-'/var/root/log'}
STD_LOG... |
<?php
declare(strict_types = 1);
namespace Avtocod\B2BApi\Laravel\ReportTypes;
class ReportTypeInfo
{
/**
* @var string
*/
protected $uid;
/**
* Create a new ReportTypeInfo instance.
*
* @param string $uid
*/
public function __construct(string $uid)
{
$this-... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Limits, Subscription, Product} from '@mattermost/types/cloud';
import {GlobalState} from '@mattermost/types/store';
import {getLicense} from './general';
export function getCloudLimits(state: Globa... |
分类表
drop table if exists tbl_test;
CREATE TABLE tbl_test
(
test_id VARCHAR (3) NOT NULL,
test_name VARCHAR (60) NOT NULL,
test_bit BIT,
test_blob BLOB,
test_double DOUBLE,
test_float FLOAT,
test_tinyint TINYINT(3),
test_int INTEGER,
test_decimal DECIMAL,
test_bigint BIGINT,
... |
package com.wang.guava.eventbus;
import com.google.common.eventbus.EventBus;
import com.wang.guava.eventbus.listeners.DeadEventListener;
/**
* @description: DeadEvent 实例
* @date: 2020/8/9 23:44
* @author: wei·man cui
*/
public class DeadEventBus {
public static void main(String[] args) {
// Event自定义 ... |
package de.tim_greller.mr_turing.bot.commands;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.reactivestreams.Publisher;
import de.tim_greller.mr_turing.bot.InvalidCommandSyntaxException;
import de.tim_greller.mr_turing.turing_machine.TuringMachine;
import discord4j.core.object.entity.Mes... |
package org.jboss.summit2015.config;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Session;
... |
package com.zeldan.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.dropbox.core.DbxAppInfo;
import com.dropbox.core.DbxRequestConfig;
import com.dropbox.core.DbxWebAuth;
@Con... |
package test;
import model.*;
import org.junit.Before;
import org.junit.Test;
import static model.Employee.BASE_WAGE;
import static model.Manager.MANAGER_WAGE;
import static org.junit.Assert.*;
public class ManagerTest {
private BurgerByte restaurant;
private Manager manager;
private FryCo... |
# myProjects
All projects developed while studying Software Engineering at Napier University. <br />
Each projects is from a different module during my one year and a half of my studies as a Software Engineer. <br />
Owner's name: Sara Hussein Celda <br />
Email: 40496531@live.napier.ac.uk <br />
|
import 'package:flutter/foundation.dart';
import 'package:mobx/mobx.dart';
import 'package:mobx_store_disposer/src/util.dart';
class ReactionDisposable {
final String name;
final ReactionDisposer reaction;
final String storeType;
ReactionDisposable({@required this.reaction, this.name, this.storeType}): assert(... |
package fi.imberg.juhani.ernu.interpreter.nodes;
import fi.imberg.juhani.ernu.interpreter.Environment;
import fi.imberg.juhani.ernu.interpreter.exceptions.RuntimeException;
import fi.imberg.juhani.ernu.interpreter.interfaces.Node;
/**
* A internal node that represents a single case of a match expression.
*/
public ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using Microsoft.Cci;
using Microso... |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# 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... |
# Common setup for all test files.
# require 'flexmock/test_unit'
module TestMethods
def assert_exception(ex, msg=nil, &block)
assert_raise(ex, msg, &block)
end
end
|
import React from 'react';
import {
render,
BoundFunction,
GetByText,
} from 'test-utils';
import ValidationErrorMessage from '../ValidationErrorMessage';
describe('Validation Error Message', function () {
let getByText: BoundFunction<GetByText>;
beforeEach(function () {
({ getByText } = render(
<V... |
namespace OpenGLBindings
{
/// <summary>
/// Used in GL.ClientWaitSync
/// </summary>
public enum ClientWaitSyncFlags
{
/// <summary>
/// Original was GL_NONE = 0
/// </summary>
None,
/// <summary>
/// Original was GL_SYNC_FLUSH_COMMANDS_BIT = 0x000000... |
# @dictadata/storage-junctions Programming Guide
* [codify](codify.md)
* [download](download.md)
* [dull](dull.md)
* [encoding](encoding.md)
* [list](list.md)
* [recall](recall.md)
* [retrieve](retrieve.md)
* [scan](scan.md)
* [store](store.md)
* [tee](tee.md)
* [timeseries](timeseries.md)
* [transfer](transfer.md)
* ... |
package mesosphere.marathon
package api
import java.lang.{ Exception => JavaException }
import javax.ws.rs.WebApplicationException
import javax.ws.rs.core.Response.Status
import javax.ws.rs.core.{ MediaType, Response }
import javax.ws.rs.ext.{ ExceptionMapper, Provider }
import com.fasterxml.jackson.core.JsonParseExc... |
---
title: Barcodes of Different Types
type: docs
weight: 30
url: /cpp/barcodes-of-different-types/
---
|
testsimple is a Javascript unit testing framework that uses the Test Anything
Protocol (TAP). It is inspired by Test::Simple.
# Example
```javascript
const { test, doneTesting } = require('testsimple');
test('Addition', ts => {
// Test with simple assertions
ts.ok(10 > 3);
ts.ok(2 + 3 == 5);
// Outp... |
export consul_address=""
export database_user=""
# 数据库地址格式:tcp\(test_mysql_host:3306\)
export database_address=""
export database_paswd=""
# gitlab API 请求 token
export gitlab_token=""
# gitlab API URL
export gitlab_base_url=""
# 数据库名称
export database_name=devops
# 数据库是否启用 debug 模式
export database_debug=false
# 日志级别:deb... |
const badRequest = 400;
const authentication = 401;
const forbidden = 403;
const notFound = 404;
const tooManyRequest = 429;
const server = 500;
const timeInaccurate = 911;
const transaction = 10001;
const badData = 10002;
const phoneSmsDelivery = 10003;
const recaptchaIsInvalid = 10004;
const needCaptcha = 10005;
con... |
import json
from cd4ml.problems.available_problems import PROBLEMS
def read_schema_file(schema_file):
schema = read_json_file_as_dict(schema_file)
# Verify the file before processing
categorical_fields = schema['categorical']
numeric_fields = schema['numerical']
# Make sure the same field is not ... |
---
title: "Microeconomics"
author: glennji
date: 2019-06-05T22:33:39+10:00
draft: false
type: note
crosslink: "true"
categories:
- Economics
---
Supply and Demand
Price and elasticity
## Average variable cost
The cost of production of a good includes "fixed" and "variable" costs. Fixed costs include those costs ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.