answer stringlengths 15 1.25M |
|---|
#ifndef HARDCODED_SHADERS_H
#define HARDCODED_SHADERS_H
#include "common/shader_structs.h"
#define BASIC_SHADER 0
extern struct shader_load_command basic_sh_load_cmd;
#define SDF_SHADER 1
extern struct shader_load_command sdf_sh_load_cmd;
#define DISP_EFFECT_SHADER 2
extern struct shader_load_command <API key>;
#define... |
// LBPhotoPreviewCell.h
// <API key>
#import <UIKit/UIKit.h>
#import "LBPhotoPreviewModel.h"
@interface LBPhotoPreviewCell : <API key>
@property (nonatomic, strong) LBPhotoPreviewModel *model;
@end |
package com.example.oltu.client.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apach... |
namespace Construktion
{
public interface ExitBlueprint
{
bool Matches(object item, ConstruktionContext context);
object Construct(object item, <API key> pipeline);
}
public interface ExitBlueprint<T>
{
bool Matches(T item, ConstruktionContext context);
T Construct(T ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ansiStyles = require("ansi-styles");
var ansi2css = require("./ansi2css/index");
exports.fg = {
red: function (text) {
return ansiStyles.red.open +
ansiStyles.bold.open +
text +
ansiStyles.bo... |
package day14
import (
"fmt"
"strings"
"crypto/md5"
"github.com/gsmcwhirter/advent2016/lib"
)
func LoadData(filename string) string {
dat := lib.ReadFileData(filename)
return strings.Trim(string(dat), "\n")
}
func GenerateHash(salt string, index int) []rune {
return []rune(fmt.Sprintf("%x", ... |
package lmtas.app.com.lmtas;
import org.junit.Test;
import static org.junit.Assert.*;
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
USE [Koski_SA]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [sa].[<API key>] AS
IF EXISTS (SELECT * FROM sys.indexes WHERE name='NC_amm_paataso' AND object_id = OBJECT_ID('sa.<API key>'))
BEGIN
DROP INDEX [NC_amm_paataso] ON sa.<API key>
END
TRUNCATE TABLE sa.<API key>
INSERT INTO sa.<API key... |
import os
import sys
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '(4c=bbck6l7(... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title></title>
<meta http-equiv="refresh" content="0; url=../#work/alior/index.html">
</head>
<body>
<p>
</p>
</body>
</html> |
/* jslint node: true */
'use strict';
// Tries to load settings from the parent directory.
// Recognized settings
// ../settings.js
// redis.port ; network port, number
// redis.host ; domain, string
// redis.database ; sub database, number
var settings;
try {
settings = require('../sett... |
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.6
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
# Special targets provided by c... |
<?php
namespace Helldar\Vk\Controllers\Database;
use Helldar\Vk\Controllers\Controller;
class <API key> extends Controller
{
/**
* Available method parameters.
*
* @var array
*/
protected $parameters = ['country_ids'];
} |
namespace GitVersion
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using LibGit2Sharp;
static class LibGitExtensions
{
public static DateTimeOffset When(this Commit commit)
{
return commit.Committer.When;
}
<... |
module IVLE
module IVLEModule
def modules(duration=0, include_all_info=true)
api 'Modules', duration: duration, includeallinfo: include_all_info
end
def modules_staff(duration=0, include_all_info=true)
api 'Modules_Staff', duration: duration, includeallinfo: include_all_info
end
def mo... |
// lua.hpp
// Lua header files for C++
// <<extern "C">> not supplied automatically because Lua also compiles as C++
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
} |
import { Component } from '@angular/core';
@Component({
selector: 'app-body',
templateUrl: './body.component.html'
})
export class BodyComponent {
projects:string[][] = [['Creative Commons','Licencias de autor.'],
['Open Library.','Base de datos de libros colaborativa y de acceso público.'],
... |
#include "HttpRequest.h"
#include <String.h>
// Strings stored in program memoy (flash)
static const char LF[] PROGMEM = "\r\n";
static const char GET[] PROGMEM = "GET ";
static const char POST[] PROGMEM = "POST ";
static const char HTTP[] PROGMEM = " HTTP/1.0";
static const char FORM_URLENCODED[] PROGMEM = "Content-Ty... |
import { connect } from 'react-redux';
import {
doCollectionEdit,
<API key>,
<API key>,
doPrepareEdit,
<API key>,
<API key>,
COLLECTIONS_CONSTS,
<API key>,
} from 'lbry-redux';
import { <API key> } from 'redux/selectors/blocked';
import { doChannelMute, doChannelUnmute } from 'redux/actions/blocked';
im... |
{% extends 'layouts/application.html' %}
{% block content %}
<div class="container">
<h1 class="page-header">Edit post</h1>
<form action="/posts/update/{{post.id}}" method="POST">
<div class="form-group">
<input type="text" class="form-control" name="title" placeholder="Title" value="{{post.titl... |
'use strict'
var assert = require('assert')
describe('#parameter', function () {
var paramCtor = require('../../dist/annotation/annotations/parameter').default
var param = paramCtor(require('./envMock'))
it('should return an object', function () {
assert.deepEqual(param.parse('{type} $hyphenated-name [default... |
# JS Burner - A Framework for JavaScript
An amd-based framework focuses on class structure and ui components for javascript.
# Contribute
Framework is very fresh and it is under development now. It needs many arrangements and optimizations or new ideas make it better. Also documentation page may need language fixes.
# ... |
<style>
.user-info {
position: absolute;
right: 110px;
top: 20px;
}
</style>
<div ng-if="existUser">
<div class="user-info">Hello, {{userName}}</div>
<md-fab-speed-dial md-direction="down" md-open="false" class="md-scale md-fab-top-right" ng-class="{ 'md-hover-full': false }">
... |
package com.darksci.pardot.api.rest;
import com.darksci.pardot.api.config.Configuration;
import com.darksci.pardot.api.request.Request;
/**
* Interface for making HTTP calls.
*/
public interface RestClient {
/**
* Initializes the RestClient implementation.
* Any setup or resource allocation should happe... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from '<API key>';
moduleForComponent('ember-a-camera', 'Integration | Component | ember a camera', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with... |
from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
phone_number = models.CharField(max_length=15) |
package org.heigit.ors.v2.services.isochrones;
import org.heigit.ors.services.isochrones.<API key>;
import org.heigit.ors.v2.services.common.EndPointAnnotation;
import org.heigit.ors.v2.services.common.ServiceTest;
import org.heigit.ors.v2.services.common.VersionAnnotation;
import org.json.JSONArray;
import org.json.JS... |
using GeckoMapTester;
using System;
using System.Collections.Generic;
using System.Text;
namespace GeckoDotNet
{
public enum AddressType
{
Rw,
Ro,
Ex,
Hardware,
Unknown
}
public class AddressRange
{
private AddressType PDesc;
private Byte PId;
... |
#ifndef __Events_H
#define __Events_H
/* MODULE Events */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "Led.h"
#include "SPI.h"
#include "USB.h"
#include "CSN.h"
#include "RfmIrq.h"
#include "TI1.h"
#include "typedef.h"
extern volatile bool RFM_IRQ;
void SPI_OnRxChar(vo... |
import Vue from 'vue'
import {ruuvitagApi, tellstickApi, hueApi, FETCH_INTERVAL} from './config.js'
require('./index.css')
const postHeaders = {'Content-Type': 'application/json', '<API key>':'*'}
const tagData = {
template:'<div class="tag">\
<div class="tag-name">{{tag.name}}</div>\
<div class="tag-temperat... |
package io.mkremins.whydah.parser;
import io.mkremins.whydah.util.Reader;
public final class Morpher implements Reader<Token> {
private final Reader<Token> tokens;
private boolean ignoreNextNewline;
public Morpher(final Reader<Token> tokens) {
this.tokens = tokens;
// ignore newlines that ap... |
postSchemaObject = {
_id: {
type: String,
optional: true,
autoform: {
omit: true
}
},
createdAt: {
type: Date,
optional: true,
autoform: {
omit: true
}
},
postedAt: {
type: Date,
optional: true,
autoform: {
group: 'admin',
type: "<API key>"
... |
package org.yield4j.tests.labelcontinue;
import static org.yield4j.YieldSupport.*;
//>> [0, 0, 1, 2, 2, 3, 6, 4, 8]
public class <API key> {
@org.yield4j.Generator public Iterable<Integer> method() {
LOOP: for (int i = 0; i < 5; i++) {
yield_return(i);
if (i == 2)
con... |
package nl.tno.idsa.framework.behavior.multipliers;
import nl.tno.idsa.framework.agents.Agent;
import nl.tno.idsa.framework.behavior.likelihoods.<API key>;
/**
* Multipliers for likelihoods implement this interface.
*/
public interface IMultiplier {
public void applyMultipliers(Agent agent, <API key> currentLikel... |
<?php
namespace Controller;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response as Response;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\Form\<API key> as <API key>;
class IndexController extends \Controller\<API key> {
... |
<?php
ob_start();
session_start();
//set timezone
<API key>('Asia/Jakarta');
//database credentials
define('DBHOST','localhost');
define('DBUSER','root');
define('DBPASS','');
define('DBNAME','dbsekolah');
//application address
define('DIR','http://loginadmin.ipjpi.org/');
define('SITEEMAIL','noreply@ipjpi.org');
try {... |
from __future__ import absolute_import, print_function, unicode_literals
import unittest
from choicer.test import core_tests
def suite():
return unittest.TestSuite([
unittest.TestLoader().<API key>(core_tests.ChoicerTests),
])
def run_all():
return unittest.TextTestRunner(verbosity=2).run(suite()) |
using System.Text;
using Antlr.Runtime;
using SheepAspect.Helpers;
namespace SheepAspect.Saql.Exceptions
{
public class <API key>: SaqlException
{
public <API key>(<API key> e)
: base(GetMessage(e), e)
{
}
private static string GetMessage(<API key> e)
{
... |
<table class="monitor-table table">
<thead>
<tr>
<th>ID</th>
<th>FULLNAME</th>
<th>CONTACT</th>
<th>EMAIL</th>
<th>STATUS</th>
<th>REGISTERED</th>
<th>SHOPS OWNED</th>
<th>SUBSCRIPTIONS</th>
<th></th>... |
<span><?php print render($content['<API key>']); ?></span><br />
<span class="size-14"><?php print render($content['body']); ?></span>
<?php if (!empty($content['field_noticia'])): ?>
<span class="label">Anexo da notícia: </span><span class="size-14"><?php print render($content['field_noticia']); ?></span><br />
<?... |
DM.11 Implementing Newsfeed with a Graph
=====================================
Listing Functions
Standard practice
Go
func listUsers() {...}
Sublists
Go
func listUserFriends(user string) {
stmt := `
MATCH
(user:User)-[rel:FRIEND]->(friend:User)
WHERE user.name = {userSub}
RETURN
... |
layout: page
title: "Meloni Rudolph"
comments: true
description: "blanks"
keywords: "Meloni Rudolph,CU,Boulder"
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script src=... |
body {
font-family: Neuton, Georgia, "Times New Roman",Times,serif;
font-size: 20px;
line-height: 1.5em;
color: #222;
}
h1 {
margin: 2em 0 0.35em 0;
font-weight: normal;
font-size: 2em;
}
h2 {
margin: 0 0 3em 0;
font-weight: normal;
font-size: 1.125em;
}
h3 {
margin: 2em 0 1e... |
<?php
namespace War_Api\Data;
use War_Api\Data\Query_Builder as Query_Builder;
use War_Api\Helpers\Global_Helpers as Global_Helpers;
/**
* Example Query Map
* $war_db_map = [
* 'query' => [
* 'select' => [],
* 'table' => 'table',
* 'join' => [
* [
* 'query' =>... |
package edu.psu.compbio.seqcode.gse.projects.readdb;
import java.io.IOException;
import java.util.List;
import net.sf.samtools.AlignmentBlock;
import net.sf.samtools.SAMFileReader;
import net.sf.samtools.SAMRecord;
import net.sf.samtools.SAMFileReader.<API key>;
import net.sf.samtools.util.CloseableIterator;
import org... |
--SAFETRIM
-- function _provision(self,socket,first_rec)
local self, socket, first_rec = ...
local crypto, file, json, node, table = crypto, file, sjson, node, table
local stripdebug, gc = node.stripdebug, collectgarbage
local buf = {}
gc(); gc()
local function getbuf() -- upval: buf, table
if #buf > 0 then return... |
package br.gov.servicos.editor.usuarios.token;
import br.gov.servicos.editor.usuarios.Usuario;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.experimental.Wither;
import javax.persistence.*;
import java.io.Serializable;
import java... |
import Stream from "stream"
import reducer from "../lib/reducer"
import React from "react" // eslint-disable-line no-unused-vars
import {shallow} from "enzyme"
import {GherkinDocument, Feature} from "../lib/cucumber_react"
class ReactOutput extends Stream.Writable {
constructor() {
super({objectMode: true})
t... |
\hypertarget{<API key>}{}\section{R\+TC Add 1 Second Parameter Definitions}
\label{<API key>}\index{R\+T\+C Add 1 Second Parameter Definitions@{R\+T\+C Add 1 Second Parameter Definitions}}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define {\bfseries R\+T\+C\+\_\+\+S\+H\+I\+F\+T\+A\+D\+D1\+S\+\_\+\+R\+E\+S\... |
#!/usr/bin/env ruby
# encoding: UTF-8
require 'helper'
require 'oflow'
class TrackerTest < ::MiniTest::Test
def test_tracker_new
t = ::OFlow::Tracker.create('here')
t2 = ::OFlow::Tracker.create('here')
refute_equal(t.id, t2.id, 'id must be unique')
assert_equal('here', t.track[0].location)
end
def... |
module Maimailog
module Crawler
class Status < Base
def fetch(id, password)
page = login(id, password)
Maimailog::Data::Status.new(name(page), rating(page), rating_max(page))
end
private
def name(page)
elm = page.search('//div[@class="status_name"]//font[@class="blu... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>So, What is Jekyll? – presequences</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Transform your plain text into sta... |
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as _ from 'underscore';
import { Letter } from './letter';
export namespace Signature {
export interface Props {
template: ITemplateModel;
user: IUserDetails;
}
export interface State {
name: string,
signatureHtml: str... |
import { GlobalStore, useDevToggle } from "app/store/GlobalStore"
import { useEffect } from "react"
import { setupSentry } from "./sentrySetup"
export function useErrorReporting() {
const environment = GlobalStore.useAppState((store) => store.artsyPrefs.environment.env)
const <API key> = useDevToggle("<API key>")
... |
<?php
/**
* Implements <API key>().
*
* @param $form
* The form.
* @param $form_state
* The form state.
*/
function <API key>(&$form, &$form_state) {} |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD module
define(factory);
} else {
// Browser global
root.Meny = factory();
}
} (this, function () {
// Date.now polyfill
if (typeof Date.now !== 'function') Date.now = function () { re... |
class CreatePhotos < ActiveRecord::Migration
def self.up
create_table :photos do |t|
t.text :flickr_response
t.string :flickr_id
t.datetime :added_at
t.string :owner
t.timestamps
end
add_index :photos, :flickr_id
add_index :photos, :added_at
add_index :photos, [:owner... |
<html><body>
<h4>Windows 10 x64 (19041.208) 2004</h4><br>
<h2><API key></h2>
<font face="arial"> +0x000 StackSegmentTable : <a href="./_RTL_HASH_TABLE.html">_RTL_HASH_TABLE</a><br>
+0x010 StackEntryTable : <a href="./_RTL_HASH_TABLE.html">_RTL_HASH_TABLE</a><br>
+0x020 StackEntryTableLock : <a href="./_RTL_SRW... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
<header class="navbar navbar-inverse bs-docs-nav navbar-fixed-top" role="banner">
<div class="container ">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span cl... |
import { testApiCall } from 'utils/testUtils';
import * as C from '../constants';
import * as actions from '../actions';
describe('Spa actions', () => {
testApiCall('<API key>', C.<API key>, actions);
testApiCall('updateUsersRequest', C.<API key>, actions);
testApiCall('<API key>', C.<API key>, actions);
descri... |
<!DOCTYPE html><html lang="en-us" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Wowchemy 5.0.0-beta.1 for Hugo">
<meta name="description" content="Head of Computational ... |
<!DOCTYPE html><html lang="en-us" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="generator" content="Wowchemy 5.0.0-beta.1 for Hugo">
<meta name="description" content="Head of Computational ... |
#ifndef _QTNETWORK_H_
#define _QTNETWORK_H_
#include "QtNetwork/qauthenticator.h"
#include "QtNetwork/qhostaddress.h"
#include "QtNetwork/qhostinfo.h"
#include "QtNetwork/qnetworkinterface.h"
#include "QtNetwork/qnetworkproxy.h"
#include "QtNetwork/qurlinfo.h"
#include "QtNetwork/<API key>.h"
#include "QtNetwork/<API k... |
# Development Guide
In this document, we will introduce **ASP.NET Zero Power Tools** and explain it. ASP.NET Zero Power Tools minimizes the effort for creating CRUD pages. It generates all the layers from the database to the user interface by just defining an entity.
> ASP.NET Zero Power Tools supports ASP.NET Zero v5.... |
// <API key>.h
// wetan-oc
typedef NS_ENUM(NSUInteger, WTcellButton) {
defaultButton_enum,
diffButton_enum,
nptButton_enum,
};
#import <UIKit/UIKit.h>
#import "WTAssignItemModel.h"
@protocol <API key> <NSObject>
@optional
- (void)assignButtonClick:(WTcellButton)type WTid:(NSString *)idstr value:(NSString ... |
import assert from 'assert'
import { digest } from 'json-hash'
import * as is from './is'
// S.R. Petrick, "A Direct Determination of the Irredundant Forms of a Boolean Function from the Set of Prime Implicants"
// Technical Report AFCRC-TR-56-110, Air Force Cambridge Research Center, Cambridge, Mass., Apr. 1956.
expor... |
<?php
namespace NEWS\BlogBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class NEWSBlogBundle extends Bundle
{
} |
<?php
use Speelpenning\Authentication\User;
class UserControllerTest extends TestCase
{
/**
* @var User
*/
protected $user;
public function setUp()
{
parent::setUp();
$this->artisan('migrate:refresh');
$this->user = User::register('John Doe', 'john.doe@example.com', 'so... |
<?php
/*
Safe sample
input : use proc_open to read /tmp/tainted.txt
sanitize : cast via + = 0.0
construction : interpretation with simple quote
*/
$descriptorspec = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("file", "/tmp/error-output.txt", "a")
);
$cwd = '/tmp';
$process = proc_open('m... |
import React from 'react';
export default function NotFound() {
return (
<div className="main">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using ETG.Orleans.Attributes;
using ETG.Orleans.CodeGen.Utils;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Formatting;
namespac... |
using System;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Owin;
using ASPNET.Models;
using System.Configuration;
using System.Threading.Tasks;
using Newtonsoft.Json.Serialization;
namespac... |
.navbar-inverse .navbar-brand {
color: #F0F0F0;
}
.navbar-inverse .navbar-toggle {
border-color: #0080FF;
}
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
background-color: #0080FF;
}
.navbar-inverse {
background-image: linear-gradient(to bottom, #0080FF 0%, #0080B0 100%);
}
.navba... |
layout: default
permalink: /examples/repositories/changesets.html
title: Branch restrictions
# Changesets
Manage changesets resources on a repository. Unauthenticated calls for these resources only return values for public repositories.
Prepare:
{% include auth.md var_name="changesets" class_ns="Repositories\Changesets... |
## Compiling The DOM with Element Directives
*DOM compilation*`$compile`
`myDirective`
js
myModule.directive('myDirective', function() {
return {
};
});
*directive definition object*keyvaluekey`compile`*compilation function*
`compile`traversing DOM
js
myModule.directive('myDirective', function() {
return {
co... |
# -*- coding: utf-8 -*-
from __future__ import print_function, division
import os.path
import tokenize
from StringIO import StringIO
def find_fold_points(block):
"""
Returns a list of (start_row, end_row, indent) tuples that denote fold
locations. Basically anywhere that there's an indent.
"""
token... |
/* global describe, it, require */
'use strict';
// MODULES //
var // Expectation library:
chai = require( 'chai' ),
// Matrix data structure:
matrix = require( 'dstructs-matrix' ),
// Module to be tested:
binomcoef = require( './../lib/deepset.js' );
// VARIABLES //
var expect = chai.expect,
as... |
// GlueMotorCore.h
// GlueMotorCore
#import <Foundation/Foundation.h>
@class GlueMotorCore;
#pragma mark - <API key>
@protocol <API key> <NSObject>
@optional
// called just before the next PWM cycle will be started so set the Pulse Width from this delegate method will minimize the latency
// NOTE: this delegate metho... |
# <API key>: true
class <API key>
include Sidekiq::Worker
def perform(survey_score_id, operator, weight)
survey_score = SurveyScore.find survey_score_id
score_datum = survey_score.score_data.where(operator: operator, weight: weight).first
score_datum ||= ScoreDatum.create(survey_score_id: survey_score_i... |
var _ = require('underscore');
var Move = require('../../models/move');
var Interaction = require('interaction');
module.exports = new Interaction({
run: function (options, cb) {
var move = new Move(_.pick(options, 'type'));
if (!move.isValid()) return cb(400);
var user = options.game.get('users').get(opt... |
module Treetop
module Compiler
class Repetition < ParsingExpression
def compile(address, builder, parent_expression)
super
repeated_expression = parent_expression.atomic
begin_comment(parent_expression)
use_vars :result, :accumulator, :start_index
builder.loop do
... |
html {
font-family: helvetica, arial, freesans, clean, sans-serif;
margin: 0;
}
body {
margin: 0;
}
#en_tete {
height: 40px;
font-size: small;
background-color: #fafafa;
background-image: -moz-linear-gradient(#fafafa, #eaeaea);
border-bottom: 1px solid #cacaca;
box-shadow: 0 1px 0 rg... |
<?php
namespace Piplin\Bus\Observers;
use Illuminate\Contracts\Events\Dispatcher;
use Piplin\Bus\Events\<API key>;
use Piplin\Bus\Events\<API key>;
use Piplin\Models\ServerLog;
/**
* Event observer for ServerLog model.
*/
class ServerLogObserver
{
/**
* @var Dispatcher
*/
private $dispatcher;
/*... |
using CameraControl.Core;
using CameraControl.Core.Classes;
using CameraControl.Core.Scripting.ScriptCommands;
using CameraControl.Devices;
using CameraControl.Devices.Classes;
using CameraControl.Plugins.<API key>;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using MahApps.Metro.Controls;
using Newtonso... |
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import {Observable} from 'rxjs/Observable';
import {CacheableService} from './cacheable.service';
import {LoaderService} from './loader.service';
import 'rxjs/add/observable/of';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/c... |
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// Source maps are supported by all recent versions of Chrome, Safari, //
// and Firefox, and by Internet Explorer 11. //
(function () {
/* Im... |
<!DOCTYPE html>
<HTML><head><TITLE>Manpage of CBQ</TITLE>
<meta charset="utf-8">
<link rel="stylesheet" href="/css/main.css" type="text/css">
</head>
<body>
<header class="site-header">
<div class="wrap"> <div class="site-title"><a href="/manpages/index.html">linux manpages</a></div>
<div class="site-description">{"... |
// Original from http://facebook.github.io/flux/docs/flux-utils.html#container
"use strict";
import {StoreGroup} from "material-flux";
import assert from "assert";
function assertBaseComponent(o) {
assert(
o.getStores,
'Components that use Container must implement `static getStores()`'
);
as... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DevO2.Shared
{
public sealed class Compression
{
#region Metodos
public static bool ComprimirArchivo(string archivo, TipoCompresion tipo)
{
try
{
switch (tipo)
... |
package com.iyzipay.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
public class PaymentDetail {
private Long paymentId;
private Integer paymentStatus;
private St... |
(function($){
$(document).ready(function() {
pathArray = location.href.split( '/' );
protocol = pathArray[0];
host = pathArray[2];
baseUrl = protocol + '//' + host;
var ajaxCall = function() {
var item = $('#item').val();
if(item){
$.ajax({
type: "post",
... |
import { Injectable } from '@angular/core';
import { Question } from '../classes/question';
@Injectable()
export class QuestionsService {
constructor() { }
questions: Question[] = [
{ "id": 1,
"title": "Откуда деньги у Навального?",
"date": new Date(2017, 7, 10),//'10.08.2017',
... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>Éditeur 3D: 2DEV - 3D-KIT</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Method</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.5.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel="s... |
<p>Admin Menu:</p>
<p>Form Admin<br>
- <a href="<?PHP echo SITE_URL; ?>admin/forms/form-manager.php?page=add">Create Form</a><br>
- <a href="<?PHP echo SITE_URL; ?>admin/forms/form-manager.php?page=modify">Modify Form</a><br>
<!-- - <a href="<?PHP echo SITE_URL; ?>admin/forms/form-manager.php?page=delete">Delete F... |
module Vector2D where
type Vector2D = (Double, Double)
zero :: Vector2D
zero = (0, 0)
unit :: Vector2D
unit = (1, 1)
fromScalar :: Double -> Vector2D
fromScalar scalar = (scalar, scalar)
fromAngle :: Double -> Vector2D
fromAngle angle = (cos angle, sin angle)
magnitude :: Vector2D -> Double
magnitude vector = sqrt(magn... |
body {
padding-top: 50px;
padding-bottom: 20px;
background-color: #4bb5ff !important;
}
/* Set padding to keep content from hitting the edges */
.body-content {
padding-left: 15px;
padding-right: 15px;
}
.modal-header {
background-color: #8B0000 !important;
}
/* Set width on the form input elem... |
# Giles' Notebook
onofficial notes on relevant work
Genome Asssembly
0005 - Sablefish Genome Project - Lab Notebook [link](https://github.com/sr320/nb-2016/blob/master/notes/<API key>.pdf)
<img src="http://eagle.fish.washington.edu/cnidarian/skitch/0005_1D131CE3.png" alt="0005_1D131CE3.png"/>
RAD
0003 - Steelhead RADse... |
require 'test_helper'
class TestDivinity < Test::Unit::TestCase
should "probably rename this file and start testing for real" do
flunk "hey buddy, you should probably rename this file and start testing for real"
end
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.