answer stringlengths 15 1.25M |
|---|
require 'busted.runner' ( )
local talents = require 'talents'
local reason = require 'talents.internals.reason'
local example = require 'talents.example' (talents)
describe ("talent application,", function ( )
it ("should decorate given object", function ( )
local object = talents.decorate (
ex... |
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>CREATE_ROOM.name - core</title>
<link rel="stylesheet" href="..\..\..\style.css">
</HEAD>
<BODY>
<a href="../../index.html">core</a> / <a href="../index.html">com.erikcupal.theblackcatclient.types</a> / <a href="index.html">CREATE_ROOM</a> / <a h... |
const webdriver = require('selenium-webdriver');
const setupDriver = (browser) => {
const driver = new webdriver
.Builder()
.usingServer('http://localhost:9515/')
.withCapabilities({
browserName: browser,
})
.build();
return driver;
};
module.exports = { setup... |
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
function random(min, max) {
min = min || 0;
max = max || 1;
var result;
if(min === 0 && max === 1) {
result = Math.random();
} else {
result = Math.floor((Math.r... |
# Simple Back-end Application with CakePHP3 + AngularJS
[, is just use it as testing and learn about CakePhp3... |
using System.Collections;
public class BooleanKeypadShim : ComponentSolverShim
{
public BooleanKeypadShim(TwitchModule module)
: base(module, "BooleanKeypad")
{
ModInfo = <API key>.GetModuleInfo(GetModuleType(), "Use '!{0} press 2 4' to press buttons 2 and 4. | Buttons are indexed 1-4 in reading... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Refresh" content="0;url=../../../a/j/_/AJ_Schnack_3849.html" />
</head>
<body>
<p>Redirecting to <a href="../../../a/j/_/AJ_Schnack_3849.html">AJ Schnack</a></p>
</body>
</htm... |
'use strict';
angular
.module('facebookMe', [
])
; |
package com.recursivechaos.boredgames.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.data.annotation.Id;
public class Game {
@Id
@JsonIgnore
private String id;
private String title;
private String description;
public Game() {
}
public Game(String i... |
// Code generated by protoc-gen-go.
// source: meta.proto
// DO NOT EDIT!
/*
Package internal is a generated protocol buffer package.
It is generated from these files:
meta.proto
It has these top-level messages:
Series
Tag
MeasurementFields
Field
*/
package from090
import proto "github.com/golang/pr... |
# <API key>: true
# An InternalId is a strictly monotone sequence of integers
# generated for a given scope and usage.
# The monotone sequence may be broken if an ID is explicitly provided
# to `.<API key>!` or `#track_greatest`.
# For example, issues use their project to scope internal ids:
# In that sense, scope is "... |
RSpec.describe Unidom::Certificate::China::<API key>, type: :validator do
valid_values = %w{
231024198506186916
231024198506188110
231024198506185470
231024198506182851
231024198506187193
}
invalid_values = %w{
231024198506186917
231024198506188111
231024198506185... |
<h3 id="c49"><a href="#top">Chapter 49: Hiiro and the girl</a></h3>
<p>“Hey! Were you serious, just now!? Tell me!” (?)</p>
<p>Arnold was lifted up by the scruff of his neck by the person that walked into the room. He looked like he was suffocating.</p>
<p>“Kuu-sama! What are you doing here!?” (Raiev)</p>
<p>Raiev was ... |
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="treestyles.css" type="text/css"?><!DOCTYPE html PUBLIC "-
<html xmlns="http:
</script></head><body><div class="basetop"><a href="#" onclick="expandAll(document.getElementById('base'))">Expand</a> -
<a href="#" onclick="collapseAll(document.getElementById(... |
using OpenQA.Selenium;
namespace Vzhzhzh.SeleniumWrapper.Examples.Proprietary.Pages.Operator.Shared
{
public abstract class SubForm : PageElement
{
protected SubForm(DriverHolder driver)
: base(driver)
{
}
public virtual IWebElement SaveButton
{
ge... |
package edu.harvard.fas.rbrady.tpteam.tpbridge.hibernate;
// Generated Nov 10, 2006 5:22:58 PM by Hibernate Tools 3.2.0.beta8
import java.util.HashSet;
import java.util.Set;
/**
* TestType generated by hbm2java
*/
public class TestType implements java.io.Serializable {
// Fields
private static final long seri... |
# Diniremix's blog
Using **Autm-rb** Another theme for jekyll.
based on shiori and midnight
## Link
[blog.jorgebrunal.co](http://blog.jorgebrunal.co/)
- [Gitter comments](https://gitter.im/jorgebrunal-co/blog)
- [Twitter](https://twitter.com/diniremix)
- [Google+](https://plus.google.com/u/0/+PeterAndersonLee)
# Contri... |
# coding=utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
from msrest.serialization import Model
class Destination(Model):
"""Capture storage details for capture description.
:param name: Name for capture desti... |
<?php
// Add new input type "border width"
if ( function_exists('<API key>'))
{
<API key>('margin' , '<API key>' );
}
add_action( '<API key>', '<API key>' );
function <API key>( $hook ){
$cp_page = strpos( $hook, 'plug_page');
$data = get_option( 'convert_plug_debug' );
if( $cp_page == 7 && isset( $_GET['... |
body {
outline: 0;
text-decoration: none;
}
.heading1 {
margin-top: 25px;
text-align: center;
font-size: 25px;
font-family: sans-serif;
color: #127348;
}
.heading2 {
text-align: center;
font-size: 15px;
font-family: sans-serif;
color: #127348;
}
.login-image {
width: 120px;
}
.title-banner {
m... |
(function () {
'use strict';
var document = window.document,
SVGElement = window.SVGElement || blank,
SVGSVGElement = window.SVGSVGElement || blank,
SVGElementInstance = window.SVGElementInstance || blank,
HTMLElement = window.HTMLElemen... |
var base64url = require('urlsafe-base64')
, After = require('json-list-response').After
, inherits = require('util').inherits
module.exports = DateAfter
function DateAfter(value, options) {
After.call(this, value, options)
this.skip = 0
this.value = 0
if (value) {
value = base64url.decode(value)
if ... |
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Rehydrating pre-rendered html in Vue.js with Quench Vue</title>
<link rel="stylesheet" href="stylesheets/quench-one.css">
</head>
<body>
<!-- qr data comes from script,q-data is rendered from server -->
<div id="app" class="pre-quench" q... |
# wakautils.pl v9
use strict;
use Time::Local;
use Socket;
use Net::SMTP;
my $has_md5=0;
eval 'use Digest::MD5 qw(md5)';
$has_md5=1 unless $@;
my $has_encode=0;
eval 'use Encode qw(decode)';
$has_encode=1 unless $@;
use constant MAX_UNICODE => 1114111;
# HTML utilities
my $protocol_re=qr{(?:http:
my $url_re=qr{(${proto... |
<?php
require __DIR__ . "/../vendor/autoload.php";
// NOTE: To run this you need to have installed violent-death
// Sorry but I don't want to have an explicit dependency
// with violent-death (wich is not so easy to install) only
// to run this example
// The output will be:
// Segmentation fault in 3... 2... 1...
// Y... |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... |
from typing import List
from common.tree_node import TreeNode
class Solution:
def <API key>(self, root: TreeNode) -> List[int]:
"""
iterative traversal
"""
ans = []
stack = []
while root or stack:
if root:
stack.append(root)
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graph-basics: 31 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... |
import React, { MouseEvent, FunctionComponent } from 'react';
import classnames from 'classnames';
import rcFont from '../../assets/RcFont/RcFont.scss';
import styles from './styles.scss';
export interface RemoveButtonProps {
className?: string;
visibility?: boolean;
onClick: (ev: MouseEvent) => void;
}
export co... |
export goCommand from './goCommand'
export goReducer from './goReducer'
export parseBestmove from './parseBestmove'
export parseId from './parseId'
export parseInfo from './parseInfo'
export parseOption from './parseOption'
export initReducer from './initReducer' |
# TelestreamCloud::Tts::TtsApi
All URIs are relative to *https://api.cloud.telestream.net/tts/v1.0*
Method | HTTP request | Description
[**corpora**](TtsApi.md#corpora) | **GET** /projects/{projectID}/corpora | Returns a collection of Corpora
[**corpus**](TtsApi.md#corpus) | **GET** /projects/{projectID}/corpora/{name}... |
# A-star search
An implementation of the A* search algorithm used to solve the 8-tile puzzle.
This program tests three different heuristics
- Uniform Cost Search
- Misplaced Tile
- Manhattan Distance
## How to Compile
Type in make.
The executable that is genereated is called a_star.
To remove the dependency files and t... |
package domain;
import java.util.Date;
public class Mark {
private Date date;
private int mark;
public Mark(Date _date, int _mark) {
this.date = _date;
this.mark = _mark;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = dat... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;
using SharpDX;
namespace Oggy
{
public class MapLayoutResource : IDisposable// : ResourceBase
{
#region properti... |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::DataBoxEdge::Mgmt::V2019_08_01
module Models
# Represents the networkAdapter on a device.
class NetworkAdapter
include MsRestAz... |
# v1.4.13
* Original: [Release electron v1.4.13 - electron/electron](https://github.com/electron/electron/releases/tag/v1.4.13)
## Bug Fixes
* Printing now works when the sandbox is enabled. [
*
* PDF [
* Fixed an issue where the salt used to generate media devices ids did not persist across sessions. [
* ID ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using PubSub;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Threading;
namespace MonitorTest
{
public class Program
{
IConfiguration Config { get; ... |
<?php
namespace Tyler\TopTrumpsBundle\Controller;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\DependencyInjection\ContainerInterface;
class <API key>
{
/**
* @param ObjectManager $em
... |
package com.gazbert.bxbot.exchanges.trading.api.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNull;
import com.gazbert.bxbot.trading.api.OrderType;
import java.math.BigDecimal;
import java.util.Date;
import org.junit.Test;
/**
* ... |
exports.translate = function(tag) {
return this.import("riot").compile(tag);
}; |
<?php
return array (
'id' => '<API key>',
'fallback' => 'lenovo_a2207_ver1',
'capabilities' =>
array (
'device_os_version' => '4.1',
),
); |
#include "<API key>.h"
#pragma GCC visibility push(hidden)
typedef enum{
RGB_LED_RED = 0x00,
RGB_LED_GREEN = 0x01,
RGB_LED_BLUE = 0x02
}e_rgbLed;
const uint8_t colors[<API key>][3] =
{
{RED_COLOR_RED_LED, RED_COLOR_GREEN_LED, RED_COLOR_BLUE_LED},
{GREEN_COLOR_RED_LED, <API key>, <API key>},
{BLUE_COLOR_RED_... |
package cognitiveservices
// 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-autores... |
<!DOCTYPE html>
<html>
<head>
<title>Game Theory</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/gt/assets/css/main.css">
<link rel="stylesheet" href="/gt/assets/css/normalize.css">
<link rel="stylesheet" href="/gt/assets/css/skeleton.css">
<link re... |
# -*- coding: utf-8 -*-
from django.core.cache import cache
from django.shortcuts import render
from django.http import Http404
from styleguide.utils import (Styleguide, STYLEGUIDE_DIR_NAME,
STYLEGUIDE_DEBUG, <API key>,
STYLEGUIDE_ACCESS)
def index(request, mo... |
layout: post
title: 'Games and Actors (UPDATE)'
date: 2005-06-09 13:48
comments: true
categories : []
So I logon this morning and read over at <a href="http:
<blockquote> SAN FRANCISCO -- Hollywood actors unions have reached a contract deal with video game publishers, accepting higher pay instead of the profit-shari... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_05) on Thu Sep 30 22:15:39 GMT+01:00 2004 -->
<TITLE>
Uses of Interface org.springframework.beans.factory.InitializingBean (Spring Framework)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TI... |
require 'minitest/unit'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'disp3D' |
#pragma once
#include <anax/Component.hpp>
#include <anax/Entity.hpp>
struct BulletComponent :anax::Component
{
float lifeRemaining = 5.f;
int dmg;
anax::Entity owner;
}; |
#ifndef BATCHEXTENSION_H
#define BATCHEXTENSION_H
namespace batchextension {
void initBatch(const char *key);
}
#endif |
.tweets-section {
margin-top: 40px;
height: 100vh;
}
@media (min-width: 768px) {
.map-section {
position: fixed;
}
}
.<API key> {
height: 600px;
margin-top: 40px;
height: 100vh;
} |
#ifndef __cplusplus
#error This header can only be compiled as C++.
#endif
#ifndef BITCOIN_PROTOCOL_H
#define BITCOIN_PROTOCOL_H
#include "netbase.h"
#include "serialize.h"
#include "uint256.h"
#include "version.h"
#include <stdint.h>
#include <string>
#define MESSAGE_START_SIZE 4
/** Message header.
* (4) message sta... |
from quotes.models import Quote
from django.contrib import admin
class QuoteAdmin(admin.ModelAdmin):
list_display = ('message', 'name', 'program', 'class_of',
'submission_time')
admin.site.register(Quote, QuoteAdmin) |
<div class="main-content">
<div class="main-content-inner">
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="<?php echo site_url('Home') ?>">Sistem... |
using UnityEngine;
using System.Collections;
<summary>
THIS IS OBSOLETE CLASS
Use PowerUpManager instead
</summary>
public class PowerUpElement : MonoBehaviour {
const float <API key> = 5.0f;
Animator animator;
public enum PowerUpType { pu_triple_shot, pu_safety_net, pu_reinforced_glass, <API key> };
public Pow... |
en.resources.define("audio",{
name: "Engine",
src: "./audio/ship_engine.ogg",
}, function(content, callback){
var sound = client.audio.createSound();
sound.load(content.src, function(sound){
content.sound = sound;
callback(content.type, content);
});
}, function(content){
return ... |
/**
* @file PrintableButton.h
* @brief Contains PrintableButton class declaration
* @author Khalin Yevhen
* @version 0.0.1
* @date 07.09.17
*/
#pragma once
#include "..\khalin03\Button.h"
#include <StorageInterface.h>
#include "..\khalin01\Printable.h"
#include <string>
/**
* @brief It's just a printable version of But... |
from tkinter import *
import tkinter
import HoursParser
class UserInterface(tkinter.Frame):
def __init__(self, master):
self.master = master
self.events_list = []
# Set window size
master.minsize(width=800, height=600)
master.maxsize(width=800, height=600)
# File Pars... |
layout: page
subheadline: Events
title: "Semagrow site online"
teaser: "The SemaGrow project is approaching completion in a few days,
and we are preparing for life after EC funding."
meta_teaser: "The SemaGrow project is approaching completion in a few
days, and we are preparing for life after EC funding."
breadcrumb:... |
required_states = ['accept', 'reject', 'init']
class TuringMachine(object):
def __init__(self, sigma, gamma, delta):
self.sigma = sigma
self.gamma = gamma
self.delta = delta
self.state = None
self.tape = None
self.head_position = None
return
def initialize... |
#pragma once
#include "RenderInfo.h"
class MeshObject;
class <API key> final : public RenderInfo
{
public:
float m_specularPower = 100.0f;
int m_celShaded = 0;
void <API key>(const DrawData&, const MeshObject&) override;
void <API key>(const DrawData&) override;
~<API key>() { releas... |
using System.Web;
using System.Web.Optimization;
namespace SimpleSTS
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
... |
.user-dashboard{
position: absolute;
right: 0;
width: 80%;
height: auto;
} |
<?php
namespace ZfbUser\Options;
/**
* Interface Reset<API key>
*
* @package ZfbUser\Options
*/
interface Reset<API key> extends <API key>
{
/**
* @return string
*/
public function <API key>(): string;
/**
* @return string
*/
public function <API key>(): string;
/**
* @r... |
<reference path="../../tsd.d.ts" />
import {
Component, View,
} from 'angular2/core';
import { CORE_DIRECTIVES } from 'angular2/common';
import {tabs} from '../../ng2-bootstrap';
import {TimepickerDemo} from './timepicker/timepicker-demo';
let name = 'Timepicker';
let src = 'https://github.com/valor-software/ng2-boot... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mojocoin</source>
<translation>Mojocoin Hakkında</translation>
</message>
<message>
<lo... |
var express = require("express");
var Pusher = require("pusher");
var bodyParser = require("body-parser");
var env = require("node-env-file");
var app = express();
app.use(bodyParser.urlencoded());
try {
env(__dirname + "/.env");
} catch (_error) {
error = _error;
console.log(error);
}
var pusher = new Pusher({
... |
module Protobuf
module ActiveRecord
class Railtie < Rails::Railtie
config.<API key> = Protobuf::ActiveRecord.config
ActiveSupport.on_load(:active_record) do
on_inherit do
include Protobuf::ActiveRecord::Model if Protobuf::ActiveRecord.config.autoload
end
end
Activ... |
<html>
<head>
<title>
The rising resistance
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<table width="744" c... |
var app = angular.module("ethics-app");
// User create controller
app.controller("<API key>", function($scope, $rootScope, $routeParams, $filter, $translate, $location, config, $window, $<API key>, $userService, $universityService, $instituteService) {
/**
* [redirect description]
* @param {[type]} path ... |
package sample.rabbitmq;
import static sample.rabbitmq.annotation.RabbitDirectRouting.*;
import java.util.Arrays;
import java.util.concurrent.*;
import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.listener.<API key>;
imp... |
using System;
using System.Collections;
using Zh.DAL.Define.Entities;
using Zh.DAL.Define;
using Zh.DAL.Base.Define;
using Zh.DAL.Define.Contracts;
namespace Zh.DAL.Define.Contracts.Imp
{
<summary>
dt_Article()
</summary>
public partial class dtArticleDao : BaseDao<dt_Article>,IdtArticleDao
{
}
... |
using System;
using System.Collections;
using System.Collections.Generic;
using Zh.DAL.Define.Entities;
using Zh.DAL.Base.Define.Entities;
namespace Zh.DAL.Define.Entities
{
#region Activity_AC_Match
<summary>
Activity_AC_Match object for mapped table 'Activity_AC_Match'.
</summary>
public partial c... |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... |
#!/usr/bin/env node
var child_process = require('child_process');
var argv = require('yargs')
.boolean(['readability', 'open'])
.argv;
var pdfdify = require('../lib');
var srcUrl = argv._[0];
console.log("Convertering: '"+srcUrl+"'");
pdfdify.convert({
title:argv.title|| srcUrl,
readability:argv.readability,
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HelpTheHomelessApp.Models;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace HelpTheHomelessApp
{
public partial class SurveyPage : ContentPage
{
public List<SurveyQuestionMod... |
package graphql.analysis;
import graphql.PublicApi;
import graphql.execution.<API key>;
import graphql.execution.instrumentation.<API key>;
import graphql.execution.instrumentation.<API key>;
import graphql.execution.instrumentation.parameters.<API key>;
import graphql.validation.ValidationError;
import org.slf4j.Logge... |
package com.github.maxopoly.finale.combat;
public class CombatConfig {
private int cpsLimit;
private long cpsCounterInterval;
private boolean noCooldown;
private double maxReach;
private boolean sweepEnabled;
private CombatSoundConfig combatSounds;
private double horizontalKb;
private do... |
#include <gtest/gtest.h>
#include <DbfTable.h>
class Dbase31TableFixture : public ::testing::Test {
protected:
virtual void SetUp() {
dbf_table_ = DbfTablePtr(new DbfTable("/Users/chrisr/Development/ClionProjects/dbf2csv/dbf_tests/fixtures/dbase_31.dbf"));
}
virtual void TearDown() {
dbf_tab... |
RightJS.Sizzle = {
version: '2.2.0'
};
(function(){
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
done = 0,
toString = Object.prototype.toString,
hasDuplicate = false,
baseHasDuplicate = true;
// Here we che... |
#!/usr/bin/python
import argparse
from os import path as os_path
import demo_project as demo
import traceback
def set_host_url_arg():
parser.add_argument('--host', required=True,
help='the url for the Materials Commons server')
def set_datapath_arg():
parser.add_argument('--datapath', re... |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import getIn from '@mzvonar/getin';
import isEvent from './../utils/isEvent';
import getPath from './../utils/getPath';
import deepEqual from 'react-fast-compare';
function deleteChildren(object, children) {
let dele... |
<html>
<head>
<style>
canvas#imageCanvas {
position: absolute;
left: 100px;
top: 100px;
}
canvas#coverCanvas {
position: absolute;
left: 500px;
top: 100px;
}
canvas#fftCanvas {
position: absolute;
left: 900px;
top: 100px;
}
</style>
</head>
<body>
<canvas id="imageCan... |
# feedback
> An angular directive for sending feedback featuring [Angular 6](https:
## Demo

Prerequisites
make sure your project:
* is an angular(version >= 6.0.0) project
* has set up [angular material](https://github.com/angular/material2/blob/master/guide... |
using System.Xml.Serialization;
namespace MovieDatabase.ImportDataFromFiles.ImportingData.XMLModels
{
public class Director
{
[XmlElement("firstName")]
public string FirstName { get; set; }
[XmlElement("lastName")]
public string LastName { get; set; }
[XmlElement("age")]
... |
# <API key>: true
# Job is a base class that jobs must subclass
class DivvyUp::Job
class << self
attr_reader :queue
def perform_async(*args)
DivvyUp.service.enqueue job_class: self, args: args
end
end
end |
package edu.stanford.graphics.shapenet.jme3.viewer
import java.io.File
import edu.stanford.graphics.shapenet.{Constants, UserDataConstants}
import edu.stanford.graphics.shapenet.common.{CameraState, GeometricScene, CameraInfo}
import edu.stanford.graphics.shapenet.jme3.JmeUtils
import edu.stanford.graphics.shapenet.jme... |
<!DOCTYPE html>
<html>
<head>
<title>Concave shapes demo - p2.js physics engine</title>
<link href="css/demo.css" rel="stylesheet"/>
<meta name="description" content="Demonstrates concave shapes and how to use Body.fromPolygon().">
<meta charset="utf-8">
<meta name="viewport" content="width=device-w... |
import { createTest } from 'tests/test-utils'
import moment from 'moment'
import { EventTypes, Disciplines } from 'client/calendar/events/types'
import _ from 'lodash'
import ncnca2017 from '../2017-ncnca-events'
import usac2017 from '../2017-usac-events'
const events = _.concat(
// does not inlcude older events that... |
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Quasar.Communication.Packets.Outgoing.Users;
using Quasar.Database.Interfaces;
namespace Quasar.Communication.Packets.Incoming.Users
{
class CheckValidNameEvent : IPacketEvent
{
public void Parse(HabboHotel.GameC... |
# <API key>: true
module Eve
class RegionContractsJob < ApplicationJob
queue_as :default
retry_on EveOnline::Exceptions::Timeout,
EveOnline::Exceptions::ServiceUnavailable,
EveOnline::Exceptions::BadGateway,
EveOnline::Exceptions::InternalServerError,
OpenSSL::SSL::SSLError,
Fara... |
module.exports.globals = {
// _: true,
// async: true,
// sails: true,
// services: true,
// models: true
}; |
#include "build.h"
#include "uiProgressBar.h"
#include "ui/toolkit/include/uiStaticContent.h"
namespace ui
{
// active area element, does nothing but is
class ProgressBarArea : public IElement
{
<API key>(ProgressBarArea, IElement);
public:
ProgressBarArea()
{}
};
<API ke... |
<?php
class <API key> extends <API key>
{
/**
* preDispatch() - runs before action is dispatched.
*
* @return <API key> Provides a fluent interface
*/
public function preDispatch()
{
$controller = $this->getActionController();
$controller->view->infoMessages = $this->setN... |
#include "MW_Timer.hpp"
MW_Timer::MW_Timer(double periodInSeconds): period(periodInSeconds)
{
reset();
}
bool MW_Timer::get() const
{
b_mutex.lock();
bool retVal = MPI::Wtime() > expirationTime;
b_mutex.unlock();
return retVal;
}
void MW_Timer::reset()
{
b_mutex.lock();
expirationTime = MPI:... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JavaScript Validator</title>
<link rel="stylesheet" type="text/css" href="styles/style.css" />
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/jquery-ui.js"></script>
<script type="text/j... |
using StatsdClient.MetricTypes;
using System;
using System.Collections.Generic;
namespace StatsdClient
{
public interface IStatsd
{
void Send<TCommandType>(string name, int value) where TCommandType : Metric, IAllowsInteger, new();
void Send<TCommandType>(string name, double value) where TComman... |
#require 'byebug'
require_relative '../models/url'
get '/' do
@urls = Url.last
erb :"static/index"
end
post '/urls' do
x = Url.new(long_url: params[:long_url])
x.shorten
x.save!
x.to_json
# redirect to '/'
#use return @long_url to immediately return the long_url without going to the cont... |
.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}
.btn-defaul... |
<?php
namespace Alpipego\Resizefly\Common\Pimple\Exception;
use Alpipego\Resizefly\Common\Psr\Container\<API key>;
/**
* The identifier of a valid service or parameter was expected.
*
* @author Pascal Luna <skalpa@zetareticuli.org>
*/
class <API key> extends \<API key> implements <API key>
{
/**
* @param s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.