answer stringlengths 15 1.25M |
|---|
import Helper, { states } from './_helper';
import { module, test } from 'qunit';
module('Integration | ORM | Has Many | Named Reflexive | association #set', function(hooks) {
hooks.beforeEach(function() {
this.helper = new Helper();
});
/*
The model can update its association via parent, for all states
... |
{{ partial "head.html" . }}
{{ partial "body-before.html" . }}
<!-- Layout for Content Area of Markdown Page Goes Here -->
<div id="default__title">{{ .Title }}</div>
<div id="default__subtitle">{{ .Params.subtitle }}</div>
<div>{{ .Date.Format "Jan 02, 2006" }}</div>
<div id="default_text"> {{ .Content }} ... |
import * as React from 'react';
export interface LabelDetailProps {
[key: string]: any;
/** An element type to render as (string or function). */
as?: any;
/** Primary content. */
children?: React.ReactNode;
/** Additional classes. */
className?: string;
/** Shorthand for primary content. */
content?:... |
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Orleans;
using Orleans.Runtime;
using Orleans.Runtime.Scheduler;
using UnitTests.GrainInterfaces;
using UnitTests.Grains;
namespace UnitTestGrains
{
public class TimerGrain : Grain, ITimerGrain
{
... |
layout: theme
title: "Streamflow Prediction Research"
date: 2016-08-03 16:55:00
categories:
- themes
img: <API key>.jpg
ref: stream
tags: [themes]
One of the four overarching research themes addressed in this collection of work. Our ability to understand how much and when... < more about this research theme, coming ... |
#!/usr/bin/env python
import sys
def fix_terminator(tokens):
if not tokens:
return
last = tokens[-1]
if last not in ('.', '?', '!') and last.endswith('.'):
tokens[-1] = last[:-1]
tokens.append('.')
def balance_quotes(tokens):
count = tokens.count("'")
if not count:
return
processed = 0
for... |
<?php
namespace YOOtheme\Widgetkit\Framework\View\Asset;
interface AssetInterface
{
/**
* Gets the name.
*
* @return string
*/
public function getName();
/**
* Gets the source.
*
* @return string
*/
public function getSource();
/**
* Gets the dependencies... |
package br.pucrio.opus.smells.tests.visitor;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.FieldDeclaration;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import br.pucrio.opus.smells.as... |
module rl.utilities.services.momentWrapper {
export var moduleName: string = 'rl.utilities.services.momentWrapper';
export var serviceName: string = 'momentWrapper';
export function momentWrapper(): void {
'use strict';
// Using `any` instead of MomentStatic because
// <API key> doe... |
/* describe, it, afterEach, beforeEach */
import './snoocore-mocha';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
chai.use(chaiAsPromised);
let expect = chai.expect;
import config from '../config';
import util from './util';
import ResponseError from '../../src/ResponseError';
import Endpoint... |
using System;
using System.Collections.Generic;
using Csla;
namespace Templates
{
[Serializable]
public class <API key> :
<API key><DynamicRoot>
{
protected override object AddNewCore()
{
DynamicRoot item = DataPortal.Create<DynamicRoot>();
Add(item);
return item;
}
private s... |
#ifndef _DEFINES_H
#define _DEFINES_H
/* $Id: defines.h,v 1.171 2013/03/07 09:06:13 dtucker Exp $ */
/* Constants */
#if defined(HAVE_DECL_SHUT_RD) && HAVE_DECL_SHUT_RD == 0
enum
{
SHUT_RD = 0, /* No more receptions. */
SHUT_WR, /* No more transmissions. */
SHUT_RDWR /* No more rece... |
<?php
namespace Tixi\App\AppBundle\Interfaces;
class <API key> {
public $id;
public $anchorDate;
public $<API key>;
public $lookaheadaddressTo;
public $zoneStatus;
public $zoneId;
public $zoneName;
public $orderTime;
public $isRepeated;
public $compagnion;
public $memo;
/... |
#include "curl_setup.h"
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef __VMS
#include <in.h>
#include <inet.h>
#endif
#ifdef HAVE_PROCESS_H
#include <proces... |
package org.jsondoc.core.issues.issue151;
import org.jsondoc.core.annotation.Api;
import org.jsondoc.core.annotation.ApiMethod;
import org.jsondoc.core.annotation.ApiResponseObject;
@Api(name = "Foo Services", description = "bla, bla, bla ...", group = "foogroup")
public class FooController {
@ApiMethod(path = { "/... |
namespace Porter2Stemmer
{
public interface IStemmer
{
<summary>
Stem a word.
</summary>
<param name="word">Word to stem.</param>
<returns>
The stemmed word, with a reference to the original unstemmed word.
</returns>
StemmedWord Stem(string word);... |
function <API key>(firstParameter='something',
secondParameter='booooo',
third=null, fourthParameter=false,
fifthParameter=123.12,
sixthParam=true
){
}
function <API key>(
firstParameter='something',
secondParameter='booooo',
) {
}
function blah() {
}
function blah()
{
}
var object =
{
<API key>: fu... |
category: <API key>
Endpoint
GET https://api.paymentwall.com/api/rest/country
Sample Response
json
{
"code":"US",
"country":"United States"
} |
#!/usr/bin/env node
require("babel/register")({
"stage": 1
});
var fs = require("fs");
GLOBAL.WALLACEVERSION = "Err";
GLOBAL.PLUGIN_CONTRIBUTORS = [];
try {
var p = JSON.parse(fs.readFileSync(__dirname+"/package.json"));
GLOBAL.WALLACEVERSION = p.version;
}
catch(e) {}
var Core = require("./core/Core.js");
... |
<?php
Route::group([ 'middleware' => 'guest' ], function () {
Route::get('login', 'Auth\AuthController@getLogin');
Route::post('login', 'Auth\AuthController@postLogin');
// Password reset link request routes...
Route::get('password/email', 'Auth\PasswordController@getEmail');
Route::post('password/e... |
## Ruby
These settings apply only when `--ruby` is specified on the command line.
yaml $(ruby)
ruby:
package-name: azure_mgmt_search
package-version: "0.16.0"
azure-arm: true
Ruby multi-api
yaml $(ruby) && $(multiapi)
batch:
- tag: package-2015-08
Tag: package-2015-08 and ruby
These settings apply only when `--... |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:8:"datetime";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:16:"fecha_nacimiento";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}'); |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all copies or substanti... |
<div class="alert alert-{{$type}}">
<h1>{{$title}}</h1>
<p>{{$content}}</p>
</div> |
using RedditSharp.Things;
using System.Threading.Tasks;
namespace RedditSharp
{
partial class Helpers
{
private const string GetThingUrl = "/api/info.json?id={0}";
<summary>
Get a <see cref="Thing"/> by full name.
</summary>
<param name="agent">IWebAgent to use to make re... |
#!/usr/bin/env node
/**
* Release this package.
*/
"use strict";
process.chdir(__dirname + '/..');
const apeTasking = require('ape-tasking'),
apeReleasing = require('ape-releasing');
apeTasking.runTasks('release', [
(callback) => {
apeReleasing.releasePackage({
beforeRelease: [
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ic... |
@echo off
rem
rem ADOBE SYSTEMS INCORPORATED
rem Copyright 2007 Adobe Systems Incorporated
rem All Rights Reserved.
rem
rem NOTICE: Adobe permits you to use, modify, and distribute this file
rem in accordance with the terms of the license agreement accompanying it.
rem
rem
rem acompc.bat script for Windows.
rem This si... |
import os, scrapy, argparse
from realclearpolitics.spiders.spider import RcpSpider
from scrapy.crawler import CrawlerProcess
parser = argparse.ArgumentParser('Scrap realclearpolitics polls data')
parser.add_argument('url', action="store")
parser.add_argument('--locale', action="store", default='')
parser.add_argument('... |
/*global d3 */
// asynchronously load data from the Lagotto API
queue()
.defer(d3.json, encodeURI("/api/agents/"))
.await(function(error, a) {
if (error) { return console.warn(error); }
agentsViz(a.agents);
});
// add data to page
function agentsViz(data) {
for (var i=0; i<data.length; i++) {
var agen... |
var test = require("tape").test
var level = require("level-test")()
var testdb = level("test-versionstream")
var version = require("../")
var db = version(testdb)
var lastVersion
test("stuff some datas", function (t) {
t.plan(2)
db.put("pet", "fluffy", {version: 0})
db.put("pet", "spot", {version: 1})
db.put("p... |
#ifndef <API key>
#define <API key>
#include <Dataflow/Network/Module.h>
#include <Modules/Basic/share.h>
namespace SCIRun {
namespace Modules {
namespace Basic {
class SCISHARE PortFeedbackSender : public SCIRun::Dataflow::Networks::Module,
public Has1InputPort<StringPortTag>,
public HasNoOutputPorts
{
p... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Theming Pages</title>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
<link rel="stylesheet" href="../../_assets/c... |
describe 'font' do
before do
@rmq = RubyMotionQuery::RMQ
end
it 'should return font from RMQ or an instance of rmq' do
@rmq.font.should == RubyMotionQuery::Font
rmq = RubyMotionQuery::RMQ.new
rmq.font.should == RubyMotionQuery::Font
end
it 'should return a list of font families' do
@rmq.fo... |
#ifndef <API key>
#ifndef <API key>
#define <API key>
namespace j2cpp { namespace java { namespace lang { class Exception; } } }
namespace j2cpp { namespace java { namespace lang { class String; } } }
namespace j2cpp { namespace java { namespace lang { class Throwable; } } }
namespace j2cpp { namespace java { namespace... |
<?php
namespace Concrete\Tests\Core\File;
use Concrete\Core\File\Importer;
use Concrete\Core\Attribute\Type as AttributeType;
use Concrete\Core\Attribute\Key\FileKey;
use Concrete\Core\Attribute\Key\Category;
class FileListTest extends \FileStorageTestCase
{
/** @var \Concrete\Core\File\FileList */
protected $l... |
package com.tale.model;
import com.blade.jdbc.annotation.Table;
import java.io.Serializable;
@Table(name = "t_comments", pk = "coid")
public class Comments implements Serializable {
private static final long serialVersionUID = 1L;
// comment
private Integer coid;
// post,
private Integer cid;
//... |
"use strict";
const lua = require("../src/lua.js");
const lauxlib = require("../src/lauxlib.js");
const {to_luastring} = require("../src/fengaricore.js");
const toByteCode = function(luaCode) {
let L = lauxlib.luaL_newstate();
if (!L) throw Error("failed to create lua state");
if (lauxlib.luaL_loadstrin... |
<!doctype html>
<html>
<head>
<title>ATS-Queen-Puzzle</title>
<style>
#canvas-container
{
margin: 0 auto; width: 920px; height: auto;
}
</style>
<script
src="https://cdn.jsdelivr.net/jquery/2.1.1/jquery.min.js">
</script>
<script
src="https://ats-lang.github.io/LIBRARY/libatscc2js/ATS2-0.3.2/libatscc2js_all.js">
<... |
require 'active_support/inflector'
module Trello
class BasicData
include ActiveModel::Validations
include ActiveModel::Dirty
include ActiveModel::Serializers::JSON
include Trello::JsonUtils
class << self
def path_name
name.split("::").last.underscore
end
def find(id, para... |
from panda3d.core import NodePath, DecalEffect
import DNANode
import DNAWall
import random
class DNAFlatBuilding(DNANode.DNANode):
COMPONENT_CODE = 9
currentWallHeight = 0
def __init__(self, name):
DNANode.DNANode.__init__(self, name)
self.width = 0
self.hasDoor = False
def setWi... |
// This file was generated based on 'C:\ProgramData\Uno\Packages\Experimental.Physics\0.18.8\$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Uno.Int.h>
namespace g{
namespace Experimental{
namespace Physics{
// private enum <API key>.MoveMode :37
uEnumType* <API key>();
... |
/* Get Programming with JavaScript
* Listing 4.01
* Displaying an object's properties on the console
*/
var movie1;
movie1 = {
title: "Inside Out",
actors: "Amy Poehler, Bill Hader",
directors: "Pete Doctor, Ronaldo Del Carmen"
};
console.log("Movie information for " + movie1.title);
console.log("
consol... |
describe('Component: Product Search', function(){
var scope,
q,
oc,
state,
_ocParameters,
parameters,
mockProductList
;
beforeEach(module(function($provide) {
$provide.value('Parameters', {searchTerm: null, page: null, pageSize: null, sortBy: null... |
(function () {
'use strict';
angular.module('common')
.directive('svLumxUsersDropdown', function () {
return {
templateUrl: 'scripts/common/directives/<API key>.html',
scope: {
btnTitle: '@',
actionCounter: '@',
... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
using FluentAssertions;
using Microsoft.OData.Edm;
using Microsoft.OData.Edm.Csdl;
using Microsoft.OData.Edm.Library;
using Microsoft.OData.Edm.Library.Values;
using Microsoft.OData.Edm.Validation;
using Microsoft.ODat... |
#ifndef <API key>
#ifndef <API key>
#define <API key>
namespace j2cpp { namespace android { namespace os { class Bundle; } } }
namespace j2cpp { namespace java { namespace lang { class String; } } }
namespace j2cpp { namespace java { namespace lang { class Object; } } }
namespace j2cpp { namespace com { namespace tence... |
// <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 BrightstarDB.Polaris {
using System;
<summary>
A strongly-typed resource class, for looking up localized s... |
# -*- coding: utf-8 -*-
"""
Various i18n functions.
Helper functions for both the internal translation system
and for TranslateWiki-based translations.
By default messages are assumed to reside in a package called
'scripts.i18n'. In pywikibot 2.0, that package is not packaged
with pywikibot, and pywikibot 2.0 does no... |
'use strict';
moduloEpisodio.controller('<API key>', ['$scope', '$routeParams', 'serverService', 'episodioService', '$location', '$uibModalInstance', 'id',
function ($scope, $routeParams, serverService, episodioService, $location, $uibModalInstance, id) {
$scope.fields = episodioService.getFields();
... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var browserSync = require('browser-sync');
function isOnlyChange(event) {
return event.type === 'changed';
}
gulp.task('watch', ['inject'], function () {
path.join(conf.paths.src, '/assets/styles/css*.css'),
pa... |
.model-icon { min-width: 20px !important; display: inline-block !important; margin-left: 2px; }
.table a { display: block; }
.controller-admin .plugin-list { list-style: none; margin: 0; padding: 0; }
.controller-admin .plugin-list a { display: block; padding: 5px 15px; }
.controller-admin .plugin-list a.float-right { ... |
<?php
namespace Icewind\SMB;
use Icewind\SMB\Exception\DependencyException;
use Icewind\SMB\Exception\Exception;
/**
* Use existing kerberos ticket to authenticate and reuse the apache ticket cache (mod_auth_kerb)
*/
class KerberosApacheAuth extends KerberosAuth implements IAuth {
/** @var string */
private $... |
/* adddma.c
*/
#include <lib.h>
#define adddma _adddma
#include <unistd.h>
#include <stdarg.h>
int adddma(proc_e, start, size)
endpoint_t proc_e;
phys_bytes start;
phys_bytes size;
{
message m;
m.m2_i1= proc_e;
m.m2_l1= start;
m.m2_l2= size;
return _syscall(MM, ADDDMA, &m);
} |
module Trinidad
module Extensions
class BarOptionsExtension < OptionsExtension
def configure(parser, default_options)
default_options ||= {}
default_options[:bar] = true
end
end
end
end |
require "heroku/command/base"
require "base64"
require "excon"
# manage organization accounts
class Heroku::Command::Orgs < Heroku::Command::Base
# orgs
# lists the orgs that you are a member of.
def index
response = org_api.get_orgs.body
orgs = []
response.fetch('organizations', []).each do |org|
... |
var assert = require('assert');
var _ = require('@sailshq/lodash');
var SchemaBuilder = require('../lib/waterline-schema');
describe('Has Many Through :: ', function() {
describe('Junction Tables', function() {
var schema;
before(function() {
var fixtures = [
{
identity: 'user',
... |
package sacloud
// IPv6Addr IP(IPv6)
type IPv6Addr struct {
HostName string `json:",omitempty"`
IPv6Addr string `json:",omitempty"` // IPv6
Interface *Interface `json:",omitempty"`
IPv6Net *IPv6Net `json:",omitempty"` // IPv6
}
// GetIPv6NetID IPv6IPv6NetID
func (a *IPv6Addr) GetIPv6NetID(... |
using System;
using System.Runtime.InteropServices;
using Duality;
using Duality.Drawing;
using Duality.Resources;
namespace DynamicLighting
{
[StructLayout(LayoutKind.Sequential)]
public struct VertexC1P3T2A4 : IVertexData
{
public static readonly VertexDeclaration Declaration = VertexDeclaration.G... |
package engine.actions;
import engine.gameObject.GameObject;
import authoring.model.collections.<API key>;
public class <API key> extends PhysicsTypeAction {
public <API key> (String type, String secondType, Double value) {
super(type, secondType, value);
// TODO Auto-generated constructor stub
... |
<?php
phpinfo(); |
An ember command line utility.
Supports node 0.10.5 and npm 1.4.6.
## Community
* irc: #ember-cli on freenode
* issues: [ember-cli/issues](https://github.com/stefanpenner/ember-cli/issues)
* website: [iamstef.net/ember-cli](http://iamstef.net/ember-cli)
[.requires('lively.Network').toRun(function() {
// depends on the <API key>
Object.extend(lively.ide.DirectoryWatcher, {
watchServerURL: new URL(Config.nodeJSURL+'/<API key>/'),
dirs: {},
reset: function() {
// lively.ide.DirectoryWatcher.reset()
this.dirs... |
<html>
<head>
<title>Popcorn processing unit Tests</title>
<link rel="stylesheet" href="../../test/qunit/qunit.css" type="text/css" media="screen">
<script src="../../test/qunit/qunit.js"></script>
<script src="../../popcorn.js"></script>
<script src="popcorn.processing.js"></script>
<script src="popcorn.pr... |
body.<API key> #header .navbar-minimize > a {
background-color: #8d8d6e;
color: #ffffff;
}
body.<API key> #header .navbar-minimize:hover > a {
background-color: #7f7f63;
}
#header .navbar-header {
background-color: #8d8d6e;
}
.sidebar-content img {
border: 2px solid #8d8d6e;
}
#sidebar-left.sidebar-box .sideb... |
package com.jvm_bloggers.core.data_fetching.blog_posts;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.routing.RoundRobinPool;
import com.jvm_bloggers.core.data_fetching.blogs.<API key>;
import com.jvm_bloggers.core.rss.SyndFeedProducer;
import com.jvm_bloggers.entities.blog.Blog;
import com.jvm... |
'use strict';
require('../common');
// This test ensures that zlib throws a RangeError if the final buffer needs to
// be larger than kMaxLength and concatenation fails.
const assert = require('assert');
// Change kMaxLength for zlib to trigger the error without having to allocate
// large Buffers.
const buffer = requi... |
const {<API key>} = require('../../utils');
module.exports = <API key>('posts_meta', 'email_only', {
type: 'bool',
nullable: false,
defaultTo: false
}); |
import { EventsKey } from '../events';
import BaseEvent from '../events/Event';
import { Extent } from '../extent';
import Feature from '../Feature';
import Geometry from '../geom/Geometry';
import Point from '../geom/Point';
import { ObjectEvent } from '../Object';
import Projection from '../proj/Projection';
import {... |
<?php
require_once($argv[1]); // type.php
require_once($argv[2]); // program.php
$file_prefix = $argv[3];
?>
[apps..default]
run = true
count = 1
network.server.0.RPC_CHANNEL_TCP = NET_HDR_HTTP, dsn::tools::<API key>, 65536
[apps.server]
name = server
type = server
arguments =
ports = 27001
run = true
pools = THREAD_PO... |
package tenant
import (
"context"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/influxdata/influxdb/v2"
influxdbcontext "github.com/influxdata/influxdb/v2/context"
"github.com/influxdata/influxdb/v2/kit/feature"
"github.com/influxdata/influxdb/v2/kit/platform"
"github.com/influxda... |
package com.lichkin.framework.springboot.controllers.impl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframewor... |
//currently commented out as TokenTester is causing a OOG error due to the Factory being too big
//Not fully needed as factory & separate tests cover token creation.
/*contract("TokenTester", function(accounts) {
it("creates 10000 initial tokens", function(done) {
var tester = TokenTester.at(TokenTester.dep... |
module.exports = {
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react"
],
"rules": {
"react/prop-types": 0,
"react/jsx-boolean-value": 0,
"consistent-return": 0,
"guard-for-in": 0,
"<API key>": 0,
"<API key>": [2, { "anonymous": "never", "named": "always" }]
}
}... |
package au.com.codeka.planetrender;
import java.util.Random;
import au.com.codeka.common.PerlinNoise;
import au.com.codeka.common.Vector2;
import au.com.codeka.common.Vector3;
/**
* This class takes a ray that's going in a certain direction and warps it based on a noise pattern. This is used
* to generate misshapen a... |
body { overflow-x: hidden; font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif }
.text-muted { color: #777 }
.text-primary { color: #fed136 }
p { font-size: 14px; line-height: 1.75 }
p.large { font-size: 16px }
a, a:hover, a:focus, a:active, a.active { outline: 0 }
a { color: #fed136 }
a:hover, a... |
$demoPath = 'C:\Dropbox\GitRepos\<API key>\Testing PowerShell with Pester\Demos'
## Ensure no functions were just copied/pasted into session
Remove-Item Function:\Start-ClusterTest,Function:\Restart-Cluster,Function:\Test-ClusterProblem -ErrorAction Ignore
## Import the ClusterTest module into the session
Import-Module... |
// QNFormUpload.h
// QiniuSDK
#import "QNHttpDelegate.h"
#import "QNUpToken.h"
#import "QNUploadManager.h"
#import <Foundation/Foundation.h>
@interface QNFormUpload : NSObject
- (instancetype)initWithData:(NSData *)data
withKey:(NSString *)key
withFileName:(NSString *)fileName
... |
## AzureResourceSchema
These settings apply only when `--azureresourceschema` is specified on the command line.
AzureResourceSchema multi-api
yaml $(azureresourceschema) && $(multiapi)
batch:
- tag: <API key>
- tag: <API key>
- tag: <API key>
Please also specify `--<API key>=<path to the root directory of your <A... |
<?php defined('SYSPATH') or die('No direct script access.');
class Jelly_Meta extends Jelly_Core_Meta {} |
//>>built
define("clipart/SpinInput",["dojo/_base/declare","clipart/_clipart"],function(_1,_2){
return _1("clipart.SpinInput",[_2],{});
}); |
// <API key>.h
// <API key>
// Fade animation and arrow navigation strategy are based on:
// <API key>.h
// <API key>.m
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Soft... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_171) on Mon Apr 22 17:36:00 CST 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>cn.jpush.im.android.api.exceptions (android API)</title>
<meta name="date" content="2019-04-22">
<link r... |
# coding=utf8
## PubNub Real-time Push APIs and Notifications Framework
import sys
from pubnub import PubnubTornado as Pubnub
publish_key = len(sys.argv) > 1 and sys.argv[1] or 'demo'
subscribe_key = len(sys.argv) > 2 and sys.argv[2] or 'demo'
secret_key = len(sys.argv) > 3 and sys.argv[3] or 'demo'
cipher_key = len(sy... |
using System;
using System.Collections.Concurrent;
using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Common.Core;
using Microsoft.Common.Core.Logging;
using Microsoft.R.Common.Core.Output;
using static System.FormattableString;
namespace Microsoft.R.Host.Client.BrokerServices {
... |
"use strict";
var request = require('request');
var iconv = require('iconv-lite');
var crypto = require('crypto');
var Buffer = require('buffer').Buffer;
/**
* [_parseYouku ]
* @param [type] $url [description]
* @return [type] [description]
*/
module.exports = function($url,callback){
var $matches = $url... |
namespace org.critterai.interop
{
<summary>
Indicates how an object's unmanaged resources have been allocated and are managed.
</summary>
public enum AllocType : byte
{
<summary>
Unmanaged resources were allocated locally and must be freed locally.
</summary>
Local = ... |
package cn.mutils.app.alipay;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
# Strict mode
When you create a new workspace or an application you have an option to create them in a strict mode using the `--strict` flag.
Enabling this flag initializes your new workspace or application with a few new settings that improve maintainability, help you catch bugs ahead of time.
Additionally, applicatio... |
pre {
display: none;
}
table {
font-family: inherit;
font-size: inherit;
border: inherit;
}
#groupparts {
width: 100% !important;
margin-left: auto;
margin-right: auto;
}
#groupparts th {
width: auto !important;
}
table.pgrouptable {
background-color: inherit !important;
}
table.pgro... |
using System.IO;
using Aspose.Cells;
using System;
namespace Aspose.Cells.Examples.CSharp.Data.Handling
{
public class AddingDataToCells
{
public static void Run()
{
// ExStart:1
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(S... |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
$page = 'boxgamefile';
$tab = 3;
$isSummary = TRUE;
if (isset($_GET['id']) && is_numeric($_GET['id']))
{
$boxid = $_GET['id'];
}
else
{
exit('Error: BoxID error.');
}
$return = 'boxgamefile.php?id='.urlencode($boxid);
require("../configuration... |
// FKFlickr<API key>.h
// FlickrKit
// Generated by FKAPIBuilder on 19 Sep, 2014 at 10:49.
// DO NOT MODIFY THIS FILE - IT IS MACHINE GENERATED
#import "FKFlickrAPIMethod.h"
typedef enum {
FKFlickr<API key> = 96, /* The passed signature was invalid. */
FKFlickr<API key> = 97, /* The call req... |
#ifndef _NMSPI_H_
#define _NMSPI_H_
#include "common/include/nm_common.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @fn nm_spi_init
* @brief Initialize the SPI
* @return ZERO in case of success and M2M_ERR_BUS_FAIL in case of failure
*/
sint8 nm_spi_init(void);
/**
* @fn nm_spi_r... |
/*plugin styles*/
.visualize { border: 1px solid #ccc; position: relative; background: #fafafa; margin:0 auto 30px auto; }
.visualize canvas { position: absolute; }
.visualize ul, .visualize li { margin: 0; padding: 0; }
/*table title, key elements*/
.visualize .visualize-info { padding: 3px 5px; background: #fafafa; b... |
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
public partial class ShopifySource : <API key>
{
void <API key>.Write(Utf8JsonWriter writer)
{
writer.WriteStartObje... |
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['<API key>'] = '<API key>';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/<API key>/resourceGroups/nodetestrg/providers/Microsoft.Devices/IotHubs/nodeTestHub/eve... |
## About threex.tweencontrols.js
* NOTES: is it position only ?
* it gives the currentPosition
* it gives the targetPosition
* it gives a transitionDelay
* targetPosition is dynamic
- everytime it changes, test if a tweening is in progress
- if current tweening, don't change the delay
- else put default del... |
#pragma once
//! Class for creating undo record for any class with a "Real-World Map Size" property.
//! This is a template class where the template parameter T is the type
//! which supports the real-world map size property. This class must have
//! a method called <API key>(BOOL state).
template <class T> class <API... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.