answer stringlengths 15 1.25M |
|---|
<?php
namespace Sonata\MediaBundle\Form\DataTransformer;
use Symfony\Component\Form\<API key>;
use Sonata\MediaBundle\Provider\Pool;
use Sonata\MediaBundle\Model\MediaInterface;
class <API key> implements <API key>
{
protected $pool;
protected $options;
/**
* @param Pool $pool
* @param string $c... |
#include "math.h"
/**
* @param {number} x
* @return {number}
*/
float smash::math::square(float x) {
return x * x;
};
/**
* @param {number} x1
* @param {number} y1
* @param {number} z1
* @param {number} x2
* @param {number} y2
* @param {number} z2
* @return {number}
*/
float smash::math::vectorDistance(flo... |
package org.deri.iris.basics;
import org.deri.iris.api.basics.IPredicate;
public class Predicate implements IPredicate {
private final String symbol;
/** A (unique) string containing the predicate name and arity. */
private final String symbolPlusArity;
private final int arity;
Predicate(final Strin... |
Copyright (c) 2016 Dropbox, Inc. All rights reserved.
Auto-generated by Stone, do not modify.
#import <Foundation/Foundation.h>
#import "<API key>.h"
@class <API key>;
<API key>
#pragma mark - API Object
The `<API key>` struct.
Transfer files added.
This class implements the `DBSerializable` protocol (serialize and
des... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Kemel.Orm.Entity.Attributes
{
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class TextValueAttribute : Attribute
{
public TextValueAttribute(string strTe... |
<div ng-controller="SidebarCtrl">
<md-sidenav class="Sidebar md-sidenav-left md-whiteframe-z2" md-component-id="left" md-is-locked-open="true">
<md-toolbar class="">
<h1 class="md-toolbar-tools Sidebar-title">Laravel 5 angular material starter</h1>
<h6 class="Sidebar-version">v 2.2.0... |
var assert = require('assert');
var WebSocket = require('ws');
var zetta = require('./..');
var zettacluster = require('zetta-cluster');
var Driver = require('./fixture/example_driver');
var MemRegistry = require('./fixture/mem_registry');
var MemPeerRegistry = require('./fixture/mem_peer_registry');
describe('Peering ... |
require "test_helper"
class SubscriptionTest < ActiveSupport::TestCase
should belong_to :rubygem
should belong_to :user
should <API key>(:rubygem_id).scoped_to(:user_id)
should <API key>(:rubygem)
should <API key>(:user)
should "be valid with factory" do
assert build(:ownership).valid?
end
end |
import random
import string
import cherrypy
class StringGenerator(object):
@cherrypy.expose
def index(self):
return "Hello world!"
@cherrypy.expose
def generate(self, length=8):
return ''.join(random.sample(string.hexdigits, int(length)))
if __name__ == '__main__':
cherrypy.quickstar... |
# AGQueryString
[
{
Console.WriteLine("Please enter an array!");
... |
package android.support.loader;
public final class R {
private R() {}
public static final class attr {
private attr() {}
public static final int alpha = 0x7f020027;
public static final int font = 0x7f02007a;
public static final int <API key> = 0x7f02007c;
public static fi... |
from .nvd3 import NVD3
from flask import jsonify, request
import numpy as np
class TwoAxisFocus(NVD3):
_allowed_axes = ["sigma", "minmax"]
def __init__(self, x, y1, y2, data_source, init_params={},
chart_id="new_chart", url="/new_chart/", colors=[], auto_scale="sigma",
y1_axis_range=[], y2_axis_... |
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/IFC4/include/<API key>.h"
#include "ifcpp/IFC4/include/IfcForceMeasure.... |
/*can@2.2.7#view/parser/parser*/
steal('can/view', function (can) {
function makeMap(str) {
var obj = {}, items = str.split(',');
for (var i = 0; i < items.length; i++) {
obj[items[i]] = true;
}
return obj;
}
function handleIntermediate(intermediate, handler) {
... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Treeful</title>
<style type="text/css">
body {
font-family: "arial";
}
</style>
</head>
<body>
<h1>Vanilla Counter</h1>
<button id='i... |
# Installation
> `npm install --save @types/jasminewd2`
# Summary
This package contains type definitions for jasminewd2 (https://github.com/angular/jasminewd).
# Details
Files were exported from https:
Additional Details
* Last updated: Thu, 16 Mar 2017 14:36:10 GMT
* Dependencies: jasmine
* Global values: afterAll,... |
package aima.test.core.unit.environment.map;
import java.util.ArrayList;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import aima.core.agent.Action;
import aima.core.environment.map.ExtendableMap;
import aima.core.environment.map.MapFunctionFactory;
import aima.core.environment.map.MoveToAct... |
package elasta.orm.event;
import elasta.core.promise.intfs.Promise;
import elasta.orm.event.builder.<API key>;
import io.vertx.core.json.JsonObject;
public interface EventProcessor {
Promise<JsonObject> processDelete(String entityName, JsonObject entity);
Promise<JsonObject> processUpsert(String entityName, Jso... |
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.<API key>({
imports: [
RouterTestingModule
],
declarati... |
<?php
/**
* Sidebar/Widgets.
*/
class MDG_Sidebar {
private $conditionals;
/**
* Page template checks (via is_page_template())
*
* @var array
*/
private $templates;
/**
* If the sidebar should be displayed.
*
* @var boolean
*/
public $display = true;
/... |
/**
* Load the specified relations for the given instance.
*
* @param resourceName The name of the type of resource of the instance for which to load relations.
* @param instance The instance or the primary key of the instance.
* @param relations An array of the relations to load.
* @param options Optional config... |
package com.microsoft.azure.management.mediaservices.v2019_05_01_preview;
import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.<API key>;
/**
* Defines values for TrackPropertyType.
*/
public final class TrackPropertyType extends <API key><TrackPropertyType> {
... |
package expr
import (
"fmt"
"net/url"
"testing"
"goa.design/goa/v3/eval"
)
func <API key>(t *testing.T) {
cases := []struct {
name string
kind FlowKind
expected string
}{
{"authorization-code", <API key>, "flow authorization_code"},
{"implicit", Im... |
package com.dmdirc.addons.nickcolours;
import com.dmdirc.config.GlobalConfig;
import com.dmdirc.ui.messages.ColourManager;
import com.dmdirc.util.io.yaml.BaseYamlStore;
import java.awt.Color;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.M... |
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package <API key>
import (
"testing"
"github.com/awslabs/aws-sdk-go/service/cloudsearchdomain"
"github.com/awslabs/aws-sdk-go/service/cloudsearchdomain/<API key>"
"github.com/stretchr/testify/assert"
)
func TestInterface(t *testing.T) {
assert.Im... |
<?php
namespace App\Model\Interfaces;
interface TitleInterface
{
public function getTitlesByType(int $type);
} |
<?php return unserialize('a:1:{i:0;O:30:"Doctrine\\ORM\\Mapping\\OneToMany":6:{s:8:"mappedBy";s:12:"articleImage";s:12:"targetEntity";s:19:"ArticleImageCaption";s:7:"cascade";a:1:{i:0;s:7:"persist";}s:5:"fetch";s:4:"LAZY";s:13:"orphanRemoval";b:0;s:7:"indexBy";s:10:"languageId";}}'); |
#!/bin/bash
if [[ "${CI}" == 'true' && "${TRAVIS}" == 'true' ]]; then
echo "Objective-Clean will not be executed on Travis"
exit 0
fi
if [[ -z "${SKIP_OBJCLEAN}" || "${SKIP_OBJCLEAN}" != 1 ]]; then
if [[ -d "${LOCAL_APPS_DIR}/Objective-Clean.app" ]]; then
"${LOCAL_APPS_DIR}"/Objective-Clean.app/Cont... |
<?php
namespace PHPAlgorithms\Dijkstra\Tests;
use PHPAlgorithms\Dijkstra;
use PHPAlgorithms\Dijkstra\Creator;
use <API key>;
class PointTest extends <API key> {
public function testLabels()
{
$point0 = $point1
= $point2
= null;
new Dijkstra(function (Creator $creator) use... |
#ifndef __FILEDATA_H
#define __FILEDATA_H
#if !defined( __SORTABLE_H )
#include <Sortable.h>
#endif // __SORTABLE_H
#if !defined( __STRNG_H )
#include <Strng.h>
#endif // __STRNG_H
#if !defined( __LDATE_H )
#include <LDate.h>
#endif // __LDATE_H
#if !defined( __LTIME_H )
#include <LTime.h>
#endif // __LTIME... |
var ProgressBarClassic = require('./lib/ProgressBarClassic')
module.exports = ProgressBarClassic |
// Initializes the `messages` service on path `/messages`
const createService = require('feathers-sequelize');
const createModel = require('../../models/messages.model');
const hooks = require('./messages.hooks');
const filters = require('./messages.filters');
module.exports = function () {
const app = this;
const ... |
# -*- coding: utf-8 -*-
# This software may be modified and distributed under the terms
from __future__ import print_function
from datetime import datetime
from importlib import import_module
from itertools import chain, islice
import sys
import traceback
import six
def ichunked(seq, chunksize):
iterable = iter(seq... |
<a href='https://github.com/angular/angular.js/edit/v1.5.x/src/ng/directive/ngEventDirs.js?message=docs(ngClick)%3A%20describe%20your%20change...#L3' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a>
<a href='https://github.com/angular/angular.js/tree/v1.5.2/src/ng/... |
package edu.gemini.xml;
import java.io.FileWriter;
import java.io.IOException;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;
public class StaxExample {
public static void main(String[] args) {
try {
XMLOutputFactory... |
require('mocha');
const should = require('should');
const mongoose = require('mongoose');
const lockdown = require('..');
const Schema = mongoose.Schema;
// make database connection
mongoose.connect('mongodb://localhost', {
useNewUrlParser: true,
useMongoClient: true,
});
mongoose.connection.on('error', function(er... |
<div class="container">
<div class="leftRightContent">
<div class="leftContent">
<div class="leftTitleDisable">NEWS & MEDIA //</div>
</div>
<div id="newsRightContent" class="rightContent">
<div class="newsInner" id="newsNode">
<div class="listing">
... |
#ifndef QPIC_H
#define QPIC_H
#include <stdint.h>
#include "qtypes.h"
typedef struct {
int width;
int height;
int stride;
const byte *pixels;
} qpic8_t;
typedef union {
uint32_t rgba;
struct {
byte red;
byte green;
byte blue;
byte alpha;
};
} qpixel32_t;
typedef struct {
... |
var assert = require('assert')
var specifications = require('./specifications.json')
var compressible = require('./')
// None of these should be actual types so that the lookup will never include them.
var example_types = [
{ type: 'something/text', should: true },
{ type: 'thingie/dart', should: true },
{ type: ... |
// <API key>.h
// RescueMe
#import <UIKit/UIKit.h>
#import "<API key>.h"
@interface <API key> : UIViewController <UITextFieldDelegate>
@property (nonatomic, strong) IBOutlet UITextField *txtFirstName;
@property (nonatomic, strong) IBOutlet UITextField *txtLastName;
@property (nonatomic, strong) IBOutlet UITextField *... |
require 'rails_helper'
require '<API key>'
describe <API key> do
describe '.format' do
context 'duty amount present' do
it 'result includes duty amount' do
expect(
<API key>.format(duty_amount: '55')
).to match /55/
end
end
context 'monetary unit, measurement unit & <... |
var app, viewModel;
viewModel = {
dt1: new u.DataTable({
meta: {
f1: {},
f2: {}
}
}),
};
/**
* app
* el DOM
* model
*/
app = u.createApp({
el: 'body',
model: viewModel
});
var r = viewModel.dt1.createEmptyRow();
r.setValue('f1', "2015-12"); |
/**
* UI classes.
*/
package com.dmdirc.addons.ui_swing; |
import logging
import socket
import voluptuous as vol
from homeassistant.components.climate import (ClimateDevice, PLATFORM_SCHEMA)
from homeassistant.const import (
CONF_PASSWORD, CONF_USERNAME, TEMP_CELSIUS, TEMP_FAHRENHEIT,
ATTR_TEMPERATURE)
import homeassistant.helpers.config_validation as cv
REQUIREMENTS =... |
order: 3
title:
`animConfig`
`jsx
import { QueueAnim, Button } from 'antd';
const Test = React.createClass({
getInitialState() {
return {
show: true,
};
},
onClick() {
this.setState({
show: !this.state.show,
});
},
render() {
const list = this.state.show ? [
<div classNa... |
# Swift2048
Clone of the popular game 2048 for iOS, originally created by Gabriele Cirulli (http://gabrielecirulli.github.io/2048/).
## Screenshot

## Features
* Persisted game state
* Support for external keyboards
* Custom color s... |
require 'capistrano/upload'
module Capistrano
class Configuration
module Actions
module FileTransfer
# Store the given data at the given location on all servers targetted
# by the current task. If <tt>:mode</tt> is specified it is used to
# set the mode on the file.
def put(d... |
using System;
namespace HyperFastCgi.Interfaces
{
public interface IListenerTransport
{
void Configure (IWebListener listener, object config);
bool Process (ulong requestId, int requestNumber, byte[] header, byte[] body);
void SendOutput (ulong requestId, int requestNumber, byte[] data, ... |
<?php
/**
* @package go\DB
* @subpackage Tests
*/
namespace go\Tests\DB\Exceptions;
use go\DB\DB;
use go\DB\Exceptions\Connect;
/**
* coversDefaultClass go\DB\Exceptions\Runtime
* @author Oleg Grigoriev <go.vasac@gmail.com>
*/
final class RuntimeTest extends \<API key>
{
public function testBacktraceLogic()
... |
{
"posts": [
{
"url": "/life/car/2018/01/02/carM.1514863588.A.644.html",
"title": "Lugexn s3?",
"image": "http://img.chinatimes.com/newsphoto/2017-04-21/656/a78a00_p_02_02.jpg",
"push": "28",
"boo": "7",
"date": "2018-01-02 11:26:25 ... |
#!/usr/bin/env python
import os
import os.path
import platform
import sys
def isPythonFrozen():
return hasattr( sys, "frozen" )
def getMainModulePath():
if isPythonFrozen():
p = os.path.dirname(unicode(sys.executable, sys.<API key>()))
if platform.system() == u'Darwin':
return os.env... |
{% extends 'template.html' %}
{% block title %}
{{ pagename }}
{% endblock %}
{% block content %}
<h2>{{ pagename }}</h2>
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">
<!-- Table -->
<table>
<tr>
<td><a href="/inicio"> <button... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2 20h20v4H2v-4zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5L5.49 17zm4.42-5.61 2.03-5.79h.12l2.03 5.79H9.91z"
}), 'FormatColorText'); |
<?php
namespace Pantheon\Terminus\Commands\Domain;
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
use Pantheon\Terminus\Commands\TerminusCommand;
use Pantheon\Terminus\Commands\StructuredListTrait;
use Pantheon\Terminus\Site\SiteAwareInterface;
use Pantheon\Terminus\Site\SiteAwareTrait;
/**
* Class Li... |
# Time: O(n) ~ O(n^2)
# Space: O(1)
from random import randint
class Solution:
# @param {integer[]} nums
# @param {integer} k
# @return {integer}
def findKthLargest(self, nums, k):
left, right = 0, len(nums) - 1
while left <= right:
pivot_idx = randint(left, right)
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigatio... |
import test.support
# Skip tests if _multiprocessing wasn't built.
test.support.import_module('_multiprocessing')
# Skip tests if sem_open implementation is broken.
test.support.import_module('multiprocessing.synchronize')
# import threading after _multiprocessing to raise a more revelant error
# message: "No module na... |
#pragma once
#include <gtksourceviewmm.h>
#include <mutex>
#include <set>
#include <boost/filesystem.hpp>
namespace Source {
class BaseView : public Gsv::View {
public:
BaseView(const boost::filesystem::path &file_path, const Glib::RefPtr<Gsv::Language> &language);
~BaseView() override;
boost::filesyste... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMessagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('messages', function (Blueprint $table) {
$t... |
using System.Collections.Generic;
using System.Windows;
using MarkdownEdit.Models;
namespace MarkdownEdit.Controls
{
public partial class EncodingComboBox
{
public static readonly DependencyProperty <API key> = DependencyProperty.Register(
"SelectedEncoding", typeof(MyEncodingInfo), typeof(E... |
<?php
namespace Proxies\__CG__\webStudent\EtudiantBundle\Entity;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class Section extends \webStudent\EtudiantBundle\Entity\Section implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
private $_identifier;
public $__i... |
// Broad Institute. All rights are reserved. This software is supplied //
// Institute is not responsible for its use, misuse, or functionality. //
#ifndef FASTG_TOOLS_H
#define FASTG_TOOLS_H
#include "CoreTools.h"
#include "efasta/EfastaTools.h"
// class specifying all FASTG specifications
class fastg_meta... |
using System.ComponentModel.Composition;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.VisualStudio.LanguageServices.Implementation.TableDataSource;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.TableManager;
namespace Microsoft.Visua... |
/**
* The Carousel module provides a widget for browsing among a set of like
* objects represented pictorially.
*
* @module carousel
* @requires yahoo, dom, event, element
* @optional animation
* @namespace YAHOO.widget
* @title Carousel Widget
* @beta
*/
(function () {
var WidgetName; // forw... |
WebsocketRails::EventMap.describe do
# You can use this file to map incoming events to controller actions.
# One event can be mapped to any number of controller actions. The
# actions will be executed in the order they were subscribed.
subscribe :update_stock_user, to: SocketController, with_method: :update_s... |
## Aspose.OCR for Java Examples
This directory contains examples for [Aspose.OCR for Java](https://products.aspose.com/ocr/java).
## How to use the examples?
Download the code and use your favourite IDE to open/import the examples.
See our [documentation](https://docs.aspose.com/display/OCRJAVA/Home) for more details. |
/*
* HTML5 Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/*
///////////////////////////////////////////////
HOMEPAGE
//////////////////////... |
// RMG - Reaction Mechanism Generator
// RMG Team (rmg_dev@mit.edu)
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// and/or sell copies of the Software, and to permit persons to whom the
// Sof... |
namespace Steam.Models.GameEconomy
{
public class <API key>
{
public bool Nameable { get; set; }
public bool? Decodable { get; set; }
public bool? Paintable { get; set; }
public bool? CanCustomizeTexture { get; set; }
public bool? CanGiftWrap { get; set; }
public ... |
/// <reference path="D:\GE\GE.WebUI\bower_components/jquery/dist/jquery.min.js" />
(function ($) {
$.fn.geGameMenu = function () {
this.each(function () {
var $this = $(this);
$this.find('[data-toggle="tooltip"]').tooltip({
container: $this
});
});... |
import BasePlugin from './../_base.js';
import Handsontable from './../../browser';
import {addClass, hasClass, removeClass, outerHeight} from './../../helpers/dom/element';
import {arrayEach, arrayMap} from './../../helpers/array';
import {rangeEach} from './../../helpers/number';
import {eventManager as eventManagerO... |
import { __extends } from "tslib";
import { Container } from "./Container";
import { List, ListDisposer } from "./utils/List";
import { OrderedListTemplate } from "./utils/SortedList";
import { Dictionary } from "./utils/Dictionary";
import { Disposer, MultiDisposer } from "./utils/Disposer";
import { DataSource } from... |
# Integrations
## Fastly Feed
- Added the Traffic Light Protocol integration parameter.
- Updated docker image to the latest version. |
<?php
class Secure extends Front_Controller {
var $customer;
function __construct()
{
parent::__construct();
$this->load->model(array('location_model'));
$this->customer = $this->go_cart->customer();
}
function index()
{
show_404();
}
function login($ajax ... |
<?php return unserialize('a:3:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:8:"username";s:4:"type";s:6:"string";s:6:"length";i:25;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:7:"options";a:0:{}s:16:"columnDefinition";N;}i:1;O:48:"Symfony\\Component\\Validator\\Constraints\\Not... |
# NOTICE: THIS FILE IS AUTOGENERATED
# MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
# PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Ship()
result.template = "object/ship/<API key>.iff"
result.<API key> = -1
result.stfName("","")
return resul... |
'use strict'
var XML = require('xmlbuilder')
var YAML = require('yamljs')
var moment = require('moment')
module.exports = function (req, res, next) {
res.bodyXmlObj = {
response: res.body
}
// am I pretty?
var spaces = req.headers['x-pretty-print'] ? parseInt(req.headers['x-pretty-print'], 10) : 2
functio... |
require 'rails_helper'
RSpec.describe AboutController, type: :controller do
describe "GET #index" do
it "returns http success" do
get :index
expect(response).to have_http_status(:success)
end
end
end |
[, Java (>1,7), git
sudo apt-get install tomcat7 mysql-server maven git... |
<?php
namespace SumoCoders\FrameworkCoreBundle\Tests\Composer;
use SumoCoders\FrameworkCoreBundle\Composer\ScriptHandler;
class ScriptHandlerTest extends \<API key>
{
/**
* Test ScriptHandler-><API key>()
*/
public function <API key>()
{
$io = $this->getMockBuilder('\Composer\IO\ConsoleIO'... |
const moment = require('moment-timezone');
const { LOCALE_TIMEZONE } = process.env;
const pgTimeToDate = time => new Date(`2000-01-01 ${time}`);
const dateTime = (date, time) => new Date([date, time].join('T'));
function getDuration(start, end) {
const diffMS = end.getTime() - start.getTime();
const diffMinutes = d... |
var api = require("./api");
function getRevision(id, body, callback) {
if (body.revision) {
return callback(null, body.revision);
}
api.get("/tasks/" + id, function(error, response, body) {
if (error) {
return callback(error);
}
callback(null, body.revision);
});
}
module.exports = functio... |
'use strict';
import React, { AppRegistry } from 'react-native';
import Main from './src/containers/Main/Main';
AppRegistry.registerComponent('gainsville', () => Main); |
#include "lib.h"
#include "settings-parser.h"
#include "<API key>.h"
#include "<API key>.h"
#include <stddef.h>
#undef DEF
#define DEF(type, name) \
{ type, #name, offsetof(struct <API key>, name), NULL }
static bool
<API key>(void *_set, pool_t pool, const char **error_r);
static const struct setting_define <API k... |
using System;
using System.ComponentModel;
namespace Nettiers.AdventureWorks.Entities
{
<summary>
The data structure representation of the 'ProductCostHistory' table via interface.
</summary>
<remarks>
This struct is generated by a tool and should never be modified.
</remarks>
public interfa... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>SoundBankPlayer: File Index</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src... |
# Acknowledgements
This application makes use of the following third party libraries:
## PGLContacts
Copyright (c) 2015 PGLongo <piergiuseppe.longo@gmail.com>
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... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from libunity.djinni
#pragma once
#include <string>
struct BalanceRecord;
struct MutationRecord;
struct TransactionRecord;
/** Interface to receive events from the core */
#ifdef DJINNI_NODEJS
#include "NJSILibraryListener.hpp"
#define ILibraryList... |
> POST /v1/mobile/signinbyverifycode
| | | | |
|
|randomCode|String|true| sendverifycode |
|verifyCode|String|true||
|action|String|true| action=resetpassword|
json
{
"_id":"<API key>",
"__v":0,
"updatedAt":"2015-11-06T01:43:34.861Z",
"createdAt":"2015-11-06T01:43:34.861Z",
"sho... |
// Minimal amount of configuration required for running Jasmine
// specs in an headless environment
// You may choose to use a slighly different environment with
// reporters like a jasmine.TrivialReporter or jasmine.HtmlReporter
// to see the results py pointing your browser to your spec runner.
// If you are on Unix ... |
html {
font-family: sans-serif;
-<API key>: 100%;
-ms-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baselin... |
package org.elkoserver.objdb.store.mongostore;
import org.elkoserver.foundation.boot.BootProperties;
import org.elkoserver.json.JSONArray;
import org.elkoserver.json.<API key>;
import org.elkoserver.json.JSONObject;
import org.elkoserver.json.Parser;
import org.elkoserver.json.SyntaxError;
import org.elkoserver.objdb.s... |
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
namespace _02.<API key>.Account {
public partial class Manage {
<summary>
successMessage control.
</... |
// UIView+MLInputDodger.h
// MLInputDodger
#import <UIKit/UIKit.h>
@interface UIView (MLInputDodger)
/**
* the shift height as dodger
*/
@property (nonatomic, assign) CGFloat <API key>;
/**
* the shift height as first responder , higher priority
*/
@property (nonatomic, assign) CGFloat <API key>;
/**
* The co... |
package main.model;
import java.awt.Point;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import main.model.map.*;
import main.model.tower.*;
import main.model.critter.*;
public class GameLogic {
private CritterManager critterManager;
private TowerManager towerManager;
priva... |
@lombok.experimental.SuperBuilder class <API key> {
public static abstract @java.lang.SuppressWarnings("all") class <API key><C extends <API key>, B extends <API key><C, B>> {
private @java.lang.SuppressWarnings("all") int field;
private @java.lang.SuppressWarnings("all") int otherField;
private @java.lan... |
'use strict';
require('babel/register')({
optional: ["es7.classProperties"]
});
/**
* Bootstrap our server process. This is responsible for
* pre-rendering React views for our templates.
*/
var app = require('../resources/assets/js/server');
app.listen(3000, function() {
console.log('React renderer started on po... |
using System;
using ZKWeb.Database;
using ZKWebStandard.Ioc;
namespace ZKWeb.Plugins.Shopping.Product.src.Domain.Entities {
<summary>
</summary>
[ExportMany]
public class <API key> :
IEntity<Guid>, <API key><<API key>> {
<summary>
Id
Id
</summary>
public v... |
<div class="example">
<form class="form-horizontal">
<div class="form_row">
<label for="username_horizontal">Username</label>
<div class="field">
<input type="email" id="username_horizontal" name="username_horizontal">
<em class="field_helper">Your username is typically your email addr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.