answer stringlengths 15 1.25M |
|---|
const sizeOf = {
object: function () {
return function (object) {
let $start = 0
$start += 1 * object.array.length + 2
return $start
}
} ()
}
const serializer = {
all: {
object: function () {
return function (object, $buffer, $start) {
... |
#body {
width: auto;
}
/* Coding Table */
.table_stat {
z-index: 2;
position: relative;
}
.table_bar {
height: 80%;
position: absolute;
background: #DEF; /* cornflowerblue */
z-index: -1;
top: 10%;
left: 0%;
}
#agreement_table, #tweet_table {
font-size: 10pt;
}
#agreement_table s... |
<!DOCTYPE HTML PUBLIC "-
<html>
<head>
<title>Submission 944</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<img src="gallery/submissions/944.jpg" height="400">
</body>
</html> |
@charset "UTF-8";
/* line 6, /vagrant/app/assets/stylesheets/staff/container.css.scss */
div#wrapper div#container h1 {
margin: 0;
padding: 9px 6px;
font-size: 16px;
font-weight: normal;
background-color: #1a3333;
color: #eeeeee;
}
/* line 4, /vagrant/app/assets/stylesheets/staff/layout.css.scss */
html, bo... |
<?php namespace Fannan\MembersModule\Member;
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
class MemberSeeder extends Seeder
{
/**
* Run the seeder.
*/
public function run()
{
}
} |
<?php
namespace InfinityGames\InfinityBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
class <API key> extends Extension
{
... |
import modelExtend from 'dva-model-extend'
import { create, remove, update } from '../services/user'
import * as usersService from '../services/users'
import { pageModel } from './common'
import { config } from 'utils'
const { query } = usersService
const { prefix } = config
export default modelExtend(pageModel, {
na... |
#!/bin/bash
cd "$(dirname "$BASH_SOURCE")" || {
echo "Error getting script directory" >&2
exit 1
}
./hallo.command
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |
<?php
class C_admin extends CI_Controller {
public function __construct() {
parent::__construct();
if($this->session->userdata('level') != 'admin') {
redirect('auth'); }
}
public function index() {
$data['username'] = $this->session->userdata('username');
$this->l... |
var blueMarker = L.AwesomeMarkers.icon({
icon: 'record',
prefix: 'glyphicon',
markerColor: 'blue'
});
var airportMarker = L.AwesomeMarkers.icon({
icon: 'plane',
prefix: 'fa',
markerColor: 'cadetblue'
});
var cityMarker = L.AwesomeMarkers.icon({
icon: 'home',
markerColor: 'red'
});
var st... |
<?php
namespace Phossa\Cache;
interface CachePoolInterface
{
}
class CachePool implements CachePoolInterface
{
}
class TestMap {
private $cache;
public function __construct(CachePoolInterface $cache) {
$this->cache = $cache;
}
public function getCache() {
return $this->cache;
}
} |
/**
* jspsych plugin for categorization trials with feedback and animated stimuli
* Josh de Leeuw
*
* documentation: docs.jspsych.org
**/
jsPsych.plugins["<API key>"] = (function() {
var plugin = {};
jsPsych.pluginAPI.registerPreload('<API key>', 'stimuli', 'image');
plugin.info = {
name: '<API key>',
... |
<?php
namespace Pho\Lib\Graph;
/**
* Holds the relationship between nodes and edges.
*
* EdgeList objects are attached to all Node objects, they are
* created at object initialization. They contain edge objects
* categorized by their direction.
*
* @see ImmutableEdgeList For a list that doesn't accept new values... |
package me.august.lumen.data;
import me.august.lumen.compile.resolve.data.ClassData;
import me.august.lumen.compile.resolve.lookup.DependencyManager;
import org.junit.Assert;
import org.junit.Test;
public class DataTest {
@Test
public void testClassData() {
ClassData data = ClassData.fromClass(String.cl... |
<?php
define("SITEDOMAIN", "{SITE-DOMAIN}");
define("DB_HOST", "{DB-HOST}");
define("DB_USER", "{DB-USER}");
define("DB_PASSWORD", "{DB-PASS}");
define("DB_NAME", "{DB-NAME}");
define("DB_PREFIX", "{DB-PREFIX}");
//Flag: (1=ON, 0=OFF)
$devMode = 0;
$link = "{GRAVATAR-LINK}";
if (!$devMode) error_reporting(0);
define("B... |
<?php
namespace Wtk\Response\Header\Field;
use Wtk\Response\Header\Field\AbstractField;
use Wtk\Response\Header\Field\FieldInterface;
/**
* Basic implementation - simple Value Object for Header elements
*
* @author Wojtek Zalewski <wojtek@neverbland.com>
*/
class Field extends AbstractField implements FieldInterfac... |
'use strict';
var app = angular.module('Fablab');
app.controller('<API key>', function ($scope, $location, $filter, $window,
PurchaseService, NotificationService, StaticDataService, SupplyService) {
$scope.selected = {purchase: undefined};
$scope.currency = App.CONFIG.CURRENCY;
$scope.loadPurchase =... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ons;
import ons.util.WeightedGraph;
import org.w3c.dom.*;
/**
* The physical topology of a network refers to he physical layout of devices on
* a network, or to the way that the devices on a network are arrange... |
require File.join [Pluct.root, 'lib/pluct/extensions/json']
describe JSON do
it 'returns false for invalid data' do
['', ' ', 'string'].each do |s|
expect(JSON.is_json?(s)).to be_false
end
end
it 'returns true for valid data' do
expect(JSON.is_json?('{"name" : "foo"}')).to be_true
end
end |
module VhdlTestScript
class Wait
CLOCK_LENGTH = 2
def initialize(length)
@length = length
end
def to_vhdl
"wait for #{@length * CLOCK_LENGTH} ns;"
end
def in(ports)
self
end
def origin
self
end
end
end |
version: v1.4.13
category: API
redirect_from:
- /docs/v0.37.8/api/global-shortcut
- /docs/v0.37.7/api/global-shortcut
- /docs/v0.37.6/api/global-shortcut
- /docs/v0.37.5/api/global-shortcut
- /docs/v0.37.4/api/global-shortcut
- /docs/v0.37.3/api/global-shortcut
- /docs/v0.36.12/api/global-shortcut
- /do... |
uid: <API key>.BSplineCurve2d.GetParameterRange(System.Double@,System.Double@)
summary:
remarks:
syntax:
parameters:
- id: End
description: Specifies the end parameter of the curve.
- id: Start
description: Specifies the start parameter of the curve. |
#ifndef <API key>
#define <API key>
#include <stdint.h>
#include <map>
#include <memory>
#include <set>
#include <vector>
#include "base/atomicops.h"
#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/singleton.h"
#include "base/synchronization/l... |
class CreateUser < ActiveRecord::Migration
def up
create_table :users do |t|
t.integer :user_id, :limit => 8
t.string :screen_name
t.boolean :following, :default => false
t.boolean :followed, :default => false
t.boolean :unfollowed, :default => false
t.timestamp :followed_at
... |
// DomapInfo_dlg.cpp : implementation file
#include "stdafx.h"
#include "winprom.h"
#include "DomapInfo_dlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// CDomapInfo_dlg dialog
CDomapInfo_dlg::CDomapInfo_dlg(const Area_info& a, const Area_info& d,
... |
{{<govuk_template}}
{{$head}}
{{>includes/elements_head}}
{{>includes/elements_scripts}}
{{/head}}
{{$propositionHeader}}
{{>includes/<API key>}}
{{/propositionHeader}}
{{$headerClass}}with-proposition{{/headerClass}}
{{$content}}
<script>
if(sessionStorage.condition) {
sessionStorage.removeItem('condition');
}... |
// 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 :
// copies or substantial... |
# == Schema Information
# Table name: currencies
# id :integer not null, primary key
# name :string
# abbrev :string
# created_at :datetime not null
# updated_at :datetime not null
class Currency < ActiveRecord::Base
validates :name, :abbrev, presence: true
end |
shared_examples 'collection::ansible' do
include_examples 'python::toolchain'
include_examples 'ansible::toolchain'
end |
export const <API key> = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M13 3.06V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06c-.46-4.17-3.77... |
<div class="form-group fg-float">
<div class="fg-line">
{!! Form::text('name', null, array('class' => 'form-control fg-input')) !!}
</div>
{!! Form::label('name', 'Name', array('class' => 'fg-label')) !!}
</div>
<div class="form-group fg-float">
<div class="fg-line">
{!! Form::textarea('... |
package exercise.<API key>.utils;
public class MessegeLogger {
public static void log(String message){
System.out.println(message);
}
} |
[ ?>
<link rel="stylesheet" href="<?=base_url('/admin/css/<API key>.min.css')?>">
</head>... |
import Form from '<API key>/Form'
import submitForm from './chains/submitForm'
import resetForm from './chains/resetForm'
import validateForm from './chains/validateForm'
export default (options = {}) => {
return (module, controller) => {
module.addState(Form({
name: {
value: '',
isRequired:... |
namespace GarboDev
{
using System;
using System.Collections.Generic;
using System.Text;
public partial class Renderer : IRenderer
{
private Memory memory;
private uint[] scanline = new uint[240];
private byte[] blend = new byte[240];
private byte[] windowCover = new b... |
package models
import java.util.UUID
import play.api.db.slick.Config.driver.simple._
import org.joda.time.DateTime
import com.github.tototoshi.slick.HsqldbJodaSupport._
case class ClientGrantType(
clientId: String,
grantTypeId: Int
) extends Model
class ClientGrantTypes(tag: Tag) extends Table[ClientGrantType](... |
<?php
$data = array (
0 =>
array (
'id' => '3',
'name' => '',
'desc' => '',
'parent_id' => '0',
'has_child' => '0',
'is_show' => '0',
'level' => '1',
'type' => '0',
'sort' => '0',
),
);
?> |
<?php
namespace AppBundle\Controller;
use AppBundle\Entity\BillingAddress;
use AppBundle\Entity\ShippingAddress;
use AppBundle\Form\<API key>;
use AppBundle\Form\<API key>;
use AppBundle\Form\<API key>;
use Sensio\Bundle\<API key>\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfon... |
<?php
declare(strict_types=1);
namespace phpDocumentor\Descriptor;
use Mockery\Adapter\Phpunit\MockeryTestCase;
use stdClass;
/**
* Tests the functionality for the Collection class.
*
* @coversDefaultClass \phpDocumentor\Descriptor\Collection
*/
final class CollectionTest extends MockeryTestCase
{
/** @var Coll... |
"use strict";
define("ace/snippets/scala", ["require", "exports", "module"], function (require, exports, module) {
"use strict";
exports.snippetText = undefined;
exports.scope = "scala";
}); |
// Use of this source code is governed by a BSD-style
package main
import (
"errors"
"go/build"
"testing"
"github.com/golang/dep/internal/gps"
"github.com/golang/dep/internal/gps/pkgtree"
)
func <API key>(t *testing.T) {
ec := &ensureCommand{
update: true,
add: true,
}
... |
'use strict';
module.exports = {
set: function (v) {
this.setProperty('src', v);
},
get: function () {
return this.getPropertyValue('src');
},
enumerable: true
}; |
<?php
namespace App\Modules\OAuth\Controllers;
use App\Http\Controllers\Controller;
use App\Modules\Users\Controllers\UserController;
use App\Modules\Users\Models\User;
use App\Modules\Users\Supports\MailCheckSupport;
use Laravel\Socialite\Facades\Socialite as Socialite;
use Illuminate\Http\Request;
use Tymon\JWTAuth\J... |
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.bar {
fill: steelblue;
}
g.orbit,
g.main {
cursor: pointer;
pointer-events: all;
} |
#!/bin/sh
# Compile script to compile against Elysion library
# Works for Mac OS X and Linux
FPC_BIN=`which fpc`
BIN_FOLDER="../bin"
LIB_FOLDER="../lib"
RES_FOLDER="../resources"
SRC_FOLDER="../source"
# Info.plist constants
BUNDLE_REGION="English"
BUNDLE_ICON="logo.icns"
BUNDLE_IDENT="com.mycompanyname"
BUNDLE_SIGNATU... |
# Tablespoon
**This repository is no longer being maintained. Please use [https:
Easily query spreadsheet-like or json data with SQLite or PostgreSQL. Built around[ node-postgres](https:
Installation
To install as a Node.js module
`
npm install tablespoon
`
To use Tablespoon's command line interface, install with the g... |
#include <QApplication>
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "init.h"
#include "util.h"
#include "ui_interface.h"
#include "paymentserver.h"
#include "splashscreen.h"
#include <QMessageBox>
#if QT_VERS... |
.letra-ciudad {
color: #fff;
font-weight: 100;
cursor: pointer;
font-family: 'Moonbeam' !important;
font-size: 43px;
padding-left: 15px;
}
.letra-placer {
color: #fff;
font-weight: 100;
cursor: pointer;
font-size: 44px;
font-family: 'QaskinBlack';
}
#cabecera_sup_buscar {
text-align: center;
}
#... |
#3.4 Chrome Dev Tools
1. Change in Colors

2. Column

3. Row

4. Make Equidistant

5. Squares

6. Footer
 {
var mongoose = require('mongoose'),
config = require('../config'),
options = {
user : config.mongo.user,
pass : config.mongo.pass
};
mongoose.connect(config.db, options);
return mongoose.connection;
}; |
# encoding: utf-8
# <API key>: true
require 'spec_helper'
describe RuboCop::Cop::Style::ElseAlignment do
subject(:cop) { described_class.new(config) }
let(:config) do
RuboCop::Config.new('Lint/EndAlignment' => <API key>)
end
let(:<API key>) do
{ 'Enabled' => true, 'AlignWith' => 'variable' }
end
it ... |
// CollectionViewCell.h
// Timetable
#import <UIKit/UIKit.h>
//CollectionView
@interface CollectionViewCell : <API key>
@property (nonatomic, copy) NSString *cellName;
@property (nonatomic, copy) NSString *place;
@property (nonatomic, assign) NSInteger signNumber;
@end |
class TripsController < <API key>
before_action :set_trip, only: [:show, :update, :destroy, :edit]
def index
if current_user
@created_trips = current_user.created_trips
@joined_trips = current_user.trips
else
@trips = Trip.order(:start_at).limit(25)
end
end
def new
@trip = Trip... |
module RedditKit
class Client
# Methods for searching reddit's links.
module Search
# Search for links.
# @param query [String] The search query.
# @option options [String, RedditKit::Subreddit] subreddit The optional subreddit to search.
# @option options [true, false] <API key> Wheth... |
//APP
var app = angular.module('PortfolioApp', ['ngRoute', 'slick']);
//ROUTING
app.config(function ($routeProvider) {
"ngInject";
$routeProvider
.when('/', {
controller: "HomeController",
templateUrl: "js/angular/views/home-view.html"
})
.when('/work/:projectId', {
controlle... |
// 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:
// copies or substantial p... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Creative One Page Parallax Template">
<meta name="keywords" content="Creative, Onepage, Parallax, HTML5, Bootstrap, Popular, custom, per... |
let original: (fn: <API key>) => number;
let requesters: any[] = [];
function fakeRaf(fn: <API key>): number {
requesters.push(fn);
return requesters.length;
}
function use() {
original = window.<API key>;
window.<API key> = fakeRaf;
}
function restore() {
setTimeout(() => {
window.<API key> = original;
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MotoBotCore.Interfaces
{
public interface IChannel
{
string Name { get; set; }
string Motd { get; set; }
}
} |
#include <string.h>
#include <math.h>
#include "MpegDecoder.h"
void CDecompressMpeg::imdct_init()
{
int k, p, n;
double t, pi;
n = 18;
pi = 4.0 * atan(1.0);
t = pi / (4 * n);
for (p = 0; p < n; p++)
w[p] = (float) (2.0 * cos(t * (2 * p + 1)));
for (p = 0; p < 9; p++)
w2[p] = ... |
import { moduleForModel, test } from 'ember-qunit';
import Pretender from 'pretender';
// ToDo: Install ember-cli-faker
import mocks from './mocks';
const {
inventoryMock,
productMock,
componentsMock
} = mocks;
let mockServer;
moduleForModel('inventory', 'Unit | Serializer | inventory', {
needs: ['serializer:ap... |
# Acknowledgements
This application makes use of the following third party libraries:
## FMDB
If you are using FMDB in your project, I'd love to hear about it. Let Gus know
by sending an email to gus@flyingmeat.com.
And if you happen to come across either Gus Mueller or Rob Ryan in a bar, you
might consider purchasing... |
package com.asksunny.batch.tasklets;
public class Demo1 {
long id;
String name;
public Demo1() {
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name)... |
package net.glowstone.net.codec.play.game;
import com.flowpowered.network.Codec;
import io.netty.buffer.ByteBuf;
import java.io.IOException;
import net.glowstone.net.GlowBufUtils;
import net.glowstone.net.message.play.game.<API key>;
import net.glowstone.util.nbt.CompoundTag;
import org.bukkit.util.BlockVector;
public ... |
// <summary>
// Part of the Deployment Tools Foundation project.
// </summary>
namespace Microsoft.PackageManagement.Archivers.Internal.Compression
{
using System;
using System.IO;
<summary>
Duplicates a source stream by maintaining a separate position.
</summary>
<remarks>
WARNING: duplicat... |
+(function () {
'use strict';
angular
.module('<API key>')
.controller('<API key>', ['$scope', '$q', 'Event', 'FoldersRest', <API key>]);
function <API key>($scope, $q, Event, FoldersRest) {
var vm = this;
var folderId = $scope.ngDialogData.folderId;
vm.removeFolder =... |
package co.colector.model.request;
import java.util.ArrayList;
import java.util.List;
import co.colector.ColectorApplication;
import co.colector.R;
import co.colector.model.IdInputValue;
import co.colector.model.IdValue;
import co.colector.model.Survey;
import co.colector.model.AnswerValue;
import co.colector.session.A... |
package controllers
import (
"github.com/revel/revel"
"AuthKeyPush/app/models"
)
type Auth struct {
*revel.Controller
}
func (c Auth) Github(code string) revel.Result {
login := models.GitHub(code)
if login == true {
c.Session["login"] = "true"
} else {
c.Session["login"] = "fals... |
// VisibleBuildConfig.h
// VisibleBuildConfig
#import <Foundation/Foundation.h>
#define <API key> @"<API key>"
@interface VisibleBuildConfig : NSObject
//ConfigName is reqired and unique
@property(nonatomic, strong) NSString *configName;
+ (instancetype)sharedInstance;
//setup configuration data with plist
- (void... |
/**
* @module {Module} utils/math
* @parent utils
*
* The module's description is the first paragraph.
*
* The body of the module's documentation.
*/
import _ from 'lodash';
/**
* @function
*
* This function's description is the first
* paragraph.
*
* This starts the body. This text comes after the signat... |
# dotfiles
My config files for linux
Looking for a sane default vimrc?
wget https://raw.githubusercontent.com/ekohilas/dotfiles/master/.vimrc.default -O ~/.vimrc
Want the DarkIdle Colorscheme?
wget https://raw.githubusercontent.com/ekohilas/dotfiles/master/.vim/colors/DarkIdle.vim -O ~/.vim/colors/DarkIdle.vim
Don't fo... |
<?php
/* WebProfilerBundle:Collector:router.html.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "WebProfilerBundle:Coll... |
<!doctype html>
<html lang="en" xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Photo - A History of UCSF</title>
<link href='http://fonts.googleapis.com/css?family=Gilda+Display%7CPT+Sans+Narrow:300'... |
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Relationships</h3>
</div>
<div class="panel-body">
<div ng-repeat="relationship in contactGroupMember.Relationships">
<div class="form-group">
<label for="inputRelationship" clas... |
// This example plugins/index.js can be used to load plugins
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
// You can read more here:
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config c... |
#!/bin/bash
# ./run pixel_inicio pixel_final pixel_paso frecuencia_inicio frecuencia_final
# frecuencia_paso resolucion_espacial Rt modelo path
COUNTERX=$1
while [ $COUNTERX -le $2 ]; do
if [ ! -d "/home/vdelaluz/ARTs/papers/cavity2D/data/SEL05/${COUNTERX}" ]; then
# Control will enter here if $DIRECTORY doesn't e... |
<p> Yo
</p>
<div *ngFor ="let task of taskList;let i=index;" style="padding:10px;width:100%;">
<input type="checkbox" name="task" value= "xyz" [checked]="task.status!=='N'">{{task.name}}
<br>
<button (click)="clearTask(task)" style="display:inline-block;">Delete</button>
</div>
<div>
<input type= "text"... |
<?php
if ($_SESSION['manager']==""){
header("Location: admin_login.php");
exit;
};
header("Location: admin_index.php");
?> |
using UnityEngine;
using UnityEditor;
using CreateThis.Factory.VR.UI.Button;
namespace MMVR.Factory.UI.Button {
[CustomEditor(typeof(<API key>))]
[<API key>]
public class <API key> : <API key> {
SerializedProperty fileManager;
protected override void OnEnable() {
base.OnEnable();... |
var box, mbox;
function demo() {
cam ( 0, 20, 40 );
world = new OIMO.World();
world.add({ size:[50, 10, 50], pos:[0,-5,0] }); // ground
var options = {
type:'box',
size:[10, 10, 10],
pos:[0,20,0],
density:1,
move:true
}
box = world.add( options );
mbox... |
class CreateCourses < ActiveRecord::Migration
def change
create_table :courses do |t|
t.string :name
t.string :short_name
t.string :sisid
t.text :description
t.integer :department_id
t.integer :term_id
t.boolean :graded
t.boolean :archived
t.string :type
... |
// AppDelegate.h
// topController
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <<API key>>
@property (strong, nonatomic) UIWindow *window;
@end |
import traceback
class <API key>:
"""Helper for ensuring that Future's exceptions were handled.
This solves a nasty problem with Futures and Tasks that have an
exception set: if nobody asks for the exception, the exception is
never logged. This violates the Zen of Python: 'Errors should
never pass ... |
module GitNetworkitis
class Getter
include HTTParty
include JSONHelper
base_uri 'https://api.github.com'
attr_accessor :url, :local_options, :query_options
LOCAL_KEYS = [:batch, :since]
def initialize(url, options={})
@url = url
scrub_local_options options
@query_options = op... |
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta na... |
var fs = require('fs'),
cons = require('consolidate'),
dust = require('dustjs-linkedin');
var pages = [
'index',
'contact',
'faq',
'registration',
'sponsors',
'travel',
'visit',
'volunteers'
];
pages.forEach(function(page) {
cons.dust('views/'+page+'.dust', { views: __dirname... |
#pragma once
#include "Prerequisites.h"
#include "NodeFlowData.h"
#include "NodeProperty.h"
#include "NodeException.h"
#include "NodeLink.h"
#include "Kommon/EnumFlags.h"
class NodeSocketTracer
{
public:
NodeSocketTracer()
: _traced{InvalidNodeID, InvalidSocketID, false}
{
}
void setNode(NodeID ... |
package com.team2502.robot2017.command.autonomous;
import edu.wpi.first.wpilibj.command.CommandGroup;
public class ShinyFollow extends CommandGroup
{
/**
* Does a follow
*/
public ShinyFollow() { addSequential(new AutoVisionCommand(200, 0.3)); }
} |
package br.com.caelum.rest.server;
import javax.servlet.http.HttpServletRequest;
public class SimpleAction implements Action {
public String getUri() {
return uri;
}
public String getRel() {
return rel;
}
private final String uri;
private final String rel;
public SimpleAction... |
body {
font-family: 'Rancho', cursive;
font-weight: bold;
margin: auto;
padding: 5%;
background-color: #F49D37;
}
.score,
.game {
color: #0A1128;
font-size: 28px;
}
#board {
width: 450px;
height: 450px;
}
#board .square {
width: 33.333333333%;
height: 33.333333333%;
background-color: #496DDB;
float: left;
text-align: c... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Couch411 | Login</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/boot... |
package com.ms.<API key>.features.meizi.model;
import android.content.Context;
import com.ms.<API key>.features.base.pojo.ImgItem;
import com.ms.retrofitlibrary.web.MyOkHttpClient;
import org.loader.model.OnModelListener;
import java.util.List;
import rx.Observable;
import rx.Subscription;
public class DbGroupBreastMod... |
import logging.handlers
import os
_pabotlog = logging.getLogger('PABot')
_pabotlog.setLevel(logging.DEBUG)
_logPath = os.path.abspath("./logging/pabot.log")
_formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(name)s - %(message)s')
<API key> = logging.StreamHandler()
<API key>.setLevel(logging.DEBUG)
<API k... |
{
{# INDIVIDUAL VIEW FOR EACH storycontributor #}
{# This page can use any data from http:localhost:2000/cms/#/form/storycontributor/ #}
{# Webhook uses the SWIG.js (like Djagno/Twig) templating system. Their documentation is here: #}
{
{# Learn about calling data into Webhook pages here: #}
{
{
{# Confused what extend... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.