text
stringlengths
3
1.05M
"""Provides device actions for Humidifier.""" from typing import List, Optional import voluptuous as vol from homeassistant.components.device_automation import toggle_entity from homeassistant.const import ( ATTR_ENTITY_ID, ATTR_SUPPORTED_FEATURES, CONF_DEVICE_ID, CONF_DOMAIN, CONF_ENTITY_ID, ...
package org.apache.geronimo.util.asn1.pkcs; import org.apache.geronimo.util.asn1.ASN1Encodable; import org.apache.geronimo.util.asn1.ASN1EncodableVector; import org.apache.geronimo.util.asn1.ASN1Sequence; import org.apache.geronimo.util.asn1.ASN1Set; import org.apache.geronimo.util.asn1.DERInteger; import org.apache...
exports.plugin = function(router) { router.on('-method=GET signup/*', function(req, res, next) { console.log('check if user is invited') next(); }) }
import dompurify = require('dompurify'); dompurify.sanitize('<script>alert("hi")</script>'); dompurify.addHook('beforeSanitizeElements', (el, data, config) => { return el; }); //examples from the DOMPurify README let dirty = '<script>alert("hi")</script><p>Totally safe<p><p onerror="blowUp()">Totally not safe</p>';...
easemob android sample
import java.util.stream.Stream; class Test { void test(String s) { if(s != null) { System.out.println("not null s"); } } }
package persistentvolume import ( "fmt" "testing" "time" "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/api/resource" "k8s.io/kubernetes/pkg/api/testapi" client "k8s.io/kubernetes/pkg/client/unversioned" fake_cloud "k8s.io/kubernetes/pkg/cloudprovider/providers/fake" ...
#ifndef _RECOVER_01_TACTIC_H_ #define _RECOVER_01_TACTIC_H_ #include"params.h" class ast_manager; class tactic; tactic * mk_recover_01_tactic(ast_manager & m, params_ref const & p = params_ref()); /* ADD_TACTIC("recover-01", "recover 0-1 variables hidden as Boolean variables.", "mk_recover_01_tactic(m, p)") */ #e...
# # # /* See http://www.boost.org for most recent version. */ # # ifndef BOOST_PREPROCESSOR_SEQ_REST_N_HPP # define BOOST_PREPROCESSOR_SEQ_REST_N_HPP # # include <boost/preprocessor/arithmetic/inc.hpp> # include <boost/preprocessor/comparison/not_equal.hpp> # include <boost/preprocessor/config/config.hpp> # include <b...
Mautic.downloadIpLookupDataStore = function() { var ipService = mQuery('#config_coreconfig_ip_lookup_service').val(); var ipAuth = mQuery('#config_coreconfig_ip_lookup_auth').val(); mQuery('#iplookup_fetch_button_container .fa-spinner').removeClass('hide'); Mautic.ajaxActionRequest('downloadIpLookupDa...
/** * {@code @Condition} annotations and supporting classes. */ package org.springframework.boot.autoconfigure.condition;
#ifdef USE_TI_UIIPHONEROWANIMATIONSTYLE #import "TiProxy.h" @interface TiUIiPhoneRowAnimationStyleProxy : TiProxy { } @property(nonatomic,readonly) NSNumber *NONE; @property(nonatomic,readonly) NSNumber *LEFT; @property(nonatomic,readonly) NSNumber *RIGHT; @property(nonatomic,readonly) NSNumber *TOP; @property(no...
package org.drools.core.phreak; import org.drools.core.common.EventFactHandle; import org.drools.core.common.InternalFactHandle; import org.drools.core.common.InternalWorkingMemory; import org.drools.core.common.Memory; import org.drools.core.common.MemoryFactory; import org.drools.core.common.PropagationContextFac...
namespace nodex { class Debug { public: static NAN_METHOD(Call) { NanScope(); if (args.Length() < 1) { return NanThrowError("Error"); } v8::Handle<v8::Function> fn = v8::Handle<v8::Function>::Cast(args[0]); v8::Debug::Call(fn); NanReturnUndefine...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/speech/v1beta1/cloud_speech.proto /* Package speech is a generated protocol buffer package. It is generated from these files: google/cloud/speech/v1beta1/cloud_speech.proto It has these top-level messages: SyncRecognizeRequest AsyncRecognize...
/*istanbul ignore next*/"use strict"; exports.__esModule = true; exports.default = function (ast, comments, tokens) { if (ast) { if (ast.type === "Program") { return t.file(ast, comments || [], tokens || []); } else if (ast.type === "File") { return ast; } } throw new Error("Not a valid...
var $export = require('./_export'); $export($export.S + $export.F, 'Object', { isObject: require('./_is-object') });
<?php /* Safe sample input : use exec to execute the script /tmp/tainted.php and store the output in $tainted SANITIZE : use of pg_escape_literal construction : use of sprintf via a %s with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, t...
#ifndef V8NodeFilterCondition_h #define V8NodeFilterCondition_h #include "bindings/core/v8/ScopedPersistent.h" #include "bindings/core/v8/ScriptState.h" #include "core/dom/NodeFilterCondition.h" #include "platform/heap/Handle.h" #include "wtf/PassRefPtr.h" #include <v8.h> namespace blink { class Node; class Except...
package io.sheetal.test.Repository; import java.util.Arrays; import java.util.List; import java.util.UUID; import javax.persistence.EntityManager; import javax.persistence.TypedQuery; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMo...
package com.google.inject.persist; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Stage; import com.google.inject.persist.jpa.JpaPersistModule; import java.util.logging.Logger; import junit.framework.TestCase; /** * @author dhanji@google.com (Dhanji R. Prasanna) ...
package cz.metacentrum.perun.webgui.json.cabinetManager; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.json.client.JSONNumber; import com.google.gwt.json.client.JSONObject; import com.google.gwt.json.client.JSONString; import com.google.gwt.user.client.Window; import cz.metacentrum.perun.we...
<!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]--> <head> <!-- Basic...
import { ArrayBufferBuilder } from "../../../../utils/ArrayBufferBuilder"; import { BitsReader } from "../../../../utils/BitsReader"; import { SerializerUtils } from "../../../../utils/SerializerUtils"; import { SrvTournamentRemovedData } from "../data/SrvTournamentRemovedData"; import { BinaryNetworkID } from "../../c...
/*! UIkit 3.0.0-beta.13 | http://www.getuikit.com | (c) 2014 - 2017 YOOtheme | MIT License */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) : typeof define === 'function' && define.amd ? define('uikitundefined', ['jquery']...
@interface AFActivityIndicatorViewNotificationObserver : NSObject @property (readonly, nonatomic, weak) UIActivityIndicatorView *activityIndicatorView; - (instancetype)initWithActivityIndicatorView:(UIActivityIndicatorView *)activityIndicatorView; #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000 - (void)setAnimatingWithS...
#include <linux/kernel.h> #include <linux/ptrace.h> #include <kern_util.h> #include <sysdep/ptrace.h> #include <sysdep/syscalls.h> extern int syscall_table_size; #define NR_SYSCALLS (syscall_table_size / sizeof(void *)) void handle_syscall(struct uml_pt_regs *r) { struct pt_regs *regs = container_of(r, struct pt_r...
#ifndef AV1_ENCODER_RESIZE_H_ #define AV1_ENCODER_RESIZE_H_ #include <stdio.h> #include "aom/aom_integer.h" #include "av1/common/onyxc_int.h" #ifdef __cplusplus extern "C" { #endif void av1_resize_plane(const uint8_t *const input, int height, int width, int in_stride, uint8_t *output, int hei...
<?php namespace Wallee\Controllers; use Plenty\Plugin\Controller; use Plenty\Plugin\ConfigRepository; use Plenty\Plugin\Http\Request; use Plenty\Plugin\Http\Response; use Wallee\Helper\PaymentHelper; use Wallee\Services\PaymentService; use Plenty\Plugin\Log\Loggable; use Wallee\Services\WalleeSdkService; use Wallee\Co...
<section data-ng-controller="CompaniesController" data-ng-init="findOne()"> <div class="page-header"> <h1 data-ng-bind="company.name"></h1> </div> <div class="pull-right" data-ng-show="((authentication.user) && (authentication.user._id == company.user._id))"> <a class="btn btn-primary" href="/#!/companies/{{comp...
package cn.weaponmod.api; import java.util.HashMap; import java.util.Map; import java.util.Random; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; import cn.weaponmod.api.information.InfWeapon; /** * Pool and processor of weapon informations. * Usual implementations don't need t...
<?xml version="1.0"?> <!-- Copyright 2004, 2005 The Apache Software Foundation 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 Unle...
'use strict'; var path = require('path'); var fs = require('graceful-fs'); var stripBom = require('strip-bom'); var stripBomStream = require('strip-bom-stream'); var File = require('vinyl'); var pify = require('pify'); var Promise = require('pinkie-promise'); var fsP = pify(fs, Promise); exports.read = function (pth, ...
""" Make sure buffer security check setting is extracted properly. """ import TestGyp import sys if sys.platform == 'win32': test = TestGyp.TestGyp(formats=['msvs', 'ninja']) CHDIR = 'compiler-flags' test.run_gyp('buffer-security-check.gyp', chdir=CHDIR) test.build('buffer-security-check.gyp', chdir=CHDIR) ...
@interface DropboxName (DictionaryParser) <DictionaryParser> @end
{% load i18n %} <!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/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initia...
using base::android::AttachCurrentThread; namespace webxr { namespace { // Increase the timeout for the message to 60s from the default 10s. constexpr base::TimeDelta kMessageTimeout = base::Seconds(60); } // namespace ArCoreInstallHelper::ArCoreInstallHelper() { // As per documentation, it's recommended to issue...
class PaintAggregator { public: // Stores information about a rectangle that has finished painting. The // PaintManager will paint it only when everything else on the screen is also // ready. struct ReadyRect { pp::Point offset; pp::Rect rect; pp::ImageData image_data; }; struct PaintUpdate {...
""" Verifies that ^(latelate) style variables work. """ import TestGyp test = TestGyp.TestGyp() test.run_gyp('latelate.gyp', chdir='src') test.relocate('src', 'relocate/src') test.build('latelate.gyp', test.ALL, chdir='relocate/src') test.run_built_executable( 'program', chdir='relocate/src', stdout='program....
package com.google.security.zynamics.reil.translators.ppc; import com.google.security.zynamics.reil.OperandSize; import com.google.security.zynamics.reil.ReilInstruction; import com.google.security.zynamics.reil.translators.IInstructionTranslator; import com.google.security.zynamics.reil.translators.ITranslationEnvir...
class Section < ActiveRecord::Base attr_accessible :course_id, :position, :title, :title_url, :description belongs_to :course has_many :lessons validates_uniqueness_of :position, :message => "Section position has already been taken" end
using std::string; namespace net { // static string SpdyUtils::SerializeUncompressedHeaders(const SpdyHeaderBlock& headers) { int length = SpdyFramer::GetSerializedLength(SPDY3, &headers); SpdyFrameBuilder builder(length); SpdyFramer::WriteHeaderBlock(&builder, SPDY3, &headers); scoped_ptr<SpdyFrame> block(bu...
package main import ( "flag" "math" "time" "bitbucket.org/bertimus9/systemstat" ) const sleep = time.Duration(10) * time.Millisecond func doSomething() { for i := 1; i < 10000000; i++ { x := float64(0) x += math.Sqrt(0) } } var ( millicores = flag.Int("millicores", 0, "millicores number") durationSe...
'use strict'; module.exports.definition = { set: function (v) { this._setProperty('color-interpolation-filters', v); }, get: function () { return this.getPropertyValue('color-interpolation-filters'); }, enumerable: true, configurable: true };
package com.googlecode.mp4parser.boxes.apple; /** * Created by sannies on 10/15/13. */ public class AppleSortAlbumBox extends Utf8AppleDataBox { public AppleSortAlbumBox() { super("soal"); } }
playback_middleware ========== Middleware used to support Angular.dart's HTTP playback / record service. Testing ======= We are using jasmine-node. npm install jasmine-node -g jasmine-node spec/
require File.dirname(__FILE__) + '/spec_helper' describe YARD::Server::StaticCaching do include StaticCaching describe '#check_static_cache' do def adapter; @adapter ||= mock_adapter end def request; @request ||= OpenStruct.new end it "should return nil if document root is not set" do adapter...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Yo...
module Searchlogic module Modifiers class Ceil < Base class << self def modifier_names super + ["round_up"] end def return_type :integer end end end end end
<?php /* loginBundle:Default:testForm.html.twig */ class __TwigTemplate_3aab42e8a58ebbd18bfa626a18dbefb3c0c2c680258aeb0dd5c05b005a83f333 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array...
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../shared/get_byte', __FILE__) require 'strscan' describe "StringScanner#get_byte" do it_behaves_like :strscan_get_byte, :get_byte end
module Whenever module Output class Cron REGEX = /^.+ .+ .+ .+ .+.?$/ attr_accessor :time, :task def initialize(time = nil, task = nil, at = nil) @time = time @task = task @at = at.is_a?(String) ? (Chronic.parse(at) || 0) : (at || 0) end def self.enumerat...
module God module System class Process def initialize(pid) @pid = pid.to_i end # Return true if this process is running, false otherwise def exists? !!::Process.kill(0, @pid) rescue false end end end end
import { cloneDeep } from "lodash"; export = cloneDeep;
/*! sass.js - v0.9.3 (b057691) - built 2015-10-25 providing libsass 3.3.0 (bb090ed) via emscripten 1.35.2 (a8ecf9a) */ (function (root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof exports === 'object') { module.exports = factory()...
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer' . '/autoload_real.php'; return ComposerAutoloaderInit67032bcbbf95dfd235ae95170fc7e2ca::getLoader();
layout: post title: TokenMismatchException in VerifyCsrfToken.php line 67 date: 2016-05-19 06:47 author: administrator comments: true categories: [Laravel] --- This error is common in L5.2 as they have introduced concept of group middleware "web". The most common solution is to add csrf token properly in form or head s...
#ifdef UTRIE2_DEBUG # include <stdio.h> #endif #include "unicode/utypes.h" #include "cmemory.h" #include "utrie2.h" #include "utrie2_impl.h" #include "utrie.h" /* for utrie2_fromUTrie() and utrie_swap() */ /* Implementation notes ----------------------------------------------------- */ /* * The UTRIE2_SHIFT_1, ...
package org.kaazing.gateway.transport.http.resource; import java.util.Collection; public abstract class HttpDynamicResourceFactorySpi { public abstract Collection<String> getResourceNames(); public abstract HttpDynamicResource newDynamicResource(String resourceName); }
/* * 02/10/2009 * * LineHighlightManager - Manages line highlights. * * This library is distributed under a modified BSD license. See the included * RSyntaxTextArea.License.txt file for details. */ package org.fife.ui.rtextarea; import java.awt.Color; import java.awt.Graphics; import java.awt.Rect...
<!DOCTYPE html> <html> <head> <title><?= __('Error') ?></title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="robots" content="noindex,nofollow"> <link href...
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CodeRay output</title> <style type="text/css"> .CodeRay .line-numbers a { text-decoration: inherit; color: inherit; } body { background-color: white; padding: 0; margin: 0; } .CodeRay { backgroun...
#pragma once #include <variant> #include <cassert> #include "rect_structs.h" namespace rectpack2D { enum class callback_result { ABORT_PACKING, CONTINUE_PACKING }; template <class T> auto& dereference(T& r) { /* This will allow us to pass orderings that consist of pointers, as well as ones that are j...
<?php namespace GithubService\Model; class App { use GithubTrait; use SafeAccess; public $clientId = null; public $name = null; public $url = null; protected function getDataMap() { $dataMap = [ ['clientId', 'client_id'], ['name', 'name'], ['url...
require "abstract_unit" module ActionDispatch module Journey module NFA class TestSimulator < ActiveSupport::TestCase def test_simulate_simple sim = simulator_for ["/foo"] assert_match sim, "/foo" end def test_simulate_simple_no_match sim = simulator_f...
package main import ( "go/parser" "go/ast" "go/token" ) //------------------------------------------------------------------------- // AutoCompleteFile //------------------------------------------------------------------------- type AutoCompleteFile struct { name string packageName string decls map...
/*! * Qoopido.js library v3.6.4, 2015-4-29 * https://github.com/dlueth/qoopido.js * (c) 2015 Dirk Lueth * Dual licensed under MIT and GPL */ !function(e){window.qoopido.register("support/element/canvas",e,["../../support"])}(function(e,t,o,n,s,a){"use strict";var r=e.support;return r.addTest("/element/canvas",function(...
#ifndef __TBB_mic_common_H #define __TBB_mic_common_H #ifndef __TBB_machine_H #error Do not #include this internal file directly; use public TBB headers instead. #endif #if ! __TBB_DEFINE_MIC #error mic_common.h should be included only when building for Intel(R) Many Integrated Core Architecture #endif #ifndef...
#ifndef POLARSSL_ENTROPY_H #define POLARSSL_ENTROPY_H #include <string.h> #include "config.h" #include "sha4.h" #if defined(POLARSSL_HAVEGE_C) #include "havege.h" #endif #define POLARSSL_ERR_ENTROPY_SOURCE_FAILED -0x003C /**< Critical entropy source failure. */ #define POLARSSL_ERR_E...
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_m...
from setuptools import setup setup( name="netforce_ecom", version="3.1.0", description="Ecommerce module", )
namespace djinni_generated { NativeNestedCollection::NativeNestedCollection() = default; NativeNestedCollection::~NativeNestedCollection() = default; auto NativeNestedCollection::fromCpp(JNIEnv* jniEnv, const CppType& c) -> ::djinni::LocalRef<JniType> { const auto& data = ::djinni::JniClass<NativeNestedCollectio...
<?php namespace Symfony\Component\Security\Http\Tests\Logout; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler; class DefaultLogoutSuccessHandlerTest extends \PHPUnit_Framework_TestCase { public function testLogout() { $request = ...
require_relative "attribute/user_provided_default" module ActiveRecord # See ActiveRecord::Attributes::ClassMethods for documentation module Attributes extend ActiveSupport::Concern included do class_attribute :attributes_to_define_after_schema_loads, instance_accessor: false, default: {} # :interna...
#pragma once #include "platform/CCPlatformConfig.h" #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC #include <condition_variable> #include <mutex> #include <string> #include <thread> #import <OpenAL/al.h> #include "platform/CCPlatformMacros.h" NS_CC_BEGIN namespace experimental{ ...
config.cache_classes = true # Use a different logger for distributed setups # config.logger = SyslogLogger.new # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true # Enable serving of images...
struct IncompleteType; int int_value; typedef int int_typedef; void f(in); IncompleteType g(in); // Completing should produce results even if types are incomplete. // Note that clang is expected to return an error code since 'in' does not resolve. // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:5:9 %s -o -...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/translate/v3beta1/translation_service.proto package com.google.cloud.translate.v3beta1; public interface DeleteGlossaryMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.translation.v3beta1.D...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ErrorConstant = exports.BooleanConstant = exports.StringConstant = exports.NumberConstant = exports.ArrayConstant = exports.PostfixOp = exports.UnaryOp = exports.BinOp = exports.RangeReference = exports.CellIdentifier = exports.Fu...
<?php namespace Symfony\Component\VarDumper\Tests\Caster; use PHPUnit\Framework\TestCase; use Symfony\Component\VarDumper\Test\VarDumperTestTrait; /** * @author Nicolas Grekas <p@tchwork.com> * @requires extension redis * @group integration */ class RedisCasterTest extends TestCase { use VarDumperTestTrait...
tinyMCE.addI18n({de:{ common:{ edit_confirm:"Wollen Sie diesen Textbereich mit WYSIWYG bearbeiten?", apply:"\u00DCbernehmen", insert:"Einf\u00FCgen", update:"Aktualisieren", cancel:"Abbrechen", close:"Schlie\u00DFen", browse:"Durchsuchen", class_name:"Klasse", not_set:"-- Nicht gesetzt --", clipboard_msg:"Ko...
R CMD REMOVE --library=$PREFIX/lib/R/library/ pd.mg.u74c
package com.tlkzzz.jeesite.modules.sys.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.tlkzzz.jeesite.common.service.BaseService; import com.tlkzzz.jeesite.common.utils.ObjectUtils; import com.tlkzzz.jeesite.common.utils.StringUtils; import com.tlk...
/* __ *\ ** ________ ___ / / ___ __ ____ Scala.js tools ** ** / __/ __// _ | / / / _ | __ / // __/ (c) 2014, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \ http://scala-js.org/ ** ** /____/\___/_/ |_/...
pullstream [![Build Status](https://travis-ci.org/EvanOxfeld/node-pullstream.png)](https://travis-ci.org/EvanOxfeld/node-pullstream) ========== Tired of getting a firehose worth of data from your streams. This module is here to save the day. PullStream allows you to pull data when you want and as much as you want. ##...
"use strict"; /*jslint bitwise: false, white: false */ /*global window, console, document, navigator, ActiveXObject */ // Globals defined here var Util = {}; /* * Make arrays quack */ Array.prototype.push8 = function (num) { this.push(num & 0xFF); }; Array.prototype.push16 = function (num) { this.push(...
#pragma once #include <memory> #include <type_traits> #include <jni.h> #include <fb/Environment.h> namespace facebook { namespace jni { template<typename T> class GlobalReference { static_assert(std::is_convertible<T, jobject>::value, "GlobalReference<T> instantiated with type that is not " ...
#ifndef INDEXFSM_H_ #define INDEXFSM_H_ #include "storage/block.h" #include "utils/relcache.h" extern BlockNumber GetFreeIndexPage(Relation rel); extern void RecordFreeIndexPage(Relation rel, BlockNumber page); extern void RecordUsedIndexPage(Relation rel, BlockNumber page); extern void IndexFreeSpaceMapVacuum(Rela...
struct BindingEnv; struct EvalString; enum DupeEdgeAction { kDupeEdgeActionWarn, kDupeEdgeActionError, }; enum PhonyCycleAction { kPhonyCycleActionWarn, kPhonyCycleActionError, }; struct ManifestParserOptions { ManifestParserOptions() : dupe_edge_action_(kDupeEdgeActionWarn), phony_cycle_acti...
using System; namespace Microsoft.CodeAnalysis.Interactive { [Serializable] internal struct RemoteExecutionResult { public readonly bool Success; /// <summary> /// New value of source search paths after execution, or null if not changed since the last execution. /// </summa...
print "hi" print "Like bad Windows newlines?"
YUI.add('querystring-parse-simple', function (Y, NAME) { // @TODO this looks like we are requiring the user to extract the querystring // portion of the url, which isn't good. The majority use case will be to // extract querystring from the document configured for this YUI instance. // This should be the default if...
package fake import ( security "github.com/openshift/origin/pkg/security/apis/security" schema "k8s.io/apimachinery/pkg/runtime/schema" testing "k8s.io/client-go/testing" ) // FakePodSecurityPolicySelfSubjectReviews implements PodSecurityPolicySelfSubjectReviewInterface type FakePodSecurityPolicySelfSubjectReviews...
prettify-element =================== See the [component page](http://polymer.github.io/prettify-element) for more information. prettify-import ================== Import files are a new invention, so libraries like [`prettify`](https://code.google.com/p/prettify/) do not yet provide them. `prettify-import`...
<?php namespace Symfony\Component\PasswordHasher\Hasher; use Symfony\Component\PasswordHasher\PasswordHasherInterface; /** * Hashes passwords using the best available hasher. * Verifies them using a chain of hashers. * * /!\ Don't put a PlaintextPasswordHasher in the list as that'd mean a leaked hash * could ...
<?php class Swift_CharacterReaderFactory_SimpleCharacterReaderFactoryAcceptanceTest extends \PHPUnit_Framework_TestCase { private $_factory; private $_prefix = 'Swift_CharacterReader_'; public function setUp() { $this->_factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();...
;(function($) { function load(settings, root, child, container) { function createNode(parent) { var id_category = this.id_category; var checked = false; $('input[name="'+inputName+'"][type=hidden]').each( function () { if ($(this).attr('value') == id_category) { checked = true; $(this).remove();...
#include "qpen.h" #include "qpen_p.h" #include "qdatastream.h" #include "qvariant.h" #include "qbrush.h" #include <qdebug.h> QT_BEGIN_NAMESPACE typedef QPenPrivate QPenData; /*! \class QPen \ingroup painting \ingroup shared \brief The QPen class defines how a QPainter should draw lines and outlin...
react-hot-boilerplate ===================== The minimal dev environment to enable live-editing React components. ### Usage ``` npm install npm start open http://localhost:3000 ``` Now edit `src/App.js`. Your changes will appear without reloading the browser like in [this video](http://vimeo.com/100010922). ### L...