answer stringlengths 15 1.25M |
|---|
<?php
namespace Protalk\MediaBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class ProtalkMediaBundle extends Bundle
{
} |
let Mousetrap = require('mousetrap');
export default function trapMice() {
Mousetrap.bind('alt+f', function () {
$("#<API key>").focus();
});
} |
/**
* @author UCSD MOOC development team
*
* Abstract grader class that includes methods common to concrete graders.
*
*/
package ucsd.graph.grader;
import java.io.PrintWriter;
public abstract class Grader implements Runnable {
public String feedback = "";
public int correct = 0;
protected static final... |
# This file is part of beets.
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# permit persons to whom the Software is furnished to do so, subject to
# the follow... |
# JewelCraft jewelry design toolkit for Blender.
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
from mathutils import Matri... |
# samsaara
[
A functional, object-oriented bridge to manage, manip... |
from neo.Storage.Common.DataCache import DataCache
class CloneCache(DataCache):
def __init__(self, innerCache):
super(CloneCache, self).__init__()
self.innerCache = innerCache
def AddInternal(self, key, value):
self.innerCache.Add(key, value)
def DeleteInternal(self, key):
se... |
package Game;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.awt.image.CropImageFilter;
import java.awt.image.FilteredImageSource;
//import javax.imageio.ImageIO;
import javax.swing.ImageIco... |
# Lab Pack
_A Collection of Methods for Data Collection & Processing_
by [Collective Acuity](http://collectiveacuity.com)
<table>
<tbody>
<tr>
<td><b>Downloads</b></td>
<td><a href="http:
</tr>
<tr>
<td><b>Source</b></td>
<td><a href="https:
</tr>
<tr>
<td><b>Document... |
<?php
namespace Phalcon\Validation\Message;
use Phalcon\Validation\Message;
use Phalcon\Validation\Exception;
use Phalcon\Validation\MessageInterface;
class Group implements \Countable, \ArrayAccess, \Iterator
{
protected $_position;
protected $_messages;
/**
* Phalcon\Validation\Message\Group construc... |
'use strict';
var yeoman = require('yeoman-generator');
// var chalk = require('chalk');
// var yosay = require('yosay');
module.exports = yeoman.generators.Base.extend({
// method1: function () {
// console.log('method 1 just run');
// method2: function () {
// console.log('method 2 just run');
prompting... |
# reauth
Another authentication plugin for CaddyServer (v1)
For CaddyServer V2 Please [caddy2-reauth](https://github.com/freman/caddy2-reauth)
## Contents
- [reauth](#reauth)
* [Abstract](#abstract)
* [Supported backends](#supported-backends)
* [Supported failure handlers](#<API key>)
* [Configuration](#configu... |
function initMap() {
var uluru = {
lat: 12.8447287,
lng: 77.6623789
};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 18,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
} |
package edu.vu.isis.ammo.api;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.UUID;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicReference;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import android.... |
var <API key> =
[
[ "all", "<API key>.html#<API key>", null ],
[ "basic", "<API key>.html#<API key>", null ],
[ "chains", "<API key>.html#<API key>", null ],
[ "none", "<API key>.html#<API key>", null ],
[ "packed", "<API key>.html#<API key>", null ],
[ "parent", "<API key>.html#<API key>", null... |
#pragma once
#include "DataRef.h"
#include "<API key>.h"
#include "SVGRenderStyleDefs.h"
#include "WindRule.h"
namespace WebCore {
class SVGRenderStyle : public RefCounted<SVGRenderStyle> {
public:
static Ref<SVGRenderStyle> createDefaultStyle();
static Ref<SVGRenderStyle> create() { return adoptRef(*new SVGRen... |
#include <gab/chromosome.hpp>
using namespace gab;
chromosome::chromosome(const chromosome::container_type::size_type size)
: _genes(size)
{
}
chromosome::chromosome(const chromosome &other)
: _genes(other._genes)
{
}
chromosome::value_type &chromosome::operator[](const chromosome::container_type::size_type i)
{
... |
using Microsoft.EntityFrameworkCore.Storage;
using System.Threading;
using System.Threading.Tasks;
namespace LINQtoGremlin.Core.Storage.Internal
{
public class GDbDatabaseCreator
: IDatabaseCreator
, IGDbDatabaseCreator
{
#region Constructors
public GDbDatabaseCreator(
... |
***
HTTP GET
http://139.196.28.108/Laputa_admin_demo/code/api/ci/index.php?c=DataRegion&m=getDataRegionInfo
| | | | | |
| :
| access_token | true | string | null | |
| region_id | true | int | null | ID |
http://139.196.28.108/Laputa_admin_demo/code/api/ci/index.php?c=DataRegion&m=getDataRegionInfo
| | | | |... |
$LOAD_PATH.unshift 'lib/'
begin
require 'rubygems'
gem 'mocha', '>= 0.4.0'
require 'mocha'
gem 'test-spec'
require 'test/spec'
require 'active_support'
rescue LoadError
puts '=> has_representations tests depend on the following gems: mocha (0.4.0+), test-spec and rails.'
end
begin
require 'redgreen'
res... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function <API key>(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _react = require('react');
var _react2 = <API key>(_react);
var <API key> = require('../stores/QuestionStore');
var <API key> = <API key>(<API key>);
... |
import React, { Component } from 'react';
import Card from '../../partials/card';
import styles from './style.scss';
class Index extends Component {
render() {
return (
<div className={styles.home}>
<Card>
1
</Card>
<Card>
1
</Card>
<Card>
1
... |
package net.fortytwo.ripple.sail;
import info.aduna.iteration.CloseableIteration;
import net.fortytwo.ripple.RippleException;
import net.fortytwo.ripple.libs.control.ControlLibrary;
import net.fortytwo.ripple.model.ModelConnection;
import net.fortytwo.ripple.model.Operator;
import net.fortytwo.ripple.model.RippleList;
... |
#include <vector>
#include <limits>
#include <algorithm>
#include "wave.h"
#ifdef max
# undef max
#endif
class WayFinder
{
private:
Maze* maze;
Matrix<int> dist;
Matrix<Point2d> last;
//std::vector<Point2d> *way;
std::vector<Point2d> *wave0, *wave1, *wavex;
public:
WayFinder(Maze* maze): maze(m... |
## DNTagView
[, which tries to build a view displaying tags without using UICollectionView and supports Autolayout.
It supports to add tags by UITextField now, and using UIMenuController... |
body {
background-color: #000;
margin: 0px;
overflow: hidden;
color: #fff;
font-size: 13px;
padding:10px;
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
}
#controls{
position:absolute;
background-color: #000;
top: 230px;
right:10px;
width:250px;
}
#audioDebu... |
<script>
(function (root, factory) {
root.Elliptical.Behaviors=root.Elliptical.Behaviors || {};
root.Elliptical.Behaviors.Navbar=factory();
}(this, function () {
return {
/**
* @private
*/
_setData: function () {
this._dat... |
package com.owncloud.android.lib.resources.files;
import java.io.File;
import org.apache.jackrabbit.webdav.client.methods.DavMethodBase;
import android.util.Log;
import com.owncloud.android.lib.common.OwnCloudClient;
import com.owncloud.android.lib.common.network.WebdavUtils;
import com.owncloud.android.lib.common.oper... |
<?php
session_start();
if (!isset($_SESSION['user_id'])) {
// redirect
header('Location: index.php');
} else {
$userID = $_SESSION['user_id'];
}
require_once 'config/connection.php';
require 'src/User.php';
$user = User::loadUserById($conn, $userID);
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
/**
... |
import React, {Component, PropTypes} from 'react';
class PassageClick extends Component {
render() {
return (
<div>
PassageClick
</div>
);
}
}
PassageClick.propTypes = {
};
export default PassageClick; |
import * as assert2 from "../base/assert2.js";
import * as url2 from "../base/url2.js";
describe('url', function () {
it('should succeed', function () {
const params = {a: 10};
const params2 = {a: 10, b: 'big'};
assert2.e(url2.url('http:
assert2.e(url2.url('http:
assert2.e(url2.url('http:
});
})... |
$(function () {
$('.navbar-toggle').click(function () {
$('.navbar-nav').toggleClass('slide-in');
$('.side-body').toggleClass('body-slide-in');
$('#search').removeClass('in').addClass('collapse').slideUp(200);
uncomment code for absolute positioning tweek see top ... |
#ifndef <API key>
#define <API key>
#include "script/interpreter.h"
#include <vector>
class CPubKey;
class <API key> : public <API key>
{
private:
bool store;
public:
<API key>(const CTransaction* txToIn, unsigned int nInIn, bool storeIn=true) : <API key>(txToIn, nInIn), store(storeIn) {}
bool VerifySignatu... |
// JavaScript Document
// jQuery 1.8.2 plug-in
// set point by star
;(function($){
/*code here*/
$.fn.extend({
"star":function(point,fun){
//point,
//1. 5<li>,
var dat;
var init_data=["0px 17px","0px 17px","0px 17px","0px 17px","0px 17px"];
for... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$route['default_controller'] = 'principal';
$route['404_override'] = '';
$route['<API key>'] = FALSE;
$route['filme/(:any)/editar'] = 'filme/editar/$1';
$route['usuario/(:any)/editar'] = 'usuario/editar/$1'; |
{% load i18n %}
<p>
{% trans "Click on the primary key value to access the individual Crc's page." %}
</p>
<table class='table table-bordered table-striped'>
<thead>
<tr>
<th>
Id
</th>
<th>
Code
</th>
<th>
Crc
</th>
<th>
B... |
#include "<API key>.h"
#include "facilecoinunits.h"
#include "clientversion.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include "streams.h"
#include <boost/foreach.hpp>
<API key>::<API key>(CWallet *wallet, WalletModel *parent) :
walletModel(parent)
{
Q_UNUSED(wallet);
<API key> = 0;
// Load entr... |
public class UnsatLibrary03 {
public static void main(final java.lang.String[] args) {
String s = "one,two,three";
String[] strings = s.split(",");
if (strings != null)
assert (strings.length<0);
}
} |
package reservationStations;
import Instructions.Instruction;
public class BEQRS extends ReservationStation {
public BEQRS(int i) {
// TODO Auto-generated constructor stub
}
@Override
public boolean exec() {
// TODO Auto-generated method stub
return false;
}
@Override
... |
Rails4Example::Application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# You can have the root of your site routed with "root"
# root 'welcome#index'
# Example of regular route:
# get 'products/:id'... |
'use strict';
define('admin/plugins/anon', ['settings'], function(Settings) {
var ACP = {},
banList = [];
ACP.init = function() {
Settings.load('anon', $('.anon-settings'));
$('#save').on('click', function() {
Settings.save('anon', $('.anon-settings'), function() {
app.alert({
ty... |
import { declareRuntimeEnv } from '@resolve-js/scripts'
const <API key> = {
mode: 'development',
runtime: {
module: '@resolve-js/<API key>',
options: {
host: declareRuntimeEnv('HOST', 'localhost'),
port: declareRuntimeEnv('PORT', '3000'),
},
},
rootPath: '',
staticPath: 'static',
sta... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'RelativePath' => $vendorDir . '/grandt/relativepath/RelativePath.php',
'UUID' => $vendorDir . '/grandt/phpepub/src/lib.uuid.php',
'UUIDException' => $vendorDir . '/gr... |
using <API key>;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;
namespace Trax {
class SearchResultsPanel : DockContent {
private static Font _de... |
var chai = require('chai');
var expect = chai.expect;
var <API key> = require('../index.js');
var server;
beforeEach(function(){
server = <API key>();
});
describe('<API key>', function(){
it('should return a function', function(){
expect(<API key>).to.be.a('function');
});
it('should return an object with ... |
export const <API key> = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M4 <API key>.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4zM4 5h16v2H4z"},"children":[]}]}; |
#!/usr/bin/env bash
if [[ "$CI" != "true" || "$RUNNER_OS" == "macOS" ]]; then
ava $@
else
ava --match="!*legacy*" $@
fi |
module Graphics.Urho3D.UI.Internal.Sprite(
Sprite
, spriteCntx
, sharedSpritePtrCntx
, SharedSprite
) where
import qualified Language.C.Inline as C
import qualified Language.C.Inline.Context as C
import qualified Language.C.Types as C
import Graphics.Urho3D.Container.Ptr
import qualified Data.Map as Map
dat... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePlansTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('plans', function (B... |
require 'spec_helper'
describe Predicate do
describe "#initialize" do
it "sets the state from the options" do
p = Predicate.new({:entity => "server", :operand => "equals", :value => "foobar"})
p.entity.should == "server"
p.operand.should == :equals
p.value.should == "foobar"
end
end
... |
// @flow
import React from 'react';
import {connect} from 'react-redux';
import type {ContextRouter} from 'react-router';
import {withRouter} from 'react-router-dom';
import debounce from 'lodash.debounce';
import {enableFocusMode, addToast, confirmFocusMode} from '../actions';
import type {Action, Translation} from '.... |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="<API key>"><table class="ztable"><tr><th class="ztd1"><b> </b></... |
layout: default
billboard: /billboards/logo-colour.png
<div class="main-post-list">
<ol class="post-list">
{% for post in paginator.posts %}
{% assign authors = "" | split: ',' %}
{% for item in post.author %}
{% assign authors = authors | push: site.data.authors[item] %}
{% endfor ... |
if (!PhoneGap.hasResource("filetransfer")) {
PhoneGap.addResource("filetransfer");
/**
* FileTransfer uploads a file to a remote server.
* @constructor
*/
FileTransfer = function() {};
/**
* FileUploadResult
* @constructor
*/
FileUploadResult = function() {
this.bytesSent = 0;
this.responseCode = null;
... |
/*
In the CD+G system, 16 color graphics are displayed on a raster field which is
300 x 216 pixels in size. The middle 294 x 204 area is within the TV's
"safe area", and that is where the graphics are displayed. The outer border is
set to a solid color. The colors are stored in a 16 entry color lookup table.
Each co... |
package com.gl.docker.microservice.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.amqp.core.Message;
import org.sp... |
<?php
namespace Covertechdesign\UserBundle\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
{
... |
<section class="content-header">
<h1>Sliders<small>Home page banner management</small></h1>
<ol class="breadcrumb">
<li><a ui-sref="app.landing"><i class="fa fa-dashboard"></i> Home</a></li>
<li><a ui-sref="app.slider">Slider Lists</a></li>
<li class="active">Add Slider</li>
</ol>
</section>
<section ... |
package com.south.openmrs.doctorsms;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.data... |
<?php
class Helpme extends Application
{
public function index() {
$this->data['pagetitle'] = 'Help Wanted!';
$stuff = file_get_contents('../data/jobs.md');
$this->data['content'] = $this->parsedown->parse($stuff);
$this->render();
}
} |
<?php
namespace Iza\Moderare;
use Countable;
use JsonSerializable;
//TODO add licence from laravel
class MessageBag implements Countable, JsonSerializable
{
/**
* All of the registered messages.
*
* @var array
*/
protected $messages = [];
/**
* Default format for message output.
... |
'use strict';
const Mongoose = require('mongoose');
const Schema = Mongoose.Schema;
module.exports = function (N, collectionName) {
let Ignore = new Schema({
// user who is ignoring messages
from: Schema.Types.ObjectId,
// user whose messages are ignored
to: Schema.Types.ObjectId,
// reaso... |
title: IT Lesson 41 - A new term...
layout: post
author: brendan.frank
permalink: /<API key>.../
source-id: <API key>
published: true
<table>
<tr>
<td>Title</td>
<td>IT Lesson 41</td>
<td>Date</td>
<td>18/05/2017</td>
</tr>
</table>
<table>
<tr>
<td>Starting point:</td>
<td>19% completed</... |
Stats helper to show on screen framerate, memory occupation, ecc.
Displayed infos are:
Fps - DrawCalls - Total Memory (lua memory, texture memory)
Stats = class(DisplayObjContainer)
local extended_stats = false
function Stats:init()
DisplayObjContainer.init(self)
local width = extended_stats and 320 or 300
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="Craig McClellan" name="author">
<title>Craig McClellan - T223427465937293313 </title>
<link href... |
#pragma once
HRESULT InitWindow(HINSTANCE hInstance, int nCmdShow);
HRESULT InitDevice();
void CleanupDevice();
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
void LoadContent();
void Update(float totalTime, float deltaTime);
void Render(float totalTime, float deltaTime); |
# <API key>: true
RSpec.describe Svgeez::Commands::Watch, '.init_with_program' do
let(:program) { Mercenary::Program.new(:svgeez) }
let(:command) { described_class.init_with_program(program) }
it 'sets a description' do
expect(command.description).to eq('Watches a folder of SVG icons for changes')
end
it ... |
Copyright (c) G. Nicolas Arroyo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublic... |
<!doctype html>
<html lang="ru">
<head>
<title>мойЧат</title>
<meta charset="UTF-8">
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script defer src="app.js"></script>
</head>
<body>
<div class='chat_main'></div>
<script>
'use strict';
let elem = document.querySelector(".cha... |
# Multiple constructors in Processing / Java
# A class can have multiple constructors that assign the fields in different ways.
# Sometimes it's beneficial to specify every aspect of an object's data by assigning
# parameters to the fields, but other times it might be appropriate to define only
# one or a few.
# fjenet... |
# <API key>
* Works on linux, as master and slave.
* Master, one process is listening on pipe and draws points.
* Slave, many slave can be started at once, calculates points.
 |
<?php
$file = "/home/pi/BlueTrack/my_macs.txt";
$f = file_get_contents($file);
$my_macs = json_decode($f, true);
$total = 0;
foreach ($my_macs as $addr => $v) {
$total++;
unset($t);
echo "$addr \tname: \e[0;35m" . str_pad(@$v['name'],32," ") . " \e[0mclock offset: " . str_pad(@$v['clock offset'],10," ") . "... |
// class to create singing character
// requires THREE.js
// requires commands.js
var Singer = {};
// constructor
Singer.Character = function ()
{
this.body;
this.eyes;
this.head;
this.mouth;
this.loaded = false;
this.mouth_shapes = {};
this.talking_keys = ['ooo', 'aaa', 'mmm', 'eee'];
t... |
<?php
/*
Safe sample
input : get the field UserData from the variable $_POST
sanitize : cast into int
construction : concatenation
*/
$tainted = $_POST['UserData'];
$tainted = (int) $tainted ;
$query = "SELECT Trim(a.FirstName) & ' ' & Trim(a.LastName) AS employee_name, a.city, a.street & (' ' +a.housenum) AS address F... |
import { <API key> } from '../models/index';
export interface <API key> {
isDisabled: boolean;
minDate: Date;
maxDate: Date;
hoveredYear: Date;
displayMonths: number;
yearIndex: number;
}
export declare function flagYearsCalendar(yearsCalendar: <API key>, options: <API key>): <API key>; |
import os
import abc
untyped_list = []
def high_complexity (arg):
"""High cyclomatic complexity."""
if arg == 0:
print(0)
elif arg == 1:
print(1)
elif arg == 2:
print(2)
elif arg == 3:
print(3)
elif arg == 4:
print(4)
elif arg == 5:
print(5)
... |
<?php
/**
* Template Name: New Blog
*
* @package WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header(); ?>
<section id="innrbox">
<div class="row">
<div class="col-lg-12">
<h1 style="margin:10px 0px;"><?php the_title(); ?></h1>
<ol class="breadcru... |
package org.kj6682.hop;
import org.junit.FixMethodOrder;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.au... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Extension;
using Extension.Badge;
using MongoDB.Bson;
using SVNExtension.Model;
namespace SVNExtension.Badges
{
public class <API key> : IBadge
{
public ObjectId id { get; private se... |
# Jquery Gallery extension for Refinery CMS.
This extension uses the jquery Gallery View plugin to render a set of images in refinerycms.
This gallery works well with the <API key> extension, but it does not automatically display
a gallery of page images. Installing this extension basically does nothing at all unless y... |
/* n1
* Solutionoffer
*/
class Solution {
public:
int countDigitOne(int n) {
}
}; |
class Hadupils::SearchTest < Test::Unit::TestCase
tempdir_context 'find_from_dir' do
setup do
@module = Hadupils::Search
@search_name = mock().to_s
end
should 'return nil if requested directory cannot be found' do
assert_equal nil, @module.find_from_dir(@search_name, @tempdir.path)
e... |
<?php
namespace FSS\Controllers;
/**
* Generated by <API key> on 2017-12-31 at 20:36:32.
*/
class <API key> extends \PHPUnit\Framework\TestCase
{
/**
* @var <API key>
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called befor... |
import { GraphQLObjectType, GraphQLSchema, GraphQLString } from 'graphql';
import { WeavingConfig } from '../../../src/config/weaving-config';
export async function getConfig(): Promise<WeavingConfig> {
const linkTargetType = new GraphQLObjectType({
name: 'OpNameObject',
fields: {
opName... |
@echo off
REM standard mingw development environment!
REM can be copied to any directory to start a console
REM
REM CHECK FOR MINGW INSTALLATION!
REM
set MINGW_APPSNAME=MinGW
set MINGW_USERPATH=%APPDATA%\%MINGW_APPSNAME%
set MINGW_PATHFILE=%MINGW_USERPATH%\mingw.path
if exist "%MINGW_PATHFILE%" goto FIND_PATH
echo Miss... |
import {IClone} from "../clone.interface";
export interface IClones {
saveClone(clone: IClone);
get(): IClone[];
} |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { increment, decrement } from '../../logic/actions/';
const About = ({ count, onIncrement, onDecrement }) => {
return (
<div>
Counter
<div>
<dl className="counter-display">
<d... |
create or alter procedure scheduler.ExecuteTask
@taskId int = null
,@identifier nvarchar(128) = null
as
begin
set xact_abort on;
set nocount on;
if (@taskId is null and @identifier is null) or (@taskId is not null and @identifier is not null)
begin
;throw 50000, 'Only one of @taskId or @... |
<
.SYNOPSIS
This is a Powershell script to bootstrap a Cake build.
.DESCRIPTION
This Powershell script will download NuGet if missing, restore NuGet tools (including Cake)
and execute your Cake build script with the parameters you provide.
.PARAMETER Script
The build script to execute.
.PARAMETER Target
The build scrip... |
<?php
namespace Analogue\ORM\Relationships;
use Analogue\ORM\EntityCollection;
use Analogue\ORM\System\Mapper;
abstract class HasOneOrMany extends Relationship
{
/**
* The foreign key of the parent model.
*
* @var string
*/
protected $foreignKey;
/**
* The local key of the parent mo... |
'use strict';
//Start by defining the main module and adding the module dependencies
angular.module(<API key>.<API key>, <API key>.<API key>);
// Setting HTML5 Location Mode
angular.module(<API key>.<API key>).config(['$locationProvider',
function($locationProvider) {
$locationProvider.hashPrefix('!');
... |
using Ninefold.Compute.Messages;
namespace Ninefold.Compute
{
public interface IComputeClient
{
<API key> ListTemplates(<API key> request);
<API key> ListAccounts(ListAccountsRequest request);
<API key> <API key>(<API key> request);
<API key> ListVirtualMachines(<API key> request... |
"""Utils for time travel testings."""
def _t(rel=0.0):
"""Return an absolute time from the relative time given.
The minimal allowed time in windows is 86400 seconds, for some reason. In
stead of doing the arithmetic in the tests themselves, this function should
be used.
The value `86400` is exported... |
var server = http.createServer(function(req, res) {
fs.readFile('./index.html', 'utf-8', function(error, content) {
res.writeHead(200, {"Content-Type": "text/html"});
res.end(content);
});
});
// Chargement de socket.io
var io = require('socket.io').listen(server);
// Quand un client se connecte... |
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [3.2.0] - 2021-10-18
Added
- Add shell option to pr... |
module.exports = require('../dist/Collapse'); |
'use strict'
let console = require('./console')
let color = require('./color')
let errors = require('./errors')
class Spinner {
constructor (options) {
this.options = Object.assign({
text: ''
}, options)
this.ansi = require('ansi-escapes')
let spinners = require('./spinners.json')
this.color... |
title: Extracting Contacts from Gmail
date: 2016-11-01 12:00:00 Z
layout: post
published: false
<script src="https://gist.github.com/joeyvmason/<API key>.js"></script> |
// UIViewController+AlertVc.h
// ShreddedBread
/**
* <API key>
*
*
*/
#import <UIKit/UIKit.h>
@interface UIViewController (AlertVc)
- (void)<API key>:(nullable NSString *)title
message:(nullable NSString *)message
preferredStyle:(<API key>)preferredStyle... |
import sbt._
object Dependencies {
object Version {
val akka = "2.6.6"
val akkaHttp = "10.1.12"
val circe = "0.13.0"
val slf4j = "1.7.30"
val logback = "1.2.3"
}
val akkaStream = "com.typesafe.akka" %% "akka-stream" % Version.akka
val akkaHttp = "com.typesafe.akka" %% "akka-http" % Version.a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.