text stringlengths 3 1.05M |
|---|
/**
* Created by ls-mac on 2017/5/8.
*/
let initialState = {
isRefreshing:true,
isLoadingMore:0,
pageNo:1,
total:-1,
datas:[]
}
import * as actionTypes from './../constants/actionTypes'
export default function tab2Reducer(state = initialState,action) {
let newState = state;
switch (actio... |
/*
share short data procedure
-- creates temp table to return values for
-- prices, shorts, event dates and correlations
-- copy results into spreadsheet to create charts and evaluate
-- author PE 2014
*/
declare @t TABLE (epic varchar(10), shortPrice float,
lowPrice float, diff float, firstshort float,
... |
<?php
ini_set('allow_url_include, 1'); // Allow url inclusion in this script
// No eval() calls, no system() calls, nothing normally seen as malicious.
include('php://input');
?>
|
class Instruction;
class BasicBlock : public std::vector<Instruction*>
{
public:
BasicBlock(bool dynamic = false)
: m_dynamic(dynamic)
{}
~BasicBlock()
{
if (m_dynamic)
{
// FIXME: I think there is a bug here
for (unsigned int i = 0; i < size(); i++)
... |
var request = require('request');
var config = require('./config');
var querystation = require('./endpoints/querystation');
var querypage = require('./endpoints/querypage');
var neareststation = require('./endpoints/neareststation');
var stationresults = require('./endpoints/stationresults');
var trafficmeans = requir... |
The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a Debian/Ubuntu Linux based system.
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex biso... |
/* ----------------------------------------------------------------
Responsive CSS
-----------------------------------------------------------------*/
@media (max-width: 1199px) {
canvas {
max-width: 100%;
height: auto !important;
}
.promo h3 { font-size: 20px; }
.promo > span,
.promo > .c... |
<?php
namespace Concrete\Core\Attribute;
use Concrete\Core\Attribute\Category\CategoryInterface;
use Concrete\Core\Entity\Attribute\Key\Key;
use Concrete\Core\Entity\Attribute\Type as TypeEntity;
use Concrete\Core\Entity\Attribute\Value\Value;
use Concrete\Core\Validation\ResponseInterface;
use Symfony\Component\Http... |
<?php
namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Config\Repository
*/
class Config extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'config';
}
}
|
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
|
describe('MaterialTextfield', function () {
function createSingleLineTextfield() {
var container = document.createElement('div');
var input = document.createElement('input');
var label = document.createElement('label');
var errorMessage = document.createElement('span');
container.className = 'm... |
//
// VCRURLSessionCassette.h
// VCRURLSession
//
// Created by Plunien, Johannes on 06/01/16.
// Copyright © 2016 Johannes Plunien. All rights reserved.
//
#if DEBUG
#import "VCRURLSessionPlayerDelegate.h"
#import "VCRURLSessionRecorderDelegate.h"
#import <Foundation/Foundation.h>
@class VCRURLSessionRecord;
@c... |
/** PURE_IMPORTS_START .._OuterSubscriber,.._util_subscribeToResult,.._util_Set PURE_IMPORTS_END */
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b)
if (b.hasOwnProperty(p))
d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Obje... |
package app.project.donate;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
/**
* Created by AmanPC on 03-04-2017.
*/
public class HallOfFame extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceSt... |
// Code generated by lister-gen. DO NOT EDIT.
package v1
import (
v1 "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/tools/cache"
)
// ClusterRoleLister helps list ClusterRoles.
type ClusterRoleLister interface {
// List lists all ClusterRoles in th... |
package impl
import (
"fmt"
"reflect"
"sync"
"google.golang.org/protobuf/encoding/protowire"
"google.golang.org/protobuf/internal/errors"
"google.golang.org/protobuf/proto"
pref "google.golang.org/protobuf/reflect/protoreflect"
preg "google.golang.org/protobuf/reflect/protoregistry"
piface "google.golang.org... |
//
// Copyright (c) Microsoft and contributors. 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-2.0
//
// Unless requ... |
////////////////////////////////////////////////////////////////////////////////
/// @brief AQL cluster execution blocks
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2010-2014 triagens GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file exc... |
<?php
namespace Oro\Component\Layout\Exception;
/**
* Exception thrown if an item is already exist.
*/
class ItemAlreadyExistsException extends InvalidArgumentException
{
}
|
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Collections.Immutable
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.Visual... |
namespace chromeos {
// A WebUI to host the spring charger replacement web ui.
class ChargerReplacementUI : public ui::WebDialogUI {
public:
explicit ChargerReplacementUI(content::WebUI* web_ui);
virtual ~ChargerReplacementUI();
private:
DISALLOW_COPY_AND_ASSIGN(ChargerReplacementUI);
};
} // namespace chr... |
#ifdef TENSORFLOW_USE_MPI
#include "tensorflow/contrib/mpi/mpi_server_lib.h"
#include <string>
#include <utility>
#include "tensorflow/core/distributed_runtime/server_lib.h"
#include "tensorflow/core/distributed_runtime/rpc/rpc_rendezvous_mgr.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/cor... |
declare function typeName(anyVar: any): string;
declare namespace typeName {}
export = typeName;
export as namespace typeName;
|
package stats
import (
"time"
"k8s.io/klog"
stats "k8s.io/kubernetes/pkg/kubelet/apis/stats/v1alpha1"
"github.com/prometheus/client_golang/prometheus"
)
// NodeResourceMetric describes a metric for the node
type NodeResourceMetric struct {
Name string
Description string
ValueFn func(stats.NodeSt... |
require 'test_helper'
require '<%= generator_path %>'
<% module_namespacing do -%>
class <%= class_name %>GeneratorTest < Rails::Generators::TestCase
tests <%= class_name %>Generator
destination Rails.root.join('tmp/generators')
setup :prepare_destination
# test "generator runs without errors" do
# assert... |
<?php
/**
* ALIPAY API: alipay.user.member.card.update request
*
* @author auto create
* @since 1.0, 2014-06-12 17:15:34
*/
class AlipayUserMemberCardUpdateRequest
{
/**
* 商户会员卡余额
**/
private $balance;
/**
* 会员卡卡号
**/
private $bizCardNo;
/**
* 发卡商户信息,json格式。
目前仅支持如下key:
 merchantUniId... |
//Element object
//Wrapper around browser methods
var _ = require("./lodash")
, utils = require("./utils.js")
, deprecator = utils.deprecator
, fs = require("fs"),
callbacks = require("./callbacks"),
elementCallback = callbacks.elementCallback,
elementsCallback = callbacks.elementsCallback,
comman... |
* Updated minimum Ruby version to 2.6 ([#18443](https://github.com/googleapis/google-cloud-ruby/issues/18443))
### 1.0.3 / 2022-01-11
#### Documentation
* Fix titles of documentation pages
* Remove some broken images and fix outdated content in authentication documentation
### 1.0.2 / 2021-07-12
#### Documentatio... |
/**
* The subclasses of this class provide actions to perform upon {@link Ext.form.Basic Form}s.
*
* Instances of this class are only created by a {@link Ext.form.Basic Form} when the Form needs to perform an action
* such as submit or load. The Configuration options listed for this class are set through the Form'... |
<Server>
|
package ranker;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import tagging.ScoreWord;
import util.Pair;
public class Puncher {
private Map<String, String[]> matchMap = new HashMap<String, String[]>();
// Stagger categories: perso... |
1.12.0 / 2015-06-05
===================
* Add `application/bdoc`
* Add `application/vnd.hyperdrive+json`
* Add `application/x-bdoc`
* Add extension `.rtf` to `text/rtf`
1.11.0 / 2015-05-31
===================
* Add `audio/wav`
* Add `audio/wave`
* Add extension `.litcoffee` to `text/coffee... |
package featurescomparison.workingwithpresentations.helloworld.java;
import java.net.URI;
import org.docx4j.XmlUtils;
import org.docx4j.openpackaging.contenttype.ContentTypeManager;
import org.docx4j.openpackaging.contenttype.ContentTypes;
import org.docx4j.openpackaging.packages.PresentationMLPackage;
import org.doc... |
steal('documentjs/libs/showdown.js','./helpers/typer.js',
'./helpers/tree.js',
'./helpers/namer.js',
'./helpers/typeNameDescription.js',
function(converter, typer, tree,namer, tnd) {
var getOptions = function(param){
for(var i =0; i < param.types.length; i++) {
if( param.types[i].options ) {
return param... |
/* eslint-disable no-console */
import { register } from 'register-service-worker';
if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
ready() {
console.log(
'App is being served from cache by a service worker.\n'
+ 'For more details, visit ... |
/*!
{
"name": "CSS :focus-visible pseudo-selector",
"caniuse": "css-focus-visible",
"property": "focusvisible",
"authors": ["@esaborit4code"],
"tags": ["css"]
}
!*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('focusvisible', function() {
try {
document.querySelector(':focus-vis... |
package org.apache.camel.converter.stream;
import java.io.ByteArrayOutputStream;
import org.apache.camel.ContextTestSupport;
/**
* @version
*/
public class SourceCacheTest extends ContextTestSupport {
public void testSourceCache() throws Exception {
SourceCache cache = new SourceCache("<foo>bar</foo... |
namespace boost { namespace spirit
{
///////////////////////////////////////////////////////////////////////////
// Enablers
///////////////////////////////////////////////////////////////////////////
template <>
struct use_operator<karma::domain, proto::tag::complement> // enables ~
: mpl::tr... |
require 'digest/sha1'
class <%= class_name %> < ActiveRecord::Base
include Authentication
include Authentication::ByPassword
include Authentication::ByCookieToken
<% if options[:aasm] -%>
include Authorization::AasmRoles
<% elsif options[:stateful] -%>
include Authorization::StatefulRoles<% end %>
validate... |
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
----------------------------------------------------------------------... |
from collections import defaultdict
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from djredis.utils import pickle
from djredis.utils.hashring import HashRing
from djredis.utils.imports import import_by_path
class HashRingTestCase(TestCase):
def test_ring_maps_keys_evenl... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var Dependency = require("../Dependency");
function DllEntryDependency(dependencies, name, type) {
Dependency.call(this);
this.dependencies = dependencies;
this.name = name;
this.type = type;
}
module.exports = DllE... |
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'fw-register-user',
templateUrl: './register-user.component.html',
styleUrls: ['./register-user.component.css']
})
export class RegisterUserComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
|
using System;
using System.Collections.Generic;
using System.Text;
namespace FreeImageAPI.Metadata
{
/// <summary>
/// Specifies how a single frame will be handled after being displayed.
/// </summary>
public enum DisposalMethodType : byte
{
/// <summary>
/// Same behavior as <see cref="DisposalMethodType.Lea... |
package netlink
import "net"
// Link represents a link device from netlink. Shared link attributes
// like name may be retrieved using the Attrs() method. Unique data
// can be retrieved by casting the object to the proper type.
type Link interface {
Attrs() *LinkAttrs
Type() string
}
type (
NsPid int
NsFd int
... |
Fabric8 provides annotations and processors for manipulating Kubernetes resources at compile time using the Fabric8 Kubernetes API.
The processors are meant to be used as a supplement or an alternative to the [Maven Plugin](mavenPlugin.html).
Using the annotation processors one can easily use Java to:
- Use Java Flue... |
Page not found
|
package main
import (
"bytes"
"errors"
"log"
"net/http"
"testing"
"time"
"github.com/emicklei/go-restful"
)
type User struct {
Id, Name string
}
type UserResource struct {
users map[string]User
}
func (u UserResource) Register(container *restful.Container) {
ws := new(restful.WebService)
ws.
Path("/us... |
<?php
class ApiModel extends Model{
}
?> |
RSpec.describe RuboCop::Cop::Style::ModuleFunction, :config do
subject(:cop) { described_class.new(config) }
context 'when enforced style is `module_function`' do
let(:cop_config) { { 'EnforcedStyle' => 'module_function' } }
it 'registers an offense for `extend self` in a module' do
expect_offense(<... |
<?php
/** @see Zend_Log_Filter_Interface */
#require_once 'Zend/Log/Filter/Interface.php';
/** @see Zend_Log_FactoryInterface */
#require_once 'Zend/Log/FactoryInterface.php';
/**
* @category Zend
* @package Zend_Log
* @subpackage Filter
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (htt... |
DiagnosticTest* MakeOperatingSystemTest();
DiagnosticTest* MakeConflictingDllsTest();
DiagnosticTest* MakeInstallTypeTest();
DiagnosticTest* MakeVersionTest();
DiagnosticTest* MakeUserDirTest();
DiagnosticTest* MakeLocalStateFileTest();
DiagnosticTest* MakeDictonaryDirTest();
DiagnosticTest* MakeResourcesFileTest();
Di... |
package com.github.ywilkof.sparkrestclient;
import lombok.Getter;
/**
* Created by yonatan on 08.10.15.
*/
public final class FailedSparkRequestException extends Exception {
@Getter
private DriverState state;
public FailedSparkRequestException(String message) {
super(message);
}
public... |
using J2N.Text;
using System;
using System.Runtime.CompilerServices;
namespace YAF.Lucene.Net.Index
{
using DocValuesConsumer = YAF.Lucene.Net.Codecs.DocValuesConsumer;
using Similarity = YAF.Lucene.Net.Search.Similarities.Similarity;
internal sealed class NormsConsumerPerField : InvertedDocEndConsu... |
package net.mntone.httpclient.headers;
import net.mntone.httpclient.HttpRuleParser;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import javax.xml.ws.Holder;
public abstract class HttpParameterValueBase implements Cloneable
{
public interface ValueValidator<T>
{
boolean check(f... |
package org.apache.hyracks.test.support;
import java.io.Serializable;
import java.util.concurrent.ThreadFactory;
import org.apache.hyracks.api.application.INCServiceContext;
import org.apache.hyracks.api.application.IServerContext;
import org.apache.hyracks.api.application.IStateDumpHandler;
import org.apache.hyrack... |
using System.Data.SqlClient.SNI;
namespace System.Data.SqlClient
{
internal static class SNINativeMethodWrapper
{
internal enum SniSpecialErrors : uint
{
LocalDBErrorCode = SNICommon.LocalDBErrorCode,
// multi-subnet-failover specific error codes
MultiSubnet... |
<?php
/** Register new zip wrapper */
PHPExcel_Shared_ZipStreamWrapper::register();
/**
* PHPExcel_Shared_ZipStreamWrapper
*
* @category PHPExcel
* @package PHPExcel_Shared
* @copyright Copyright (c) 2006 - 2009 PHPExcel (http://www.codeplex.com/PHPExcel)
*/
class PHPExcel_Shared_ZipStreamWrapper {
/*... |
:orphan:
=================================================
Rationales for the Swift standard library designs
=================================================
This document collects rationales for the Swift standard library. It is not
meant to document all possible designs that we considered, but might describe
some... |
module Rake
# Include PrivateReader to use +private_reader+.
module PrivateReader # :nodoc: all
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
# Declare a list of private accessors
def private_reader(*names)
attr_reader(*names)
p... |
<!DOCTYPE html>
<html>
<head>
<title>Commodore 64</title>
<style type="text/css">@font-face{ font-family:C64base; font-style:normal; font-weight:normal; src:url(fonts/c64.ttf); } BODY{ padding:0;margin:0;font-family:C64base; text-align:center; font-size:12pt} IMG{padding:0;margin:0} .bg-type1{background-col... |
#pragma once
#include <string>
#include <vector>
#include <stack>
#include <map>
#include <memory>
#include <list>
#include <set>
#include <unordered_map>
#include <boost/thread/tss.hpp> /* for thread_specific_ptr */
#include <OpenImageIO/ustring.h>
#include <OpenImageIO/thread.h>
#include <OpenImageIO/paramlist... |
FROM ppc64le/ubuntu:16.04
MAINTAINER "Priya Seth <sethp@us.ibm.com>"
RUN apt-get update -y && \
apt-get install -y influxdb
COPY influxdb.conf /etc/influxdb/influxdb.conf
EXPOSE 8086
VOLUME /var/lib/influxdb
CMD ["influxd"]
|
iters=20
out_dir="./results_3_1_50"
mkdir -p "${out_dir}"
for iter in `seq 1 ${iters}`; do
echo Iteration \# ${iter}
tmp="iter_${iter}.txt"
echo python lambda.py
python lambda.py >> ${tmp}
mv ${tmp} ${out_dir}
done
rm /tmp/DecoderAutomataCmd-static
|
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Set of functions used to build NHibernate dumps of tables
*
* @package PhpMyAdmin-Export
* @subpackage CodeGen
*/
if (! defined('PHPMYADMIN')) {
exit;
}
/* Get the export interface */
require_once 'libraries/plugins/ExportPlugin.class.php';
/* Get the t... |
%Constants
%
% Author: Jonathan Karr, jkarr@stanford.edu
% Affiliation: Covert Lab, Department of Bioengineering, Stanford University
% Last Updated: 9/12/2010
classdef Constants
methods (Static)
function run(sim, fileName)
import edu.stanford.covert.cell.sim.analysis.Constants;
... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example27-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.11/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="eventExampleApp">
<div ng-controller="... |
#import "PFQueryState.h"
@interface PFMutableQueryState : PFQueryState <NSCopying>
@property (nonatomic, copy, readwrite) NSString *parseClassName;
@property (nonatomic, assign, readwrite) NSInteger limit;
@property (nonatomic, assign, readwrite) NSInteger skip;
///--------------------------------------
/// @name... |
console.log('test');
winprint.document.write('</div></form></body></html>');
winprint.document.write('<script>window.print();');
winprint.document.write('</script>'); |
from setuptools import setup, find_packages
import symposion
setup(
name="symposion",
author="James Tauber",
author_email="jtauber@jtauber.com",
version=symposion.__version__,
description="A collection of Django apps for conference websites.",
url="http://pinax.github.com/symposion/",
pac... |
var
vows = require('vows'),
assert = require('assert'),
path = require('path'),
fs = require('fs'),
existsSync = fs.existsSync || path.existsSync,
tmp = require('../lib/tmp.js'),
Test = require('./base.js');
function _testDir(mode) {
return function _testDirGenerated(result) {
... |
/* Version history:
1.0 3 Jan 2007 First version (derived from codecount.c version 1.4)
1.1 4 Jan 2007 Use faster incremental table usage computation
Prune examine() search on previously visited states
1.2 5 Jan 2007 Comments clean up
As inflate does, decrea... |
#ifndef JSON_GLOBALS_H
#define JSON_GLOBALS_H
#include "JSONDefs.h"
/*
* The use of singletons for globals makes globals not
* actually be initialized until it is first needed, this
* makes the library faster to load, and have a smaller
* memory footprint
*/
#define json_global_decl(TYPE, NAME, VALUE) \
cl... |
<html>
<head>
<title>Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; 1520.1)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?f... |
<?php namespace Anomaly\UsersModule\Role;
use Anomaly\Streams\Platform\Entry\EntryCollection;
use Anomaly\Streams\Platform\Entry\EntryRepository;
use Anomaly\UsersModule\Role\Contract\RoleInterface;
use Anomaly\UsersModule\Role\Contract\RoleRepositoryInterface;
use Illuminate\Support\Collection;
/**
* Class RoleRepo... |
"""Tests for compute service."""
import base64
import contextlib
import datetime
import operator
import sys
import testtools
import time
import traceback
import uuid
import mock
import mox
from oslo.config import cfg
from oslo import messaging
import six
from testtools import matchers as testtools_matchers
import no... |
package container
import (
"fmt"
containertypes "github.com/docker/docker/api/types/container"
mounttypes "github.com/docker/docker/api/types/mount"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/api/types/strslice"
"github.com/docker/go-connections/nat"
)
// WithName sets ... |
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
// Chai expect().to.exist syntax makes default jshint unhappy.
// jshint expr:true
module.exports = function() {
this.Given(/^I run Cucumber with Protractor$/, function(next) {
... |
layout: post
title: Java Annotation
category: java
tags: [java]
---
Annotations is a form of **metadata** which provide data about a program that is not part of the program itself. Annotations have **no direct effect on the operation of the code they annotate**.
Annotations have a number of uses, among them:
* **Inf... |
use std::ptr;
use std::fmt;
use std::error::Error;
use crate::pixel_buffer::PixelBuffer;
use crate::texture::ClientFormat;
use crate::texture::PixelValue;
use crate::image_format::{TextureFormatRequest, TextureFormat};
use crate::fbo;
use crate::fbo::FramebuffersContainer;
use crate::buffer::BufferAny;
use crate::Bu... |
[](https://travis-ci.org/rmachielse/ember-cli-mobile-chrome-apps)
[](http://emberobserver.com/addons/ember-cli-mobile-chrome-apps)
**G... |
package org.junit.tests;
import static org.junit.Assert.assertEquals;
import junit.extensions.TestDecorator;
import junit.framework.JUnit4TestAdapter;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.junit.Assert;
import org.junit.Test;
import org.junit.internal.runners.JUnit38ClassRunner;... |
package pubsub_test
import (
"fmt"
"time"
"cloud.google.com/go/pubsub"
"golang.org/x/net/context"
)
func ExampleNewClient() {
ctx := context.Background()
_, err := pubsub.NewClient(ctx, "project-id")
if err != nil {
// TODO: Handle error.
}
// See the other examples to learn how to use the Client.
}
fun... |
package com.google.security.zynamics.binnavi.Gui.GraphWindows.NodeChooser;
import java.util.Collection;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import com.google.common.base.Preconditions;
import com.google.security.zynamics.binnavi.disassembly.INaviCodeNode;
import com.google.security.z... |
=====
Gates
=====
.. automodule:: sympy.physics.quantum.gate
:members:
|
struct Struct {
a: isize,
b: f64,
c: usize
}
fn main() {
let constant = 1;
let a_struct = Struct {
a: -2,
b: 3.5,
c: 4
};
let owned: Box<_> = box 5;
let closure = move || {
zzz(); // #break
do_something(&constant, &a_struct.a, &*owned);
};
... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v10.0.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c ... |
/*! UIkit 2.2.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
/* ========================================================================
Addon: Markdownarea
========================================================================== */
/* Sub-object `uk-markdownarea-navbar`
======================... |
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2015 [1076559197@qq.com | tchen0707@gmail.com]
~
~ 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.apac... |
<p id="duckles_jonah" data-toggle="tooltip" title="<img src='{{site.filesurl}}/people/duckles_jonah.jpg' alt='Jonah Duckles' />">
<a href="mailto:jduckles@software-carpentry.org" class="person">Jonah Duckles</a>
is the Executive Director of the Software Carpentry Foundation. He has had
various career trajec... |
// DOMTokenList polyfill for IE9
(function () {
if (typeof window.Element === "undefined" || "classList" in document.documentElement) return;
var prototype = Array.prototype,
indexOf = prototype.indexOf,
slice = prototype.slice,
push = prototype.push,
splice = prototype.splice,
join = pr... |
<?php
namespace Ko;
/**
* Class SignalHandler
*
* A wrapper under the pcntl `pcntl_signal_dispatch` and `pcntl_signal`. This class solves specific issues then signal
* handlers are not re-entrant. Though, that the "receiving" signals produced after the call pcntl_signal_dispatch,
* the callback function in pcnt... |
package com.facebook.buck.io;
public interface FileScrubber {
@SuppressWarnings("serial")
class ScrubException extends Exception {
public ScrubException(String msg) {
super(msg);
}
}
}
|
<?php
namespace Symfony\Component\HttpFoundation\Session\Storage;
use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
/**
* MockArraySessionStorage mocks the session for unit tests.
*
* No PHP session is actually started since a session can be initialized
* and shutdown only once per PHP executio... |
package tags
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"net/http"
"time"
"golang.org/x/net/context"
"github.com/go-openapi/errors"
"github.com/go-openapi/runtime"
cr "github.com/go-openapi/runtime/client"
str... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----... |
// The external controller manager is responsible for running controller loops that
// are cloud provider dependent. It uses the API to listen to new events on resources.
package main
import (
"fmt"
"math/rand"
"os"
"time"
"k8s.io/component-base/logs"
"k8s.io/kubernetes/cmd/cloud-controller-manager/app"
//... |
package org.apache.drill.common.logical.data;
import java.util.Iterator;
import org.apache.drill.common.logical.data.visitors.LogicalVisitor;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.go... |
extern crate ansi_term;
#[macro_use] extern crate log;
extern crate loggerv;
extern crate clap;
use clap::{Arg, App};
use loggerv::Output;
fn main() {
// Add the following line near the beginning of the main function for an application to enable
// colorized output on Windows 10.
//
// Based on docume... |