answer stringlengths 15 1.25M |
|---|
package com.goodworkalan.mix.builder;
import org.testng.annotations.Test;
// TODO Document.
public class <API key> {
// TODO Document.
@Test
public void build() {
}
} |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Task = mongoose.model('Task'),
Project = mongoose.model('Project'),
Person = mongoose.model('Person'),
_ = require('lodash');
/**
* Create a Task
*/
var person, project;
ex... |
import { useCallback, useState, useEffect } from 'react';
import { KeyStore } from './keystore';
import type { Accounts, Hooks as HooksType } from './../types';
export const Hooks = {
useKeyStore: () => {
const [accounts, setAccounts] = useState<Accounts>();
const [error, setError] = useState<string>();
u... |
// MusicXML Class Library
#pragma once
#include "mxtest/control/CompileControl.h"
#ifdef <API key>
#include "mxtest/core/HelperFunctions.h"
#include "mx/core/Elements.h"
namespace mxtest
{
mx::core::FullNoteGroupPtr tgenFullNoteGroup( TestMode v );
void <API key>(std::ostream& os, int indentLevel, TestMode v );... |
# Blog based on symfony
Requirement
- php
## Installation
bash
$ git clone git@github.com:athlonUA/symfony-simple-blog.git
## Running
bash
$ composer install
$ php app/console do:dat:cr
$ php app/console doctrine:schema:create
$ php app/console doctrine:fixtures:load
$ php app/console ass:in --symlink
$ php app/console... |
package net.ihiroky.reservoir.coder;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.ByteBuffer;
public class <API key> extends OutputStream {
ByteBuffer byteBuffer;
<API key>(int initialCapacity) {
byteBuffer = ByteBuffer.allocate(initialCapacity);
}
private void ensure... |
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'directory' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'directory.services' is found in services.js
// 'directory.controllers' ... |
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { get } from '@ember/object';
export default Route.extend({
ajax: service(),
model() {
return get(this, 'ajax').request(
'https://api.github.com/repos/ember-cli/ember-ajax/commits',
{
headers... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - SonyEricssonW850iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>exceptions: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
const fs = require('fs');
class Loader {
static extend (name, loader) {
return { name, loader };
}
static get (name, options) {
const item = options.loaders.find((loader) => name === loader.name);
if (!item) {
throw new Error(`Missing loader for ${name}`);
}
return item.loader;
}
sta... |
// <API key>.h
// Minsta
#import <AsyncDisplayKit/AsyncDisplayKit.h>
@interface <API key> : ASViewController
@end |
package org.ayo.ui.sample.material;
import android.animation.Animator;
import android.animation.<API key>;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import org.ayo.animate... |
/**
*
* @author Dale "Ducky" Lotts
* @since 7/21/13
*/
basePath = '..';
files = [
JASMINE,
JASMINE_ADAPTER,
'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-mocks/angular-mock... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><API key> | demofile</title>
<meta name="description" content="Documentation for demofile">
<meta name="viewport" content="width=device-width, initial-scale=1">
... |
package com.intuit.karate.job;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.function.Predicate;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
/**
*
* @author pthomas3
*/
p... |
const storage = require("./storage");
const recognition = require("./recognition");
async function labelPictures(bucketName) {
const bucket = await storage.getOrCreateBucket(bucketName);
const fileNames = await storage.ls(bucket);
for (const file of fileNames) {
console.log(`Retrieve labels for file... |
// GKCartServiceMock.h
// GKCommerce
#import <Foundation/Foundation.h>
@interface GKCartServiceMock : NSObject
- (RACSignal *)fetchCartWithUser:(GKUser *)user;
- (RACSignal *)addItem:(CartItem *)item;
- (RACSignal *)addItemWithProduct:(Product *)product cart:(Cart *)aCart;
- (RACSignal *)updateItem:(CartItem *)item o... |
require "magnitude"
describe Magnitude::Registry do
context "#register" do
it "registers a unit and returns an instance" do
result = subject.register(:length, name: "meter", abbr: :m)
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("meter")
end
end
context "#fetch... |
'use strict';
describe('TestComponent', function () {
var componentController;
beforeEach(module('APPLICATION'));
beforeEach(inject(function ($componentController) {
componentController = $componentController('testComponent', null, {
test: {
data: 'data'
}
... |
#include "vl53l0x_api.h"
#include "vl53l0x_api_core.h"
#include "vl53l0x_api_strings.h"
#ifndef __KERNEL__
#include <stdlib.h>
#endif
#define LOG_FUNCTION_START(fmt, ...) \
_LOG_FUNCTION_START(TRACE_MODULE_API, fmt, ##__VA_ARGS__)
#define LOG_FUNCTION_END(status, ...) \
_LOG_FUNCTION_END(TRACE_MODULE_API, statu... |
#include "dirTraversal.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef WIN32 // for linux
#undef __STRICT_ANSI__
#define D_GNU_SOURCE
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/dir.h>
#else // for windows
#include <io.h>
#endif //WIN32
#ifnde... |
//Generated by the Argon Build System
#ifndef <API key>
#define <API key>
// Definitions
#ifndef <API key>
#define <API key>
#endif
namespace Vectormath {
namespace Aos {
<API key> void Quat::set128(vec_float4 vec)
{
mVec128 = vec;
}
<API key> Quat::Quat( const floatInVec &_x, const floatInVec &_y, const floatInVec... |
<html>
<head>
<title>User agent detail - MQQBrowser/Mini2.2 (SAMSUNG-C3050/XXKB1)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<di... |
import Ember from 'ember';
export default Ember.Controller.extend({
resume: Ember.inject.controller(),
actions: {
scrollToElem: function(selector) {
this.get('resume').send('scrollToElem', selector);
},
selectTemplate: function(template) {
this.get('resume').send('selectTemplate', template);... |
<?php
namespace PHPExiftool\Driver\Tag\XMPPlus;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class <API key> extends AbstractTag
{
protected $Id = '<API key>';
protected $Name = '<API key>';
protected $FullName = 'XMP::plus';
prote... |
# alfirahadian.github.io
Building Hybrid Web Application with Ionic from start to end |
#include "../common/gba.h"
#include "../common/fixed.c"
typedef struct{
union{
struct{
fixed x;
fixed y;
};
fixed vec[2];
};
} Vec2;
fixed DotProduct(Vec2 a, Vec2 b){
return fixMult(a.x, b.x) + fixMult(a.y, b.y);
}
Vec2 VecSub(Vec2 a, Vec2 b){
Vec2 retVal ... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import os
from .globals import FdpError
def <API key>(machine=''):
aliases = {'nstxu': ['nstx', 'nstxu', 'nstx-u'],
'diiid': ['diiid', 'diii-d', 'd3d'],
'cmod': ['cmod', 'c-mod']}
for key, value in aliases.items():
if machine.l... |
process.env.NODE_ENV = 'test';
const chai = require('chai');
const chaiHttp = require('chai-http');
const should = chai.should();
const CostCalculator = require("../libs/costcalculator");
describe('Calculate Cost', () => {
describe("Book Meeting Room", () => {
it("it should calcuate cost for meeting room f... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: Black list </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... |
<?php
class BeauticianRestModel extends BaseModel
{
public function setTable()
{
$this->table = 'beautician_rest';
}
public function rules()
{
$validate = new ValidateUtil();
$validate->required('rest_day');
$validate->required('start_time');
$validate->requir... |
package com.java.group34;
import java.util.ArrayList;
public class NewsPictures {
private Value[] value;
private static class Value
{
String contentUrl;
}
public ArrayList<String> getFirstNthPictures(int n)
{
ArrayList<String> ans=new ArrayList<String>();
System.out.print... |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code... |
# cpu
A simple but interactive design of CPU I hand-wired with logic gates back in college. It was fun :) Sample programs included!
# to view samples in interactive editor
1. Download and install Digital Works (Demo version is enough), i.e. from following url
http://electronics-lab.com/downloads/schematic/002/index.htm... |
module.exports = {
// Token you get from discord
"token": "",
// Prefix before your commands
"prefix": "",
// Port for webserver (Not working)
"port": 8080,
// Mongodb stuff
"mongodb": {
// Mongodb uri
"uri": ""
},
// Channel IDs
"channelIDs": {
// Where to announce the events in ACCF
... |
Object.prototype.getKeyByValue = function( value ) {
for( var prop in this ) {
if( this.hasOwnProperty( prop ) ) {
if( this[ prop ] === value )
return prop;
}
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>square-matrices: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
# grunt-phpmd-runner
> A phpmd runner that works
## Getting Started
This plugin requires Grunt `~0.4.5`
If you haven't used [Grunt](http:
shell
npm install grunt-phpmd-runner --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
js
grunt.loadNpmTasks('grunt... |
require('./ramda-mori') |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsf: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
Indentation
When writing any block of code that is logically subordinate to the line immediately before and after it, that block should be indented two spaces more than the surrounding lines
* Do not put any tab characters anywhere in your code. You would do best to stop pressing the tab key entirely.
* Increase the in... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/l... |
<?php
use Squarely\Setup;
use Squarely\Wrapper;
?>
<?php get_template_part('templates/head'); ?>
<body <?php body_class('main-body'); ?>>
<!--[if IE]>
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>founify: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ach" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CoinsBazar Core</source>
<translation type="unfinished"/>
</message>
<message>
<locati... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
namespace DND.AspNetCore.Web.Models.ManageViewModels
{
public class IndexViewModel
{
public bool HasPassword { get; set; }
public IList<UserLoginInfo> Logins { ge... |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#define X 3
struct node{
int value;
int depth;
node *previous;
node *next[X];
} nullNode;
int main(){
input array
int arrayLength=1;
for(int i=0; i<X; i++){
arrayLength = arrayLength * 2;
}
int ar... |
<?php
namespace PlaceFinder\APIBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\<API key>;
class Configuration implements <API key>
{
/**
* {@inheritdoc}
*/
public function <API key>()
{
$treeBuilder = new Tree... |
/*istanbul ignore next*/'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = ... |
<?php
$i++;
++$j;
$k
$a['a']++;
$a['a'] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-analysis: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>msets-extra: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... |
var Branch = function (origin, baseRadius, baseSegment, maxSegments, depth, tree) {
this.gid = Math.round(Math.random() * maxSegments);
this.topPoint = origin;
this.radius = baseRadius;
this.maxSegments = maxSegments;
this.lenghtSubbranch = tree.genes.pSubBranch !== 0 ? Math.floor(maxSegments * tree.genes.pSu... |
<reference path="../../config/config.ts" />
<reference path="../interfaces/directives/IDirective.ts" />
declare var angular:any;
//Directive responsible for manipulating left (top) menu icons area when available size change
module Directives {
'use strict';
export class LeftMenuAutosize implements Directives.ID... |
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle;
font-size: 13px;
}
.select2-container .<API key> {
box-sizing: border-box;
cursor: pointer;
display: block;
height: 28px;
user-select: none;
-webkit-... |
package org.craft.client.render.blocks;
import java.util.*;
import java.util.Map.Entry;
import com.google.common.collect.*;
import org.craft.blocks.*;
import org.craft.blocks.states.*;
import org.craft.client.*;
import org.craft.client.models.*;
import org.craft.client.render.*;
import org.craft.client.render.texture.T... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mini-compiler: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... |
{% extends "base.html" %}
{% block title -%}S'up — Log in{%- endblock %}
{% block content %}
<div class="container signup">
{% if errors or form.errors %}
<span class="form-error"><strong>Errors:</strong></span>
{% if errors %}
{% for error in errors %}
<span class=... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>geocoq: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... |
<html><body>
<h4>Windows 10 x64 (19041.388)</h4><br>
<h2><API key></h2>
<font face="arial"> +0x000 ApiNumber : Uint4B<br>
+0x004 ProcessorLevel : Uint2B<br>
+0x006 Processor : Uint2B<br>
+0x008 ReturnStatus : Int4B<br>
+0x00c u : <a href="./<anonymous-tag>.html"><anonymo... |
# encoding: utf-8
module Eij
class Translator
def initialize(key)
@src = File.dirname(__FILE__) + "/func.sh"
@func = File.dirname(__FILE__) + "/../../data/kanjidicks.txt"
@col = %x{bash -lic 'echo $COLUMNS'}
@msg = key
@res = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }
... |
using System;
using System.Collections.Generic;
using System.Linq;
using Moq;
using NUnit.Framework;
using Ploeh.AutoFixture;
using RememBeer.Models.Contracts;
using RememBeer.Models.Dtos;
using RememBeer.Models.Factories;
using RememBeer.Services.RankingStrategies;
using RememBeer.Tests.Utils;
namespace RememBeer.Test... |
#include "sam3xa.h"
#include "sam3x_ek.h"
#include "sdram.h"
#include "error.h"
#include "debug.h"
/**
* @brief SDRAM initialization
* @param[in] coreClockFrequency Core clock frequency
**/
void sdramInit(uint32_t coreClockFrequency)
{
uint32_t n;
//Enable PIO peripheral clocks
PMC->PMC_PCER0 = (1 << ID_PIO... |
using CreativeMinds.CQS.Commands;
using NForum.Core.Dtos;
using NForum.Datastores;
using NForum.Domain;
using NForum.Infrastructure;
using System;
using System.Security.Principal;
namespace NForum.CQS.Commands.Topics {
public class <API key> : <API key><CreateTopicCommand> {
protected readonly IForumDatasto... |
CREATE OR REPLACE FUNCTION ts.<API key>(_chroncontrolid integer, _age double precision DEFAULT NULL::double precision)
RETURNS void
LANGUAGE sql
AS $function$
UPDATE ndb.chroncontrols
SET age = _age
WHERE chroncontrolid = _chroncontrolid
$function$ |
<?php
namespace js4php5;
/**
* Blatantly stolen from Yii2 for debug use, as it's much better than var_dump() or print_r() (but not as good as
* the one included in some other frameworks).
*/
class VarDumper
{
private static $_output;
private static $_depth;
private static $_objects;
/**
* Displa... |
#import <iWorkImport/GQDBGPlaceholder.h>
#import "<API key>.h"
@class GQDWPLayoutFrame;
// Not exported
@interface <API key> : GQDBGPlaceholder <GQDNameMappable>
{
GQDWPLayoutFrame *mFrame;
}
+ (const struct StateSpec *)stateForReading;
- (_Bool)isBlank;
- (id)layoutFrame;
- (void)dealloc;
@end |
package ch.qos.logback.core.pattern.color;
import static ch.qos.logback.core.pattern.color.ANSIConstants.*;
/**
* Encloses a given set of converter output in gray using the appropriate ANSI
* escape codes.
*
* @param <E>
* @author Ceki Gülcü
* @since 1.0.5
*/
public class <API key><E> extends <API key... |
title: Argo Contribution
category: technology
tags: [Argo,Kubernetes,Github,PullRequest]
author: JackyWu
comments: true
## Contact me

<a href="mailto:jacky.wucheng@foxmail.com">jacky.wucheng@foxmail.com</a>
## Argo Contribution
Argo Workflows is an open source container-nativ... |
<?php
namespace OroCRM\Bundle\ContactBundle\Tests\Unit\Twig;
use OroCRM\Bundle\ContactBundle\Twig\SocialUrlExtension;
use OroCRM\Bundle\ContactBundle\Model\Social;
class <API key> extends \<API key>
{
/**
* @var SocialUrlExtension
*/
protected $twigExtension;
/**
* @var \<API key>
*/
... |
**Repel Vermin**
**School** abjuration; **Level** bard 4, cleric 4, druid 4, ranger 3
**Casting Time** 1 standard action
**Components** V, S, DF
**Range** 10 ft.
**Area** 10-ft.-radius emanation centered on you
**Duration** 10 min./level (D)
**Saving Throw** none or [Will](../combat#_will) negates; see text; **[Spell R... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-field: 17 m 57 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-character: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PathHandler | Orange</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" hr... |
'use strict';
var assert = require('assert')
, TestEvents = require('../lib/TestEvents');
var wasCalled = false;
var FN = function (ev) {
wasCalled = true;
};
describe('TestEvents', function () {
beforeEach(function () {
wasCalled = false;
});
describe('#on', function () {
it('Should bind a function f... |
<?php
// set end of line
$eol = PHP_EOL;
if (php_sapi_name() != 'cli') {
$eol .= '<br>';
}
//list all functions
$functions = get_extension_funcs('libsodium');
foreach ($functions as $func) {
echo $func . $eol;
}
echo $eol; |
require 'doorkeeper/oauth/<API key>'
module Doorkeeper
module Request
class Assertion
def self.build(server)
new(server)
end
attr_reader :server
def initialize(server)
@server = server
end
def request
... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="GENERATOR" content="VSdocman - documentation generator; https:
<link rel="icon" href="favicon.ico">
<title>DataProtection.AppSetting Property</title>
<link rel="styles... |
//process.argv.forEach(function (val, index, array) { console.log(index + ': ' + val); });
var fs = require('fs');
(function () {
function slugify(text) {
text = text.replace(/[^-a-zA-Z0-9,&\s]+/ig, '');
text = text.replace(/-/gi, "_");
text = text.replace(/\s/gi, "-");
return text;
}
var DocGen = {
file... |
require 'rest_client'
module WebHook
# Makes a http request to the target endpoint passing contents as data
def self.send_message(endpoint, content)
# TODO:
# - Make webrequest
# - If success return success
# - If error, return error
response = RestClient.post endpoint, content.to_json, :content... |
'use strict';
exports.name = '/activation'; |
layout: default
<section class="collection-head small geopattern" data-pattern-id="{{ page.title | truncate: 15, ''}}">
<div class="container">
<div class="columns">
<div class="column three-fourths">
<div class="collection-title">
<h1 class="collection-header">{{ page.title }}</h1>
<div cla... |
<?php
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Exception\<API key>;
/**
* appdevUrlGenerator
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appdevUrlGenerator extends Symfony\Component\Routing\Generator\UrlGenerator
{
static private $decla... |
const _ = require('lodash')
const Joi = require('joi')
module.exports = {
name: 'href',
params: {
href: Joi.array().items(
Joi.string(),
Joi.func().ref()
).min(1)
},
setup (params) {
params.href = [''].concat(params.href)
this._flags.href = params.href
},
validate (params, value,... |
using System;
using System.Windows.Input;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Neo.Gui.Base.Dialogs.Interfaces;
using Neo.Gui.Base.Dialogs.Results.Wallets;
using Neo.Gui.Base.Managers.Interfaces;
using Neo.Gui.Base.Services.Interfaces;
namespace Neo.Gui.ViewModels.Wallets
{
public class... |
// Mucking with different levels
let currentLevel = { cells: undefined, dims: undefined };
if (0) {
currentLevel.cells = level;
currentLevel.dims = level_dims;
} else {
currentLevel.cells = LEVEL_ONE;
currentLevel.dims = LEVEL_ONE_DIMS;
}
// Return a reference to the (logical) cell's unique object
const... |
\hypertarget{<API key>}{}\section{U\+A\+RT Word Length}
\label{<API key>}\index{U\+A\+R\+T Word Length@{U\+A\+R\+T Word Length}}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define {\bfseries U\+A\+R\+T\+\_\+\+W\+O\+R\+D\+L\+E\+N\+G\+T\+H\+\_\+8B}~((uint32\+\_\+t)0x00000000)\hypertarget{<API key>}{}\label{<A... |
var fastn = require('fastn')({
_generic: require('fastn/genericComponent'),
list: require('fastn/listComponent'),
templater: require('fastn/templaterComponent'),
text: require('fastn/textComponent'),
ratingControl: require('./<API key>')
});
module.exports = function(settings){
return fastn('rat... |
import os
import logging
from jsub.util import safe_mkdir
from jsub.util import safe_rmdir
class Submit(object):
def __init__(self, manager, task_id, sub_ids=None, dry_run=False, resubmit=False):
self.__manager = manager
self.__task = self.__manager.load_task(task_id)
self.__sub_ids = sub... |
In-memory Red-Black Tree implementation in Go.
Red-black trees are a self-balancing binary search tree that allow for O(log(n))
search, insertion, and deletion. To learn more, you can check out the
[Wikipedia page](https://en.wikipedia.org/wiki/Red%E2%80%93black_tree).
This library purposely maintains a similiar interf... |
<?php
namespace rg\injektor;
class <API key> extends InjectionException {
} |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Mon Aug 31 23:15:49 CEST 2015 -->
<title><API key> (FailFast v.1.3)</title>
<meta name="date" content="2015-08-31">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">... |
<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>... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.2.1; ZTE V965 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/m... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.4; Karbonn A30 Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/lib... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>demos: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.