answer stringlengths 15 1.25M |
|---|
package be.idoneus.hipchat.buildbot.hipchat.server;
public class Paths {
public static String PATH_CAPABILITIES = "";
public static String PATH_INSTALL = "install";
public static String <API key> = "webhooks/room_message";
public static String PATH_GLANCES = "glances";
} |
<h3>Biological Replicates Groups</h3>
<hr>
<form
data-ng-submit="<API key>.experiment.metadata.<API key>.add(<API key>.new)"
>
<div
class="
form-group
"
>
<label
for="<API key>"
>
Biological Replicates Group Name
</label... |
using WJStore.Domain.Interfaces.Validation;
namespace WJStore.Domain.Validation
{
public class ValidationRule<TEntity> : IValidationRule<TEntity>
{
private readonly ISpecification<TEntity> _specificationRule;
public ValidationRule(ISpecification<TEntity> specificationRule, string errorMessage)
... |
{% extends "index.html" %}
{% from "macro.html" import error3list with context %}
{% block <API key> %}
{% include 'flash_warning.html' %}
{{ error3list(formWorker.errors.worker_name) }}
{{ error3list(formWorker.errors.worker_sex) }}
{{ error3list(formWorker.errors.worker_birthday) }}
{{ error3list(... |
/**
* options.js
*
* A test helper to detect which html-snapshots options to use
*
* phantomjs
* If a global phantomjs is defined, decorates html-snapshots options to specify that global
* In some test environments (travis), local phantomjs will not install if a global is found.
*/
const spawn = require("child_... |
using CharacterGen.Feats;
using CharacterGen.Abilities;
using CharacterGen.Races;
using System.Collections.Generic;
using System.Linq;
namespace CharacterGen.Domain.Selectors.Selections
{
internal class RacialFeatSelection
{
public string Feat { get; set; }
public int <API key> { get; set; }
... |
const {
assertSame,
assertDataProperty,
<API key>,
<API key>,
} = Assert;
function <API key>(object, name, value = object[name]) {
return assertDataProperty(object, name, {value, writable: true, enumerable: false, configurable: true});
}
function <API key>(object, name, value = object[name]) {
return assert... |
goog.provide('ng.material.components.backdrop');
goog.require('ng.material.core');
/*
* @ngdoc module
* @name material.components.backdrop
* @description Backdrop
*/
/**
* @ngdoc directive
* @name mdBackdrop
* @module material.components.backdrop
*
* @restrict E
*
* @description
* `<md-backdrop>` is a backd... |
import json
from app import models
from django.test import Client, TestCase
from django.contrib.auth.hashers import make_password
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
# Create your tests here.
class TestLecturerWeb(TestCase):
def _init_test_lecturer(self):
... |
#pragma once
#ifndef _TERRAINCLASS_H_
#define _TERRAINCLASS_H_
#include <d3d11.h>
#include <DirectXMath.h>
#include <stdio.h>
#include <math.h>
#include "textureclass.h"
const int TEXTURE_REPEAT = 16;
class TerrainClass
{
private:
struct VertexType
{
DirectX::XMFLOAT3 position;
DirectX::XMFLOAT2... |
// DBMWriter.h: interface for the CDBMWriter class.
#if !defined(<API key>)
#define <API key>
#include "windows.h"
#include "Str.h"
class CDBMWriter
{
public:
CDBMWriter();
virtual ~CDBMWriter();
bool OutputDBM(const char *pDBMStr, size_t length);
bool OutputDBM... |
##Tail
`tail (array)`
- Gets all but the first element of array
Arguments
array (Array): The array to query.
Returns
(Array): Returns the slice of array.
Example
javascript
bland.tail( [ 1, 2, 3, 4, 5 ] ) |
<?php
namespace Oreades\<API key>;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class <API key> extends Bundle
{
} |
#ifndef __tc_function_h__
#define __tc_function_h__
#include <atomic>
namespace tc {
#define TC_FUNCTION_TD_0 typename R
#define TC_FUNCTION_TD_1 TC_FUNCTION_TD_0 , typename A1
#define TC_FUNCTION_TD_2 TC_FUNCTION_TD_1 , typename A2
#define TC_FUNCTION_TD_3 TC_FUNCTION_TD_2 , typename A3
#define TC_FUNCTION_TD_4 TC_FUN... |
const errors = require('@tryghost/errors');
const should = require('should');
const sinon = require('sinon');
const fs = require('fs-extra');
const moment = require('moment');
const Promise = require('bluebird');
const path = require('path');
const LocalFileStore = require('../../../../../core/server/adapters/storage/L... |
html,body{height:100%;width:100%;margin:0;padding:0;overflow:hidden;font-family:'Bangers','Helvetica Neue','Arial'}.contanier{position:relative;width:100%;height:100%;background-image:url(../images/wallpaper.jpg);background-size:cover}.contanier .content{position:absolute;top:0;left:0;margin:0;width:100%;padding:200px ... |
import { ReactElement } from "react";
import Heading from "components/Heading";
import styles from "./PackageSassDoc.module.scss";
export interface SectionTitleProps {
packageName: string;
type: "Variables" | "Functions" | "Mixins";
}
export default function SectionTitle({
packageName,
type,
}: SectionTitleProp... |
<li class="item">
<a href="product.html" class="pic">
<span class="active"><em><img src="demo/products/m6-1.png" alt=""></em></span>
<span><em><img src="demo/products/m6-2.png" alt=""></em></span>
</a... |
template for monitoring Eltex SMG1016M ip-ats gate
contains:
* 15 items
* 1 discovery rules (E1 channels)
Items:
* CPU
* temperature
* Fan Speed
* Power Unit Status
* Each E1 channel:
** status
** Link state
** Phy state
** Rx Count
** Tx Count
** Free Channels
Installation
* configure SNMP on eltex gateway
* import te... |
%
% Adobe Systems Engineering GmbH - 2014
% Erhan Bagdemir <bagdemir@adobe.com>
%
\documentclass{beamer}
% package declerations
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{listings}
\lstset{
language=Java,
tabsize=4,
breaklines=true,
breakatwhitespace=true,
escapech... |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE <API key> #-}
module Stackage.BuildPlan
( readBuildPlan
, writeBuildPlan
) where
import qualified Data.Map as Map
import qualified Data.Set as Set
import Distribution.Text (display, simpleParse)
im... |
# AstroHub
AstroHub is an in-memory request-response multiplexer for [micro]service oriented applications
## Description
AstroHub is a service meant to sit between your "level 1" API servers or load balancers and your microservices. It allows services to communicate with one another through a centralized hub. This is t... |
package in.clayfish.printful.models;
import java.io.Serializable;
import java.util.List;
import in.clayfish.printful.models.info.AddressInfo;
import in.clayfish.printful.models.info.ItemInfo;
/**
* @author shuklaalok7
* @since 24/12/2016
*/
public class ShippingRequest implements Serializable {
/**
* Recipi... |
import UnexpectedHtmlLike from 'unexpected-htmllike';
import React from 'react';
import REACT_EVENT_NAMES from '../reactEventNames';
const <API key> = { dummy: 'Dummy object to identify a pending event on the test renderer' };
function getDefaultOptions(flags) {
return {
diffWrappers: flags.exactly || flags.withA... |
body {
margin: 0px;
padding: 0px;
font-family: freesans,helvetica,arial,clean,sans-serif;
font-size: 16px;
}
img { border: 0 none; }
a { color: #3465a4; text-decoration: none; margin-bottom:1px;}
a:hover { color: #729fcf; padding-bottom: 0px; border-bottom: 1px dotted #729fcf;}
.required { display: inl... |
<?php namespace Arcanedev\Stripe\Tests;
use Arcanedev\Stripe\StripeObject;
/**
* Class StripeObjectTest
*
* @package Arcanedev\Stripe\Tests
* @author ARCANEDEV <arcanedev.maroc@gmail.com>
*/
class StripeObjectTest extends StripeTestCase
{
/** @test */
public function <API key>()
{
$objec... |
// Generated by CoffeeScript 1.7.1
(function() {
var $, CSV, ES, TEXT, TRM, TYPES, alert, badge, create_readstream, debug, echo, help, info, log, njs_fs, rainbow, route, rpr, urge, warn, whisper;
njs_fs = require('fs');
TYPES = require('coffeenode-types');
TEXT = require('coffeenode-text');
TRM = require('cof... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
<style type="t... |
"use strict";
var request = require(__dirname + "/request");
var db = require(__dirname + "/db");
/**
* Steam utils
*/
var steamapi = {};
/**
* Request to our api
* @param {string} type
* @param {string[]} ids
* @param {function} callback
*/
steamapi.request = function (type, ids, callback) {
if (!ids.length... |
//THREEJS RELATED VARIABLES
var scene,
camera, fieldOfView, aspectRatio, nearPlane, farPlane,
gobalLight, shadowLight, backLight,
renderer,
container,
controls;
//SCREEN & MOUSE VARIABLES
var HEIGHT, WIDTH, windowHalfX, windowHalfY,
mousePos = { x: 0, y: 0 },
oldMousePos = {x:0, y:0},
ba... |
<?php
/** A wrapper for Zend_Http_Client for use by JsonApi.
*
* @author Phoenix Zerin <phoenix@todofixthis.com>
*
* @package sfJwtJsonApiPlugin
* @subpackage lib.jsonapi.http.client
*
* @todo Add observer so that we can inject logging.
*/
class <API key> extends JsonApi_Http_Client
{
private
$_config;
... |
var <API key> =
[
[ "__construct", "<API key>.html#<API key>", null ],
[ "testArray", "<API key>.html#<API key>", null ],
[ "testGet", "<API key>.html#<API key>", null ],
[ "testHas", "<API key>.html#<API key>", null ],
[ "testLeveledArray", "<API key>.html#<API key>", null ],
[ "<API key>", "<A... |
#ifndef <API key>
#define <API key>
#include "amount.h"
#include <QAbstractListModel>
#include <QString>
// U+2009 THIN SPACE = UTF-8 E2 80 89
#define REAL_THIN_SP_CP 0x2009
#define REAL_THIN_SP_UTF8 "\xE2\x80\x89"
#define REAL_THIN_SP_HTML " "
// U+200A HAIR SPACE = UTF-8 E2 80 8A
#define HAIR_SP_CP 0x200A
#def... |
import { Widget, startAppLoop, Url, History } from 'cx/ui';
import { Timing, Debug } from 'cx/util';
import { Store } from 'cx/data';
import Routes from './routes';
import 'whatwg-fetch';
import "./index.scss";
let stop;
const store = new Store();
if(module.hot) {
// accept itself
module.hot.accept();
// remember... |
require 'thor'
module EcsDeployer
class CLI < Thor
class_option :profile, type: :string
class_option :region, type: :string
no_commands do
def prepare
@aws_options = {}
@aws_options[:profile] = options[:profile] if options[:profile]
@aws_options[:region] = options[:region] if... |
from settings.common import Common
class Dev(Common):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'ffrpg.sql', # Or path to database file if using sqlite3.
# ... |
<!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.8"/>
<title>Faeris: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script... |
@author Mlodik Mikhail <mlodik_m@mail.ru>
#ifndef <API key>
#define <API key>
#include "json/value.h"
#include "opencv2/core/core.hpp"
namespace core {
Read values from json and fill matrix.
@param [in] json_matrix Json value to read.
@param [out] mat Matrix object to fill.
@returs true on success
bool JsonToMat(const ... |
layout: post
title: Namecheap's free .me student promotion, with about.me premium for a year
comments: true
category: Technology
description: Free domain names are always good, but what about the other things that come with Namecheap's student promotion?
It seems that <a href="http:
<!--break
All three services I've us... |
<?php if (! defined('BASEPATH')) exit('Invalid file request');
if (! defined('PATH_THIRD')) define('PATH_THIRD', EE_APPPATH.'third_party/');
require_once PATH_THIRD.'coinbase_api/config.php';
class Coinbase_api_upd {
var $version = COINBASE_API_VER;
/**
* Constructor
*/
function __construct()
... |
package pl.edu.uwm.wmii.visearch.clustering;
import java.io.File;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.PreparedStatement;
import java.util.ArrayList;
impor... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
use Omnipay\Omnipay;
class <API key> extends App_gateway
{
public function __construct()
{
/**
* Call App_gateway __construct function
*/
parent::__construct();
/**
* REQUIRED
* Gatewa... |
#include <UnitTest++/UnitTest++.h>
#include <iterator>
#include <string>
#include <vector>
#include <stdint.h>
#include "../hash.h"
namespace
{
SUITE(test_hash)
{ |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Xml.Linq;
namespace Cassette
{
class AssetSerializer : IBundleVisitor
{
readonly XElement container;
public AssetSerializer(XElement container)
{
this.container = conta... |
# google_search.rb
# A Cinch plugin that provides Google interaction for yossarian-bot.
require 'json'
require 'open-uri'
require_relative 'yossarian_plugin'
class GoogleSearch < YossarianPlugin
include Cinch::Plugin
def usage
'!g <search> - Search Google. Alias: !google.'
end
def match?(cmd)
... |
import React from 'react';
import { default as TriggersContainer } from './TriggersContainer';
import { mount } from 'enzyme';
const emptyDispatch = () => null;
const emptyActions = { setGeoJSON: () => null };
describe('(Container) TriggersContainer', () => {
it('Renders a TriggersContainer', () => {
const _compo... |
module Pageflow
class EntryDuplicate < Struct.new(:original_entry)
def create!
create_entry
copy_draft
copy_memberships
new_entry
end
def self.of(entry)
new(entry)
end
private
attr_reader :new_entry
def create_entry
@new_entry = Entry.create!(new_attribu... |
<div class="commune_descr limited">
<p>
Villes-sur-Auzon est
une commune localisée dans le département de Vaucluse en Provence-Alpes-Côte d'Azur. Elle totalisait 1 221 habitants en 2008.</p>
<p>Le nombre d'habitations, à Villes-sur-Auzon, était réparti en 2011 en 107 appartements et 697 maisons soit
un ma... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Mon Sep 19 15:00:48 UTC 2016 -->
<title>org.springframework.scripting.jruby Class Hierarchy (Spring Framework 4.3.3.RELEASE API)</title><script>var _hmt = _hmt || [];(function() {var hm = document.createElement("s... |
package main
import (
"testing"
)
/*
1. imagine the usual scenario
2. identify general edge cases
3. identify edge cases specific on the implementation
*/
func TestSolution(t *testing.T) {
for i, tc := range []struct{
A, B []int
expected int
}{
// their example
{[]int{4, 3, 2... |
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require '<API key>' |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class <API key> extends CI_Model {
public function __construct()
{
parent::__construct();
}
public function get_stud_assessment($stud_id, $course, $stud_year, $semester, $scheme)
{
$array = array('stud_id' => ... |
<?php
namespace Main\MainBundle\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\<API key>;
use Symfony\Component\Security\Core\Exception\<API key>;
use Symfony\Component\Security\Core\Exception\<API key>;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\NoResu... |
@media screen and (max-width: 768px) {
.fh5co-nav {
padding: 20px 0;
}
.fh5co-nav #fh5co-logo {
margin-bottom: 0;
}
.fh5co-nav .menu-1 {
display: none;
}
.fh5co-cover {
height: 100vh;
}
.fh5co-cover .display-t,
.fh5co-cover .display-tc {
height: 600px;
}
.fh5co-cover.fh5co-co... |
// The command line tool for running Revel apps.
package main
import (
"flag"
"fmt"
"io"
"os"
"strings"
"text/template"
)
// Cribbed from the genius organization of the "go" command.
type Command struct {
Run func(args []string)
UsageLine, Short, Long string
}
func (cm... |
Rails.application.routes.draw do
root 'application#index'
# resources :mylist, defaults: { format: :json }
resources :mylist, only: [:show, :index, :create], param: :res_id, defaults: { format: :json }
resources :mylist, only: [:destroy], param: :res_id
# resources :mylist, param: :res_id, defaults: { format... |
package com.sabre.oss.conf4j.converter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.lang.reflect.Type;
import java.time.*;
import java.util.Map;
import static com.sabre.oss.conf4j.converter.<API key>.FORMAT;
import static java.util.Collections.emptyMap;
import static java.uti... |
window.NavigationStore = function() {
function isSet(menu) {
return localStorage["navigation_" + menu] !== undefined;
}
function fetch(menu) {
return localStorage["navigation_" + menu] == "true" || false;
}
function set(menu, value) {
localStorage["navigation_" + menu] = value;
}
return {
... |
<?php
namespace Project\LineOfWorkBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;
/**
* Description of CommercialAdmin
*
* @author SakyHank
*/
class CommercialAdmin extends Admin{
... |
<!DOCTYPE html PUBLIC "-
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script type="text/javascript">
function AddToFaves_hp() {
var is_4up = parseInt(navigator.appVersion);
... |
<?php
class Productos_model extends CI_Model{
function __construct()
{
parent::__construct();
$this->load->database();
}
function get_destacados($por_pagina,$segmento)
{
$consulta = $this->db->query("SELECT * FROM Producto WHERE Destacado=1 LIMIT $segmento, $por_pagina");
... |
import { describe, it, beforeEach, afterEach } from 'mocha';
import { expect } from 'chai';
import startApp from 'my-app/tests/helpers/start-app';
import { run } from '@ember/runloop';
describe('Acceptance | foo', function () {
let application;
beforeEach(function () {
application = startApp();
});
afterEac... |
<?php
namespace ShopBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* CustomerRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class CustomerRepository extends EntityRepository
{
} |
# AudioLengthTest
## Properties
Name | Type | Description | Notes
**reject_on_error** | **bool** | | [optional]
**checked** | **bool** | | [optional]
[[Back to Model list]](../README.md#<API key>) [[Back to API list]](../README.md#<API key>) [[Back to README]](../README.md) |
.icheckbox_flat-blue,
.iradio_flat-blue {
display: inline-block;
*display: inline;
vertical-align: middle;
margin: 0;
padding: 0;
width: 20px;
height: 20px;
background: url(../img/blue.png) no-repeat;
border: none;
cursor: pointer;
}
.icheckbox_flat-blue {
background-position... |
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Red_Folder.com.Models.Activity
{
public class PluralsightActivity: IActivity
{
[JsonProperty("courses")]
public List<Course> Courses;
}
} |
<!-- HTML header for doxygen 1.8.6-->
<!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.12"/>
<title>OpenCV: Member List</title>
<link href="../../opencv.... |
#include "3d/Base.h"
#include "3d/C3DEffect.h"
#include "3d/C3DElementNode.h"
#include "3d/C3DEffectManager.h"
#include "3d/C3DElementNode.h"
namespace cocos3d
{
static C3DEffectManager* <API key> = NULL;
C3DEffectManager::C3DEffectManager()
{
}
C3DEffectManager::~C3DEffectManager()
{
<API key> = NULL;
}
C3DEffectM... |
package me.protox.archetype.jersey.ext.config_property;
import org.glassfish.hk2.api.InjectionResolver;
import org.glassfish.hk2.api.TypeLiteral;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Singleton;
import javax.ws.rs.core.Con... |
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACCOUNT_SID"
auth_token = "your_auth_token"
client = Client(account_sid, auth_token)
number = client.lookups.phone_numbers("+16502530000")... |
layout: post
title: "AngularJS Card Game: A Technical Approach"
date: 2017-06-09 12:00:00 -0400
categories: jekyll update
Hey Everyone-
For those checking in on me pretty regularly this blog post might get a little technical. And as you're reading it please don't just check out too soon. Thank you, again, for the su... |
.info-bar{
width:100%;
height:70px;
margin-bottom:4px;
background-color: #128A7A;
background-image: url("./guessit-logo-min.png");
background-repeat: no-repeat;
background-position:5px center;
}
.info-bar .players-count{
margin:4px;
width:30px;
margin-top:22px;
padding-top:3p... |
/*
For a thread pool of size 2, `fork(fork(fork(x)))` will deadlock, and so on. Another, perhaps more interesting example is `fork(map2(fork(x), fork(y)))`. In this case, the outer task is submitted first and occupies a thread waiting for both `fork(x)` and `fork(y)`. The `fork(x)` and `fork(y)` tasks are submitted and... |
import json
from dateutil import parser as datetime_parser
from occam.app import get_redis
from occam.runtime import <API key>
def get_servers():
redis = get_redis()
servers = json.loads(redis.get(<API key>))
return servers.items()
def iterate_servers():
redis = get_redis()
servers = json.loads(redi... |
class <API key> < ActiveRecord::Migration
def change
create_table :<API key> do |t|
t.string :type
t.datetime :start_at
t.datetime :end_at
t.text :text_description
t.datetime :notify_sent_at
t.string :notify_sent_to
t.text :<API key>
t.timestamps
end
end
end |
# <API key>: true
module Global
module Backend
# Loads Global configuration from the AWS Systems Manager Parameter Store
# This backend requires the `aws-sdk` or `aws-sdk-ssm` gem, so make sure to add it to your Gemfile.
# Available options:
# - `prefix` (required): the prefix in Parameter Store; all ... |
# encoding: utf-8
module Humanoid #:nodoc:
module Criterion #:nodoc:
module Inclusion
# Adds a criterion to the +Criteria+ that specifies values that must all
# be matched in order to return results. Similar to an "in" clause but the
# underlying conditional logic is an "AND" and not an "OR". Th... |
import {IFilesystem} from './Filesystem';
export type Node = Directory | string;
export type Directory = {[name: string]: Node};
export class MockFilesystem implements IFilesystem {
files: Directory = {};
constructor(files?: Directory) {
this.files = files || {};
}
private get(path: string, crea... |
#ifndef <API key>
#define <API key>
namespace ee
{
class OneFloatValue
{
public:
virtual ~OneFloatValue() {}
virtual float GetValue() const = 0;
}; // OneFloatValue
}
#endif // <API key> |
#include <progress_bar.hh>
PROGRESS_BAR
::
PROGRESS_BAR(int x, int y, int w, int h, void(*opf)(void), void(*orf)(void), int ea, int ia, int l)
:
WIDGET(x,y,w,h,opf,orf)
{
this->ext_angle = ea;
this->int_angle = ia;
this->level = l;
} |
/**
* @module
* @description
* This module provides a set of common Pipes.
*/
import {AsyncPipe} from './async_pipe';
import {LowerCasePipe, TitleCasePipe, UpperCasePipe} from './<API key>';
import {DatePipe} from './date_pipe';
import {I18nPluralPipe} from './i18n_plural_pipe';
import {I18nSelectPipe} from './i18n... |
{% extends 'layout.html' %}
{% block headerjs %}
<script src="https://maps.googleapis.com/maps/api/js?v=3&sensor=false&libraries=visualization,places"></script>
{% endblock %}
{% block content %}
<input id="pac-input" class="controls" type="text" placeholder="Enter a location">
<div id="map-canvas">
</d... |
package net.crowmagnumb.database;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
public class SqlColumn implements SqlComponent {
private final String _name;
private final SqlColumnType _type;
private SqlTable _table;
private final... |
namespace VocaDb.Model.Domain.Tags {
public interface ITagUsageFactory<T> where T : TagUsage {
T CreateTagUsage(Tag tag);
}
} |
import json
f = open('text-stripped-3.json')
out = open('text-lines.json', 'w')
start_obj = json.load(f)
end_obj = {'data': []}
characters_on_stage = []
currently_speaking = None
last_scene = '1.1'
for i in range(len(start_obj['data'])):
obj = start_obj['data'][i]
if obj['type'] == 'entrance':
if obj['c... |
import removeClass from 'tui-code-snippet/domUtil/removeClass';
import addClass from 'tui-code-snippet/domUtil/addClass';
import { HookCallback } from '@t/editor';
import { Emitter } from '@t/event';
import { ExecCommand, HidePopup, TabInfo } from '@t/ui';
import i18n from '@/i18n/i18n';
import { cls } from '@/utils/do... |
# Pythagorean Triplet
A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for
which,
text
a**2 + b**2 = c**2
For example,
text
3**2 + 4**2 = 9 + 16 = 25 = 5**2.
There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product a * b * c.
## Setup
Go through the project setup inst... |
let mongoose = require('mongoose')
let userSchema = mongoose.Schema({
// userModel properties here...
local: {
email: {
type: String,
required: true
},
password: {
type: String,
required: true
}
},
facebook: {
id: St... |
package io.github.voidcontext.easyvalidator.rule
package string
import scala.util.Try
import scala.util.matching.Regex
abstract class StringRule(value: String) extends Rule[String](value)
abstract class ThanableStringRule(value: String) extends StringRule(value) {
def than(expected: Int): Try[String]
}
case class Sho... |
using DragonSpark.Sources.Parameterized;
using System;
namespace DragonSpark.Aspects.Specifications
{
sealed class <API key> : <API key><ISpecification>
{
public static <API key><Type, Func<object, ISpecification>> Default { get; } = new <API key>().ToCache();
<API key>() : base( <API key>.Defau... |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0xF92E0197)]
public class STU_F92E0197 : STUInstance {
[STUField(0xDAE04657)]
public float m_DAE04657;
[STUField(0x96960C7F)]
public float m_96960C7F;
[STUFi... |
package com.sunnyface.popularmovies;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.os.Build;
import android.os.Bundle;
import android.support.v4.app.<API key>;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.sup... |
Photos = new orion.collection('photos', {
singularName: 'photo',
pluralName: 'photos',
link: {
title: 'Photos'
},
tabular: {
columns: [
{data: 'title', title: 'Title'},
{data: 'state', title: 'State'},
//ToDo: Thumbnail
orion.attributeColumn('markdown', 'body', 'Content'),
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Rajdeep's Programs Repository</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="assets/css/... |
import browserSync from 'browser-sync';
import config from '../../config';
import middlewaresStack from '../middlewares_stack';
import apiMiddleware from '../middlewares/api';
import mockMiddleware from '../middlewares/mock';
export default () => {
const port = process.env.PORT;
const middlewares = apiMiddleware() ... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NETGeographicLib;
namespace Projections
{
public partial class PolyPanel : UserControl
{
PolygonArea m_poly = null... |
from django.conf.urls import url, include
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from .views import UploadBlackListView, DemoView, UdateBlackListView
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^upload-blacklist$', login_required(UploadBla... |
'use strict';
module.exports.name = 'cssnano/<API key>';
module.exports.tests = [{
message: 'should unquote font names',
fixture: 'h1{font-family:"Helvetica Neue"}',
expected: 'h1{font-family:Helvetica Neue}'
}, {
message: 'should unquote and join identifiers with a slash, if numeric',
fixture: 'h1{... |
#ifndef WARSPRITES
#define WARSPRITES
#include <avr/pgmspace.h>
extern const unsigned char warsprite_grass1[];
extern const unsigned char warsprite_grass2[];
extern const unsigned char warsprite_trees[];
extern const unsigned char warsprite_dirt[];
extern const unsigned char warsprite_mountain[];
extern const unsigned ... |
#include <cstdlib>
#include <stdexcept>
#include <vector>
#include <algorithm>
#include "Platform.h"
#include "T3000.h"
#include "Position.h"
#include "Selection.h"
using namespace T3000;
void CTstat8HelySystem::MoveForInsertDelete(bool insertion, Sci::Position startChange, Sci::Position length) {
if (insertion) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.