text stringlengths 3 1.05M |
|---|
cask 'google-adwords-editor' do
version :latest
sha256 :no_check
url 'https://dl.google.com/adwords_editor/Google_AdWords_Editor.dmg'
name 'Google AdWords Editor'
homepage 'https://adwords.google.com/home/tools/adwords-editor/?zd=1'
app 'Google AdWords Editor.app'
end
|
#include <objc/message.h>
#import "CDV.h"
#import "CDVCommandQueue.h"
#import "CDVViewController.h"
#import "CDVCommandDelegateImpl.h"
#import "CDVJSON_private.h"
// Parse JS on the main thread if it's shorter than this.
static const NSInteger JSON_SIZE_FOR_MAIN_THREAD = 4 * 1024; // Chosen arbitrarily.
// Execute m... |
using System.Collections.Generic;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Handlers;
using Orchard.Workflows.Services;
namespace Orchard.Workflows.Handlers {
public class WorkflowContentHandler : ContentHandler {
public WorkflowContentHandler(IWorkflowManager workflowManager) {
... |
namespace boost {
namespace serialization {
namespace stl {
// hash_set input
template<class Archive, class Container>
struct archive_input_hash_set
{
inline void operator()(
Archive &ar,
Container &s,
const unsigned int v
){
typedef BOOST_DEDUCED_TYPENAME Container::value_t... |
package org.apache.camel.processor;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class RandomLoadBalanceTest extends ContextTestSupport ... |
<?php
// Please update when phpunit needs to be reinstalled with fresh deps:
// Cache-Id: 2021-02-04 11:00 UTC
if ('cli' !== \PHP_SAPI && 'phpdbg' !== \PHP_SAPI) {
throw new Exception('This script must be run from the command line.');
}
error_reporting(-1);
global $argv, $argc;
$argv = $_SERVER['argv'] ?? [];... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="test.css">
<title>Zepto Ajax unit tests</title>
<script src="../vendor/evidence.js"></script>
<script src="evidence_runner.js"></script>
... |
local ipairs, pairs, next, pcall, select = ipairs, pairs, next, pcall, select
local string, math, table = string, math, table
-- lib apis caching
local X = MY
local UI, GLOBAL, CONSTANT, wstring, lodash = X.UI, X.GLOBAL, X.CONSTANT, X.wstring, X.lodash
-------------------------------------------------------------------... |
from .identity import Identity
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_paged import OperationPaged
from .identity_paged import IdentityPaged
from .managed_service_identity_client_enums import (
UserAssignedIdentities,
)
__all__ = [
'Identity',
'Opera... |
'use strict';
(function ($) {
var dragging, draggingHeight, placeholders = $();
$.fn.sortable = function (options) {
var method = String(options);
options = $.extend({
connectWith: false,
placeholder: null,
dragImage: null
}, options);
return this.each(function () {
if (m... |
int main(void) {
int BOOST_LOCAL_FUNCTION( (auto int x) (register int y) ) {
return x + y;
} BOOST_LOCAL_FUNCTION_NAME(add)
BOOST_TEST(add(1, 2) == 3);
return boost::report_errors();
}
#endif // AUTO_DECLARATIONS
|
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script src="resources/shared.js"></script>
</head>
<body>
<script src="resources/cursor-added-bug.js"></script>
</body>
</html>
|
/*! formstone v0.8.45 [number.css] 2016-04-05 | MIT License | formstone.it */
/**
* @class
* @name .fs-number-element
* @type element
* @description Target elmement
*/
/**
* @class
* @name .fs-number
* @type element
* @description Base widget class
*/
/**
* @class
* @name .fs-number.fs-number-d... |
trello package
==============
Module contents
---------------
.. automodule:: trello
:members:
:undoc-members:
:show-inheritance:
Submodules
----------
trello.util module
------------------
.. automodule:: trello.util
:members:
:undoc-members:
:show-inheritance:
|
#import <UIKit/UIKit.h>
/*!
@typedef FBProfilePictureCropping enum
@abstract
Type used to specify the cropping treatment of the profile picture.
@discussion
*/
typedef enum {
/*! Square (default) - the square version that the Facebook user defined. */
FBProfilePictureCroppingSquare = 0,
... |
package com.pdfjet;
import java.util.*;
/**
* This class was designed and implemented by Jon T. Swanson, Ph.D.
*
* Refactored and integrated into the project by Eugene Dragoev - 2nd June 2012.
* Used to create composite text line objects.
*/
public class CompositeTextLine implements Drawable {
private s... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Mycologia 39(2): 225 (1947)
#### Original name
Lagenidium humanum Karling, 1947
### Remarks
null |
package org.springframework.boot.test.web.reactive.server;
import org.junit.Test;
import org.junit.runner.RunWith;
import reactor.core.publisher.Mono;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.cont... |
<?php
/** Error reporting */
error_reporting(E_ALL);
date_default_timezone_set('Europe/London');
/** PHPExcel_IOFactory */
require_once '../Classes/PHPExcel/IOFactory.php';
echo date('H:i:s') . " Load from SYLK file\n";
$objPHPExcel = PHPExcel_IOFactory::load("SylkTest.slk");
echo date('H:i:s') . ... |
"""Remove ML2 Cisco Credentials DB
Revision ID: 4eca4a84f08a
Revises: 33c3db036fe4
Create Date: 2014-04-10 19:32:46.697189
"""
# revision identifiers, used by Alembic.
revision = '4eca4a84f08a'
down_revision = '33c3db036fe4'
from alembic import op
from neutron.db import migration
from neutron.db.migration.alembic... |
<div class="row brew-filter-bar">
<div class="col-xs-6 brew-sort-by">
<div class="form-inline">
<label id="sortByLabel" for="sortBy">Sort by: </label>
<select id="sortBy" class="form-control input-sm" ng-options="key as value for (key, value) in sortByDictionary" ng-model="sortBy"
... |
package org.apache.camel.opentracing.decorators;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.junit.Test;
import org.mockito.Mockito;
import static org.junit.Assert.assertEquals;
public class RabbitmqSpanDecoratorTest {
@Test
public void testGetDestinationHeaderTopic() {
... |
c this file contains the following user-callable routines:
c
c
c routine iddp_asvd computes the SVD, to a specified precision,
c of an arbitrary matrix. This routine is randomized.
c
c
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
c
c
c
c
subroutine iddp_asvd(lw,eps,m... |
#include "config.h"
#include "platform/fonts/harfbuzz/HarfBuzzFace.h"
#include "platform/fonts/FontPlatformData.h"
#include "platform/fonts/SimpleFontData.h"
#include "platform/fonts/harfbuzz/HarfBuzzShaper.h"
#include <ApplicationServices/ApplicationServices.h>
#include "hb.h"
namespace blink {
static hb_positio... |
from tests.unit import unittest
from tests.compat import mock
from boto.ec2.elb import ELBConnection
from boto.ec2.elb import LoadBalancer
DISABLE_RESPONSE = b"""<?xml version="1.0" encoding="UTF-8"?>
<DisableAvailabilityZonesForLoadBalancerResult xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
<requestId>3be15... |
class test_contextfree_followset : public test_fixture {
public:
test_contextfree_followset() : test_fixture("contextfree-followset") { }
virtual void run_tests();
};
|
// Namespace
var mejs = mejs || {};
// version number
mejs.version = '2.3.2';
// player number (for missing, same id attr)
mejs.meIndex = 0;
// media types accepted by plugins
mejs.plugins = {
silverlight: [
{version: [3,0], types: ['video/mp4','video/m4v','video/mov','video/wmv','audio/wma','audio/m4a','audio/m... |
<?php
/**
* Represent a parameter item
*/
class PagSeguroParameterItem
{
/**
* Allow add extra information to order
*
* @var string
*/
private $key;
/**
* Value of corresponding key
*
* @var mixed
*/
private $value;
/**
* Used for grouping values ... |
Run `grunt` to lint and run the tests. |
package algorithmprovider
import (
"fmt"
"testing"
utilfeature "k8s.io/apiserver/pkg/util/feature"
utilfeaturetesting "k8s.io/apiserver/pkg/util/feature/testing"
"k8s.io/kubernetes/pkg/features"
"k8s.io/kubernetes/pkg/scheduler/factory"
)
var (
algorithmProviderNames = []string{
factory.DefaultProvider,
... |
<!-- Target for toggling the sidebar `.sidebar-checkbox` is for regular
styles, `#sidebar-checkbox` for behavior. -->
<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox">
<!-- Toggleable sidebar -->
<div class="sidebar" id="sidebar">
<div class="sidebar-item">
<img width="140" src="{{ si... |
/**
* Name : TableModel.js
* Module : Norris::Lib::DataLayer
* Location : /norris/lib/dataLayer
*
* History :
* Version Date Programmer
* =================================================
* 0.0.2 2015/05/12 Sartor Michele
* -------------------------------------------------
* Reviso... |
using System.Text.Json;
using Azure.Core;
namespace Azure.Maps.Search.Models
{
internal partial class BatchResultSummary
{
internal static BatchResultSummary DeserializeBatchResultSummary(JsonElement element)
{
Optional<int> successfulRequests = default;
Optional<int> to... |
package pod
import "k8s.io/kubernetes/pkg/api"
const (
// TODO: to be de!eted after v1.3 is released. PodSpec has a dedicated Hostname field.
// The annotation value is a string specifying the hostname to be used for the pod e.g 'my-webserver-1'
PodHostnameAnnotation = "pod.beta.kubernetes.io/hostname"
// TODO... |
package github
import (
"context"
"fmt"
"time"
)
// ContributorStats represents a contributor to a repository and their
// weekly contributions to a given repo.
type ContributorStats struct {
Author *Contributor `json:"author,omitempty"`
Total *int `json:"total,omitempty"`
Weeks []WeeklyStats `json:... |
#include "TH1D.h"
#include "TH2D.h"
#include "TCanvas.h"
#include "TFile.h"
#include "TLegend.h"
#include "AliPID.h"
#include <iostream>
#include "THnSparseDefinitions.h"
void normaliseHist(TH2* h)
{
if (!h)
return;
for (Int_t binX = 1; binX <= h->GetNbinsX(); binX++) {
for (Int_t binY = 1; binY <= h... |
THREE.TypedArrayUtils = {};
/**
* In-place quicksort for typed arrays (e.g. for Float32Array)
* provides fast sorting
* useful e.g. for a custom shader and/or BufferGeometry
*
* @author Roman Bolzern <roman.bolzern@fhnw.ch>, 2013
* @author I4DS http://www.fhnw.ch/i4ds, 2013
* @license MIT License <http://www.o... |
# ----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org... |
This is a Apache Cordova based example that harnesses App Services push notifications. This app assumes you have already configured your bundle identifier with Apple to recieve push notifications, and that you've already setup a notifier on Apigee App Services.
You'll need to edit a few things to get started with rec... |
{% extends 'base.html' %}
{% block head %}
{{wizard.form.media }}
{% endblock %}
{% block bodyclass %}register{% endblock %}
{% block script %}
<script>
URL_KEY_MAP[104]="{% url "index" %}";
</script>
{% endblock %}
{% block content %}
<p>Step {{ wizard.steps.step1 }} of {{ wizard.steps.count }}</p>
... |
namespace base {
class MessageLoopProxy;
}
// Used to return a dummy context (normally the context is on the IO thread).
// The one here can be run on the main test thread. Note that this can lead to
// a leak if your test does not have a BrowserThread::IO in it because
// URLRequestContextGetter is defined as a Refer... |
var $export = require('./_export')
, $parseFloat = require('./_parse-float');
// 20.1.2.12 Number.parseFloat(string)
$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', {parseFloat: $parseFloat}); |
define(["app/app",
"components/TransitionalRoute",
"components/AuthorizableRoute"], function(App) {
"use strict";
App.SessionDestroyRoute = Ember.Route.extend(App.TransitionalRoute,
App.AuthorizableRoute, {
setupController: function(controller, mod... |
package configuration
import (
"fmt"
"sync"
"time"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/util/wait"
)
const (
defaultInterval = 1 * time.Second
defaultFailureThreshold = 5
defaultBootstrapRetries = 5
defaultBootstrapGraceperiod = 5 * time.Second
)
var (
ErrNotRea... |
.. _kernel_ridge:
===========================
Kernel ridge regression
===========================
.. currentmodule:: sklearn.kernel_ridge
Kernel ridge regression (KRR) [M2012]_ combines :ref:`ridge_regression`
(linear least squares with l2-norm regularization) with the `kernel trick
<https://en.wikipedia.org/wiki/Ke... |
namespace extensions {
class VpnThreadExtensionFunction : public UIThreadExtensionFunction {
public:
void SignalCallCompletionSuccess();
void SignalCallCompletionFailure(const std::string& error_name,
const std::string& error_message);
protected:
virtual ~VpnThreadExtension... |
//---------------------------------------------------------------------
// <copyright file="PayloadGenerator.cs" company="Microsoft">
// Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
// </copyright>
//------------------------------------... |
using testing::NiceMock;
using testing::Return;
namespace Envoy {
namespace Extensions {
namespace HttpFilters {
namespace AdaptiveConcurrency {
namespace Controller {
namespace {
GradientControllerConfig makeConfig(const std::string& yaml_config,
NiceMock<Runtime::MockLoader>& run... |
__karma__.loaded = function() {};
System.config({
packages: {
'base/app/js': {
defaultExtension: false,
format: 'register',
map: Object.keys(window.__karma__.files).
filter(onlyAppFiles).
reduce(function createPathRecords(pathsMapping, appPath) {
// creates... |
package org.apache.ode.bpel.compiler.bom;
import java.util.List;
import org.w3c.dom.Element;
/**
* Legacy (BPEL 1.1) representation of a <code><switch></code> activity.
* @author Maciej Szefler - m s z e f l e r @ g m a i l . c o m
*
*/
public class SwitchActivity extends Activity {
public SwitchActi... |
import { browser, element, by } from 'protractor';
export class HelloAngularPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.css('app-root h1')).getText();
}
}
|
/**
* Room games
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Room games are an abstract representation of an activity that a room
* can be focused on, such as a battle, tournament, or chat game like
* Hangman. Rooms are limited to one roomgame at a time.
*
* Room games can keep track of designated play... |
<!--
Copyright (C) 2014 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web.Http;
using System.Web.Http.Description;
using ... |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/empty_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/... |
#import <arpa/inet.h>
#import <ifaddrs.h>
#import <netdb.h>
#import <sys/socket.h>
#import <CoreFoundation/CoreFoundation.h>
#import "MParticleReachability.h"
NSString *MParticleReachabilityChangedNotification = @"MParticleReachabilityChangedNotification";
#pragma mark - Supporting functions
#define kShouldPri... |
From: [Coding for Community Potential Project List](https://docs.google.com/spreadsheets/d/17_MmnfBxmuoNEH4jGbwZZ37gGcLaOS_5dgIZIZtJivM/edit#gid=1297793607)
> Municipalities often have local business directories. Many in Sustainable Jersey have directories highlighting green businesses or farms, vendors that use local... |
<tt xmlns="http://www.w3.org/2006/10/ttaf1"> <body> <div xml:id="captions">
<p begin="00:00:00" end="00:00:05">It's easy just to hear the cost savings part
of this but I'm looking at my notes from the
</p>
<p begin="00:00:05" end="00:00:11">remarks and I'm seeing 'User needs first and
foremost...', 'How does this mak... |
#ifndef DatabaseDetails_h
#define DatabaseDetails_h
#if ENABLE(SQL_DATABASE)
#include <wtf/Threading.h>
#include <wtf/text/WTFString.h>
namespace WebCore {
class DatabaseDetails {
public:
DatabaseDetails()
: m_expectedUsage(0)
, m_currentUsage(0)
{
#ifndef NDEBUG
m_thread = current... |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Isaria hystricina P. Karst.
### Remarks
null |
<?php
namespace Fuel\Core;
class File_Handler_Directory
{
/**
* @var string path to the file
*/
protected $path;
/**
* @var File_Area
*/
protected $area;
/**
* @var array listing of files and directories within this directory
*/
protected $content = array();
protected function __construct($p... |
<a href='https://github.com/angular/angular.js/edit/v1.2.x/src/ng/compile.js?message=docs($compile.directive.Attributes)%3A%20describe%20your%20change...#L2017' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a>
<a href='https://github.com/angular/angular.js/tree/... |
declare module ng.sanitize {
///////////////////////////////////////////////////////////////////////////
// SanitizeService
// see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/service/$sanitize
///////////////////////////////////////////////////////////////////////////
interface ISanitizeS... |
ACCEPTED
#### According to
Interim Register of Marine and Nonmarine Genera
#### Published in
null
#### Original name
null
### Remarks
null |
package com.seleniumsoftware.SMPPSim;
import com.seleniumsoftware.SMPPSim.pdu.*;
import java.util.Vector;
import java.util.logging.Logger;
public class MessageQueue {
private static Logger logger = Logger.getLogger("com.seleniumsoftware.smppsim");
private String queueName;
private Vector<Pdu> queue;
... |
// .NAME vtkDataObject - helper class to get VTK data object types as string and instantiate them
// .SECTION Description
// vtkDataObjectTypes is a helper class that supports conversion between
// integer types defined in vtkType.h and string names as well as creation
// of data objects from either integer or string ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using System.Threadi... |
<!doctype html>
<html>
<head>
<title>Routing Reuse Lifecycle Example</title>
<base href="/">
<script src="http://cdn.rawgit.com/google/traceur-compiler/90da568c7aa8e53ea362db1fc211fbb4f65b5e94/bin/traceur-runtime.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/systemjs/0.18.4/system.js"></scri... |
/**
* ### .getPathValue(path, object)
*
* This allows the retrieval of values in an
* object given a string path.
*
* var obj = {
* prop1: {
* arr: ['a', 'b', 'c']
* , str: 'Hello'
* }
* , prop2: {
* arr: [ { nested: 'Universe' } ]
* ,... |
package com.cardpay.pccredit.riskControl.dao.Comdao;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cardpay.pccredit.riskControl.model.NplsInfomation;
import com.... |
/**
* @module ol/control/Zoom
*/
import {inherits} from '../index.js';
import {listen} from '../events.js';
import EventType from '../events/EventType.js';
import Control from '../control/Control.js';
import {CLASS_CONTROL, CLASS_UNSELECTABLE} from '../css.js';
import {easeOut} from '../easing.js';
/**
* @typedef ... |
/** @file
* Implementação de uma deque persistente de acordo com o capítulo 3.
* Veja Deque para mais informação.
*/
#ifndef PERSISTENCE_DEQUE1_HPP_
#define PERSISTENCE_DEQUE1_HPP_
#include "Stack.hpp"
namespace persistence {
namespace deque1 {
/** Nó da deque.
* Como a técnica é a mesma, precisamos do mesmo n... |
namespace json_schema_compiler {
namespace test_util {
scoped_ptr<base::Value> ReadJson(const base::StringPiece& json) {
int error_code;
std::string error_msg;
scoped_ptr<base::Value> result(base::JSONReader::ReadAndReturnError(
json,
base::JSON_ALLOW_TRAILING_COMMAS,
&error_code,
&error_... |
The following changelog contains a summary of changes for each release, along with the contributors we can thank.
For more detail on these changes, check out the [commit log](https://github.com/elwayman02/mini-lr/commits/master).
### 0.1.8 (Sept 25, 2015)
Update body-parser version (@tardyp)
### 0.1.7 (Sept 24, 201... |
'use strict';
if (process.env.NODE_ENV === "production") {
module.exports = require("./core.cjs.prod.js");
} else {
module.exports = require("./core.cjs.dev.js");
}
|
<?php
require_once 'Zend/Tag/Cloud/Decorator/HtmlCloud.php';
/**
* @category Zend
* @package Zend_Tag
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Composition;
using Microsoft.CodeAnalysis.Host;
using Microsoft.CodeAnalysis.Host.Mef;
... |
import * as React from 'react'
import { IAutocompletionProvider } from './index'
import { GitHubUserStore } from '../../lib/stores'
import { GitHubRepository } from '../../models/github-repository'
import { Account } from '../../models/account'
import { IMentionableUser } from '../../lib/databases/index'
/** An autoc... |
Dummy::Application.configure do |config|
dummy = File.expand_path "../..", __FILE__
database_yml = File.join(dummy, "config/database.yml")
config.database_configuration = YAML.load File.read(database_yml)
config.db_dir = File.join(dummy, "db")
config.env = :test
co... |
import chai, { AssertionError } from 'chai';
import * as DomTestingLibrary from '@testing-library/dom';
import type { ElementHandle } from 'playwright';
// https://stackoverflow.com/a/46755166/3406963
declare global {
namespace Chai {
interface Assertion {
/**
* Checks if the element handle is actua... |
module Fog
module Network
class OpenStack
class Real
# List all security group rules
#
# ==== Parameters
# * options<~Hash>:
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# * 'security_group_rules'<~Array>:
... |
/**
* Returns a new function that will return the value
*/
function constant(value){
return function() {
return value;
};
}
module.exports = constant;
|
namespace System.ComponentModel
{
public delegate void DoWorkEventHandler(object sender, DoWorkEventArgs e);
public class DoWorkEventArgs : EventArgs
{
private readonly object _argument;
private object _result;
private bool _cancel;
public DoWorkEventArgs(object argument)
... |
A beautiful command-line prompt for node.js
## Features
* prompts the user for input
* supports validation and defaults
* hides passwords
## Usage
Using prompt is relatively straight forward. There are two core methods you should be aware of: `prompt.get()` and `prompt.addProperties()`. There methods take strings re... |
import imp
import os
import sys
from nova.tests.baremetal.db import base as bm_db_base
TOPDIR = os.path.normpath(os.path.join(
os.path.dirname(os.path.abspath(__file__)),
os.pardir,
os.pardir,
os.pardir))
B... |
/* $Id$ */
#ifndef PHP_MAIL_H
#define PHP_MAIL_H
PHP_FUNCTION(mail);
PHP_MINFO_FUNCTION(mail);
PHP_FUNCTION(ezmlm_hash);
PHPAPI extern int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd TSRMLS_DC);
#endif /* PHP_MAIL_H */
|
export default (function (innerThis, boundThis) {
if (innerThis !== boundThis) {
throw new TypeError("Cannot instantiate an arrow function");
}
}); |
/**
* This is a stub for the Phaser Debug Class.
* It allows you to exclude the default Debug from your build, without making Game crash.
*/
var debugNoop = function () {};
Phaser.Utils.Debug = debugNoop;
Phaser.Utils.Debug.prototype = {
isDisabled: true,
boot: debugNoop,
preUpdate: debugNoop,
res... |
<?php namespace Illuminate\Validation;
use Closure;
use DateTime;
use Countable;
use Exception;
use DateTimeZone;
use RuntimeException;
use BadMethodCallException;
use InvalidArgumentException;
use Illuminate\Support\Fluent;
use Illuminate\Support\MessageBag;
use Illuminate\Contracts\Container\Container;
use Symfony\C... |
/*! UIkit 2.13.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/* ========================================================================
Component: Flex
========================================================================== */
.uk-flex {
display: -ms-flexbox;
display: -webkit-flex;
disp... |
package io.sarl.lang.core.tests.core;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import java.util.UUID;
import org.junit.Before;
import or... |
package client
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
"strings"
"testing"
"golang.org/x/net/context"
"github.com/docker/docker/api/types/swarm"
)
func TestSwarmUnlockError(t *testing.T) {
client := &Client{
client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")),
}
err ... |
/**
* <h2>Partial-data mapreduce implementation of Random Decision Forests</h2>
*
* <p>The builder splits the data, using a FileInputSplit, among the mappers.
* Building the forest and estimating the oob error takes two job steps.</p>
*
* <p>In the first step, each mapper is responsible for growing a number of tr... |
import os
import sys
import tempfile
import operator
import functools
import itertools
import re
import contextlib
import pickle
from setuptools.extern import six
from setuptools.extern.six.moves import builtins, map
import pkg_resources
if sys.platform.startswith('java'):
import org.python.modules.posix.PosixMo... |
import sys
import signal
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models import get_app, get_apps
from django.test import _doctest as doctest
from django.test.utils import setup_test_environment, teardown_test_environment
from django.test.testcases import ... |
title: Customizing Lock
description: This tutorial will show you how to customize the Lock widget UI.
budicon: 285
---
<%= include('../../../_includes/_package', {
org: 'auth0-samples',
repo: 'auth0-ios-swift-v2-sample',
path: '08-Customizing-Lock',
requirements: [
'CocoaPods 1.1.1',
'Version 8.2 (8C38... |
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp2913Component } from './comp-2913.component';
describe('Comp2913Component', () => {
let component: Comp2913Component;
let fixture: ComponentFixture<Comp2913Component>;
beforeEach(async(() => {
TestBed.configureTestingM... |
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms.
#region Using Statements
using System;
using WaveEngine.Common.Math;
using WaveEngine.Framework;
using WaveEngine.Framework.Graphics;
#endregion
namespace WaveEngine.Components.GameActions
{
/// <summary>
/// Game acti... |
@import url(uno.css);
/* Modifications */
table {
width: 100%;
margin-bottom: 20px;
border: 1px solid #ddd;
border-collapse: collapse;
border-left: none;
word-break: normal;
font-size:14px;
}
td {
width: 20%;
padding: 8px;
border: 1px solid #ddd;
line-height: 20px;
vert... |
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apa... |