text
stringlengths
3
1.05M
package com.github.anrwatchdog; import android.os.Debug; import android.os.Handler; import android.os.Looper; import android.util.Log; /** * A watchdog timer thread that detects when the UI thread has frozen. * * 自定义的检测 ANR 的 Thread * * {@link ANRWatchDog#run()} * 1. 如果线程没中断,一直循环 * 2. 记录开始 tick,并且向主线程 post m...
module Fog module Compute class Google class Mock def set_tags(instance, zone, tags=[]) Fog::Mock.not_implemented end end class Real def set_tags(instance, zone, fingerprint, tags=[]) api_method = @compute.instances.set_tags parameters = { ...
/** * @author Lee Stemkoski * * Usage: * (1) create a global variable: * var keyboard = new KeyboardState(); * (2) during main loop: * keyboard.update(); * (3) check state of keys: * keyboard.down("A") -- true for one update cycle after key is pressed * keyboard.pressed("A") -- true...
package org.datanucleus.samples.array; /** * Container of a double array. * * @version $Revision: 1.2 $ */ public class DoubleArray implements ArrayHolderInterface { long id; double[] array1; double[] array2; public DoubleArray(double[] elements1, double[] elements2) { ...
package org.apache.camel.processor.aggregator; import org.apache.camel.ContextTestSupport; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.component.mock.MockEndpoint; import org.apache.camel.processor.aggregate.GroupedExchangeAggregationStrategy; import org.junit.Test; /** * Unit test for agg...
package com.founder.fix.fixflow.shell; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import org.springframework.jdbc.datasource.DataSourceUtils; import com.founder.fix.fixflow.core.db.pagination.Pagination; public class DBConnection { private DataSource dataS...
Syntax Guide ============ Kanboard use the [Markdown syntax](http://en.wikipedia.org/wiki/Markdown) for comments or task descriptions. Here are some examples: Bold and italic ---------------- - Bold text: Use 2 asterisks or 2 underscores - Italic text: Use 1 asterisk or 1 underscore ### Source ``` This **word** is ...
class AddPwdToBillingOperatorMapping < ActiveRecord::Migration def change add_column :billing_op_fp_mappings, :pwd, :string end end
SHELL = /bin/sh #### Start of system configuration section. #### srcdir = . topdir = /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 hdrdir = $(topdir) VPATH = $(srcdir):$(topdir):$(hdrdir) prefix = $(DESTDIR)/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr exec_p...
package storm.trident.state.map; import java.util.List; import storm.trident.state.State; public interface RemovableMapState<T> extends State { void multiRemove(List<List<Object>> keys); }
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2010 The Android Open Source Project 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 Un...
<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/ngOptions/iexp.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Invalid Expression</code> <div><span class="hint">error in component <code ng:non-bindable="">ngOptions</cod...
#include <libmemcached/common.h> static memcached_return_t memcached_flush_binary(memcached_st *ptr, time_t expiration, const bool reply) { protocol_binary_request_flush request= {}; request.message.header.request...
module.exports = function(hljs) { return { keywords: { keyword: 'BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE ' + 'INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 ' + 'INTDCOUNTSTATUSCODE|5 INTDCREA...
(function( Popcorn ) { // combines calls of two function calls into one var combineFn = function( first, second ) { first = first || Popcorn.nop; second = second || Popcorn.nop; return function() { first.apply( this, arguments ); second.apply( this, arguments ); }; }; // ID str...
// W3C Geolocation API (Level 1) "Polyfill" Implementation // This uses freegeoip.org to estimate location from IP address // by Joshua Bell - http://calormen.com/polyfill // PUBLIC DOMAIN (function () { "use strict"; if (!navigator || !window || !document) { return; } var GEOIP_SERVICE_JSONP = 'http://freege...
// ---------------------------------------------------------------------------------- // // 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...
package ch.lambdaj.demo; import static ch.lambdaj.demo.Util.*; import java.util.*; public class Person { private String firstName; private String lastName; private boolean male; private Date birthday; protected Person() { } public Person(String firstName, String lastName, boolean male, String birthday) { ...
/* From ppp_graphics_3d.idl modified Wed Mar 21 17:35:39 2012. */ #ifndef PPAPI_C_PPP_GRAPHICS_3D_H_ #define PPAPI_C_PPP_GRAPHICS_3D_H_ #include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_macros.h" #include "ppapi/c/pp_stdint.h" #define PPP_GRAPHICS_3D_INTERFACE_1_0 "PPP_Graphics_3D;1.0" #define PPP_GRAPHICS_3D_...
package org.springframework.boot.autoconfigure.data.mongo; import java.util.ArrayList; import java.util.List; import org.junit.After; import org.junit.Test; import org.springframework.boot.autoconfigure.TestAutoConfigurationPackage; import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfigura...
#ifndef __DEBUGGER_IATTRIBUTE_H__ #define __DEBUGGER_IATTRIBUTE_H__ #include "iface.h" static const char *const IFACE_ATTRIBUTE = "IAttribute"; class IAttribute : public IFace { public: IAttribute() : IFace(IFACE_ATTRIBUTE), attr_name_(NULL), attr_descr_(NULL) {} virtual void allocAttrName(const ...
require 'tempfile' require 'rubygems' require 'minitest/autorun' require 'rdoc/options' require 'rdoc/parser' class TestRDocParserSimple < MiniTest::Unit::TestCase def setup @tempfile = Tempfile.new self.class.name filename = @tempfile.path @top_level = RDoc::TopLevel.new filename @fn = filename ...
// Copyright 2014 BVLC and contributors. #include <algorithm> #include <cmath> #include <cfloat> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/util/io.hpp" using std::max; namespace caffe { /* note that in the window_data_la...
title: Text Button --- [Insert description here]
window.open("content.html", "content", "height=200,width=200"); window.open("a.com", "a_com", "height=200,width=200");
// Initial Setup // -------------- (function () { "use strict"; // Save a reference to the global object (`window` in the browser, `exports` // on the server). var root = this; // The top-level namespace. All public Backbone classes and modules will be attached to this. // Exported...
var fs = require('graceful-fs') var path = require('path') var mkdirp = require('mkdirp') var mr = require('npm-registry-mock') var osenv = require('osenv') var rimraf = require('rimraf') var test = require('tap').test var common = require('../common-tap.js') var npm = npm = require('../../') var pkg = path.resolve(...
// // MPNativeAdAdapter.h // Copyright (c) 2014 MoPub. All rights reserved. // #import <UIKit/UIKit.h> @protocol MPNativeAdAdapter; /** * Classes that conform to the `MPNativeAdAdapter` protocol can have an * `MPNativeAdAdapterDelegate` delegate object. You use this delegate to communicate * native ad events (s...
// +k8s:deepcopy-gen=package,register // +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/apps // +k8s:openapi-gen=true package v1alpha1
/* crypto/idea/i_cfb64.c */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non...
[![Travis Build Status](https://img.shields.io/travis/undertakerjs/glogg/master.svg?label=travis&style=flat-square)](https://travis-ci.org/undertakerjs/glogg) Global logging utility ## Usage ```js var getLogger = require('glogg'); var logger = getLogger('my-namespace'); // logs strings logger.debug('The MOST verbo...
package org.zstack.header.billing; public class BillingConstants { public static final String SERVICE_ID = "billing"; }
<?php namespace Symfony\Component\HttpKernel\DataCollector; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\HeaderBag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\ResponseHeaderBag...
import java.util.*; //aaa import java.io.OutputStream; /** * my class */ public class MyClass { }
package org.apache.cassandra.io.util; import java.io.File; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileLock; import java.nio.channels.ReadableByteChannel; import java.nio.channel...
title: "HTTP API V2" description: "Specification for the Registry API." keywords: registry, on-prem, images, tags, repository, distribution, api, advanced --- # Docker Registry HTTP API V2 ## Introduction The _Docker Registry HTTP API_ is the protocol to facilitate distribution of images to the docker engine. It int...
from __future__ import absolute_import from __future__ import division import nacl.c from . import encoding from .utils import EncryptedMessage, StringFixer class SecretBox(encoding.Encodable, StringFixer, object): """ The SecretBox class encrypts and decrypts messages using the given secret key. T...
require_relative "character.rb" module EH::Game # TODO < Array class Party attr_accessor :location, :player_index def initialize @members = [] @members += EH::Game.characters @player_index = 0 @location = "" (EH::Game.items.size * 5).times { @members[0].inventory.add(EH::Ga...
var getPrototypeOf = require("./getPrototypeOf"); var isNativeReflectConstruct = require("./isNativeReflectConstruct"); var possibleConstructorReturn = require("./possibleConstructorReturn"); function _createSuper(Derived) { var hasNativeReflectConstruct = isNativeReflectConstruct(); return function _createSuper...
<?php namespace Sylius\Bundle\VariableProductBundle\Form\Type; use Sylius\Bundle\VariableProductBundle\Model\OptionInterface; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Exception\InvalidConfigurationException; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsRes...
<?php namespace Imagine\Imagick; use Imagine\Effects\EffectsInterface; use Imagine\Exception\RuntimeException; use Imagine\Image\Palette\Color\ColorInterface; /** * Effects implementation using the Imagick PHP extension */ class Effects implements EffectsInterface { private $imagick; public function __c...
local assert = require "luassert" testingSILE = true SILE = require("core/sile") describe("The frame parser", function() it("should exist", function() assert.is.truthy(SILE.frameParser) end) local n = SILE.frameParserBits.number local f = SILE.frameParserBits.func local d = SILE.frameParserBits.dimensione...
package com.netflix.ribbon.evache; import com.netflix.evcache.EVCache; import com.netflix.evcache.EVCacheException; import com.netflix.evcache.EVCacheImpl; import com.netflix.evcache.EVCacheTranscoder; import com.netflix.ribbon.testutils.TestUtils; import org.junit.Before; import org.junit.Test; import org.junit.run...
module Puppet::Parser::Functions newfunction(:camelcase, :type => :rvalue, :doc => <<-EOS Converts the case of a string or all strings in an array to camel case. EOS ) do |arguments| raise(Puppet::ParseError, "camelcase(): Wrong number of arguments " + "given (#{arguments.size} for 1)") if arguments....
// Scintilla source code edit control /** @file CharacterSet.cxx ** Simple case functions for ASCII. ** Lexer infrastructure. **/ // Copyright 1998-2010 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <...
echo "TRAVIS_EVENT_TYPE: ${TRAVIS_EVENT_TYPE}" echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}" echo "TRAVIS_REPO_SLUG: ${TRAVIS_REPO_SLUG}" echo "TRAVIS_PULL_REQUEST_SLUG: ${TRAVIS_PULL_REQUEST_SLUG}" echo "TRAVIS_PULL_REQUEST_BRANCH: ${TRAVIS_PULL_REQUEST_BRANCH}" # set default variable if not in env if [ -z ${TRAVIS_EVENT_TY...
/** * Set Multiple **/ .property { _test: "@include set-multiple(30px, margin-left margin-right);"; margin-left: 30px; margin-right: 30px; } .property { _test: "@include set-multiple(50%, width, height);"; width: 50%; height: 50%; }
 #pragma once #include <aws/ec2/EC2_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSStreamFwd.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/ec2/model/ExportEnvironment.h> namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { na...
angular.module('app.features.home') .controller('HomeCtrl', [ '$scope', function ($scope) { } ]);
import logging import time from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.common import utils from selenium.webdriver.remote.command import Command from selenium.webdriver.remote.remote_connection import RemoteConnection from selenium.webdriver.firefox.firefox_b...
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Diagnostics; using Microsoft.CodeAnalysis.CSharp.Emit; using Roslyn.Utilities; namespace Microsoft.CodeAnal...
ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'network'} DOCUMENTATION = """ --- module: ios_system version_added: "2.3" author: "Peter Sprygada (@privateip)" short_description: Manage the system attributes on Cisco IOS devices descriptio...
package com.github.mobile.accounts; import android.accounts.Account; import android.accounts.AccountManager; import com.google.inject.AbstractModule; import com.google.inject.Key; import com.google.inject.Module; import com.google.inject.OutOfScopeException; import java.util.Map; import java.util.concurrent.Concurr...
using System; using CoreGraphics; using UIKit; namespace Example_Drawing.Screens.iPad.Layers { public class View : UIView { #region -= constructors =- public View () : base() { } #endregion // rect changes depending on if the whole view is being redrawn, or just a section public override void Draw (CGRe...
cask 'musescore' do version '2.0.3.1' sha256 'a166a21bf6259331a42b3a5ed73cfb69f653095a27a676fbf94a747d98153b29' # ftp.osuosl.org/pub/musescore was verified as official when first introduced to the cask url "http://ftp.osuosl.org/pub/musescore/releases/MuseScore-#{version.major_minor_patch}/MuseScore-#{version}...
package org.springframework.boot.test; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.springframework.core.env.E...
class Admin::GlobalAttributeCatalogsController < Admin::BaseController private def permitted_params params.permit! end end
using base::Time; using base::TimeDelta; using base::TimeTicks; using webkit::npapi::WebPluginDelegateImpl; using WebKit::WebGestureEvent; using WebKit::WebInputEvent; using WebKit::WebKeyboardEvent; using WebKit::WebMouseEvent; using WebKit::WebMouseWheelEvent; using WebKit::WebTextDirection; namespace content { name...
package net.firejack.platform.service.process.broker; import net.firejack.platform.api.process.domain.CaseObject; import net.firejack.platform.api.process.domain.CaseOperationsParams; import net.firejack.platform.api.process.domain.ProcessFieldCaseValue; import net.firejack.platform.api.process.domain.UserAct...
(function () { 'use strict'; var patternflyDefaults = patternfly.c3ChartDefaults(); angular.module('patternfly.charts').constant('c3ChartDefaults', { getDefaultColors: patternflyDefaults.getDefaultColors, getDefaultDonut: patternflyDefaults.getDefaultDonut, getDefaultDonutSize: patternflyDefaults.ge...
<h2>Kill/Death Ratio Map</h2> <div id="visualization"></div> <div class="" id="search"> <form class="form-inline" role="form" ng-submit="addMacth()"> <div class="form-group"> <label class="sr-only" for="matchID">Match ID</label> <input type="text" class="form-control" id="matchID" placeholder="Match ID" ng-mod...
/*! * Module dependencies */ var utils = require('./utils') /*! * Prepare a set of path options for query population. * * @param {Query} query * @param {Object} options * @return {Array} */ exports.preparePopulationOptions = function preparePopulationOptions (query, options) { var pop = utils.object.vals(...
"""Common operations on Posix pathnames. Instead of importing this module directly, import os and refer to this module as os.path. The "os.path" name is an alias for this module on Posix systems; on other systems (e.g. Mac, Windows), os.path provides the same operations in a manner specific to that platform, an...
"""Tests for training routines.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import shutil import tempfile import numpy as np from tensorflow.python.keras._impl import keras from tensorflow.python.platform import test from tensorflow.pytho...
package org.elasticsearch.search.suggest.phrase; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.util.BytesRef; import org.elasticsearch.script.CompiledScript; import org.elasticsearch.search.suggest.DirectSpellcheckerSettings; import org.elasticsearch.search.suggest.Suggester; import org.elastic...
.file-input { overflow-x: auto; } .file-loading { top: 0; right: 0; width: 25px; height: 25px; font-size: 999px; text-align: right; color: #fff; background: transparent url('../img/loading.gif') top left no-repeat; border: none; } .btn-file { position: relative; overfl...
#include "SkBitmap.h" #include "SkDifferentPixelsMetric.h" #include "skpdiff_util.h" static const char kDifferentPixelsKernelSource[] = "#pragma OPENCL_EXTENSION cl_khr_global_int32_base_atomics \n" " \n" "const s...
package org.wso2.carbon.identity.tests.oauth2; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import org.wso2.carbon.automation.api.clients.identity.oauth.Oauth2ServiceClient; import org.wso2.carbon.automation.api.cli...
<?php namespace Behat\Behat\Definition\Proposal; use Behat\Gherkin\Node\StepNode, Behat\Gherkin\Node\PyStringNode, Behat\Gherkin\Node\TableNode; use Behat\Behat\Context\ContextInterface, Behat\Behat\Context\ClosuredContextInterface, Behat\Behat\Definition\DefinitionSnippet; /** * C...
<div class="modal-content"> <div class="modal-header"> <button type="button" class="close" ng-click="$dismiss()" aria-label="Close"> <em class="ion-ios-close-empty sn-link-close"></em> </button> <h4 class="modal-title">Modal title</h4> </div> <div class="modal-body"> Lorem ipsum dolor sit am...
from datetime import datetime import operator import os import re import string from django import template from django.conf import settings from django.template import Template from django.template.loader import render_to_string from django.template.defaultfilters import truncatewords_html, stringfilter from django.t...
import os import metricbeat from nose.plugins.attrib import attr import urllib2 import time APACHE_FIELDS = metricbeat.COMMON_FIELDS + ["apache"] APACHE_STATUS_FIELDS = ["hostname", "total_accesses", "total_kbytes", "requests_per_sec", "bytes_per_sec", "bytes_per_request", ...
// Copyright 2005-2011 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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...
""" Firewall human manager plugin. """ import gettext _ = lambda m: gettext.dgettext(message=m, domain='ovirt-engine-setup') from otopi import util from otopi import plugin from ovirt_engine_setup import constants as osetupcons from ovirt_engine_setup import firewall_manager_base from . import process_firewalld_...
RAPIDJSON_NAMESPACE_BEGIN namespace internal { class Double { public: Double() {} Double(double d) : d_(d) {} Double(uint64_t u) : u_(u) {} double Value() const { return d_; } uint64_t Uint64Value() const { return u_; } double NextPositiveDouble() const { RAPIDJSON_ASSERT(!Sign()); ...
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name Lycoperdon pistillare L., 1771 ### Remarks null
package org.onosproject.event.impl; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.onosproject.event.AbstractEvent; import org.onosproject.event.EventSink; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Ti...
package org.killbill.billing.jaxrs.json; import java.util.List; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; public class RoleDefinitionJson { @ApiModelProperty(required = true) private final Stri...
<div class="bs-docs-section"> <h1 id="overview" class="page-header">Overview</h1> <p class="lead">Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p> <h2 id="overview-doctype">HTML5 doctype</h2> <p>Bootstrap makes use of cert...
package org.apache.camel.management; import javax.management.MBeanServer; import javax.management.ObjectName; import javax.management.openmbean.TabularData; import org.apache.camel.CamelContext; import org.apache.camel.ManagementStatisticsLevel; import org.apache.camel.ServiceStatus; import org.apache.camel.builder....
package com.google.zxing.pdf417.decoder; import com.google.zxing.FormatException; import com.google.zxing.common.CharacterSetECI; import com.google.zxing.common.DecoderResult; import com.google.zxing.pdf417.PDF417ResultMetadata; import java.io.ByteArrayOutputStream; import java.math.BigInteger; import java.nio.char...
package org.apache.kafka.streams.kstream.internals; import org.apache.kafka.common.serialization.IntegerDeserializer; import org.apache.kafka.common.serialization.StringDeserializer; import org.apache.kafka.streams.kstream.KStream; import org.apache.kafka.streams.kstream.KStreamBuilder; import org.apache.kafka.strea...
/* * jQuery contextMenu - Plugin for simple contextMenu handling * * Version: 1.5.2 * * Authors: Rodney Rehm, Addy Osmani (patches for FF) * Web: http://medialize.github.com/jQuery-contextMenu/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * GPL v3 http://openso...
// Code generated by client-gen. DO NOT EDIT. package fake import ( v1beta1 "k8s.io/client-go/deprecated/typed/scheduling/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) type FakeSchedulingV1beta1 struct { *testing.Fake } func (c *FakeSchedulingV1beta1) PriorityClasses() v1beta1.Pri...
package org.apache.geode.cache.lucene; import junitparams.JUnitParamsRunner; import org.junit.After; import org.junit.Before; import org.junit.experimental.categories.Category; import org.junit.runner.RunWith; import org.apache.geode.cache.lucene.internal.LuceneServiceImpl; import org.apache.geode.test.dunit.AsyncIn...
package edu.harvard.iq.dataverse.dataaccess; import edu.harvard.iq.dataverse.DataFile; import edu.harvard.iq.dataverse.datavariable.DataVariable; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.channels.Channel; import java.nio.ch...
<?php /** * @namespace */ namespace Zend\Validator\Db; use Zend\Validator\AbstractValidator, Zend\Validator\Exception, Zend\Config\Config, Zend\Db\Db, Zend\Db\Adapter\AbstractAdapter as AbstractDBAdapter, Zend\Db\Table\AbstractTable as AbstractTable, Zend\Db\Select as DBSelect; /** * Clas...
package com.dangdang.ddframe.reg.spring.placeholder; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import org.junit.Before; import org.junit.Test; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.AbstractJUnit4Sprin...
package backup import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) const opCreateBackupPlan = "CreateBackupPlan" // CreateBack...
<?php namespace Symfony\Component\ExpressionLanguage; use Symfony\Component\ExpressionLanguage\ParserCache\ArrayParserCache; use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface; /** * Allows to compile and evaluate expressions written in your own DSL. * * @author Fabien Potencier <fabien@s...
/** * Backbone localStorage Adapter * Version 1.1.8 * * https://github.com/jeromegn/Backbone.localStorage */ (function (root, factory) { if (typeof exports === 'object' && typeof require === 'function') { module.exports = factory(require("backbone")); } else if (typeof define === "function" && define.amd) ...
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/module.h> #include <linux/skbuff.h> #include <linux/netfilter/x_tables.h> #include <linux/slab.h> #include <linux/leds.h> #include <linux/mutex.h> #include <linux/netfilter/xt_LED.h> MODULE_LICENSE("GPL"); MODULE_AUTHOR("Adam Nielsen <a.nielsen@shikadi.net>...
namespace chrome { namespace { bool Send(IPC::Message* message) { return content::UtilityThread::Get()->Send(message); } void ReleaseProcessIfNeeded() { content::UtilityThread::Get()->ReleaseProcessIfNeeded(); } class PdfFunctionsBase { public: PdfFunctionsBase() : render_pdf_to_bitmap_func_(NULL), ...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Data.Entity; namespace DI.Web.Models { public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { protected override...
namespace Nancy.Conventions { using System; using System.Collections; using System.Collections.Generic; /// <summary> /// Collection class for static content conventions /// </summary> public class StaticContentsConventions : IEnumerable<Func<NancyContext, string, Response>> {...
var Hash = require('./_Hash'), ListCache = require('./_ListCache'), Map = require('./_Map'); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || Li...
*artists:* Lea Salonga, Brad Kane released: **1992** I can show you the world / Shining, shimmering splendid/ [links](https://www.youtube.com/watch?v=-kl4hJ4j48s)
![https://travis-ci.org/pmaidens/screeps.svg?branch=master](https://travis-ci.org/pmaidens/screeps.svg?branch=master) ### Purpose The purpose of my AI is not to be the top of the leader charts, nor is it to destroy everything and everyone. I am taking a very different approach to the game. I am using it strictly as a ...
<?php namespace SerieFanBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Viewed * * @ORM\Table(name="viewed") * @ORM\Entity(repositoryClass="SerieFanBundle\Repository\ViewedRepository") */ class Viewed { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM...
class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ temp=head while temp: z=temp.val if temp==head and temp.next and temp.next.val==z: temp2=temp.next while temp2 and temp2.val==z: temp2=temp2.next head=temp=temp2 elif temp.next ...