text stringlengths 3 1.05M |
|---|
<template name="afInputDateTimeLocal_bootstrap3">
<input type="datetime-local" value="{{this.value}}" {{attsPlusFormControlClass}}/>
</template>
|
ALTER DATABASE DEFAULT CHARACTER SET = utf8;
#
# Table structure for table 'Japanese_Factory_Masters'
#
DROP TABLE IF EXISTS `japanese_factory_masters`;
CREATE TABLE `japanese_factory_masters` (
`id` int(11) unsigned NOT NULL auto_increment,
`name` varchar(255) default NULL,
PRIMARY KEY (`id`)
) ENG... |
layout: post
title: "Introdução a MEAN Stack"
subtitle: "Construindo um servidor de páginas estáticas com NodeJS + Express"
date: 2015-03-14 23:11:48
author: "Bruno Milhan"
header-img: "img/home-bg.jpg"
---
Olá;
Neste primeiro post sobre MEAN Stack veremos o básico necessário para const... |
.. rst-class:: outdated
Checkers
========
.. danger::
We're sorry but **this documentation section is outdated**. Please have that in mind when trying to use it.
You can help us making documentation up to date via Sylius Github. Thank you!
ItemCountRuleChecker
--------------------
This class checks if item c... |
namespace com { namespace microsoft { namespace OICBridge { namespace core { namespace rule { namespace engine {
public interface class IengineConsumer
{
event Windows::Foundation::TypedEventHandler<engineConsumer^, Windows::Devices::AllJoyn::AllJoynSessionLostEventArgs^>^ SessionLost;
event Windows::Foundatio... |
using System.Linq;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.OData;
using Microsoft.WindowsAzure.Mobile.Service;
using Microsoft.WindowsAzure.Mobile.Service.Security;
using TicTacToeMobileService.DataObjects;
using TicTacToeMobileService.Models;
name... |
\hypertarget{interface_g_f_line_string}{}\section{G\+F\+Line\+String Class Reference}
\label{interface_g_f_line_string}\index{G\+F\+Line\+String@{G\+F\+Line\+String}}
A \hyperlink{interface_g_f_line_string}{G\+F\+Line\+String} is a collection of G\+F\+Points.
{\ttfamily \#import $<$Geo\+Features/\+G\+F\+Line\+S... |
package org.asynchttpclient.test;
import static java.nio.charset.StandardCharsets.*;
import static org.testng.Assert.assertEquals;
import org.apache.commons.io.FileUtils;
import org.eclipse.jetty.security.ConstraintMapping;
import org.eclipse.jetty.security.ConstraintSecurityHandler;
import org.eclipse.jetty.security... |
define(['angular'], function(angular) {
'use strict';
angular.module('collection', [])
.factory('Collection', function() {
var defaults = {
sortFunc: null,
limit: null,
equals: function(item, other) {
return item.id == other.id;
},
onUpdate: function(data... |
@charset "utf-8";
/*heard*/
body{ background:#bebebe url(bg.gif);}
.wrap{ max-width:1000px;margin:0 auto; }
.header{ height:170px; background:#4c7298 url(hd_bg.gif);}
.header .wrap{}
.header .user_img{ float:left; margin:60px 20px 0 0; }
.header .user_img img{border-left:none; border-radius:50px;-webkit-border-radius:... |
(function(){
"use strict";
angular
.module('guh.ui')
.directive('guhColorPicker', colorPicker);
colorPicker.$inject = ['$log', '$http', '$compile', '$timeout', 'DSState', 'libs', 'Input'];
function colorPicker($log, $http, $compile, $timeout, DSState, libs, Input) {
var directive = {
com... |
#pragma once
#include <aws/m2/MainframeModernization_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MainframeModernization
{
namespace Model
{
/**
* <p... |
package support.util.test;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import support.structure.Range;
import support.util.Utilities;
public class UtilitiesTest {
@DataProvider(name = "RangeValues")
public static Object[][] ... |
<nav class="navbar">
<a href="/"><img class="logo" src="/images/logo.png" alt="Echo"></a>
<span class="w3-hide-small w3-hide-medium">
<input id="search-box" type="text" class="w3-input" placeholder="Search...">
<i class="fa fa-search"></i>
</span>
<a class="github-button" href="https://github.com/labsta... |
from rally import consts
from rally.plugins.openstack import scenario
from rally.plugins.openstack.scenarios.quotas import utils
from rally.task import validation
class Quotas(utils.QuotasScenario):
"""Benchmark scenarios for quotas."""
@validation.required_services(consts.Service.NOVA)
@validation.requi... |
var fs = require('fs');
var stat = fs.statSync('./package.json'); // or some other file
console.log(stat.mtime);
console.log('' + stat.mtime);
console.log(JSON.stringify(stat.mtime));
|
<component name="libraryTable">
<library name="animated-vector-drawable-24.0.0">
<CLASSES>
<root url="file://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/24.0.0/res" />
<root url="jar://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.android.su... |
from django.contrib.admin.views.decorators import staff_member_required
from django.http import HttpResponse
@staff_member_required
def secure_view(request):
return HttpResponse('%s' % request.POST)
|
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Known Issues — nifty 1.0.0.dev1 document... |
__revision__ = "src/engine/SCons/Tool/MSCommon/sdk.py 5134 2010/08/16 23:02:40 bdeegan"
__doc__ = """Module to detect the Platform/Windows SDK
PSDK 2003 R1 is the earliest version detected.
"""
import os
import SCons.Errors
import SCons.Util
import common
debug = common.debug
# SDK Checks. This is of course a me... |
We'd love for you to contribute to our source code and to make AngularJS even better than it is
today! Here are the guidelines we'd like you to follow:
* [Code of Conduct](#coc)
* [Questions and Problems](#question)
* [Issues and Bugs](#issue)
* [Feature Requests](#feature)
* [Improving Documentation](#docs)
* [Issue ... |
from cloudferrylib.base.action import action
from cloudferrylib.utils import utils as utl
FILE_TO_FILE = 1
FILE_TO_CEPH = 2
CEPH_TO_FILE = 3
CEPH_TO_CEPH = 4
CEPH = 'ceph'
ISCSI = 'iscsi'
class DetectAlgorithmStorageTransfer(action.Action):
def run(self, src_cloud, dst_cloud, **kwargs):
backend_storage_... |
<?php
namespace Doctrine\DBAL\Platforms;
use Doctrine\DBAL\Schema\ForeignKeyConstraint;
use Doctrine\DBAL\Schema\Identifier;
use Doctrine\DBAL\Schema\Index;
use Doctrine\DBAL\Schema\Sequence;
use Doctrine\DBAL\Schema\Table;
use Doctrine\DBAL\Schema\TableDiff;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Types\... |
package org.elasticsearch.search.aggregations.bucket;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.FilterBuilders;
import org.elasticsearch.index.query.functionsco... |
/**
* angular-strap
* @version v2.1.0 - 2014-09-05
* @link http://mgcrea.github.io/angular-strap
* @author Olivier Louvignes (olivier@mg-crea.com)
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
'use strict';
angular.module('mgcrea.ngStrap.typeahead', ['mgcrea.ngStrap.tooltip', 'mgcrea.ngStrap.... |
package reporters_test
import (
"encoding/xml"
"io/ioutil"
"os"
"time"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
"github.com/onsi/ginkgo/internal/codelocation"
"github.com/onsi/ginkgo/reporters"
"github.com/onsi/ginkgo/types"
. "github.com/onsi/gomega"
)
var _ = Describe("JUnit Reporter", ... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.google.appengine.tools.mapreduce.impl.util;
/**
*
*/
public class RetryParams {
private static final int DEFAULT_RETRY_MIN_ATTEMPTS = 5;
private static final int DEFAULT_RETRY_MAX_ATTEMPTS = 200;
private static final long DEFAULT_INITIAL_RETRY_DEL... |
<?php defined('SYSPATH') or die('No direct script access.');
class Kohana_Cache_Apc extends Cache implements Cache_Arithmetic {
/**
* Check for existence of the APC extension This method cannot be invoked externally. The driver must
* be instantiated using the `Cache::instance()` method.
*
* @param array $... |
Imports System
Imports System.Reflection
Imports System.Runtime.InteropServices
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
' Review the values of the assembly attributes
<Asse... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lic... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
<!doctype html>
<!--
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at... |
package de.zib.scalaris.examples.wikipedia.bliki;
import info.bliki.wiki.model.IWikiModel;
import info.bliki.wiki.template.AbstractTemplateFunction;
import info.bliki.wiki.template.ITemplateFunction;
import info.bliki.wiki.template.Switch;
import java.util.List;
/**
* A template parser function for <code>{{ #switc... |
<?php
namespace Zend\XmlRpc\Client\Exception;
use Zend\XmlRpc\Exception;
/**
* Thrown by Zend\XmlRpc\Client when an XML-RPC fault response is returned.
*/
class FaultException extends Exception\BadMethodCallException implements ExceptionInterface
{
}
|
package procfs
import (
"fmt"
"io/ioutil"
"os"
"path"
"strconv"
"strings"
)
// Proc provides information about a running process.
type Proc struct {
// The process ID.
PID int
fs FS
}
// Procs represents a list of Proc structs.
type Procs []Proc
func (p Procs) Len() int { return len(p) }
func (p... |
/**
* Copyright (c) 2009 Carnegie Mellon University.
* All rights reserved.
*
* 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... |
namespace Eigen {
namespace internal {
template<typename Lhs, typename Rhs, typename ResultType>
static void conservative_sparse_sparse_product_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, bool sortedInsertion = false)
{
typedef typename remove_all<Lhs>::type::Scalar Scalar;
// make sure to call innerS... |
package codeu.chat.common;
import java.util.Collection;
import codeu.chat.util.Time;
import codeu.chat.util.Uuid;
// RELAY
//
// This is the interface for communicating with the relay. Communication with the relay
// is limited to two simple interfaces (writes and reads). As the relay is not expected
// to track con... |
So you're interested in giving us a hand? That's awesome! We've put together some brief guidelines that should help you get started quickly and easily.
## Reporting An Issue
If you think you've found a problem with Ghost, or you'd like to make a request for a new feature in the codebase… please follow these steps:
... |
SLUG="a11n/colorful"
JDK="oraclejdk8"
BRANCH="master"
set -e
if [ "$TRAVIS_REPO_SLUG" != "$SLUG" ]; then
echo "Skipping javadoc deployment: wrong repository. Expected '$SLUG' but was '$TRAVIS_REPO_SLUG'."
elif [ "$TRAVIS_JDK_VERSION" != "$JDK" ]; then
echo "Skipping javadoc deployment: wrong JDK. Expected '$JDK' ... |
package elastic
import (
"fmt"
"strings"
)
// MultiMatchQuery builds on the MatchQuery to allow multi-field queries.
//
// For more details, see
// https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html
type MultiMatchQuery struct {
text interface{}
fields ... |
package org.motechproject.scheduler.trigger;
import org.joda.time.Period;
import org.quartz.ScheduleBuilder;
import org.quartz.impl.jdbcjobstore.SimplePropertiesTriggerPersistenceDelegateSupport;
import org.quartz.impl.jdbcjobstore.SimplePropertiesTriggerProperties;
import org.quartz.spi.OperableTrigger;
/**
* Respo... |
import time
import math
import pdb
from Utils import GeomUtils
import Stroke
from SketchFramework import Point
from WpfSketchGUI import _WpfSketchGUI, transformBoard_Wpf
import clr
clr.AddReference('PresentationCore')
clr.AddReference('PresentationFramework')
clr.AddReference('WPFFrameworkElementExtensi... |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DK... |
/* Generated By:JJTree: Do not edit this line. ASTBitComplement.java Version 4.3 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=false,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package lcr.c2bsv.parser;
public
class ASTBitComplement extends Sim... |
import java.lang.invoke.*;
public class Main {
void foo() throws Throwable {
MethodHandles.Lookup lookup = MethodHandles.lookup();
lookup.findGetter(Test.class, "f1",<caret>);
}
} |
.. _working-numpy:
=======================
Working with NumPy
=======================
.. NOTE:: Cython 0.16 introduced typed memoryviews as a successor to the NumPy
integration described here. They are easier to use than the buffer syntax
below, have less overhead, and can be passed around withou... |
<?php
namespace Doctrine\Tests\Common\Annotations;
use Doctrine\Common\Annotations\AnnotationReader;
class AnnotationReaderTest extends AbstractReaderTest
{
protected function getReader()
{
return new AnnotationReader();
}
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Wikipedia scraper</title>
</head>
<body>
|
find_package(PythonInterp)
find_package(PythonLibs)
if(PYTHONINTERP_FOUND)
execute_process(COMMAND ${PYTHON_EXECUTABLE} --version
ERROR_VARIABLE PYTHON_VERSION_FULL
OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REGEX MATCH "[0-9]+.[0-9]+" PYTHON_VERSION_MAJOR_MINOR "${PYTHON_VERSION_FULL}")
if(UNIX)
... |
"""Windows can't run .sh files, so this is a Python implementation of
update.sh. This script should replace update.sh on all platforms eventually."""
import os
import re
import shutil
import subprocess
import sys
# Do NOT CHANGE this if you don't know what you're doing -- see
# https://code.google.com/p/chromium/wiki... |
========================
Horizon TestCase Classes
========================
.. module:: horizon.test.helpers
Horizon provides a base test case class which provides several useful
pre-prepared attributes for testing Horizon components.
.. autoclass:: TestCase
:members:
.. module :: openstack_dashboard.test.helper... |
id: 5900f3761000cf542c50fe89
challengeType: 5
title: 'Problem 10: Summation of primes'
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert.strictEqual(primeSummation(17), 41, "<code>primeSummation(17)</c... |
package com.facebook.react.uimanager;
import java.util.Arrays;
import java.util.HashSet;
import com.facebook.react.bridge.ReadableMap;
/**
* Keys for props that need to be shared across multiple classes.
*/
public class ViewProps {
public static final String VIEW_CLASS_NAME = "RCTView";
// Layout only (onl... |
var mquery = require('../');
var assert = require('assert');
describe('mquery', function(){
var col;
before(function(done){
// get the env specific collection interface
require('./env').getCollection(function (err, collection) {
assert.ifError(err);
col = collection;
done();
});
})... |
<?php
namespace yii\caching;
use yii\base\Component;
use yii\helpers\StringHelper;
/**
* Cache is the base class for cache classes supporting different cache storage implementations.
*
* A data item can be stored in the cache by calling [[set()]] and be retrieved back
* later (in the same or different request) ... |
<?php
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Fixtures\Bundles\XmlBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class X... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouterBootstra... |
//include matlab headers
#include "mex.h"
// matlab handle
#include "../helper/handle/handle.hxx"
#include "matlabModelType.hxx"
/**
* @brief This file implements an interface to store an opengm model in MatLab.
*
* This routine accepts a string containing the filename where a given opengm
* model shall be store... |
#if GOOGLE_CUDA || TENSORFLOW_USE_ROCM
#define EIGEN_USE_GPU
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/kernels/gpu_prim.h"
#include "tensorflow/core/kernels/l2loss_op.h"
#include "tensorflow/core/kernels/reduction_gpu_kernels.cu.h"
#include "tensorflow/core/kernels/reduction_op... |
#include "postgres.h"
#include <limits.h>
#include "commands/explain.h"
#include "cdb/cdbdisp.h"
#include "cdb/cdbexplain.h"
#include "cdb/cdbvars.h"
#include "executor/instrument.h"
#include "utils/guc.h"
PG_MODULE_MAGIC;
/* GUC variables */
static int auto_explain_log_min_duration = -1; /* msec or -1 */
static b... |
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/textUsername"
android:layout_width="wrap_co... |
void para_file_ini( struct config_t* cfg, struct parameters *para );
void para_file_del( struct parameters *para );
void set_para_file( para_file::file_type type, const char* name,
int nVarSyn, int* szVarSyn, char** lbVarSyn,
struct parameters *ps );
void open_para_file( para_fi... |
var tree = require("../tree"),
Visitor = require("./visitor"),
logger = require("../logger");
/*jshint loopfunc:true */
var ExtendFinderVisitor = function() {
this._visitor = new Visitor(this);
this.contexts = [];
this.allExtendsStack = [[]];
};
ExtendFinderVisitor.prototype = {
run: function... |
package AI::MXNet::Gluon::Data;
use strict;
use warnings;
use AI::MXNet::Gluon::Data::Set;
use AI::MXNet::Gluon::Data::Sampler;
use AI::MXNet::Gluon::Data::Loader;
use AI::MXNet::Gluon::Data::Vision;
sub vision { 'AI::MXNet::Gluon::Data::Vision' }
1;
|
<?php
namespace Sensio\Bundle\FrameworkExtraBundle\Tests\Routing;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Routing\AnnotatedRouteControllerLoader;
class An... |
import { map } from "./index";
export = map;
|
<?php
global $lang;
$lang['nl_NL']['DataObjectManager']['ADD'] = 'Toevoegen';
$lang['nl_NL']['DataObjectManager']['ADDEDNEW'] = '%s bestanden toegevoegd';
$lang['nl_NL']['DataObjectManager']['ADDITEM'] = array(
'Voeg %s toe',
PR_MEDIUM,
'Voeg [name] toe'
);
$lang['nl_NL']['DataObjectManager']['ALLOWEDFI... |
<?php
namespace Concrete\Core\Antispam;
use Config;
use Core;
use Group;
use Loader;
use Log;
use Page;
use User;
use UserInfo;
class Service
{
/**
* @var bool|mixed
*/
protected $controller = false;
public function __construct()
{
$library = Library::getActive();
if (is_obj... |
"""Helper functions for getting Light setup parameters from the command line"""
import argparse
import lights
import lights.spi
def get_light_options(parser=None):
"""Get options to setup a light from the command line."""
if parser is None:
parser = argparse.ArgumentParser()
# Light Types
# I... |
package org.onosproject.drivers.netconf;
import org.junit.Before;
import org.onosproject.net.driver.AbstractDriverLoaderTest;
/**
* Netconf drivers loader test.
*/
public class NetconfDriversLoaderTest extends AbstractDriverLoaderTest {
@Before
public void setUp() {
loader = new NetconfDriversLoad... |
package v1beta1
import (
"context"
"fmt"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"knative.dev/eventing/pkg/apis/eventing"
"knative.dev/pkg/apis"
"knative.dev/pkg/kmp"
)
func (kc *KafkaChannel) Validate(ctx context.Context) *apis.FieldError {
errs := kc.Spec.Validate(ctx).ViaF... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_112) on Thu Apr 06 08:02:46 MST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class org.wildfly.s... |
package hello;
import java.io.*;
import java.sql.*;
import java.util.*;
import java.util.concurrent.*;
import javax.annotation.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.sql.*;
/**
* Database connectivity (with a Servlet-container managed pool) test.
*/
@SuppressWarnings("serial")
public ... |
namespace content {
namespace webcrypto {
namespace {
Status ExportPKeySpki(EVP_PKEY* key, std::vector<uint8_t>* buffer) {
crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE);
crypto::ScopedBIO bio(BIO_new(BIO_s_mem()));
// TODO(eroman): Use the OID specified by webcrypto spec.
// http://crbug... |
using namespace arangodb;
using namespace arangodb::basics;
using namespace arangodb::rest;
RestBaseHandler::RestBaseHandler(ArangodServer& server, GeneralRequest* request,
GeneralResponse* response)
: RestHandler(server, request, response), _potentialDirtyReads(false) {}
////////... |
module BinData
# == Parameters
#
# Parameters may be provided at initialisation to control the behaviour of
# an object. These parameters are:
#
# <tt>:name</tt>:: The name that this object can be referred to may be
# set explicitly. This is only useful when dynamically
# ... |
package com.example.helloworld.core;
import java.util.Optional;
import static java.lang.String.format;
public class Template {
private final String content;
private final String defaultName;
public Template(String content, String defaultName) {
this.content = content;
this.defaultName = ... |
/**
* @file AddTaskFMDMCHit.C
* @author Christian Holm Christensen <cholm@nbi.dk>
* @date Wed Mar 23 12:14:03 2011
*
* @brief Investigate energy loss in simulations
*
*
* @ingroup pwglf_forward_scripts_tasks
*/
/**
* This is the macro to include the FMD energy fitter in a train.
*
* @param useTu... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lice... |
module('Events', {
setup: function(){
this.input = $('<input type="text" value="31-03-2011">')
.appendTo('#qunit-fixture')
.datepicker({format: "dd-mm-yyyy"})
.focus(); // Activate for visibility checks
this.dp = this.input.data... |
/*
* 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 in writing, software
* distribut... |
require 'helper'
describe Twitter::REST::Lists do
before do
@client = Twitter::REST::Client.new(:consumer_key => 'CK', :consumer_secret => 'CS', :access_token => 'AT', :access_token_secret => 'AS')
end
describe '#lists' do
before do
stub_get('/1.1/lists/list.json').to_return(:body => fixture('lis... |
[](https://github.com/kitian616/jekyll-TeXt-theme/blob/master/LICENSE)
[](https://github.com/kitian616/jekyll-TeXt-theme/releases)
[;
T create(int position);
}
|
<?xml version="1.0"?>
<doc>
<assembly>
<name>nunit.framework</name>
</assembly>
<members>
<member name="T:NUnit.Framework.CategoryAttribute">
<summary>
Attribute used to apply a category to a test
</summary>
</member>
<member name="F:NUnit.... |
package org.wso2.carbon.automation.extensions.servers.proxyserver;
import java.net.ServerSocket;
import java.net.Socket;
public class Proxy {
static int clientCount;
public static synchronized void print(int i) {
System.out.print((char) i);
}
public static synchronized void println(String s... |
layout: global
title: Rodando Spark no Alluxio
nickname: Apache Spark
group: Frameworks
priority: 0
---
* Table of Contents
{:toc}
Este guia descreve como rodar o [Apache Spark](http://spark-project.org/) no Alluxio e utilizar
o `HDFS` como o sistema de armazenamento inferior. Atente que o Alluxio suporta vários
`und... |
// compile
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
type A []int;
type M map[int] int;
func main() {
var a *A = &A{0};
var m *M = &M{0 : 0}; // should be legal to use & here for cons... |
module Capistrano
module DSL
module Env
def configure_backend
env.configure_backend
end
def fetch(key, default=nil, &block)
env.fetch(key, default, &block)
end
def any?(key)
value = fetch(key)
if value && value.respond_to?(:any?)
value.any... |
namespace chromecast {
struct Rect;
struct Size;
// Provides simple API (copy bitmap, blit, composite and fill) for drawing
// OSD graphics on OsdPlane. Hardware-specific implementation should be
// instantiated by OsdPlane.
class OsdSurface {
public:
struct Point {
Point(int arg_x, int arg_y) : x(arg_x), y(a... |
module Azure::Network::Mgmt::V2018_10_01
module Models
#
# P2SVpnGateway Resource.
#
class P2SVpnGateway < Resource
include MsRestAzure
# @return [SubResource] The VirtualHub to which the gateway belongs
attr_accessor :virtual_hub
# @return [ProvisioningState] The provisioni... |
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<title>Infinite Scroll - Basic</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="../../../../../css/ionic.bundle.css" rel="stylesheet">
<li... |
from docutils import nodes
from docutils.statemachine import ViewList
from nose.util import resolve_name
def docstring_directive(dirname, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
obj_name = arguments[0]
obj = resolve_name(obj_name)
rst... |
'use strict';
const log = require('fancy-log');
const colors = require('ansi-colors');
/**
* Log message to output using `DEBUG` level.
*
* @param {string} msg Message to log.
* @return {void}
*/
function debug(msg) {
log(colors.grey(msg));
}
/**
* Log message to output using `ERROR` level.
*
* @param {s... |
class AddIsAdminColumnToUsers < ActiveRecord::Migration[5.0]
def change
add_column :users, :is_admin, :boolean, null: false, default: false
end
end
|
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message... |
// Type definitions for chai 3.2.0
// Project: http://chaijs.com/
// Definitions by: Jed Mao <https://github.com/jedmao/>,
// Bart van der Schoor <https://github.com/Bartvds>,
// Andrew Brown <https://github.com/AGBrown>,
// Olivier Chevet <https://github.com/olivr70>
// ... |
from pyasn1.type import univ, namedtype, namedval, tag, constraint
from pyasn1_modules import rfc1155
class Version(univ.Integer):
namedValues = namedval.NamedValues(
('version-1', 0)
)
defaultValue = 0
class Community(univ.OctetString): pass
class RequestID(univ.Integer): pass
class ErrorSta... |
Riverbed-SteelApp-TrafficScripts
================================
A collection of Riverbed SteelApp (Formely Stingray) Traffic Manager TrafficScripts
|