answer stringlengths 15 1.25M |
|---|
<?php namespace Illuminate\Database\Eloquent\Relations;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\<API key>;
class BelongsToMany extends Relation {
/**
* The intermediate table for the relation... |
// Timestamp 01/03/2016@1:50 AM
using System.Diagnostics.CodeAnalysis;
using OregonTrailDotNet.Event.Prefab;
using OregonTrailDotNet.Module.Director;
namespace OregonTrailDotNet.Event.Person
{
<summary>
Rocky Mountain spotted fever (RMSF), also known as blue disease, is the most lethal and most frequently repor... |
import { Cursor } from '../diagram/Cursor';
import { DiagramElement } from '../diagram/DiagramElement';
import { Handle } from '../diagram/Handle';
import { AbstractCanvas } from './AbstractCanvas';
const zoomLevels = [1 / 8, 1 / 7, 1 / 6, 1 / 5, 1 / 4, 1 / 3, 1 / 2, 2 / 3, 1, 3 / 2, 2, 3, 4, 5, 6, 7, 8];
export abstra... |
#include "peerreview/vrf.h"
#define SUBSYSTEM "VrfExtInfoPolicy"
VrfExtInfoPolicy::VrfExtInfoPolicy(VerifiablePRNG *vprng) : ExtInfoPolicy()
{
this->vprng = vprng;
}
VrfExtInfoPolicy::~VrfExtInfoPolicy()
{
}
int VrfExtInfoPolicy::storeExtInfo(SecureHistory *history, long long followingSeq, unsigned char *buffer, unsi... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: Approvability::ActsAsApprovability
— Documentation by YARD 0.8.7.6
</title>
<link rel="stylesheet" href="../css/styl... |
title: Alert Widget
last_updated: June 8, 2016
sidebar: api_sidebar
permalink: /widget-alert/
This HTML widget contains the the content for a particular {alert_identifier}.
GET /widgets/alerts/{alert_identifier}/
## Example Request
GET https:
Accept: text/html
html
<div id="app-container">
<header class="m-and-a">
... |
DROP DATABASE IF EXISTS <API key>;
CREATE DATABASE <API key>;
USE <API key>;
CREATE TABLE Records (
Id INT NOT NULL AUTO_INCREMENT,
Score INT NOT NULL,
Date_Time DATETIME NOT NULL,
PRIMARY KEY (Id)
); |
const iNaturalistAPI = require( "../inaturalist_api" );
const ControlledTerm = require( "../models/controlled_term" );
const Observation = require( "../models/observation" );
const Project = require( "../models/project" );
const Taxon = require( "../models/taxon" );
const User = require( "../models/user" );
const obser... |
\begin{homeworkProblem}[Running the Algorithms]
\begin{homeworkSubProblem}[DFS \& BFS]
The DFS\&BFS from vertex $a$ are shown in \cref{1.a} and \cref{1.b}.
\begin{figure}[H]
\caption{DFS \& BFS for First Graph}\label{1.a}
\centering
\includegraphics[width=.8\textwidth]{running1a}
... |
package dk.itu.ejuuragr.tests;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.anji.util.Properties;
import dk.itu.ejuuragr.turing.<API key>;
public class <API key> {
<API key> tm;
@Before
public void before(){
Properties props = new Properties();
props.se... |
package meta_test
import (
"reflect"
"testing"
"time"
"github.com/archsaber/influxdb/influxql"
"github.com/archsaber/influxdb/services/meta"
)
func <API key>(t *testing.T) {
data := &meta.Data{
Databases: []meta.DatabaseInfo{
{Name: "db0"},
{Name: "db1"},
... |
<?php
use awheel\App;
use Monolog\Logger;
use awheel\Support\Arr;
use awheel\Http\Request;
use awheel\Http\Response;
use awheel\Routing\Router;
use awheel\Http\Kernel as HttpKernel;
use awheel\Console\Kernel as ConsoleKernel;
/**
* ,
*
* @param $make
*
* @return App|Router|Request|Response|HttpKernel|ConsoleKernel... |
package examples
const JSONExample_User = `{
"name": "calavera"
}` |
#include "../widgetslib.h"
#include "button.h"
#include "Meta/math/vector4.h"
#include "vertex.h"
#include "Meta/keyvalue/metatable_impl.h"
#include "Meta/serialize/serializetable_impl.h"
#include "fontloader.h"
#include "imageloader.h"
<API key>(Engine::Widgets::Button, Engine::Widgets::WidgetBase)
MEMBER(mText)
MEMBE... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard for /usr/local/bin/phpunit/<API key>/phpDocumentor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../css/bootstrap.min.css" rel="stylesheet">
<link href="../../css/nv.d3.min.css" rel... |
// Use of this source code is governed by a MIT-style
package base
import (
"container/list"
"encoding/json"
"fmt"
"html/template"
"runtime"
"strings"
"time"
"golang.org/x/net/html/charset"
"golang.org/x/text/transform"
"github.com/gogits/chardet"
"github.com/pecastro/gogs/mo... |
'use strict';
/* eslint-disable <API key> */
let $ = require('jquery');
let main = require('aiw-ui');
describe('main', () => {
let $container;
beforeEach(() => {
$container = $('<div/>');
main.render($container[0]);
});
it('renders template', () => {
expect($('.main p', $containe... |
import {Sample} from './sample'
import {context} from './init_audio'
let instanceIndex = 0
export class SampleOscillator extends Sample{
constructor(sampleData, event){
super(sampleData, event)
this.id = `${this.constructor.name}_${instanceIndex++}_${new Date().getTime()}`
if(this.sampleData === -1){
... |
# Docker image for
# x11-novnc
# Create:
# sudo docker build --rm -t akaer/x11-novnc . 2>&1 |tee docker_build.log
# Run:
# sudo docker run -it --name x11-novnc -v /etc/localtime:/etc/localtime:ro -p 8083:8083 akaer/x11-novnc
FROM ubuntu:16.04
LABEL maintainer "André Raabe <andre.raabe@gmail.com>"
ENV LANG C.UTF-8
ENV S... |
<?php
namespace Mage\Paypal\Test\Block\Hosted\Pro;
/**
* Card Verification frame for PayPal Hosted Pro payment method.
*/
class Form extends \Mage\Paypal\Test\Block\Payflow\Advanced\Form
{
} |
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
#include "<API key>.h"
class IFCQUERY_EXPORT IfcDirection;
//ENTITY
class IFCQUERY_EXPORT <API key> : public <API key>
{
p... |
require "spec_helper"
describe TecDoc::DateParser do
describe "#to_date" do
it "should convert 199904 to April 1st, 1999" do
TecDoc::DateParser.new("199904").to_date.should == Date.new(1999, 4, 1)
end
it "should convert 201012 to December 1st, 2012" do
TecDoc::DateParser.new("201012").to_date.... |
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datalakestore.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import j... |
// LevelManager.h
// SoA
#ifndef LevelManager_h
#define LevelManager_h
#import <UIKit/UIKit.h>
@interface LevelManager : NSObject
- (void) Load;
- (void) Unload;
@end
#endif /* LevelManager_h */ |
'use strict';
var grunt = require('grunt');
exports.markdown_wiki = {
setUp: function(done) {
// setup here if necessary
done();
},
default_options: function(test) {
test.expect(1);
var actual = grunt.file.read('tmp/default_options');
var expected = grunt.file.read('test/expected/default_optio... |
<div id="center">
<div class="col-md-6 center">
<div id="notification" class="notification row">
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a data-toggle="pill" href="#noti1">Notification</a></li>
<li role="presentati... |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by EasySRT.rc
#define IDD_EASYSRT_DIALOG 102
#define IDR_MAINFRAME 128
#define IDD_LYRICS 130
#define IDC_EDIT1 1001
#define IDC_BUTTON2 1002
... |
#ifndef Input_H
#define Input_H
//! Storage struct for touch inputs.
struct Input {
Input(int Id, float x, float y) : Id(Id), x(x), y(y) {}
int Id;
float x, y;
};
#endif |
import { Client } from 'discord.js';
import { isFunction, isRegExp, isString } from 'lodash/lang';
import CommandRegistry from '../command/CommandRegistry';
import Dispatcher from './dispatcher/Dispatcher';
import ServiceContainer from './services/ServiceContainer';
/**
* @desc The Ghastly client.
* @extends Client
... |
// This code is largely borrowed from: github.com/louischatriot/nedb-to-mongodb
// This code moves your data from NeDB to MongoDB
// You will first need to create the MongoDB connection in your /routes/config.json file
// You then need to ensure your MongoDB Database has been created.
// ** IMPORTANT **
// There are no... |
package magefortress.jobs.subtasks;
import magefortress.core.MFEDirection;
import magefortress.core.MFLocation;
import magefortress.core.<API key>;
import magefortress.creatures.behavior.movable.MFCapability;
import magefortress.creatures.behavior.movable.MFIMovable;
import magefortress.map.MFPath;
import magefortress.... |
using System;
using System.Runtime.CompilerServices;
using Pantheon.Core.MessageRouting;
namespace Pantheon.Core
{
public class MessageCallback
{
private ulong _callback;
private MessageCode _expected;
private Message _request;
private Message _response;
private MessageRo... |
var React = require('react'),
cx = require('classnames'),
constants = require('./constants');
var Preloader = React.createClass({
propTypes: {
size: React.PropTypes.oneOf(constants.SCALES),
active: React.PropTypes.bool,
colors: React.PropTypes.array
},
getDefaultProps() {
return {
ac... |
class DotenvHaiku
# Dotenv Railtie for using Dotenv to load environment from a file into
# Ruby applications
class App
# Public: Load dotenv
# Manually call `Dotenv::Railtie.load` in your app's config
def load(options = {})
Dotenv.load(*to_load(options))
end
# Internal: Try the `RAILS_RO... |
#!/bin/bash
# JDK
echo "Installing JDK..."
yum install -y java-1.8.0-openjdk-devel > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Failed to install JDK."
exit 1
fi
# Elasticsearch
echo "Installing Elasticsearch..."
cat > /etc/yum.repos.d/elasticsearch.repo <<EOF
[elasticsearch-1.7]
name=Elasticsearch repository for 1... |
#include "nilConfig.h"
#include "nil.h"
#include "nilUtil.h"
#include "nilWindows.h"
#ifdef <API key>
#define NIL_FIELD_OFFSET(type, field) ((LONG_PTR)&(((type*)0)->field))
#define NIL_DIJ2OFS_BUTTON(n) (NIL_FIELD_OFFSET(DIJOYSTATE2, rgbButtons)+(n))
#define NIL_DIJ2OFS_POV(n) (NIL_FIELD_OFFSET(DIJOYSTATE2, rgdwPO... |
#ifndef <API key>
#define <API key>
#include <ostream>
#include "core/<API key>.h"
#include "parserexception.h"
namespace ical {
namespace parameters {
class AltRep
{
private:
std::string value;
public:
static const std::string NAME;
const std::string &getValue() const noexcept { return value; }
AltRep(... |
#include "processview.h"
ProcessView::ProcessView(QWidget *parent)
: QTableView(parent)
{
initialActions();
connect(m_refresh, SIGNAL(triggered()), this, SLOT(<API key>()));
connect(m_modules, SIGNAL(triggered()), this, SLOT(<API key>()));
connect(m_threads, SIGNAL(triggered()), this, SLOT(<API key>... |
module Dominion
class Smithy < Action
def cost() 4 end
def to_s() 'Smithy' end
def play(turn)
turn.draw 3
end
end
end |
-- boundary1.test
-- db eval {
-- SELECT a FROM t1 WHERE rowid < 16384 ORDER BY rowid DESC
SELECT a FROM t1 WHERE rowid < 16384 ORDER BY rowid DESC |
from distutils.core import setup
setup(
name='sequencehelpers',
py_modules=['sequencehelpers'],
version='0.2.1',
description="A library consisting of functions for interacting with sequences and iterables.",
author='Zach Swift',
author_email='cras.zswift@gmail.com',
url='https://github.com/2achary/sequenc... |
require 'spec_helper'
require 'feature/testing'
describe 'Feature testing support' do
let(:repository) { Feature::Repository::SimpleRepository.new }
before(:each) do
repository.add_active_feature(:active_feature)
Feature.set_repository(repository)
end
it 'should execute code block with an deactivated fe... |
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kirppu', '<API key>'),
]
operations = [
migrations.AlterUniqueTogether(
name='itemtype',
unique_together={('event', 'order')},
),
migrations.RemoveField(
... |
from django.contrib import admin
from .models import BackgroundImages, Widget
class WidgetAdmin(admin.ModelAdmin):
list_display = ('name', 'link', 'is_featured')
ordering = ('-id',)
class BackgroundAdmin(admin.ModelAdmin):
list_display = ('name', 'created_at')
ordering = ('-id',)
admin.site.register(Wid... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'user/config/system.yaml',
'modified' => 1431195484,
'data' => [
'home' => [
'alias' => '/home'
],
'pages' => [
'theme' => 'deliver',
'markdown_extra' => false,
... |
let userDao = require('../dao/userDao'),
articleDao = require('../dao/articleDao'),
commentDao = require('../dao/commentDao'),
starDao = require('../dao/starDao'),
messageDao = require('../dao/messageDao'),
voteDao = require('../dao/voteDao'),
settings = require('../config/settings'),
tools ... |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:11:"amount_owed";s:4:"type";s:7:"decimal";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:1;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}'); |
from pandac.PandaModules import *
from toontown.toonbase.ToonBaseGlobal import *
from DistributedMinigame import *
from direct.interval.IntervalGlobal import *
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from toontown.safezone import Walk
from toontown.toonbase import ToontownTimer
from direct... |
package uk.gov.openregister;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
public class <API key> {
@Test
public void <API key>() {
Map<String, Object> jsonMap = new HashMap<>();
jsonMap.put("key1", "value1");
jsonMap.... |
"""Pipeline configuration parameters."""
from os.path import dirname, abspath, join
from sqlalchemy import create_engine
OS_TYPES_URL = ('https://raw.githubusercontent.com/'
'openspending/os-types/master/src/os-types.json')
PIPELINE_FILE = 'pipeline-spec.yaml'
<API key> = 'source.datapackage.json'
SOURC... |
/* @flow */
import * as React from 'react';
import cn from 'classnames';
import { StyleClasses } from '../theme/styleClasses';
type Props = {
// An optional inline-style to apply to the overlay.
style: ?Object,
// An optional css className to apply.
className: ?string,
// Boolean if this divider should be ins... |
<?php
namespace FOS\GoogleBundle\Templating\Helper;
use Symfony\Component\Templating\Helper\Helper;
use Symfony\Component\Templating\EngineInterface;
class GoogleHelper extends Helper
{
protected $templating;
public function __construct(EngineInterface $templating)
{
$this->templating = $templating... |
// HMAppUtil.h
// HomeMate
/**
*
* key
* HM+++Key
*
* HM++
*
*/
#ifndef HMUtil_h
#define HMUtil_h
#import "HMConstant.h"
#define IOS8 ([[[UIDevice currentDevice]systemVersion]floatValue] >= 8.0)
#define IOS9 ([[[UIDevice currentDevice]systemVersion]floatValue] >= 9.0)
#define IOS10 ([[[UIDevice currentDe... |
import * as $ from 'jquery';
import { clearStyles } from '../util';
import { Article } from '..';
export const cleanup = () => {
$('#scrollDiv').remove();
}
export function parse(): Article {
let articleBody = clearStyles($('.article-text')[0].cloneNode(true));
let $subtitle = $('.subtitle', articleBody);
... |
using System;
using System.Collections;
using Zh.DAL.Base.Define;
using Zh.DAL.Define.Entities;
using Zh.DAL.Define;
namespace Zh.DAL.Define.Contracts
{
<summary>
Member_Account()
</summary>
public partial interface IMemberAccountDao : IBaseDao<Member_Account>
{
}
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test Runner</title>
<link rel="stylesheet" href="/kissy/tools/jasmine/jasmine.css">
<script src="/kissy/tools/jasmine/jasmine.js"></script>
<script src="/kissy/tools/jasmine/jasmine-html.js"></script>
<script src="/kissy/tools/jasmine/j... |
package com.aspose.spreadsheeteditor;
import java.util.logging.Logger;
import javax.enterprise.context.ApplicationScoped;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.inject.Named;
import org.primefaces.context.RequestContext;
/**
*
* @author Saqib Masood
*/
@Nam... |
import {Task} from './task.model'
import {Injectable} from 'angular2/core'
import {Http, Response, Headers, RequestOptions} from 'angular2/http';
import {Observable} from "rxjs/Observable";
@Injectable()
export class TaskService {
constructor(
private http: Http
) { }
private _tasksUrl = 'api/tasks'... |
class BusStopController < <API key>
<API key> with: :null_session, if: Proc.new { |c| c.request.format == 'application/json' }
def api
obj = params["data"]
p params["data"]
address = obj.split("','")[0]
bus_num = obj.split("','")[1]
bus_num = bus_num[0..-2]
response = Geokit::Geocoders::Mu... |
DROP TABLE IF EXISTS locations;
CREATE TABLE locations (
location_id INT NOT NULL AUTO_INCREMENT,
code VARCHAR(256) NOT NULL,
description VARCHAR(2048),
order_val INT,
CONSTRAINT locations_pk PRIMARY KEY (location_id)
); |
package org.spongepowered.api.item.properties;
import org.spongepowered.api.util.Coerce;
/**
* Represents an item property that has an integer value. Examples may include
* {@link <API key>}, {@link SaturationProperty} etc.
*/
public class DoubleProperty extends <API key><String, Double> {
/**
* Create a n... |
<?php
namespace CdnPurge\Limelight;
use CdnPurge\Common\Enum\BasicEnum;
/**
* Limelight specific constants
*/
abstract class ApiConstants extends BasicEnum
{
/** constants root */
const CONST_ROOT = 'limelight';
/** Configuration related constants */
const CONF_SHORTNAME = 'shortname';
const CONF_... |
package <API key>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/tracin... |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0x35AA91CE)]
public class STU_35AA91CE : STUInstance {
[STUField(0x4227DBDA, EmbeddedInstance = true)]
public STULib.Types.Dump.STU_7C27312D[] m_4227DBDA;
[STUField(0xD7A962... |
// This file enables 'go generate' to regenerate this specific SDK
//go:generate pwsh.exe ../../../../eng/scripts/build.ps1 -skipBuild -cleanGenerated -format -tidy -generate resourcemanager/<API key>/<API key>
package <API key> |
var windowHeight = $(window).height();
var menuBarHeight = $('#codeplayer-menubar').height();
$('.<API key>').css('height', (windowHeight - menuBarHeight) + 'px');
$('.codeplayer-toogle').click(function() {
$(this).toggleClass('codeplayer-selected');
var codeContainerDiv = '#codeplayer-' + $(this).html() + '-co... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using TAlex.MathCore.<API key>.Extensions;
using TAlex.MathCore.<API key>.Helpers;
namespace TAlex.MathCore.<API key>.Trees.Metadata
{
public class <API key> : <API key>
{
#region <API key> Mem... |
<reference types="react" />
import * as React from "react";
import { ITab2Props, TabId } from "./tab2";
export interface ITabTitleProps extends ITab2Props {
/** Handler invoked when this tab is clicked. */
onClick: (id: TabId, event: React.MouseEvent<HTMLElement>) => void;
/** ID of the parent `Tabs` to whi... |
var randomBytes = require('mz/crypto').randomBytes;
module.exports = function* trace(next) {
this.id = yield randomBytes(24);
var ctx = this;
var req = this.req;
var res = this.res;
// request start
this.trace('time.start');
// request end
req.once('end', this.trace.bind(this, 'time.end'... |
# List Indentation start_indent/indent
* item 1
* item 2
* item 2.1
* item 2.2
* item 2.2.1
* item 2.3
* item 2.3.1 {MD007}
* item 3
* item 4 {MD005} {MD007}
Text
* item 1 {MD007}
* item 2 {MD007}
* item 2.1
* item 2.2
* item 2.2.1
Text
* item 1
* item 2
* item 2.1 ... |
(function() {
'use strict';
angular.module('cd.app.registerForm')
.controller('<API key>', <API key>);
/* @ngInject */
function <API key> ($location, StepsService) {
var $ctrl = this;
$ctrl.selectedPlatform = JSON.parse(localStorage.getItem('selectedPlatform'));
$ctrl.sel... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>just some testing</title>
<scriptsss src="//cdn.jsdelivr.net/bluebird/3.4.0/bluebird.js"></scriptsss>
<script type="text/javascript" src="btrees/persistentBPlusTree.js"></script>
<script type="text/javascript" src="murmurHash3.min... |
class String
# Changes an underscored string into a class reference.
def _as_class
# classify expects self to be plural
self.classify.constantize
end
# For compatibility with the Symbol extensions.
alias :_singularize :singularize
alias :_pluralize :pluralize
alias :_classify :classify
end
class S... |
from pokemongo_bot.human_behaviour import sleep
from pokemongo_bot.base_task import BaseTask
class IncubateEggs(BaseTask):
<API key> = 1
last_km_walked = 0
def initialize(self):
self.ready_incubators = []
self.used_incubators = []
self.eggs = []
self.km_walked = 0
sel... |
#!/usr/bin/env python3
"""
Verify data doesn't have basic mistakes, like empty text fields or empty label
candidates.
## Examples
shell
parlai verify_data --task convai2 --datatype valid
"""
from parlai.agents.repeat_label.repeat_label import RepeatLabelAgent
from parlai.core.message import Message
from parlai.core.par... |
package gonfler
import (
"archive/tar"
"os"
)
type TarArchive struct {
handle *tar.Reader
file *os.File
}
func (archive TarArchive) Close() error {
return archive.file.Close()
}
func (archive TarArchive) Volumes() VolumeIterator {
var next func() VolumeIterator
next = func() VolumeIterator... |
<fieldset class="col-sm-12 bordure">
<legend class="legende">{{ 'Dishprice' | translate }}</legend>
<div ng-include src="'partials/message-include.html'"></div>
<table class="table table-striped">
<thead>
<tr>
<th>{{ 'dishpr... |
#include <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "init.h"
#include "base58.h"
using namespace std;
using namespace boost;
using namespace boost::assign;
using namespace json_spirit;
int64 nWalletUnlockTime;
static CCriticalSection <API key>;
std::string <API... |
import { Actor } from './game';
import { Point, Size } from './foundation';
export class Rectangle implements Actor {
public isAlive: boolean;
protected rectCenter: Point;
protected rectSize: Size;
protected horizontalDirection: number;
protected verticalDirection: number;
constructor(center: Po... |
#!/usr/bin/php
<?php
require "../api/Init.php";
require "../api/AbzuDB.php";
$AbzuDB = new AbzuDB($db);
echo $AbzuDB->get_gauge_to_date("7813517", "month", "2016-03") . "\n";
// $AbzuDB->get_meter_data("7813517", "week");
// $AbzuDB->insert_meter_data("042014", "01245", "10/Oct/2000:13:55:36 -07... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
namespace Hstar.Lara.Cache.Tests
{
[TestClass]
public class <API key>
{
private static CacheItem<int> intCache;
private static int cacheValue = 1;
[ClassInitialize]
public static void Initialize... |
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.desk.notifications import <API key>
from frappe.core.doctype.user.user import STANDARD_USERS
from frappe.utils.user import <API key>
from frappe.utils import cint
@frappe.whitelist()
def get_list(arg=None):
"""get list of message... |
// <auto-generated>
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
#region Designer generated code
#pragma warning disable
namespace Tests
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.<API key>("TechTalk.SpecFlow", "2.... |
.text, .bar {
height: 30px;
float: left;
}
.bar {
background-color: lightgray;
float: left;
width: 500px;
border: 1px solid black;
<API key>: 4px;
<API key>: 4px;
}
.text {
text-align: right;
width: 200px;
vertical-align: middle;
padding-right: 10px;
}
.text p, .<API key>... |
// **NOTE** This file was generated by a tool and any changes will be overwritten.
namespace Microsoft.Graph
{
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Threading;
<summary>
The type <API key>.
</summary>
public partial class <API key> : BaseRequ... |
import {CORE_DIRECTIVES} from 'angular2/common';
import {Component} from 'angular2/core';
import {OnInit} from 'angular2/core';
import {NotificationService} from '../../service/<API key>';
import {Alert} from 'ng2-bootstrap/ng2-bootstrap';
@Component({
selector: 'notification-center',
template: require('./notif... |
'use strict';
function fixImports() {
let editor = atom.workspace.getActiveTextEditor()
if (editor) {
// fixImports(editor)
// editor.<API key>()
}
}
module.exports = {
fixImports,
}; |
using System.Threading.Tasks;
namespace _2.<API key>
{
class Program
{
static void Main(string[] args)
{
Parallel.For(0, 6, x => <API key>.Instance.SaveToLog(x));
<API key>.Instance.PrintLog();
}
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paramcoq: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
/*
* bootstrap-tagsinput v0.8.0
*
*/
.bootstrap-tagsinput {
background-color: #fff;
border: 1px solid #ccc;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
/*display: inline-block;*/
padding: 4px 6px;
color: #555;
vertical-align: middle;
border-radius: 4px;
max-width: 100%;
line-height: 22px;
... |
require 'json'
autoload :EbayItem, "ebay_ruby/ebay_item"
class EbayFindItem
def initialize(json)
@json = json
end
attr_reader :json
def parse
JSON.parse(json).values.first
end
def all_items
total_items = []
begin
parse.first["searchResult"].first["item"].each do |item|
ebay_ite... |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... |
#ifndef __P_BUFFER_H__
#define __P_BUFFER_H__
void P_bufferinit();
void P_bufferclose();
#endif |
var $iterators = require('./es6.array.iterator')
, redefine = require('./_redefine')
, global = require('./_global')
, hide = require('./_hide')
, Iterators = require('./_iterators')
, wks = require('./_wks')
, CORRECT_SYMBOL = require('./_correct-symbol')
, ITE... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_112) on Mon Feb 06 01:21:49 MST 2017 -->
<title></title>
<meta name="date" content="2017-02-06">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"><... |
/* tslint:disable */
/* eslint-disable */
import { ConcreteRequest } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
export type <API key> = {};
export type <API key> = {
readonly fair: {
readonly " $fragmentRefs": FragmentRefs<"FairHeader_fair">;
} | null;
};
export type <API key> =... |
package watch
import (
"log"
"os"
"sync"
"syscall"
"github.com/hpcloud/tail/util"
"gopkg.in/fsnotify.v1"
)
type InotifyTracker struct {
mux sync.Mutex
watcher *fsnotify.Watcher
chans map[string]chan fsnotify.Event
done map[string]chan bool
watch chan *watchInfo
... |
define(function(require, exports, module) {
var Engine = require('famous/core/Engine');
var Surface = require('famous/core/Surface');
var Modifier = require('famous/core/Modifier');
var StateModifier = require('famous/modifiers/StateModifier');
var Transform ... |
import React, { Component, PropTypes } from 'react';
import Select from 'react-select';
import { omit } from 'lodash';
import classNames from 'classnames';
import styles from './styles.scss';
import chevronIcon from '../../../assets/images/icons/chevron-down.svg';
export const THEMES = { OLD: 'old', INTERNAL: 'internal... |
<?php
declare(strict_types=1);
namespace Thunder\Currenz\Tests;
use PHPUnit\Framework\TestCase;
use Thunder\Currenz\Utility\Utility;
final class UtilityTest extends TestCase
{
public function testXmlToArray()
{
$this->assertCount(179, Utility::xmlToArray(file_get_contents(__DIR__.'/../data/list_one.xml'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.