answer stringlengths 15 1.25M |
|---|
using System;
using static LanguageExt.Prelude;
namespace LanguageExt.UnitsOfMeasure
{
<summary>
Numeric VelocitySquared value
Handles unit conversions automatically
</summary>
public struct VelocitySq :
IComparable<VelocitySq>,
IEquatable<VelocitySq>
{
readonly double Va... |
// Lexer.cpp
// lut-lang
#include "Lexer.h"
#include <string>
#include <regex>
#include <iostream>
#include "TokenType.h"
#include "ErrorHandler.h"
using std::cout;
using std::endl;
using std::smatch;
using std::string;
using std::regex_search;
using std ::smatch;
// Regexs
const char keyword_str[] = "^(const |var |e... |
<?php
namespace Redsys\Tests\Api;
use Redsys\Api\Titular;
class TitularTest extends \<API key>
{
public function <API key>()
{
$titular = new Titular("Lorem ipsum");
$this->assertEquals("Lorem ipsum", $titular->getValue());
}
public function <API key>()
{
$titular = new Titul... |
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("KnowledgeCenter.Domain")]
[assembly: AssemblyDescription("")]
[assembly: Guid("<API key>")] |
<!DOCTYPE html>
<html xmlns:msxsl="urn:<API key>:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="<API key>">.NET Portability Report</title>
<style>
/* Body style, for the entire document */... |
# Update for Chrome 71
Due to abuse of users with the Speech Synthesis API (ADS, Fake system warnings), Google decided to remove the usage of the API in the browser when it's not triggered by an user gesture (click, touch etc.). This means that calling for example <code>artyom.say("Hello")</code> if it's not wrapped in... |
#include "src/math/float/log10f.c"
#include "log.h"
int main(void)
{
test(log10f, log10);
} |
<?php
namespace XeroPHP\Reports;
class <API key>
{
/**
* @var string[]
*/
private $headers;
/**
* @var mixed[]
*/
private $rows;
/**
* @param string[] $headers
* @param mixed[] $rows
*/
public function __construct(array $headers, array $rows = [])
{
... |
# mrb\_manager
["``` to your profile.
You'll only ever have to do this once.
## Usage
Install mruby with current active mgems
... |
var searchData=
[
['nalloc',['NALLOC',['../dwarfDbgInt_8h.html#<API key>',1,'dwarfDbgInt.h']]],
['name',['name',['../structattrValues.html#<API key>',1,'attrValues']]],
['<API key>',['<API key>',['../structcompileUnit.html#<API key>',1,'compileUnit']]],
['numaddchild',['numAddChild',['../<API key>.html#<API key... |
<?php
namespace Mastercel\ChartBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Solicitudespagos
*
* @ORM\Table(name="SolicitudesPagos", indexes={@ORM\Index(name="Indice_1", columns={"DteSolicitud", "TmeSolicitud"}), @ORM\Index(name="Indice_2", columns={"DteActualizacion"}), @ORM\Index(name="Indice_3", columns=... |
const moment = require('moment')
const expect = require('chai').expect
const sinon = require('sinon')
const proxyquire = require('proxyquire')
const breadcrumbHelper = require('../../helpers/breadcrumb-helper')
const orgUnitConstant = require('../../../app/constants/organisation-unit.js')
const activeStartDate = moment... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ProjectData;
using Tools;
using ProjectBLL;
using System.Data;
using Approve.RuleCenter;
using System.Text;
using System.Collections;
using Approve.RuleApp;
public partial cla... |
using System.Threading.Tasks;
using Test.Utilities;
using Xunit;
using VerifyCS = Test.Utilities.<API key><
Microsoft.CodeQuality.Analyzers.ApiDesignGuidelines.<API key>,
Microsoft.CodeQuality.CSharp.Analyzers.ApiDesignGuidelines.<API key>>;
using VerifyVB = Test.Utilities.<API key><
Microsoft.CodeQuality.A... |
/**
* Config
*/
var PRIVATE_<API key>;
/**
* Globals.
*/
var autocompleteOpts,
projectOpts,
currentProjectID,
currentProjectPath;
$(function () {
initGlobals();
handleAll();
mapUrlHandler(location.pathname, [
{ pattern: /^\/[^\/]+\/[^\/]+$/, handle: <API key> },
{ pattern: /^.+\/tree\/.+/, handl... |
import axios from 'axios'
import pipelineApi from './api'
import { addMessage } from '../../../client/utils/flash-messages'
import { <API key> } from '../../../client/utils/date'
function <API key>(values, oldValues = {}) {
const data = {
name: values.name,
status: values.category,
}
function addValue(key... |
var global = require('../../global');
module.exports = function (data, offset) {
var items = data.items.map(invoiceNote => {
var invoiceItem = invoiceNote.items.map(dataItem => {
var _items = dataItem.items.map(item => {
dueDate = new Date(dataItem.<API key>);
due... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqffi: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bignums: 3 m 34 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><API key>: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
// <API key>.hpp
// Pods
#ifndef <API key>
#define <API key>
#include <string>
#include "ee/store/StoreFwd.hpp"
namespace ee {
namespace store {
class AppleReceiptParser {
public:
AppleReceiptParser();
std::shared_ptr<AppleReceipt> parse(const std::string& receiptData);
private:
IMessageBridge& bridge_;
}... |
package com.azure.resourcemanager.network;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.network.models.DdosProtectionPlan;
import com.azure.resourcemanager.test.utils.TestUtilities;
import com.azure.core.management.Region;
import org.junit.jupiter.api.Assertions;
import org.junit.jupi... |
"""Run tests for the kmeans portion of the kmeans module"""
import kmeans.kmeans.kmeans as kmeans
import numpy as np
import random
def test_1dim_distance():
"""See if this contraption works in 1 dimension"""
num1 = random.random()
num2 = random.random()
assert kmeans.<API key>(num1, num2) == abs(num1-nu... |
const multiples =
'(hundred|thousand|million|billion|trillion|quadrillion|quintillion|sextillion|septillion)'
const here = 'fraction-tagger'
// plural-ordinals like 'hundredths' are already tagged as Fraction by compromise
const tagFractions = function (doc) {
// hundred
doc.match(multiples).tag('#Multiple', here... |
window._skel_config = {
prefix: 'css/style',
preloadStyleSheets: true,
resetCSS: true,
boxModel: 'border',
grid: { gutters: 30 },
breakpoints: {
wide: { range: '1200-', containers: 1140, grid: { gutters: 50 } },
narrow: { range: '481-1199', containers: 960 },
mobile: { ra... |
(function(app, undefined) {
'use strict';
if(!app) throw new Error('Application "app" namespace not found.');
console.log( 'hello world' );
console.log( 'Application Running...' );
// @begin: renders
app.render.jquery();
app.render.vanilla();
// @end: renders
// @begin: to_jquery
app.to_jquery.run()... |
{-# LANGUAGE CPP #-}
module Database.Orville.PostgreSQL.Plan.Explanation
( Explanation
, noExplanation
, explainStep
, explanationSteps
) where
newtype Explanation =
Explanation ([String] -> [String])
#if MIN_VERSION_base(4,11,0)
instance Semigroup Explanation where
(<>) = appendExplanation
#endif
instanc... |
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace KUI.Controls
{
public class FlatAccentButton : FlatButton
{
protected override void OnPaintBackground(PaintEventArgs pevent)
... |
// crm114_config.h -- Configuration for CRM114 library.
// This file is part of the CRM114 Library.
// The CRM114 Library is free software: you can redistribute it and/or modify
// (at your option) any later version.
// The CRM114 Library is distributed in the hope that it will be useful,
// MERCHANTABILIT... |
using MortgageCalc.Models;
using System;
using System.Collections.Generic;
namespace MortgageCalc.Calculators
{
public class <API key>
{
private RateCalc _calc = new RateCalc(6); // initialize with 6 decimal places
private decimal _monthlyPayment;
private decimal _principal;
priv... |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>grapp-core-ajax tests</title>
<script src="../lib/<API key>/browser.js"></script>
</head>
<body>
<script>
WCT.loadSuites([
'basic.h... |
import Ember from 'ember';
import CheckboxMixin from '../mixins/checkbox-mixin';
export default Ember.Component.extend(CheckboxMixin, {
type: 'checkbox',
checked: false,
onChange: function() {
this.set('checked', this.$('input').prop('checked'));
this.sendAction("action", {
checked: this.get('checke... |
@<API key>
package org.zalando.problem.spring.web.advice;
import javax.annotation.<API key>; |
<?php
use Stringizer\Stringizer;
/**
* Date Unit Tests
*/
class DateTest extends <API key>
{
public function testValidDate()
{
<API key>('America/Vancouver');
$s = new Stringizer("January 1st");
$this->assertEquals(true, $s->isDate());
$s = new Stringizer("2015-03-15");
... |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'jtn=n8&nq9jgir8_z1ck40^... |
//worldgenerator.cs
//Project VoxelEngine
using Microsoft.Xna.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VoxelEngine.Game.Blocks;
using VoxelEngine.GameConsole;
using VoxelEngine.Utility;
namespace VoxelEngine.Game
{
public class WorldGenerator
{
... |
"use strict"
var express = require('express');
var app = express();
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'
});
var router = express.Router();
router.get('/accidents', function(req, res) {
var query = {
index: 'wildma... |
var generatetask = require('../source/ajgenesis/tasks/generate'),
createtask = require('../create'),
path = require('path'),
fs = require('fs'),
ajgenesis = require('ajgenesis');
exports['generate'] = function (test) {
test.async();
var cwd = process.cwd();
process.chdir('test');
var mod... |
#include <math.h>
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#define THREAD_COUNT 4
typedef struct {
int start;
int end;
} range_t;
void *calculate_range(void* range) {
range_t* curr_range = (range_t*)range;
void* result = (void*)1;
for (int i = curr_range->start; i < curr_range->en... |
package com.virtualfactory.screen.layer.components;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.<API key>;
import de.lessvoid.nifty.controls.ButtonClickedEvent;
import de.lessvoid.nifty.controls.Controller;
import de.lessvoid.nifty.controls.window.WindowControl;
import de.lessvoid.nifty.elements.Element;
i... |
const S$ = require('S$');
function loadSrc(obj, src) {
throw src;
}
const cookies = S$.symbol('Cookie', '');
const world = {};
if (cookies) {
if (/iPhone/.exec(cookies)) {
loadSrc(world, '/resources/' + cookies);
}
loadSrc(world, '/resources/unknown');
} else {
loadSrc(world, '/resources/fre... |
layout: post
title: "Problem 2_0"
modified:
categories: /AcceleratedC++/ch2
excerpt:
tags: []
image:
feature:
date: 2015-09-25T00:37:18-07:00
[Github Source](https://github.com/patricknyu/<API key>/tree/master/ch2/Question2_0)
Q:
Compile and run the program presented in this chapter.
A:
c++
#include <iostream>
#inclu... |
module.exports = function (seneca, util) {
//var Joi = util.Joi
} |
package Digivolver;
public class Digivolution{
private Digimon digimon;
private int minDp = 0;
private int maxDp = 0;
public boolean isWithinDp(int minDp, int maxDp){
return this.minDp<=maxDp && this.maxDp>=minDp;
}
public Digivolution(Digimon digimon, int minDp, int maxDp) {
thi... |
import re
import hashlib
FNAME_MATCH = re.compile(r'/([^/]+)$') # From the last slash to the end of the string
PREFIX = re.compile(r'([^:]+://)(/)?(.+)') # Check for a prefix like data://
def getParentAndBase(path):
match = PREFIX.match(path)
if match is None:
if path.endswith('/'):
stripp... |
#ifndef VECTOR4_H
#define VECTOR4_H
#include "gamemath_internal.h"
<API key>
<API key> class <API key> Vector4 : public AlignedAllocation
{
friend class Matrix4;
friend GAMEMATH_INLINE Vector4 operator +(const Vector4 &a, const Vector4 &b);
friend GAMEMATH_INLINE Vector4 operator -(const Vector4 &a, const Vector4 &b);
... |
#include "tiledb/sm/query/query.h"
#include "tiledb/common/heap_memory.h"
#include "tiledb/common/logger.h"
#include "tiledb/common/memory.h"
#include "tiledb/sm/array/array.h"
#include "tiledb/sm/enums/query_status.h"
#include "tiledb/sm/enums/query_type.h"
#include "tiledb/sm/fragment/fragment_metadata.h"
#include "t... |
class <API key> < ActiveRecord::Migration[5.0]
def change
create_table :product_materials do |t|
t.belongs_to :product, index: true
t.string :name
t.string :material
t.string :description
t.timestamps
end
end
end |
'use strict'
var test = require('tap').test
var strip = require('./')
test('stripFalsy', function(t) {
t.plan(5)
t.deepEqual(strip(null), {})
t.deepEqual(strip('test'), {})
t.deepEqual(strip(13), {})
t.deepEqual(strip(), {})
var input = {
a: false
, b: 0
, c: null
, d: undefined
, e: ''
, f: '... |
<?php
defined('IN_IA') or exit('Access Denied');
load()->func('file');
load()->model('article');
load()->model('account');
$dos = array('display', 'post', 'del');
$do = in_array($do, $dos) ? $do : 'display';
<API key>('platform_site');
$_W['page']['title'] = ' - ';
$category = pdo_fetchall("SELECT id,parentid,name FROM... |
<?php
namespace Kr\OAuthClient\Credentials;
class Client extends AbstractCredentials
{
protected $clientId, $clientSecret, $redirectUri;
/**
* Client constructor.
* @param string $clientId
* @param string $clientSecret
* @param string $redirectUri
*/
public function __construct($cli... |
$(function () {
$('.imageUploadMultiple').each(function (index, item) {
var $item = $(item);
var $group = $item.closest('.form-group');
var $innerGroup = $item.find('.form-group');
var $errors = $item.find('.errors');
var $input = $item.find('.imageValue');
var flow =... |
#!/bin/bash
f="$1"
d="$2"
CURRENT_DIR=$( pushd $(dirname $0) >/dev/null; pwd; popd >/dev/null )
if [ ! -d $d ]; then
echo "$d is not found"
exit 2
fi
F="$d/$f"
if [ -f "$F" ]; then
s1=`wc -c "$f" | cut -d ' ' -f 1`
s2=`wc -c "$F" | cut -d ' ' -f 1`
if [ $s1 -eq $s2 ]; then
cksum1=`md5sum -b "$f" | cut -d ... |
module Schema
include Virtus.module(:constructor => false, :mass_assignment => false)
def initialize
<API key>
end
def attributes
attribute_set.get(self)
end
def to_h
attributes
end
end |
#!/bin/sh
# CYBERWATCH SAS - 2017
# Security fix for DSA-3663-1
# Operating System: Debian 8 (Jessie)
# Architecture: i386
# - xen:4.4.1-9+deb8u7
# - libxen-4.4:4.4.1-9+deb8u7
# - libxenstore3.0:4.4.1-9+deb8u7
# - libxen-dev:4.4.1-9+deb8u7
# - xenstore-utils:4.4.1-9+deb8u7
# - xen-utils-common:4.4.1-9+deb8u... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['exports'], factory);
} else if (typeof exports === 'object') {
factory(exports);
} else {
factory((root.commonJsStrict = {}));
}
}(this, function (exports) {
function Node(obj, dimension, par... |
// function that finds the sum of two parameters
function findSum(firstnr, secondnr){
return firstnr + secondnr;
}
//function that finds the product of two parameters
function findProduct(firstnr, secondnr){
return firstnr * secondnr;
}
/* threeOperation calls the operation parameter as a function so it's able ... |
// LJRouterPath.h
// <API key>
#import <Foundation/Foundation.h>
@interface LJRouterPath : NSObject
@property (nonatomic, strong) NSString *schema;
@property (nonatomic, strong) NSArray *components;
@property (nonatomic, strong) NSDictionary *params;
- (instancetype)initWithRouterURL:(NSString *)URL;
@end |
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Everyplay.XCodeEditor
{
public class XCConfigurationList : PBXObject
{
public XCConfigurationList(string guid, PBXDictionary dictionary) : base(guid, dictionary)
{
internalNewlines = true;
}
}
} |
// GPG4Browsers - An OpenPGP implementation in javascript
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU... |
"""
train supervised classifier with what's cooking recipe data
objective - determine recipe type categorical value from 20
"""
import time
from features_bow import *
from features_word2vec import *
from sklearn.preprocessing import StandardScaler
from sklearn.ensemble import <API key>, <API key>
from sklearn.linear_mo... |
# -*- coding: utf-8 -*-
# This file is part of Invenio.
# Invenio is free software; you can redistribute it and/or modify it
"""Configuration options for Invenio-Search.
The documentation for the configuration is in docs/configuration.rst.
"""
# ELASTIC configuration
<API key> = None
"""Dictionary of options for the El... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Setting extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at'];
protected $table = 'avatars';
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>DSJCL</title>
<!-- Bootstrap core CSS -->
<link href="vendor/boo... |
package net.robobalasko.dfa.gui;
import net.robobalasko.dfa.core.Automaton;
import net.robobalasko.dfa.core.exceptions.<API key>;
import net.robobalasko.dfa.core.exceptions.<API key>;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentLi... |
types:
- utility
id: <API key>
Converts all tabs in a string to a given number of spaces, `4` by default. This is a boring modifier to output examples of. Here's just a few examples on how the syntax looks.
{{ string | to_spaces }}
{{ string | to_spaces:2 }} |
from __future__ import unicode_literals
from django.apps import AppConfig
class RfhistoryConfig(AppConfig):
name = 'RFHistory' |
#include "main.h"
#include "db.h"
#include "init.h"
#include "bitcoinrpc.h"
using namespace json_spirit;
using namespace std;
// Return average network hashes per second based on the last 'lookup' blocks,
// or from the last difficulty change if 'lookup' is nonpositive.
// If 'height' is nonnegative, compute the estima... |
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Interlude</title>
</head>
<link href="css/interlude.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/j... |
#ifndef _PARSER_HPP
#define _PARSER_HPP
#include <cassert>
#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include "toyobj.hpp"
#include "lexer.hpp"
#include "toy.hpp"
#include "ast.hpp"
class ParserContext {
public:
explicit ParserContext(LexerContext &lexer)
: lexer_(lexer) {... |
require 'aws-sdk'
require 'awspec/resource_reader'
require 'awspec/helper/finder'
module Awspec::Type
class Base
include Awspec::Helper::Finder
include Awspec::<API key>
attr_accessor :account
def resource_via_client
raise 'this method must be override!'
end
def to_s
type = self.cl... |
// EPTTimer.h
// PodcastTimer
#import <Foundation/Foundation.h>
@protocol EPTTimerDelegate <NSObject>
- (void)timerFired;
@end
@interface EPTTimer : NSObject
@property (nonatomic) id<EPTTimerDelegate> delegate;
- (void)scheduleTimer;
- (void)stopTimer;
@end |
package core
import (
. "github.com/smartystreets/goconvey/convey"
"strings"
"testing"
)
func TestValidateSymbol(t *testing.T) {
Convey("Given a node name validation function", t, func() {
cases := []struct {
title string
name string
success bool
... |
require './lib/graph'
require './lib/path_measurer'
require './lib/path_searcher'
require './lib/path_explorer'
require './lib/<API key>'
require './lib/<API key>'
require './lib/<API key>'
edges = []
$stdin.each_line do | line |
line.strip!
edges.concat line.split(/\s|,\s|,/)
end
graph = Graph.new
path_measure... |
export default {
FETCH_TAGS_PENDING: Symbol("FETCH_TAGS_PENDING"),
FETCH_TAGS_SUCCESS: Symbol("FETCH_TAGS_SUCCESS"),
FETCH_TAGS_FAILURE: Symbol("FETCH_TAGS_FAILURE"),
FILTER_TAGS: Symbol("FILTER_TAGS"),
ORDER_TAGS: Symbol("ORDER_TAGS")
}; |
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
import { Observable } from 'rxjs/Observable';
import { AngularFireDatabase, <API key> } from 'angularfire2/database';
import { AngularFireAuth } from 'angularfire2/auth';
import * as firebase from 'firebase/app';
import {Http, Headers} ... |
/**
*
* @function
* @param {Array|arraylike} value
* @param {Function} cmd
* @param {any} context
* @returns {?}
*/
export default function eachValue(value, cmd, context, keepReverse) {
if (value === undefined || value === null) return undefined;
const size = (0 | value.length) - 1;
for (let index = ... |
package scalation.analytics
import scalation.linalgebra.{MatriD, MatrixD, VectorD}
/** The `Centering` object is used to center the input matrix 'x'. This is done by
* subtracting the column means from each value.
*/
object Centering
{
/** Center the input matrix 'x' to zero mean, columnwise, by subtracting the... |
const should = require('should'),
sinon = require('sinon'),
_ = require('lodash'),
settingsCache = require('../../../../server/services/settings/cache'),
common = require('../../../../server/lib/common'),
controllers = require('../../../../server/services/routing/controllers'),
TaxonomyRouter = ... |
<?php
use Snscripts\HtmlHelper\Html;
use Snscripts\HtmlHelper\Services;
use Snscripts\HtmlHelper\Helpers;
class HtmlTest extends \<API key>
{
public function <API key>()
{
$this->assertInstanceOf(
'Snscripts\HtmlHelper\Html',
new Html(
new Helpers\Form(
... |
<h1>Access Denied</h1>
<p>You have logged in correctly, but you have tried to access a page without a high enough level of security clearance.</p> |
<!DOCTYPE html PUBLIC "-
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_6.js"></script>
<script type="text/javascript" sr... |
<!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.9.1"/>
<title>V8 API Reference Guide for io.js v2.0.1 - v2.3.0: Member List</title>
<link href="tabs.css... |
require_relative '../user'
RSpec.describe 'Tapjoy::LDAP::API::User' do
include_context 'user'
describe '#create' do
let(:ldap_attr) {{
uid: "test.user",
cn: "Test User",
objectclass: %w(
top
posixAccount
shadowAccount
inetOrgPerson
<API key>
per... |
import React from 'react';
import $ from 'jquery';
import _ from 'lodash';
import Block from './Block';
export default class BlockGrid extends React.Component {
constructor() {
super();
this.setDefaults();
this.setContainerWidth = this.setContainerWidth.bind(this);
this.handleWindowR... |
<?php
namespace Eni\MainBundle\DataFixtures\ORM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\<API key>;
use Doctrine\Common\Persistence\ObjectManager;
use Eni\MainBundle\Entity\Question;
use Eni\MainBundle\Entity\ReponseProposee;
class <API key> extends AbstractFixture implements ... |
{% extends "layout.html" %}
{% block page_title %} Add medication {% endblock %}
{% block head %}
{% include "includes/head.html" %}
{% include "includes/scripts.html" %}
{% endblock %}
{% block after_header %}
{{ banner.input() }}
{% endblock %}
{% block content %}
<main id="content" role="main" tabind... |
package com.exasol.adapter.dialects.bigquery;
import java.sql.Connection;
import java.sql.Types;
import com.exasol.adapter.AdapterProperties;
import com.exasol.adapter.dialects.IdentifierConverter;
import com.exasol.adapter.jdbc.<API key>;
import com.exasol.adapter.jdbc.JdbcTypeDescription;
import com.exasol.adapter.me... |
const chalk = require('chalk');
const Sequelize = require('sequelize');
// db server constant(s)
const dbName = '<API key>';
const url = process.env.DATABASE_URL || `postgres://localhost:5432/${dbName}`;
// notify the user we're about to do it
console.log(chalk.yellow(`Opening database connection to ${url}`))
// init t... |
#!/usr/bin/env bash
mkdir -p target/sandboxjava9jlink;
/usr/lib/jvm/java-9-oracle/bin/javac \
--module-path ./../java9module/target/sandboxjava9module \
-d target/sandboxjava9jlink \
$(find ./src/main/java -name "*.java") |
using System;
using Windows.Devices.Enumeration;
using Windows.Devices.Spi;
using Windows.Foundation.Metadata;
namespace <API key>
{
<summary>
Class for accessing the ADCDAC Pi from AB Electronics UK.
</summary>
public class ADCDACPi : IDisposable
{
private const string SPI_CONTROLLER_NAME =... |
FROM stilliard/pure-ftpd
ENV FTP_USER=ftpuser \
FTP_PASSWORD=ftpuser \
FTP_HOME_DIRECTORY=/share/ftp \
PASV_PORT_MIN=30000 \
PASV_PORT_MAX=30009 \
CONTAINER_USER_UID=ftpuser \
MAX_CLIENTS_NUMBER=50 \
MAX_CLIENTS_PER_IP=10 \
DOWNLOAD_LIMIT_KB=0 \
UPLOAD_LIMIT_KB=0 \
<API key>=0 \
... |
var system = require('system');
var args = system.args;
var url = "http://"+args[1],
filename = args[2]+".png",
timeout = args[3],
savePath = args[4],
page = require('webpage').create();
//setTimeout(function(){phantom.exit();}, timeout)
page.viewportSize = { width: 1200, height: 700 };
page.clipRect = { top: 0, left: ... |
class SiteController < <API key>
skip_before_filter :<API key><API key>
cattr_writer :cache_timeout
def self.cache_timeout
@@cache_timeout ||= 5.minutes
end
def show_page
url = params[:url]
if Array === url
url = url.join('/')
else
url = url.to_s
end
if @page = find_page(ur... |
namespace Vulcan.Core.DataAccess.Migrations.MigrationProviders
{
public enum ExecutionType
{
Insert,
InsertWithIdentity,
Update,
Delete
}
} |
<!-- Jumbotron Header -->
<header class="jumbotron hero-spacer" style="padding: 2em; text-align: center;">
<img style="max-width:100%; max-height:100%;" src="<?=base_url()?>assets/img/slogan.png">
<!
<h1>Read and let read!</h1>
<p>
Welcome to Discipulus, your humble start... |
# vimconfig
stuff from my vimrc breaks into pieces for keeping organised things more organised
Install
On Unix execute:
sh
#backup current vimrc file if existed
mv ~/.vimrc{,_backup}
#clone project into special folder
git clone https://github.com/iiey/vimconfig ~/.vim/bundle/vimconfig \
&& ln -sfn ~/.vim/bundle/vimconf... |
/* globals describe, before, beforeEach, after, afterEach, it */
'use strict';
const chai = require('chai');
const assert = chai.assert;
const expect = chai.expect;
chai.should();
chai.use(require('chai-things'));
chai.use(require('chai-arrays'));
describe('<%= pkgName %>', function () {
before('before', function () ... |
// PgpMimeTests.cs
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// all ... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Number7</source>
<translation>Σχετικά με το Number7</translation>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.