text stringlengths 3 1.05M |
|---|
//
// IStreamSocket.cs
//
// Author:
// Eric Maupin <me@ermau.com>
//
// Copyright (c) 2011 Eric Maupin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Altbit</source>
<translation>Om Altbit</translation>
</message>
... |
<?php
namespace SilverShop\ORM\FieldType;
use SilverStripe\ORM\FieldType\DBCurrency;
/**
* Improvements to Currency for presenting in templates.
*
* @package shop
*/
class ShopCurrency extends DBCurrency
{
/**
* The shop currency decimal delimiter
*
* @config
* @var string
*/
... |
using System;
using System.Reflection;
namespace MsgPack.Serialization.Metadata
{
internal static class _MessagePackObject
{
public static readonly MethodInfo AsString = FromExpression.ToMethod( ( MessagePackObject mpo ) => mpo.AsString() );
public static readonly PropertyInfo IsNil = FromExpression.ToProperty(... |
/* $OpenBSD$ */
/* ====================================================================
* Copyright (c) 2008 The OpenSSL Project. All rights reserved.
*
* Rights for redistribution and usage in source and binary
* forms are granted according to the OpenSSL license.
*/
#include <stddef.h>
typedef void (*block128_... |
#import <Foundation/Foundation.h>
@class CDVInvokedUrlCommand;
@class CDVViewController;
@interface CDVCommandQueue : NSObject
@property (nonatomic, readonly) BOOL currentlyExecuting;
- (id)initWithViewController:(CDVViewController*)viewController;
- (void)dispose;
- (void)resetRequestId;
- (void)enqueCommandBat... |
package org.apache.jackrabbit.core.query.lucene;
import org.apache.jackrabbit.core.state.NodeState;
import org.apache.jackrabbit.core.query.QueryHandlerContext;
import org.apache.jackrabbit.spi.Name;
import org.apache.lucene.analysis.Analyzer;
import org.w3c.dom.Element;
/**
* <code>IndexingConfiguration</code> def... |
page_title: "vagrant destroy - Command-Line Interface"
sidebar_current: "cli-destroy"
---
# Destroy
**Command: `vagrant destroy`**
This command stops the running machine Vagrant is managing and
destroys all resources that were created during the machine creation process.
After running this command, your computer sho... |
{% from 'flagit/includes/macros.html' import date_by_user with context %}
<h3>{{ _('Title:') }}</h3>
<p class="title">{{ object.content_object.title }}</p>
<h3>{{ _('Content:') }}</h3>
<div class="content">{{ object.content_object.content_parsed }}</div>
<h3>{{ _('Created:') }}</h3>
<p class="created">
{{ date_by_use... |
actions :request, :cancel
attribute :timeout, :kind_of => Integer, :name_attribute => true
attribute :reason, :kind_of => String, :default => ''
def initialize(name,run_context=nil)
super
@action = :request
end
|
<?php
namespace Symfony\Tests\Component\DependencyInjection;
use Symfony\Component\DependencyInjection\Definition;
class DefinitionTest extends \PHPUnit_Framework_TestCase
{
/**
* @covers Symfony\Component\DependencyInjection\Definition::__construct
*/
public function testConstructor()
{
... |
from setuptools import setup, find_packages
from hueversion import VERSION
setup(
name = "pig",
version = VERSION,
author = "Hue",
url = 'http://github.com/cloudera/hue',
description = "Demos on how to collect, process and anlyse Big Data",
packages = find_packages('src'),
pac... |
.col-center-block {
float: none;
display: block;
margin-left: auto;
margin-right: auto;
}
.row-margin{
margin-top: 15px;
}
.unclickable { pointer-events: none; }
.clickable { pointer-events: auto; } |
set -e
PATH=$(npm bin):$PATH
rm -rf ./__site__
rm -rf ./__site_prerender__
./node_modules/.bin/webpack --config "$PWD/site/webpack-prerender.config.js"
./scripts/buildSiteIndexPages.sh
./node_modules/.bin/webpack-dev-server --config "$PWD/site/webpack-client.config.js" --hot --content-base __site__
|
class Foo {
Foo(long l) {}
private final synchronized strictfp void F<caret>oo(int i) {}
} |
package org.apache.drill.jdbc;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Vector;
import org.junit.After... |
namespace boost { namespace geometry { namespace index { namespace detail {
template <typename Indexable>
struct default_content_result
{
typedef typename select_most_precise<
typename coordinate_type<Indexable>::type,
long double
>::type type;
};
namespace dispatch {
template <typename Box,
... |
//this might was already extended by ES5 shim feature
(function($){
"use strict";
var webshims = window.webshims;
if(webshims.defineProperties){return;}
var defineProperty = 'defineProperty';
var has = Object.prototype.hasOwnProperty;
var descProps = ['configurable', 'enumerable', 'writable'];
var extendUndefin... |
Async library
=============
BooJs includes a simple yet powerful asynchronous library modeled after the `Promises/A
CommonJS spec <http://wiki.commonjs.org/wiki/Promises/A>`_ also known as *thenables*. You
can read more about this asynchronous programming pattern on
`Wikipedia <http://en.wikipedia.org/wiki/Promise_(... |
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("Gl... |
var baseIsMatch = require('../internal/baseIsMatch'),
bindCallback = require('../internal/bindCallback'),
getMatchData = require('../internal/getMatchData');
/**
* Performs a deep comparison between `object` and `source` to determine if
* `object` contains equivalent property values. If `customizer` is provi... |
'use strict';
exports.find = function (req, res, next) {
req.query.name = req.query.name ? req.query.name : '';
req.query.limit = req.query.limit ? parseInt(req.query.limit, null) : 20;
req.query.page = req.query.page ? parseInt(req.query.page, null) : 1;
req.query.sort = req.query.sort ? req.query.sort : '_id... |
var buttonsInstance = (
<ButtonToolbar>
<Button disabled>Default - disabled</Button>
<Button amStyle="primary" disabled>Primary - disabled</Button>
</ButtonToolbar>
);
React.render(buttonsInstance, mountNode);
|
:title: Kill Command
:description: Kill a running container
:keywords: kill, container, docker, documentation
====================================
``kill`` -- Kill a running container
====================================
::
Usage: docker kill [OPTIONS] CONTAINER [CONTAINER...]
Kill a running container
|
' 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.Threading.Tasks
Imports Roslyn.Test.Utilities
Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.CodeModel.MethodXML
Partial Publi... |
/* flatpickr v4.0.1, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.labelPlugin = factory());
}(this, (function () { 'use strict';
function labelPlugin() ... |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="SHORTCUT ICON" href="../../../../../img/clover.ico" />
<link rel="stylesheet" href="../../../../../aui/css/aui.min.css" media... |
using Microsoft.CodeAnalysis.Editor.Host;
using Microsoft.CodeAnalysis.Text.Shared.Extensions;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Operations;
using Microsoft.VisualStudio.Utilities;
using Roslyn.Utilities;
namespace Microsoft.CodeAnalysis.Editor.Implementation.TextStructureNavigation
... |
import 'can-admin/components/nav-list/nav-list';
import stache from 'can-stache';
import DefineMap from 'can-define/map/map';
var render = stache(document.getElementById('demo-html').innerHTML);
var viewModel = new DefineMap({
pages: [{
label: 'List'
}, {
label: 'Create',
active: true
... |
/*
* 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... |
<!doctype html>
<!--
Copyright (c) 2014 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... |
<!DOCTYPE html>
<html>
<head>
<title>Changing from paged-y to paged-x</title>
</head>
<body>
There should be a horizontal scrollbar on this page.
<div style="position:absolute; left:0; width:200vw; height:1px;"></div>
</body>
</html>
|
'use strict';
var LIBRARY = require('./_library');
var global = require('./_global');
var ctx = require('./_ctx');
var classof = require('./_classof');
var $export = require('./_export');
var isObject = require('./_is-object');
var aFunction = require('./_a-function');
var anInstance = require('./_an-instance');
var fo... |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
Tips and Tricks
</title>
</head>
<body>
<h1>Tips and Tricks</h1>
<!-- Note that this file is generated by ExtensionTipsAndTricks-->
This add-on adds a 'help' menu item which ... |
var grpc = require('grpc');
var booksProto = grpc.load('books.proto');
var client = new booksProto.books.BookService('127.0.0.1:50051');
function printResponse(error, response) {
if (error)
console.log('Error: ', error);
else
console.log(response);
}
function listBooks() {
client.list({}, function(err... |
#import "SDWebImageCompat.h"
#import "NSData+ImageContentType.h"
/**
UIImage category for convenient image format decoding/encoding.
*/
@interface UIImage (MultiFormat)
#pragma mark - Decode
/**
Create and decode a image with the specify image data
@param data The image data
@return The created image
*/
+ (nu... |
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object for the
* Lithuanian language.
*/
/**#@+
@type String
@example
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKEDITOR.lang[ 'lt' ] = {
// ARIA description.
editor: 'Pilnas redaktorius',
editorPanel: 'Rich Text Edito... |
package org.apache.ignite.internal.processors.cache;
import java.util.concurrent.Callable;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.ignite.IgniteCache;
import org.apache.ignite.cache.CacheAtomicityMode;
import org.apache.ignite.cache.CacheMode... |
class Ctemplate < Formula
desc "Template language for C++"
homepage "https://github.com/olafvdspek/ctemplate"
url "https://github.com/OlafvdSpek/ctemplate/archive/ctemplate-2.3.tar.gz"
sha256 "99e5cb6d3f8407d5b1ffef96b1d59ce3981cda3492814e5ef820684ebb782556"
head "https://github.com/olafvdspek/ctemplate.git"
... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
if (typeof __decorate !== "function") __decorate = function (decorators, target, key, desc) {
if (... |
<?php
namespace Aspose\Imaging\Models;
/**
* $model.description$
*
* NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
*
*/
class JpegProperties {
static $swaggerTypes = array(
'Comment' => 'string',
'JpegExifData' => 'JpegExifData',
'JpegJfifData' => ... |
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/../..
source "${KUBE_ROOT}/cluster/centos/config-default.sh"
|
package com.google.android.gcm.server;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.m... |
package org.zmlx.hg4idea.util;
import com.intellij.CommonBundle;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NlsContexts.NotificationTitle;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.VcsException;
im... |
from sqlobject import *
from sqlobject.tests.dbtest import *
class TestCyclicReferenceA(SQLObject):
class sqlmeta(sqlmeta):
idName = 'test_id_here'
table = 'test_cyclic_reference_a_table'
name = StringCol()
number = IntCol()
time = DateTimeCol()
short = StringCol(length=10)
blob... |
package armfluidrelay_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fluidrelay/armfluidrelay"
)
// Generated from example definition: https://github.com/Azure/azure-rest-ap... |
<?php
namespace PHPCI\Plugin;
use PHPCI\Builder;
use PHPCI\Model\Build;
use PHPCI\Helper\Lang;
/**
* Copy Build Plugin - Copies the entire build to another directory.
* @author Dan Cryer <dan@block8.co.uk>
* @package PHPCI
* @subpackage Plugins
*/
class CopyBuild implements \PHPCI\Plugin
{
protecte... |
package datameer.awstasks.exec;
import java.util.Arrays;
import datameer.awstasks.exec.handler.ExecVoidHandler;
/**
* An command for shell execution.
*
* @param <R>
* the type of the result
*
*/
@SuppressWarnings("unchecked")
public class ShellCommand<R> {
private final String[] _command;
... |
'use strict';
// libs
var util = require('util');
var EE = require('events').EventEmitter;
var fs = require('fs');
var path = require('path');
var globule = require('globule');
var helper = require('./helper');
// globals
var delay = 10;
// `Gaze` EventEmitter object to return in the callback
function Gaze(pattern... |
/*jshint node:true, mocha:true*/
/**
* Generated by PluginGenerator from webgme on Wed Aug 19 2015 15:04:06 GMT-0500 (Central Daylight Time).
*/
"use strict";
var testFixture = require("../res/globals"),
path = require("path");
describe("AddToPlugin", function () {
var Q = require("q"),
WEBGME_ROOT = path.j... |
FROM balenalib/hummingboard2-debian:buster-build
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
\
# .NET Core dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu63 \
libssl1.1 \
libstdc++6 \
... |
package com.intellij.ide.todo.nodes;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.todo.TodoTreeBuilder;
import com.intellij.ide.util.treeView.AbstractTreeNode;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NotNull;
imp... |
package org.apache.camel.itest.cdi;
import javax.inject.Inject;
import org.apache.camel.Endpoint;
import org.apache.camel.EndpointInject;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.cdi.ContextName;
import org.apache.camel.cdi.Uri;
import org.apache... |
Aria.classDefinition({
$classpath : "test.aria.html.element.ChainListenerTestCase",
$extends : "aria.jsunit.TestCase",
$dependencies : ["test.aria.html.element.ElementOne", "aria.utils.Array"],
$prototype : {
/**
* Verify that onbind is called with the correct parameters
*/
... |
% Hello, world!
Now that you have Rust installed, let’s write your first Rust program. It’s
traditional to make your first program in any new language one that prints the
text “Hello, world!” to the screen. The nice thing about starting with such a
simple program is that you can verify that your compiler isn’t just in... |
#import "TiUIView.h"
#ifdef USE_TI_UIIOSADVIEW
#import "TiUIiOSAdViewProxy.h"
#import <iAd/iAd.h>
@interface TiUIiOSAdView : TiUIView<ADBannerViewDelegate> {
@private
ADBannerView *adview;
}
@property (nonatomic, readonly) ADBannerView* adview;
#pragma mark - FindATDN2 Internal Use
-(CGFloat)contentHeightForWid... |
SYNONYM
#### According to
Index Fungorum
#### Published in
null
#### Original name
Endophyllum euphorbiae-sylvaticae var. uninucleatum Moreau
### Remarks
null |
package eu.cassandra.sim.math.response;
/**
* This class is used for implementing the (monetary) incentives proposed to the
* consumers in order to respond accordingly. They can be either penalty
* incentives (meaning an increase in the price of the power) or a reward
* (meaning a decrease in the price of power).... |
package org.apache.hadoop.security.authorize;
import java.net.InetSocketAddress;
import java.util.Collection;
import java.util.HashSet;
import org.apache.hadoop.conf.Configuration;
public class ProxyServers {
public static final String CONF_HADOOP_PROXYSERVERS = "hadoop.proxyservers";
private static volatile C... |
package com.example.component.demo;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public ... |
from __future__ import absolute_import, unicode_literals
from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as AuthUserAdmin
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
from .models import User
class MyUserChangeForm(UserChangeForm):
... |
*Atenção: Este documento é apenas uma tradução da versão em inglês e
pode estar desatualizado.*
Alguns dos trechos de código a seguir utilizam caracteres UTF-8. Então, caso esteja utilizando uma versão de ruby inferior à `2.0.0`, adicione o encoding no início de seus arquivos:
```ruby
# encoding: utf-8
```
Sinatra é... |
Sinch Notifier
==============
Provides Sinch integration for Symfony Notifier.
Resources
---------
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
* [Report issues](https://github.com/symfony/symfony/issues) and
[send Pull Requests](https://github.com/symfony/symfony/pulls)
in t... |
package com.android.mms.exif;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import java.util.Map.Entry;
import java.util.TreeMap;
/**
* This class provides a low-level EXIF parsing API. Given a JPEG format
* InputStrea... |
package v1alpha3
// TODO : Unit Test
|
package org.apache.rya.api.resolver.impl;
import org.apache.rya.api.domain.RyaType;
import org.apache.rya.api.domain.RyaURI;
import org.openrdf.model.vocabulary.XMLSchema;
/**
* Date: 7/16/12
* Time: 12:41 PM
*/
public class RyaURIResolver extends RyaTypeResolverImpl {
public static final int URI_MARKER =... |
CKEDITOR.plugins.setLang( 'stylescombo', 'sl', {
label: 'Slog',
panelTitle: 'Oblikovalni Stili',
panelTitle1: 'Slogi odstavkov',
panelTitle2: 'Slogi besedila',
panelTitle3: 'Slogi objektov'
} );
|
package gin
import (
"strconv"
"github.com/gin-gonic/gin"
"github.com/ulule/limiter/v3"
)
// Middleware is the middleware for gin.
type Middleware struct {
Limiter *limiter.Limiter
OnError ErrorHandler
OnLimitReached LimitReachedHandler
KeyGetter KeyGetter
ExcludedKey func(string) bool... |
"""
Finance: test suites
"""
from django.test import TestCase
from django.test.client import Client
from django.core.urlresolvers import reverse
from django.contrib.auth.models import User as DjangoUser
from treeio.core.models import User, Group, Perspective, ModuleSetting, Object
from treeio.finance.models import Tra... |
(function( root, factory ) {
// UMD returnExports
if ( typeof define === "function" && define.amd ) {
// AMD
define([
"cldr",
"../globalize"
], factory );
} else if ( typeof exports === "object" ) {
// Node, CommonJS
module.exports = factory( require( "cldrjs" ), require( "globalize" ) );
} else... |
package prf_test
import (
"bytes"
"encoding/hex"
"fmt"
"testing"
"github.com/google/go-cmp/cmp"
"google.golang.org/protobuf/proto"
"github.com/google/tink/go/core/registry"
"github.com/google/tink/go/internal/internalregistry"
"github.com/google/tink/go/prf"
"github.com/google/tink/go/prf/subtle"
"github.c... |
/*global define:false */
define([ 'troopjs-browser/component/widget' ], function CreateModule(Widget) {
'use strict';
var ENTER_KEY = 13;
return Widget.extend({
'dom/keyup': function onKeyUp($event) {
var me = this;
var $element = me.$element;
var value;
if ($event.keyCode === ENTER_KEY) {
value... |
package com.intellij.debugger.settings;
import com.intellij.debugger.JavaDebuggerBundle;
import com.intellij.debugger.memory.agent.MemoryAgentUtil;
import com.intellij.openapi.options.ConfigurableUi;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.ui... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
namespace Fotografix
{
[TestClass]
public class PhotoFolderTest
{
[TestMethod]
public async Task RetrievesPhotosInFolder()
{
var folder = await TestData.GetFolderAsync("Photos");
... |
.fancy {
text-shadow: #F5F5F5 0 1px 0;
}
#sidebar {
position: absolute;
background-color: #EDEDED;
background-image: linear-gradient(top, #EDEDED, #F5F5F5);
background-image: -webkit-gradient(
linear,
left top,
left 500,
color-stop(0, #EDEDED),
color-stop(1,... |
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
namespace System.Data.SqlClient.SNI
{
/// <summary>
/// SNI Asynchronous callback
/// </summary>
/// <param name="packet">SNI packet</param>
/// <param name="sniErrorCode">SNI error code</param>
internal delegate vo... |
#ifndef QTEXTTABLE_H
#define QTEXTTABLE_H
#include <QtCore/qglobal.h>
#include <QtCore/qobject.h>
#include <QtGui/qtextobject.h>
QT_BEGIN_NAMESPACE
class QTextCursor;
class QTextTable;
class QTextTablePrivate;
class Q_GUI_EXPORT QTextTableCell
{
public:
QTextTableCell() : table(0) {}
~QTextTableCell() {}... |
package com.graphhopper.util;
import com.graphhopper.util.shapes.GHPoint;
import com.graphhopper.util.shapes.GHPoint3D;
/**
* @author Peter Karich
*/
public class GPXEntry extends GHPoint3D
{
private long time;
public GPXEntry( GHPoint p, long millis )
{
this(p.lat, p.lon, millis);
}
... |
assert_errors "$FLOW" check . --all --include-warnings --color always
|
package org.sakaibrary.osid.repository.xserver;
public class PublicationLocationPartStructure
implements org.osid.repository.PartStructure
{
private static final org.apache.commons.logging.Log LOG =
org.apache.commons.logging.LogFactory.getLog(
"org.sakaibrary.osid.repository.xserver.PublicationLocationPartSt... |
typedef struct
{
char chChunkID[4];
int nChunkSize;
}EM_XCHUNKHEADER;
typedef struct
{
short nFormatTag;
short nChannels;
int nSamplesPerSec;
int nAvgBytesPerSec;
short nBlockAlign;
short nBitsPerSample;
}EM_WAVEFORMAT;
typedef struct
{
short nFormatTag;
short nChannels;
int nSamplesPerSec;
int nAvgBytesP... |
/**
* Merges an observable sequence of observable sequences into an observable sequence.
* @returns {Observable} The observable sequence that merges the elements of the inner sequences.
*/
observableProto.mergeAll = function () {
var sources = this;
return new AnonymousObservable(function (o)... |
> Get the path to the user home directory
## Install
```
$ npm install --save user-home
```
## Usage
```js
var userHome = require('user-home');
console.log(userHome);
//=> '/Users/sindresorhus'
```
Returns `null` in the unlikely scenario that the home directory can't be found.
## Related
- [user-home-cli](ht... |
package client
//go:generate codecgen -r "Node|Response" -o keys.generated.go keys.go
import (
"encoding/json"
"errors"
"fmt"
"net/http"
"net/url"
"strconv"
"strings"
"time"
"github.com/ugorji/go/codec"
"golang.org/x/net/context"
"github.com/coreos/etcd/pkg/pathutil"
)
const (
ErrorCodeKeyNotFound = 10... |
using System;
namespace Org.BouncyCastle.Tsp
{
/**
* Exception thrown if a TSP request or response fails to validate.
* <p>
* If a failure code is associated with the exception it can be retrieved using
* the getFailureCode() method.</p>
*/
#if !(NETCF_1_0 || NETCF_2_0 || SILVERLIGHT)
[Serializable]
#en... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Diagnostics;
using System.Globalization;
namespace System.DirectoryServices.AccountManag... |
// A bit simpler than readable streams.
// Implement an async ._write(chunk, cb), and it'll handle all
// the drain event emission and buffering.
'use strict';
module.exports = Writable;
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
/*<replacement>*/
var Buffer = requi... |
SELECT fn_db_add_column('vds_interface', 'qos_overridden', 'boolean NOT NULL DEFAULT false');
|
import os
import sys
import subprocess
import openstackdocstheme
# -- OpenStack-Ansible configuration --------------------------------------
# Variables to override
target_name = 'openstack-ansible'
description = 'OpenStack-Ansible deploys OpenStack environments using Ansible.'
previous_series_name = 'queens'
current... |
package at.porscheinformatik.antimapper;
/**
* Provides a matching operation
*
* @param <DTO> the type of the left object
* @param <Entity> the type of the right object
* @author ham
*/
@FunctionalInterface
public interface MatchFunction<DTO, Entity>
{
/**
* Returns true if the left object matches the ... |
class Round < ActiveRecord::Base
has_many :vote
validates :lie, inclusion: { in: [nil, 1, 2, 3] }
end
|
package org.openstreetmap.josm.plugins.improveosm.util.cnf;
import java.util.List;
import com.telenav.josm.common.cnf.BaseConfig;
/**
* Holds turn restriction of related texts.
*
* @author Beata
* @version $Revision$
*/
public final class TurnRestrictionGuiConfig extends BaseConfig {
private static final ... |
namespace Poco {
class Foundation_API Runnable
/// The Runnable interface with the run() method
/// must be implemented by classes that provide
/// an entry point for a thread.
{
public:
Runnable();
virtual ~Runnable();
virtual void run() = 0;
/// Do whatever the thread needs to do. Must
/// be overridde... |
package win
import (
"syscall"
"unsafe"
)
const (
CLSCTX_INPROC_SERVER = 0x1
CLSCTX_INPROC_HANDLER = 0x2
CLSCTX_LOCAL_SERVER = 0x4
CLSCTX_INPROC_SERVER16 = 0x8
CLSCTX_REMOTE_SERVER = 0x10
CLSCTX_INPROC_HANDLER16 = 0x20
CLSCTX_RESERVED1 = 0x40
CLS... |
.. _topics-signals:
=======
Signals
=======
Scrapy uses signals extensively to notify when certain events occur. You can
catch some of those signals in your Scrapy project (using an :ref:`extension
<topics-extensions>`, for example) to perform additional tasks or extend Scrapy
to add functionality not provided out of... |
<?php
namespace Webforge\Common\JS;
class JSONParsingException extends \Webforge\Common\Exception {
}
|
'use strict';
var crypto = require('crypto');
var fs = require('fs');
var path = require('path');
var Mincer = require('mincer');
var stopwatch = require('../utils/stopwatch');
function md5(str) {
return crypto.createHash('md5').update(str).digest('hex');
}
////////////////////////////////////////////... |
/**
* @fileoverview Rule to enforce a single linebreak style.
* @author Erik Mueller
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = {
meta: {
... |
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<entry xml:base="http://www.example.com/">
<link href="entry/comments" type="text/html" rel="replies"/>
</entry>
</feed>
|
package storm.trident.fluent;
import backtype.storm.tuple.Fields;
import storm.trident.Stream;
import storm.trident.TridentState;
import storm.trident.operation.Aggregator;
import storm.trident.operation.CombinerAggregator;
import storm.trident.operation.Function;
import storm.trident.operation.ReducerAggregator;
imp... |