answer stringlengths 15 1.25M |
|---|
# 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::Network::Mgmt::V2018_06_01
# SecurityRules
class SecurityRules
include MsRestAzure
# Creates and initializes a new instance of the ... |
package uk.gov.gds.ier.transaction.forces.confirmation
import uk.gov.gds.ier.mustache.{MustacheData, StepMustache}
import uk.gov.gds.ier.model.{HasAddressOption, WaysToVoteType, MovedHouseOption}
import uk.gov.gds.ier.validation.constants.{<API key>, <API key>}
import uk.gov.gds.ier.logging.Logging
import uk.gov.gds.ie... |
<!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 charset="utf-... |
#include "SDL_config.h"
#if <API key>
/* Allow access to a raw mixing buffer */
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#include <unistd.h>
#include <errno.h>
#include "SDL_timer.h"
#include "SDL_audio.h"
#include "../SDL_audiomem.h"
#include "../SDL_audio_c.h"
#include "SDL_artsaudio.h"
#ifdef <API key>
#inclu... |
require 'nymphia'
require 'optparse'
require 'pathname'
module Nymphia
class CLI
def self.start(argv)
new(argv).run
end
def initialize(argv)
@argv = argv.dup
parser.parse!(@argv)
end
def run
validate_args!
dsl_code_file = File.open(@file_path)
<API key> = File.a... |
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.containerservice.generated;
import com.azure.core.util.Context;
/** Samples for ManagedClusters List. */
public final class <API key> {
/*
* x-ms-original-file: specification/containerservice/resource-manager/Microsof... |
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.fluent.models.<API key>;
import com.fasterxml.jackson.annotation.JsonProperty;
... |
import MySQLdb as _mysql
from collections import namedtuple
import re
# Only needs to compile one time so we put it here
float_match = re.compile(r'[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$').match
def is_number(string):
return bool(float_match(string))
class MySQLDatabase(object):
"""
This is the driver class that ... |
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
namespace System.Collections.Concurrent.Tests
{
public class <API key>
{
[Fact]
public static void TestBasicScenarios(... |
package info.dgjones.st2x.transform.method.intra;
import java.util.List;
import info.dgjones.st2x.ClassParser;
import info.dgjones.st2x.JavaMethod;
import info.dgjones.st2x.javatoken.JavaCallStart;
import info.dgjones.st2x.javatoken.JavaIdentifier;
import info.dgjones.st2x.javatoken.JavaKeyword;
import info.dgjones.st2... |
from collections import Counter, defaultdict
def solution(A):
def _is_equi_leader(i):
prefix_count_top = running_counts[top]
suffix_count_top = total_counts[top] - prefix_count_top
return (prefix_count_top * 2 > i + 1) and (suffix_count_top * 2 > len(A) - i - 1)
total_counts = Counter(A)... |
all: build
build: <API key> <API key> 03-to_cpp_classes
<API key>:
make -C <API key>
<API key>:
make -C <API key>
03-to_cpp_classes:
make -C 03-to_cpp_classes
test:
make test -C <API key>
make test -C <API key>
make test -C 03-to_cpp_classes
clean:
make clean -C <API key>
make clean -C <... |
package soa
import (
"encoding/json"
"fmt"
"strconv"
"time"
"github.com/Shark/powerdns-consul/backend/store"
)
type soaEntry struct {
NameServer string
EmailAddr string
Sn uint32
Refresh int32
Retry int32
Expiry int32
Nx int32
}
type soaRevisi... |
# Soundcloud Visualizer
This is an experiment in using the web audio API together with canvas to make some interesting and cool-looking visualizations.
Since this is my first foray into the world of both canvas and web audio, I have slowly iterated over a number of ideas and trials which are all in the `/tests` folder.... |
# CMake generated Testfile for
# Source directory: /home/elyas/RayTracerDE
# Build directory: /home/elyas/RayTracerDE/source
# This file includes the relevant testing commands required for
# testing this directory and lists subdirectories to be tested as well.
add_test(tests "/home/elyas/RayTracerDE/source/build/Releas... |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Pb.TileMap
{
<summary>
Base class for chunk renderers
</summary>
[System.Serializable]
public class ChunkRenderer :
ScriptableObject
{
<summary>
Renders a chunk with a tile map contro... |
title: Cards
weight: 8
<p class="alert alert-info">
<a href="#usage">Did you know you can embed those cards on your site? (click to see how!)</a>
</p>
<hr>
<style type="text/css">cb-card { font-size: 27%; float: left } #results { margin-top: 2em; }</style>
<div id="cards" class=row></div>
<script type="text/javascr... |
class Cd
@@all_Cds = {}
attr_accessor :name, :artist
def initialize(attributes)
@name = attributes[:album_name]
@artist = attributes[:artist_name]
end
def self.all
output_Cds = []
@@all_Cds.each_value do |album|
output_Cds << album
end
output_Cds
end
def save
@@all_Cds[@n... |
class Api::CodeController < Api::BaseController
def create
@code = Code.new
@code.save
end
def status
@success = false
if !params.has_key?(:id) || !params.has_key?(:hash)
return
end
hash = Digest::SHA1.hexdigest "#{params[:id]}#{Rails.application.s... |
package ie.lc.fallApp;
import java.text.DecimalFormat;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.text.Editable;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.*;
public class ActivityFallHeigh... |
/*global window*/
(function($){
'use strict';
var Observable = function(){
this.observers = {};
};
Observable.prototype.on = function(event, observer){
(this.observers[event] = this.observers[event] || []).push(observer);
};
Observable.prototype.emit = function(event){
va... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
public function run(): void
{
$this->call(SeasonsTableSeeder::class);
$this->call(<API key>::class);
$this->call(<API key>::class);
$this->call(VenuesTableSeeder::class);
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... |
import root from './_root.js';
import toString from './toString.js';
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeParseInt = root.parseInt;
function parseInt(string, radix, guard) {
if (guard || radix == null) {
radix = 0;
} else if (radix) {
radix = +ra... |
<?php
return array (
'id' => 'htc_sensation_ver1',
'fallback' => 'htc_pyramid_ver1',
'capabilities' =>
array (
'uaprof' => 'http:
'model_name' => 'Z710',
'brand_name' => 'HTC',
'marketing_name' => 'Sensation',
'release_date' => '2011_june',
'table_support' => 'true',
'wml_1_1' => 'tr... |
# encoding: utf-8
module Axiom
class Optimizer
class Aggregate
# Abstract base class representing Maximum optimizations
class Maximum < self
Axiom::Aggregate::Maximum.optimizer = chain(
UnoptimizedOperand
)
end # class Maximum
end # class Aggregate
end # class Opt... |
import $ from 'jquery';
module.exports = function(root) {
root = root ? root : global;
root.expect = root.chai.expect;
root.$ = $;
beforeEach(() => {
// Using these globally-available Sinon features is preferrable, as they're
// automatically restored for you in the subsequent `afterEach`
root.sandb... |
unit-test-demo
===========
[;
const UserModel = mongoose.model('User');
module.exports = {
login: (email, password) => {
return UserModel.findOne({email, password});
}
}; |
# encoding: utf-8
require 'rubygems'
require 'file_manager'
class SeriesMonitor
DEFAULT_INTERVAL = 7200
attr_accessor :interval
attr_accessor :<API key>
def initialize(parser)
@parser = parser
end
def <API key>(message, link = nil)
if <API key>
<API key>.call(message,... |
module.exports = {
login: function(user, req)
{
// Parse detailed information from user-agent string
var r = require('ua-parser').parse(req.headers['user-agent']);
// Create new UserLogin row to database
sails.models.loglogin.create({
ip: req.ip,
host: req.host,
agent: req.headers[... |
package taxonomy_service::<API key>;
use JSON::RPC::Client;
use POSIX;
use strict;
use Data::Dumper;
use URI;
use Bio::KBase::Exceptions;
my $get_time = sub { time, 0 };
eval {
require Time::HiRes;
$get_time = sub { Time::HiRes::gettimeofday() };
};
use Bio::KBase::AuthToken;
# Client version should match Impl ... |
package com.maximusvladimir.randomfinder;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextF... |
package com.walkertribe.ian.protocol.core.weap;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import com.walkertribe.ian.enums.BeamFrequency;
import com.walkertribe.ian.enums.Origin;
import com.walkertribe.ian.protocol.<API key>;
public class <API key> extends <API key><SetBeamFreqPacket> {
... |
<HTML><HEAD>
<TITLE>Review for Priyatel pokojnika (1997)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0119952">Priyatel pokojnika (1997)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?James+... |
#pragma once
#include <iostream>
#include "Hypodermic/ILoggerSink.h"
namespace Hypodermic
{
class ConsoleLoggerSink : public ILoggerSink
{
public:
void append(LogLevels::LogLevel logLevel, const std::string& message) override
{
if (logLevel == LogLevels::Off)
retu... |
#include "uritests.h"
#include "guiutil.h"
#include "walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCoinsRecipient rv;
QUrl uri;
uri.setUrl(QString("nealcoin:<API key>?req-dontexist="));
QVERIFY(!GUIUtil::parsenealcoinURI(uri, &rv));
uri.setUrl(QString("nealcoin:<API key>?dontexist="... |
const isObjectId = objectId => objectId && /^[0-9a-fA-F]{24}$/.test(objectId)
const isEmail = email => email && /^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$/.test(email.trim())
const isNick = nick => nick && /^[\u4E00-\u9FA5\uF900-\uFA2DA-Za-z0-9\-\_]{2,40}$/.test(nick.trim())
const isUrl = url => url && /^(http(?:|s)\:)*\/\... |
var Command = require("../Command");
var RealDirection = require("../../RealDirection");
var MessageCategory = require("../../MessageCategory");
var _dir = RealDirection.NORTHEAST;
class Northeast extends Command{
constructor(){
super();
this.rule = /^n(?:orth)?e(?:ast)?$/g;
}
exec(){
... |
package soliddomino.game.exceptions;
public class <API key> extends Exception {
public <API key>(String format) {
super(format + " is not the correct format. Expected \'#number-direction(e.g left, right).\'\nExample: 4-right");
}
} |
#include "expression.h"
#include "opt.h"
#include "vm/instruction.h"
std::vector<vv::vm::command> vv::ast::expression::code() const
{
auto vec = generate();
optimize(vec);
return vec;
} |
import VueRouter from 'vue-router'
import { mount } from '@vue/test-utils'
import { waitNT, waitRAF } from '../../../tests/utils'
import { Vue } from '../../vue'
import { BPaginationNav } from './pagination-nav'
Vue.use(VueRouter)
// The majority of tests for the core of pagination mixin are performed
// in pagination.... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
public class Family
{
private List<Person> familyList;
public List<Person> Names
{
get { return this.familyList; }
set { this.familyList = value; }
}
public Family()
{
this.familyList = ... |
//proc_ace_acceptor.cpp
#include <<API key>.h>
using namespace proc_mta_ace;
using std::ostringstream;
proc_acceptor::proc_acceptor ( concurrency_t concurrency ) : concurrency_ { concurrency } ,
the_thread_pool_ ( <API key> ) ,
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... |
<?php
namespace HyperionStudios\HumblePickleBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* HyperionStudios\HumblePickleBundle\Entity\Donator
*
* @ORM\Table(name="donators")
* @ORM\Entity
*/
class Donator
{
/**
* @ORM\Id
* @ORM\GeneratedValue
... |
<!
The Jenkins Mber Plugin is free software distributed under the terms of the MIT
license (http:
Copyright (c) 2013-2015 Mber
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, i... |
module.exports = (name, node) => (
name === "apply" &&
node.type === "CallExpression" &&
node.callee.type === "Identifier"); |
# 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::Network::Mgmt::V2019_07_01
module Models
# Inbound NAT rule of the load balancer.
class InboundNatRule < SubResource
include Ms... |
package com.giantbomb.main;
public class <API key>
{
public static void main(final String[] args)
{
}
} |
namespace BatterySync
{
partial class Form1
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if manag... |
import {loadIndex} from "./indexFactory.js"
import AlignmentContainer from "./alignmentContainer.js"
import BamUtils from "./bamUtils.js"
import {BGZip, igvxhr} from "../../node_modules/igv-utils/src/index.js"
import {buildOptions} from "../util/igvUtils.js"
/**
* Class for reading a bam file
*
* @param config
* @c... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<title>To Do List: Make a To Do List</title>
<meta name="description" content="Use this free application to make a to do list.">
<meta name="viewport" content="width=dev... |
var should = require("should");
var Mat3x3 = require("./Mat3x3");
var Barycentric3 = require("./Barycentric3");
var Logger = require("./Logger");
(function(exports) {
var verboseLogger = new Logger({
logLevel: "debug"
});
/////////////// constructor
function XYZ(x, y, z, options) {
var t... |
a,b,c{color:transparent}d{background:-webkit-gradient(linear,top,left,from(rgba(1,2,3,0)),color-stop(rgba(1,2,4,0)),to(rgba(1,2,5,0)));background:-<API key>(top,rgba(1,2,3,0),rgba(1,2,5,0))}e{background:-webkit-gradient(linear,top,left,from(transparent),color-stop(transparent),to(transparent));background:-<API key>(top... |
<?php
class EmptyNameException extends Exception{}
?> |
<?php
namespace Ingewikkeld\Rest\OAuthServerBundle\Form;
use Ingewikkeld\Rest\ResourceBundle\Resource\FormTypeInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\Validator\Constraints\All;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Compo... |
# OpenProject is a project management system.
# This program is free software; you can redistribute it and/or
# This program is free software; you can redistribute it and/or
# as published by the Free Software Foundation; either version 2
# This program is distributed in the hope that it will be useful,
# MERCHANTABILI... |
package server
import (
"bytes"
"encoding/json"
"io/ioutil"
"net/http/httptest"
"testing"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/mocks"
)
func TestConfig(t *testing.T) {
type fields struct {
ConfigStore chronograf.ConfigStore
}
... |
package org.gluu.oxauth.util;
import org.gluu.oxauth.model.common.ResponseMode;
import org.jboss.resteasy.specimpl.ResponseBuilderImpl;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.cor... |
<?php
include __DIR__ . '/src/events.php'; |
uid: <API key>.Arcs2d.AddByCenterStartEnd(System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)
summary:
remarks:
syntax:
parameters:
- id: xCenter
description: Specifies the coordinates of the center point of the arc.
- id: xEnd
description: Specifies the coordina... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http:
<head>
<title>QTextBlock Class Reference</title>
<link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 align="center">QTextBlock Class Refere... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_05) on Fri Dec 23 12:55:01 EST 2005 -->
<TITLE>
TargetDef (ATG Java API)
</TITLE>
<META NAME="keywords" CONTENT="atg.epub.project.TargetDef interface">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="... |
'use strict';
var test = require('../../../');
describe('Asserter object()', function(){
describe('object() behavior', function(){
it('Does not contains assertions from the assertions containers', function(){
test
.value(test.object({}).hasHeader)
.isUndefined()
.value(test.object(... |
var mongoose = require('mongoose');
var Shape = require('./Shape');
var User = require('./User');
// Create a session model, _id will be assigned by Mongoose
var CanvasSessionSchema = new mongoose.Schema(
{
_id: String,
users: [User],
dateCreated: Date,
dateUpdated: Date,
// canDraw: Boolean,
... |
--4. Write a SQL query to find all information about all departments (use "TelerikAcademy" database).
SELECT *
FROM [TelerikAcademy].[dbo].[Departments] |
import os
import shutil
from glob import glob
print 'Content-type:text/html\r\n\r\n'
print '<html>' |
import config from '../components/configLoader';
import { <API key> } from '../components/helpers';
const pluginConfig = config.plugins.find(obj => obj.name === 'age');
// DOM setup
const pluginId = 'js-plugin-age';
<API key>(pluginId);
const ageDOM = document.getElementById(pluginId);
const renderAge = () => {
const... |
package filediff.myers;
public class <API key> extends DiffException {
private static final long serialVersionUID = 1L;
public <API key>() {
}
public <API key>(String msg) {
super(msg);
}
} |
Meteor.startup(function () {
});
Deps.autorun(function(){
Meteor.subscribe('userData');
}); |
<?php
namespace Aleste\TrackerBundle\Command;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;
use Doctrine\ORM\Enti... |
<?php
namespace Vespolina\Tests\Sync\Functional\Entity;
class <API key>
{
public $name;
public function getId()
{
return $this->name;
}
} |
require 'rubygems'
require 'test/unit'
require 'shoulda'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'ftp-ext'
class Test::Unit::TestCase
end |
# WatirCrawler
A watir based web crawler
## Installation
Add this line to your application's Gemfile:
gem 'watir_crawler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install watir_crawler
## Usage
See examples
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-... |
"""
@brief test log(time=0s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.filehelper import <API key>
from pyquickhelper.ipythonhelper import upgrade_notebook, <API key>
class <API key>(unittest.TestCase):
"""Converts notebooks from v3 to v4. Should not be needed an... |
#!/bin/sh
PYTHON=python
IMPL=$1
$PYTHON autotest.py $IMPL
$PYTHON buffertest.py $IMPL
$PYTHON commtest.py $IMPL
$PYTHON guardtest.py $IMPL
$PYTHON iotest.py $IMPL
$PYTHON poisontest.py $IMPL
$PYTHON selecttest.py $IMPL
cd unix
$PYTHON remotetest.py $IMPL
$PYTHON multiprocesstest.py $IMPL
$PYTHON sshprocesstest.py $IMPL... |
using System.Text;
public class Engine
{
private const string offset = " ";
public string model;
public int power;
public int displacement;
public string efficiency;
public Engine(string model, int power)
{
this.model = model;
this.power = power;
this.displacement = ... |
from itertools import permutations
import re
def create_formula(combination,numbers):
formula = ""
index = 0
for op in combination:
formula += str(numbers[index]) + op
index += 1
formula += numbers[index]
return formula
'''
Unnecessary Funtion
'''
def evaluate(form):
result =... |
// will this be needed?
var getMotionEventName = function(type) {
var t;
var el = document.createElement('fakeelement');
var map = {};
if (type == 'transition') {
map = {
'transition': 'transitionend',
'OTransition': 'oTransitionEnd',
'MozTransition': 'transitionend',
'Webkit... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_34) on Wed Oct 23 13:33:57 EDT 2013 -->
<TITLE>
Uses of Class org.hibernate.service.internal.<API key> (Hibernate JavaDocs)
</TITLE>
<META NAME="date" CONTENT="2013-10-23">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../..... |
#if !defined(LIQUID_BLOCK_H)
#define LIQUID_BLOCK_H
#include "document_body.h"
#include "vm_assembler_pool.h"
typedef struct block_body {
bool compiled;
VALUE obj;
union {
struct {
<API key> document_body_entry;
VALUE nodelist;
} compiled;
struct {
... |
<?php
return [
'env' => env('APP_ENV', 'production'),
'debug' => env('APP_DEBUG', false),
'url' => env('APP_URL', 'http://localhost'),
'timezone' => 'UTC',
'locale' => 'en',
'fallback_locale' => 'en',
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
'log' => env('APP_LOG', 'single... |
package soymsg
import (
"bytes"
"regexp"
"strconv"
"strings"
"github.com/robfig/soy/ast"
)
// setPlaceholderNames generates the placeholder names for all children of the
// given message node, setting the .Name property on them.
func setPlaceholderNames(n *ast.MsgNode) {
// Step 1: Determine rep... |
RSpec.describe "vm_types" do
let(:vm_types) { <API key>.fetch("vm_types") }
describe "the router pool" do
let(:pool) { vm_types.find { |p| p["name"] == "router" } }
it "should use the correct elb instance" do
expect(pool["cloud_properties"]["elbs"]).to match_array([
terraform_fixture(:cf_route... |
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.Azure.WebJobs.Script.WebHost.Configuration;
using Microsoft.Extensions.Options;
namespace Microsoft.Azure.WebJobs.Script.Middleware
{
publi... |
// Include gulp
import gulp from 'gulp';
import fs from 'fs';
// Include Our Plugins
import eslint from 'gulp-eslint';
import mocha from 'gulp-mocha';
import browserSyncJs from 'browser-sync';
import sassJs from 'gulp-sass';
import sassCompiler from 'sass';
import rename from "gulp-renam... |
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../ui-behaviors/component-behavior.html">
<link rel="import" href="../ui-behaviors/checkbox.html">
<dom-module id="ui-checkbox">
<template>
<input type="checkbox" id="[[dataId]]" name="[[dataName]]" [[required]]>
<label for... |
# BlocklyCraft key files
- `docs`
Pictures for the readme files. Excluded from the Plugin.
- `google-blockly`
Blockly code, kept in sync through the `build.xml` file in this directory, and is thus on `.gitignore`.
- `msg`
All the language files used by the Blockly editor and the Minecraft blocks.
- `build.xml`
Sync Blo... |
#include "main.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace std;
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, json_spirit::Object& entry);
extern enum Checkpoints::CPMode CheckpointsMode;
double GetDifficulty(const CBlockIndex* blockindex)
{
// Floating point numb... |
package helper
const (
// EmojiStar const for unicode code
EmojiStar = "\U00002B50"
// EmojiAlarm const for unicode code
EmojiAlarm = "\U000023F0"
// EmojiDroplet const for unicode code
EmojiDroplet = "\U0001F4A7"
// EmojiGear const for unicode code
EmojiGear = "\U00002699"
// EmojiB... |
<img src="./images/icon.png" alt="neurojs" height="125">
# neurojs
neurojs is a JavaScript framework for deep learning in the browser. It mainly focuses on reinforcement learning, but can be used for any neural network based task. It contains neat demos to visualise these capabilities, for instance a 2D self-driving ca... |
// Unless required by applicable law or agreed to in writing, software
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// $Revision: 213 $
// $LastChangedBy: tobi $
/**
* @fileoverview Fields and methods of the jala.AsyncRequest class.
*/
// Define the global namespace for Jala modules
if ... |
<?php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', '{{ db_name.stdout }}');
/** MySQL database username */
define('DB_USER', '{{ db_user.stdout }}');
/** MySQL database password */
define('DB_PASSWORD', '{{ random_password.stdout }... |
<div class="row">
<div class="col-md-12 tech-col">
<div ng-controller="TechCtrl">
<div class="repeated__item well__item animate" ng-repeat="image in images" ng-animate="animate">
<img ng-src="{{image}}">
</div>
</div>
</div>
</div> |
const OFF = 0;
const WARN = 1;
const ERROR = 2;
module.exports = {
extends: "../.eslintrc.js",
rules: {
"max-len": [ ERROR, 100 ],
},
env: {
"es6": true,
"node": true,
"mocha": true,
},
}; |
@(<API key>: Form[models.<API key>],
traderBusinessName: String,
traderPostcode: String,
traderEmail: Option[String],
dropDownOptions: Seq[(String, String)])(implicit lang: Lang,
token: uk.gov.dvla.vehicles.presentation.common.filters.<API key>.CsrfPreventionToken,
config... |
<?php
namespace Topxia\Service\Article;
interface CategoryService
{
public function getCategory($id);
public function getCategoryByCode($code);
public function getCategoryTree();
public function <API key>($parentId);
public function <API key>($parentId);
public function <API key>($id);
publi... |
package me.ronggenliu.dp.creation.builder;
public class Product {
private String partA;
private String partB;
private String partC;
public String getPartA() {
return partA;
}
public void setPartA(String partA) {
this.partA = partA;
}
public String getPartB() {
return partB;
}
public void... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.