answer stringlengths 15 1.25M |
|---|
using System;
using System.Collections;
using UnityEngine;
namespace Doubility3D.Resource.Downloader
{
public class WWWDownloader : IDownloader
{
private string home;
internal WWWDownloader (string _home)
{
home = _home;
if (home [home.Length - 1] != '/') {
... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from os import listdir
import os
import re
import sys
from argparse import ArgumentParser
import random
import subprocess
from math import sqrt
import ast
from adderror import adderror
"""ENSAMBLE, -d directory -n number of models """
"""-k number of selected structure"""
... |
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace Fixtures.Azure.AcceptanceTestsLro
{
using Azure;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Threading;
u... |
import isEnabled from 'ember-metal/features';
import run from 'ember-metal/run_loop';
import { observer } from 'ember-metal/mixin';
import { set } from 'ember-metal/property_set';
import { bind } from 'ember-metal/binding';
import {
<API key>,
endPropertyChanges
} from 'ember-metal/property_events';
import { testBo... |
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Stellar::Client do
let(:client) { Stellar::Client.new }
shared_examples_for 'an authenticated client' do
describe 'get_nokogiri' do
let(:page) { client.get_nokogiri '/atstellar' }
it 'should be a Nokogiri document' do
... |
package seedu.tache.ui;
import java.util.logging.Logger;
//import org.controlsfx.control.Notifications;
import com.google.common.eventbus.Subscribe;
import javafx.application.Platform;
//import javafx.geometry.Pos;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.image... |
// <API key> - SoftLayer customers can use this API to submit a
// cancellation request. A single service cancellation can contain multiple cancellation items which
// contain a billing item.
package <API key>
// DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED |
#define VMA_IMPLEMENTATION
#include <vk_mem_alloc.h>
#include "<API key>.h"
#include "VulkanUtility.h"
#include "Core/Assertion.h"
namespace cube
{
namespace rapi
{
void <API key>::Initialize(VkInstance instance, VkPhysicalDevice GPU, VkDevice device)
{
VkResult res;
<API... |
<template name="myworks">
<article class="page container-fluid shine-wrapper">
{{> myworksNav}}
{{> myworksList}}
</article>
</template>
<template name="myworksNav">
<header>
<h3>My works</h3>
</header>
<div class="row-fluid">
<nav class="navtabs">
<ul class="navtabs-list">
... |
#ifndef <API key>
# define <API key>
# include <iostream>
# include <regex>
# include <opencv2/highgui/highgui.hpp>
# include <vpp/core/boxNd.hh>
# include <vpp/core/image2d.hh>
inline bool open_videocapture(const char* str, cv::VideoCapture& cap)
{
if (std::regex_match(str, std::regex("[0-9]+")))
cap.open(atoi(s... |
import collections
puzzle_input = (0,13,1,8,6,15)
test_inputs = [
([(0,3,6), 10], 0),
([(1,3,2)], 1),
([(2,1,3)], 10),
([(1,2,3)], 27),
([(2,3,1)], 78),
([(3,2,1)], 438),
([(3,1,2)], 1836),
# Expensive Tests
# ([(0,3,6), 30000000], 175594),
# ([(1,3,2), 30000000], 2578),
# ([... |
import { DomSanitizer } from '@angular/platform-browser';
export declare class IndexTrack {
transform(_x: any): (index: any) => any;
}
export declare class Stringify {
transform(input: any, spaces?: number): string;
}
export declare class ForceArray {
transform(input: any, repeat?: any, repeatValue?: any): ... |
title: "Events"
menu:
addons:
weight: 2
# Events
Addons hook into mitmproxy's internal mechanisms through events. These are
implemented on addons as methods with a set of well-known names. Many events
receive `Flow` objects as arguments - by modifying these objects, addons can
change traffic on the fly. For... |
<?php
namespace Fdr\UserBundle\Form\Type;
//use Symfony\Component\Form\FormBuilder;
//use FOS\UserBundle\Form\Type\<API key> as BaseType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Doctrine\ORM\EntityRepository;
class <API key> extends AbstractType
//extends BaseType getParent
{
... |
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Physics
{
<summary>
A Distorter that distorts points based on their distance and direction to the world
center of gravity as defined by <API key>.
</summary>
[AddComponentMenu("Scripts/MRTK/Core/DistorterGravity")]
public class Distorte... |
# Termux
[Termux](https://termux.com/) is a terminal emulator and Linux environment for
Android.
## Configuration
Install the [app](https://play.google.com/store/apps/details?id=com.termux) and
the
[CodeBoard](https://play.google.com/store/apps/details?id=com.gazlaws.codeboard&rdid=com.gazlaws.codeboard)
keyboard.
sh
$... |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touc... |
#pragma once
// MESSAGE ATTITUDE_TARGET PACKING
#define <API key> 83
MAVPACKED(
typedef struct <API key> {
uint32_t time_boot_ms; /*< Timestamp in milliseconds since system boot*/
float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
float body_roll_rate; /*< Body roll rate in radians... |
#include "questdisplay.h"
#include "../core/global.h"
//QuestLister stuff
QuestLister::QuestLister(int xp, int yp, int wp, int hp) : BasicGUI(xp, yp, wp, hp) {
headerSize = 35;
//-1 due to the header
<API key> = h / headerSize - 1;
padding = 5;
selectedElementPos = 0;
defaultBGTexture = Global::... |
package com.github.gilz688.mifeditor;
import com.github.gilz688.mifeditor.proto.MIEView;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class MIEApplication extends Application {
private Stage ... |
#ifndef __LNET_POLLER_H__
#define __LNET_POLLER_H__
#include "lnet.h"
#include <vector>
extern "C" {
struct epoll_event;
}
<API key>
struct IOEvent;
class Poller {
public:
Poller(IOLoop *loop);
~Poller();
int poll(int timeout, const std::vector<IOEvent*> &ioevents);
int add(int fd, int events);
... |
# Router
Provides the ability to perform actions based on changes in the URL hash.
javascript
import {Router} from "estoolbox";
Router.when("/about", () => {
// Show the about route content.
});
Router.when("/person/:username", (route) => {
const username = route.variables.username;
// Show the person content for... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ShadowCoin</source>
<translation>O ShadowCoin</translation>
</message>
<message>
<locat... |
The PDF includes all problems from the 2012 SoCal Regional ICPC.
We're only doing problem six this week! That's the one entitled "The Perks of Planning Ahead."
<a href="http://socalcontest.org/current/index.shtml" target="_blank">SoCal ICPC official website</a> |
#pragma once
#include "afxwin.h"
#include "CM5/ListCtrlEx.h"
#include "CM5/CStatic/staticex.h"
// CBoatMonitorViewer form view
class CBoatMonitorViewer : public CFormView
{
DECLARE_DYNCREATE(CBoatMonitorViewer)
public:
CBoatMonitorViewer(); // protected constructor used by dynamic creation
virtual... |
var axios = require('axios')
module.exports = function (app) {
app.get('/context_all.jsonld', function (req, res) {
axios.get(app.API_URL + 'context_all.jsonld')
.then(function (response) {
res.type('application/ld+json')
res.status(200).send(JSON.stringify(response.data, null, 2))
})
... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.<API key>(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, targ... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web.Http;
using System.Web.Http.Description;
using System.Xml... |
<?php
\Larakit\StaticFiles\Manager::package('larakit/sf-grid')
->cssPackage('lk-grid.css')
->setSourceDir('public'); |
package containerservice
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"context"
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest... |
'use strict';
import React from 'react-native'
import {
AppRegistry,
Component,
Navigator,
ToolbarAndroid,
View,
} from 'react-native';
import globalStyle, { colors } from './globalStyle';
class NavBar extends Component {
onClickBackToHome() {
this.props.navigator.push({
name: 'home',
sceneC... |
<?php
namespace App;
use App\models\User;
use Illuminate\Database\Eloquent\Model;
class InstDepartment extends Model
{
public static function <API key>($id)
{
$departments = InstDepartment::where('institution_id', $id)->get();
return $departments;
}
public static function <API key>($id)
... |
require 'test_helper'
class <API key> < ActionController::TestCase
# test "the truth" do
# assert true
# end
end |
class CreateTakedowns < ActiveRecord::Migration[5.0]
def change
create_table :takedowns do |t|
t.integer :linked_account_id, null: false
t.timestamps
end
end
end |
/* @UNSAFE: whole file */
#include "lib.h"
#include "ioloop.h"
#include "write-full.h"
#include "network.h"
#include "sendfile-util.h"
#include "istream.h"
#include "istream-internal.h"
#include "ostream-internal.h"
#include <unistd.h>
#include <sys/stat.h>
#ifdef HAVE_SYS_UIO_H
# include <sys/uio.h>
#endif
/* try to ... |
IF OBJECT_ID('LoggerBase.<API key>') IS NOT NULL
SET NOEXEC ON
GO
CREATE FUNCTION LoggerBase.<API key>()
RETURNS NVARCHAR(256)
AS
BEGIN
RETURN NULL
END
GO
SET NOEXEC OFF
GO
ALTER FUNCTION LoggerBase.<API key>()
RETURNS NVARCHAR(256)
AS
BEGIN
RETURN APP_NAME()
END |
<!DOCTYPE html>
<html lang="en">
<head>
<title>jsTester</title>
<link rel="stylesheet" type="text/css" href="../public/stylesheets/style.css" />
</head>
<body>
<h1>jsTester</h1>
<div id='jsTesterLog'></div>
<script type='text/javascript' src='../public/javascripts/jsTester.js'></script>
<s... |
package fpr9.com.nbalivefeed.entities;
public class RecordContainer {
private String id;
private Record record;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Record getRecord() {
return record;
}
public void setReco... |
<!DOCTYPE HTML PUBLIC "-
<html lang="en">
<head>
<meta name="generator" content="PHPDoctor 2RC4 (http://phpdoctor.sourceforge.net/)">
<meta name="when" content="Wed, 14 Apr 2010 15:12:06 +0000">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css">
<link rel="start" href="../../../overview-summary.html... |
import React, { Component, PropTypes } from 'react';
import ItemTypes from './ItemTypes';
import { DragSource, DropTarget } from 'react-dnd';
import flow from 'lodash.flow';
function isNullOrUndefined(o) {
return o == null;
}
const cardSource = {
beginDrag(props) {
return {
id: props.id,
index: prop... |
<section data-ng-controller="TrainersController" data-ng-init="findOne()">
<div class="page-header">
<h1 data-ng-bind="trainer.name"></h1>
</div>
<div class="pull-right" data-ng-show="((authentication.user) && (authentication.user._id == trainer.user._id))">
<a class="btn btn-primary" href="... |
using System;
using Microsoft.Hadoop.MapReduce;
namespace MapReduceSamples.Utils
{
public class <API key> : <API key>
{
public <API key>(bool isCombiner) : base(isCombiner)
{
}
public override void EmitKeyValue(string key, string value)
{
Console.WriteLine("Em... |
#!/usr/bin/env python
import os
import time
import argparse
import tempfile
import PyPDF2
import datetime
from reportlab.pdfgen import canvas
parser = argparse.ArgumentParser("Add signatures to PDF files")
parser.add_argument("pdf", help="The pdf file to annotate")
parser.add_argument("signature", help="The signature f... |
# <API key>: true
require 'vk/api/responses'
module Vk
module API
class Likes < Vk::Schema::Namespace
module Responses
class IsLikedResponse < Vk::Schema::Response
attribute :response, API::Types::Coercible::Hash
end
end
end
end
end |
<script type="application/ld+json">{
"section":"components",
"title":"Menus Manager",
"sections":[
]
}</script>
<ng-include src="'../../../src/DocBundle/views/parts/content.html'"></ng-include> |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('sandbox ap... |
_<sup><sup>[www.codever.land/bookmarks/t/css-preprocessor](https:
_<sup>https://github.com/yosssi/gcss</sup>_
Pure Go CSS Preprocessor.
* **tags**: [go](../tagged/go.md), [css-preprocessor](../tagged/css-preprocessor.md)
* :octocat: **[source code](https://github.com/yosssi/gcss)**
_<sup>https://github.com/wellington/g... |
// permitted provided that the following conditions are met:
// provided with the distribution.
// THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ''AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPO... |
describe('gridClassFactory', function() {
var gridClassFactory;
beforeEach(module('ui.grid.ie'));
beforeEach(inject(function(_gridClassFactory_) {
gridClassFactory = _gridClassFactory_;
}));
describe('createGrid', function() {
var grid;
beforeEach( function() {
grid = gridClassFactory.create... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GoldDiggerCoin</source>
<translation>Acerca de GoldDiggerCoin</trans... |
#include "../../include/domains/AODeterminization.h"
#include "../../include/domains/DummyAction.h"
<API key>::
<API key>(mlcore::Problem* problem) {
originalProblem_ = problem;
problem->generateAll();
int s_idx = 0;
for (mlcore::State* s : problem->states()) {
states_.insert(s);
... |
<?php
namespace BigD\ThemeBundle\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 TreeBuild... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_121) on Fri Mar 30 17:39:20 CEST 2018 -->
<title>F-Index</title>
<meta name="date" content="2018-03-30">
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
<script type="text/javascript" src=".... |
<?php
namespace Flarum\Post;
/**
* @property array $content
*/
abstract class AbstractEventPost extends Post
{
/**
* Unserialize the content attribute from the database's JSON value.
*
* @param string $value
* @return array
*/
public function getContentAttribute($value)
{
... |
var searchData=
[
['setdebugflags',['setDebugFlags',['../<API key>.html#<API key>',1,'dwarfDbgDebugInfo.c']]],
['showchildren',['showChildren',['../dwarfDbgDieInfo_8c.html#<API key>',1,'dwarfDbgDieInfo.c']]],
['showcontents',['showContents',['../<API key>.html#<API key>',1,'<API key>.c']]],
['showdieentries',['... |
$stream = file_get_contents('HITEJINROLAST.txt');
$avgp = "21500.00";
$high = "21750.00";
$low = "21250.00";
echo "&L=".$stream."&N=HITEJINRO&";
$temp = file_get_contents("HITEJINROTEMP.txt", "r");
if ($stream != $temp ) {
$mhigh = ($avgp + $high)/2;
$mlow = ($avgp + $low)/2;
$llow = ($low - (($avgp - $low)/2));
$hhi... |
import 'reflect-metadata';
import 'rxjs/Rx';
import 'zone.js';
import AppComponent from './components/AppComponent.js';
import { bootstrap } from 'angular2/platform/browser';
bootstrap(AppComponent); |
#!/usr/bin/python
import pexpect
import sys
import logging
import vt102
import os
import time
def termcheck(child, timeout=0):
time.sleep(0.05)
try:
logging.debug("Waiting for EOF or timeout=%d"%timeout)
child.expect(pexpect.EOF, timeout=timeout)
except pexpect.exceptions.TIMEOUT:
lo... |
<?php
namespace Outil\ServiceBundle\Param;
use Symfony\Component\HttpKernel\Exception\Exception;
class Param{
// private $mailer;
// private $locale;
// private $minLength;
// public function __construct(\Swift_Mailer $mailer, $locale, $minLength)
// $this->mailer = $mailer;
// $this->locale = $... |
#include "CharTypes.h"
namespace GeneHunter {
bool firstMatchSecond( char c1, char c2 )
{
if ( c1 == c2 ) return true;
if ( c1 == 'U' and c2 == 'T' ) return true;
if ( c1 == 'T' and c2 == 'U' ) return true;
if ( c1 == 'K' and ( c2 == 'G' or c2 == 'T' )) return true;
if ( c1 == 'S' and ( c2 == 'G' or... |
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPatterns.Behavioral.Visitor
{
public class Director : Employee
{
public Director(string name, double income, int vacationDays)
: base(name, income, vacationDays) { }
}
} |
<!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>ARDP: /Developer/school/ardp/build/doc/html/search/classes_2.js File Reference</title>
<li... |
class CreateImages < ActiveRecord::Migration
def change
create_table :images do |t|
t.string :title, :null => false
t.boolean :free_shipping, :null => false, :default => false
t.timestamps
end
end
end |
class <API key> < <API key>
before_filter :require_user, :only => [:create, :delete]
def create
@reply = VideoReply.new(params[:video_reply])
@reply.user = @current_user
if @reply.save
flash[:notice] = 'Reply Submitted Successfully'
redirect_to @reply.video
else
rende... |
using System;
using System.Runtime.InteropServices;
namespace Microsoft.Xbox.Services.Leaderboard
{
public partial class LeaderboardQuery
{
public string StatName { get; internal set; }
public string SocialGroup { get; internal set; }
public bool HasNext { get; internal set; }
pu... |
/**
* Returns an Express Router with bindings for the Admin UI static resources,
* i.e files, less and browserified scripts.
*
* Should be included before other middleware (e.g. session management,
* logging, etc) for reduced overhead.
*/
var browserify = require('../middleware/browserify');
var express = require... |
<div ng-include src="'templates/partials/sidebar.tpl.html'" id="sidebar" class="hidden-xs"></div>
<div
id="main"
class="secure fixed"
ui-view="content"
ng-hide="advSearchIsOpen"></div>
<ng-include src="'templates/partials/composer.tpl.html'" id="composerFrame"></ng-include>
<ng-include src="'templates/partials/form.bug... |
using System;
using System.Reflection;
using Autodesk.AutoCAD.ApplicationServices;
namespace LayoutsFromModel
{
<summary>
Класс для работы с настройками AutoCAD
</summary>
public static class <API key>
{
<summary>
Метод задаёт значение для настройки <API key>
</summary>
... |
/*
** my_putchar.c for my_putchar in /home/soto_a/my_funcs
**
** Made by adam kaso
** Login <soto_a@epitech.net>
**
** Started on Wed Oct 1 10:04:23 2014 adam kaso
** Last update Fri Jan 16 14:28:51 2015 Kaso Soto
*/
#include "my.h"
void my_putchar(char c)
{
if (write(1, &c, 1) == -1)
exit(EXIT_FAILURE);
} |
package org.nextrtc.signalingserver.api;
import lombok.extern.log4j.Log4j;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.google.common.eventbus.EventBus;
@Log4j
@Service("nextRTCEventBus")
@Scope("singleton")
public class NextRTCEventBus {
private Eve... |
'use strict'
const isPlainObject = require('lodash.isplainobject')
const getPath = require('lodash.get')
const StaticComponent = require('./StaticComponent')
const DynamicComponent = require('./DynamicComponent')
const LinkedComponent = require('./LinkedComponent')
const ContainerComponent = require('./ContainerCompone... |
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "Cards" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end
end |
using SonarQube.Common;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace SonarRunner.Shim
{
public static class <API key>
{
private const string <API key> = "sonar-project.properties";
public const string <API key> = "sonar.visualst... |
'use strict';
var program = require('commander');
var Q = require('q');
var fs = require('fs');
var resolve = require('path').resolve;
var stat = Q.denodeify(fs.stat);
var readFile = Q.denodeify(fs.readFile);
var writeFile = Q.denodeify(fs.writeFile);
var assign = require('./util/assign');
program
.option('--get', 'G... |
require "pubdraft/version"
require "pubdraft/engine"
require "pubdraft/state"
require "pubdraft/model"
module Pubdraft
def pubdraft(**options)
include Model::InstanceMethods
extend Model::ClassMethods
cattr_accessor :pubdraft_states
cattr_accessor :pubdraft_options
before_create :<API key>,
... |
package pt.lsts.imc;
import java.io.IOException;
import java.net.URI;
import java.util.concurrent.Future;
import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect;
import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage;
import org.eclipse.jetty... |
# Dropbox
This application is for demonstration purposes only.
## Frameworks/Tools
- coming soon
## Design
- Product design was created in Adobe Photoshop CC: [Raw PSD files](https:
## Demo
- coming soon |
<?php
namespace Core;
use Silex\<API key>;
abstract class AbstractController
{
/**
*
* @var Application
*/
protected $app;
public function __construct( Application $app )
{
$this->app = $app;
}
/**
*
* @param \Silex\<API key> $controllers
* @return \Silex\<API key>
*/
public fu... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_18) on Mon Feb 08 23:29:05 EST 2010 -->
<TITLE>
ProductComponent
</TITLE>
<META NAME="date" CONTENT="2010-02-08">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/ja... |
# Activerecord::Slave
[.
## Installation
Add this line to your application's Gemfile:
gem 'activerecord-slave'
And then execute:
$ bundle
Or install it yourself as:
$ gem install activerecord-slave
## Usage
Add database connect... |
# -*- coding: utf-8 -*-
import json
from axe.http_exceptions import BadJSON
def get_request(request):
return request
def get_query(request):
return request.args
def get_form(request):
return request.form
def get_body(request):
return request.data
def get_headers(request):
return request.headers
def ... |
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
# Examples:
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
# Mayor.create(:name => 'Em... |
'use strict';
import cheerio = require('cheerio');
import fs = require('fs');
import mkdirp = require('mkdirp');
import my_request = require('./my_request');
import path = require('path');
import subtitle from './subtitle/index';
import vlos from './vlos';
import video from './video/index';
import xml2js = require('xml... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_55) on Wed Jun 11 14:26:13 PDT 2014 -->
<title>FVector (Javadocs: FLib)</title>
<meta name="date" content="2014-06-11">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<bo... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Reflection;
using System.Net.Http;
using Newtonsoft.Json;
namespace Codenesium.<API key>
{
public static class ObjectExtensions
{
<summary>
... |
#ifndef <API key>
#define <API key>
/*! \cond BLAZE_INTERNAL */
/*!\brief Specialization of UniUpperMatrix for sparse matrices.
// \ingroup uniupper_matrix
//
// This specialization of UniUpperMatrix adapts the class template to the requirements of sparse
// matrices.
*/
template< typename MT // Type of the adapted sp... |
import qambi, {
getMIDIInputs
} from 'qambi'
document.addEventListener('DOMContentLoaded', function(){
console.time('loading and parsing assets took')
qambi.init({
song: {
type: 'Song',
url: '../data/minute_waltz.mid'
},
piano: {
type: 'Instrument',
url: '../../instruments/hear... |
<?php
namespace Doctrine\ORM\Query\AST;
class DeleteClause extends Node
{
/** @var string */
public $abstractSchemaName;
/** @var string */
public $<API key>;
/**
* @param string $abstractSchemaName
*/
public function __construct($abstractSchemaName)
{
$this->abstractSchema... |
## VERSION 1.1.5
# GENERAL:
- Created changelog
# CSS:
- Added emoji-picker CSS
- Fixed highlight CSS
## VERSION 1.1.6
# CSS:
- Added scrollbar CSS for public server list
## VERSION 1.1.7
# GENERAL:
- Added link to changelog
- Added link to a preview image
# CSS:
- Added notification badge CSS for friends list
- Fixed ... |
module Doorkeeper
class TokensController < Doorkeeper::<API key>
def create
response = authorize_response
headers.merge! response.headers
self.response_body = response.body.to_json
self.status = response.status
rescue Errors::DoorkeeperError => e
<API key> e
end
de... |
export default function widget(widget=null, action) {
switch (action.type) {
case 'widget.edit':
return action.widget;
case 'widget.edit.close':
return null;
default:
return widget;
}
} |
layout: page
title: Latest Posts
excerpt: "A simple and clean responsive Jekyll theme for words and photos."
search_omit: true
<ul class="post-list">
{% for post in site.posts limit:10 %}
<li><article><a href="{{ site.url }}{{ post.url }}"><b>{{ post.title }}</b> <span class="entry-date"><time datetime="{{ post.date ... |
def tryprint():
return ('it will be oke') |
package org.jbox2d.testbed;
public class TestSettings {
public int hz;
public int iterationCount;
public boolean enableWarmStarting;
public boolean <API key>;
public boolean enableTOI;
public boolean pause;
public boolean singleStep;
public boolean drawShapes;
public boolean drawJoin... |
#ifndef _PIFACEDIGITAL_H
#define _PIFACEDIGITAL_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define OUTPUT 0x12 // GPIOA
#define INPUT 0x13 // GPIOB
/**
* Opens and initialises a PiFace Digital with the specified hardware
* address. Returns a file descriptor for making raw SPI transactions to
* the ... |
<?php
namespace AntiMattr\Bundle\<API key>\Form\Document;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\<API key>;
use Symfony\Component\Form\<API key>;
class PageSectionFormType extends AbstractType
{
public function buildForm(<API key> $builder, array $options)
{
$buil... |
body {
overflow-x: hidden;
font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.text-muted {
color: #777777;
}
.text-primary {
color: #78be20;
}
p {
font-size: 14px;
line-height: 1.75;
}
p.large {
font-size: 16px;
}
a,
a:hover,
a:focus,
a:active,
a.active {
outline: none;
}
a {... |
require "rails_helper"
RSpec.describe GoogleUrlValidator do
include GoogleSheetHelper
it "validates an incorrect host name" do
record = build_stubbed(:tagging_spreadsheet, url: "https://invalid.com")
GoogleUrlValidator.new.validate(record)
expect(record.errors[:url]).to include(/is not a google docs url... |
package org.github.mervyn.io;
import static org.junit.Assert.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class FileInputStreamTest {
protected Logger logger = Lo... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Desktop</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href=".... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.