text stringlengths 3 1.05M |
|---|
#ifndef HB_OT_SHAPE_COMPLEX_HH
#define HB_OT_SHAPE_COMPLEX_HH
#include "hb.hh"
#include "hb-ot-layout.hh"
#include "hb-ot-shape.hh"
#include "hb-ot-shape-normalize.hh"
/* buffer var allocations, used by complex shapers */
#define complex_var_u8_category() var2.u8[2]
#define complex_var_u8_auxiliary() var2.u8[3]
... |
<?php
namespace Symfony\Component\Security\Http\Tests\Firewall;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use Symfony\Component\Security\Http\Firewall\SimplePreAuthenticationLi... |
#import <Accelerate/Accelerate.h>
#import <UIKit/UIKit.h>
#import <React/RCTDefines.h>
RCT_EXTERN UIImage *RCTBlurredImageWithRadius(UIImage *inputImage, CGFloat radius);
|
[travis-image]: https://img.shields.io/travis/feross/run-parallel/master.svg
[travis-url]: https://travis-ci.org/feross/run-parallel
[npm-image]: https://img.shields.io/npm/v/run-parallel.svg
[npm-url]: https://npmjs.org/package/run-parallel
[downloads-image]: https://img.shields.io/npm/dm/run-parallel.svg
[downloads-u... |
@interface GORuleListViewController ()
@property (nonatomic) GOWebservice *webservice;
@property (nonatomic) GORequestTypes requestType;
@property (nonatomic) NSMutableArray *rules;
@property (nonatomic) UIRefreshControl *refreshControl;
@property (nonatomic) GORuleObject *ruleForDeletion;
@end
@implementation GORule... |
package datastore
import (
"flag"
"fmt"
"io"
"os"
"text/tabwriter"
"github.com/vmware/govmomi/govc/cli"
"github.com/vmware/govmomi/govc/flags"
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/mo"
"github.com/vmware/govmomi/vim25/types"
"golang.org/x/net/context"
)
type info struct {... |
/*div.container-fluid {
background: url('/modules/core/img/background/background-pattern-1.png') repeat rgba(54, 25, 25, .00004);
}*/
/*div.main-content.container-fluid:after {
content : "";
display: block;
position: absolute;
top: 0;
left: 0;
background-image: url('/modules/core/img/background/background... |
#ifndef NAN_MAYBE_43_INL_H_
#define NAN_MAYBE_43_INL_H_
template<typename T>
using MaybeLocal = v8::MaybeLocal<T>;
template<typename T>
using Maybe = v8::Maybe<T>;
template<typename T>
NAN_INLINE Maybe<T> Nothing() {
return v8::Nothing<T>();
}
template<typename T>
NAN_INLINE Maybe<T> Just(const T& t) {
return... |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.commonsware.empublite"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="false"
android:... |
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Search Results"
sling:resourceType="cq/gui/components/... |
<?php
namespace CtSearchBundle\Datasource;
use CtSearchBundle\Classes\PDOPool;
use \CtSearchBundle\CtSearchBundle;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
class PDODatabase extends... |
package com.smoothsync.smoothsetup.services.providerservice;
import com.smoothsync.smoothsetup.services.delegating.DelegatingProviderService;
import com.smoothsync.smoothsetup.services.providerservice.functions.ApiProviders;
/**
* @author Marten Gajda
*/
public final class ApiProviderService extends DelegatingPr... |
<?php
namespace Illuminate\Notifications;
use Illuminate\Database\Eloquent\Collection;
class DatabaseNotificationCollection extends Collection
{
/**
* Mark all notification as read.
*
* @return void
*/
public function markAsRead()
{
$this->each(function ($notification) {
... |
/*!
\defgroup EasyLink EasyLink
@{
@file EasyLink.h
@brief EasyLink RF API for CC13xx/CC26xx family
# Overview #
The EasyLink API should be used in application code. The EasyLink API is
intended to abstract the RF Driver in order to give a simple API for
customers to use as is or extend to suit their a... |
const Action = require('./Action');
class MessageDeleteAction extends Action {
constructor(client) {
super(client);
this.deleted = new Map();
}
handle(data) {
const client = this.client;
const channel = client.channels.get(data.channel_id);
let message;
if (channel) {
message = ch... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17379
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... |
.. include:: ../../../examples/jbnmr_examples/s5_seperate_interleaved/README.rst
The data used in this example is available for
`download. <https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/nmrglue/jbnmr_s5_seperate_interleaved.zip>`_ [78.42 MB]
Listing S5
[:download:`seperate.py <../.... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Global reciprocal_meters</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../../index.html" t... |
IPUITrackInstancePortals = true
IPUITrackInstancePortalsOnContinents = true
|
/*! formstone v0.7.0 [pagination.css] 2015-07-04 | MIT License | formstone.it */
/**
* @class
* @name .fs-pagination-element
* @type element
* @description Target elmement
*/
/**
* @class
* @name .fs-pagination
* @type element
* @description Base widget class
*/
/**
* @class
* @name .fs-paginat... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
package org.apache.camel.impl;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import org.apache.camel.Exchange;
import org.apache.camel.converter.stream.OutputStreamBuilder;
import org.apache.camel.spi.DataFormat;
import org.apach... |
/******************************************************************************
*
* Name: acnetbsd.h - OS specific defines, etc.
*
*****************************************************************************/
/******************************************************************************
*
* 1. Copyright Notice... |
package io.emitter.mqtt.client;
import org.fusesource.hawtbuf.UTF8Buffer;
/**
* <p>
* </p>
*
* @author <a href="http://hiramchirino.com">Hiram Chirino</a>
*/
public class Topic {
private final UTF8Buffer name;
private final QoS qos;
public Topic(String key, String channel){
this(key + "/... |
SYNONYM
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null |
import suggestive.mvc.base as mvc
import pytest
@pytest.fixture(autouse=True)
def registry(request):
request.addfinalizer(mvc.Controller._registry.clear)
def test_model_view():
values = []
class View(mvc.View):
def update(self):
values.append(self)
model = mvc.Model()
vie... |
#ifndef PCL_REGISTRATION_IMPL_ICP_HPP_
#define PCL_REGISTRATION_IMPL_ICP_HPP_
#include <pcl/registration/boost.h>
#include <pcl/correspondence.h>
///////////////////////////////////////////////////////////////////////////////////////////
template <typename PointSource, typename PointTarget, typename Scalar> void
pc... |
<?php
namespace JMS\SecurityExtraBundle\Tests\Metadata;
use Doctrine\Common\Annotations\AnnotationReader;
use JMS\SecurityExtraBundle\Metadata\Driver\AnnotationDriver;
use Metadata\MetadataFactory;
class ClassMetadataTest extends \PHPUnit_Framework_TestCase
{
/**
* @expectedException \RuntimeException
... |
/**
* Time shifts the observable sequence based on a subscription delay and a delay selector function for each element.
*
* @example
* 1 - res = source.delayWithSelector(function (x) { return Rx.Scheduler.timer(5000); }); // with selector only
* 1 - res = source.delayWithSelector(Rx.Observable.... |
namespace base {
namespace internal {
bool BasicValueConverter<int>::Convert(
const base::Value& value, int* field) const {
return value.GetAsInteger(field);
}
bool BasicValueConverter<std::string>::Convert(
const base::Value& value, std::string* field) const {
return value.GetAsString(field);
}
bool Bas... |
package testing
import (
"flag"
"fmt"
"os"
"runtime"
"runtime/pprof"
"strconv"
"strings"
"time"
)
var (
// The short flag requests that tests run more quickly, but its functionality
// is provided by test writers themselves. The testing package is just its
// home. The all.bash installation script sets i... |
'use strict';
const CoverageInstrumentor = require('cover/instrument').Instrumentor;
const fs = require('graceful-fs');
const path = require('path');
const COVERAGE_TEMPLATE_PATH = path.join(__dirname, 'coverage.template');
let _memoizedCoverageTemplate = null;
function _getCoverageTemplate() {
if (_memoizedCove... |
using namespace Imath;
using namespace Gaffer;
IE_CORE_DEFINERUNTIMETYPED( Transform2DPlug );
size_t Transform2DPlug::g_firstPlugIndex = 0;
Transform2DPlug::Transform2DPlug( const std::string &name, Direction direction, unsigned flags )
: CompoundPlug( name, direction, flags )
{
storeIndexOfNextChild( g_firstPlugI... |
package org.killbill.billing.subscription.api.timeline;
import java.util.List;
import java.util.UUID;
import org.killbill.billing.util.entity.Entity;
/**
* The interface {@code BundleBaseTimeline} shows a view of all the subscription events for a specific
* {@code SubscriptionBaseBundle}.
*/
public interface Bu... |
<html><head>
<title>Ping</title>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.dumpPingLoaderCallbacks();
}
if (location.protocol != "https:")
location = "https://127.0.0.1:8443/navigation/resources/ping-cross-origin-from-https-target.html";
</script... |
using Android.App;
using Android.OS;
using MvvmCross.Droid.Views;
using Android.Webkit;
using Android.Views;
using Android.Widget;
using Android.Speech.Tts;
using Android.Content;
using Android.Speech;
using ProgrammingSupport.Core.ViewModels;
using System.Collections.Generic;
namespace ProgrammingSupport.Droid.Views
... |
cask 'universal-media-server' do
version '7.0.0'
sha256 'f0ff3ee195279a14968113357a1799c21fe76caf386207614eb4deb857bec38c'
# sourceforge.net/unimediaserver was verified as official when first introduced to the cask
url "https://downloads.sourceforge.net/unimediaserver/Official%20Releases/OS%20X/UMS-#{version}.... |
<?php
namespace Doctrine\ORM\Query\Expr;
/**
* Expression class for DQL math statements
*
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.doctrine-project.org
* @since 2.0
* @version $Revision$
* @author Guilherme Blanco <guilhermeblanco@hotmail.com>
* @author Jonathan ... |
<!--
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JabberWerxC Library Getting Started Guide</title>
<link rel="stylesheet" type="text/css" href="jabberwerx.css" />
</head>
<body class="border">
<table width="90%">
<tr>
<td class="center"><h... |
// Log of changes:
//
// 12 May 03 - Support for Safari Beta 3
// 01 Mar 03 - VERSION 4.3 - Support for checkboxes
// 21 Feb 03 - Added support for Opera 7
// 22 Sep 02 - Added maySelect member for node-by-node control
// of selection and highlight
// 21 Sep 02 - Cookie valu... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define([], function () {
return (root['lory'] = factory());
});
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS,... |
/**
* Mixins functionality to make an object have "plugins".
*
* @example
* function MyObject() {}
*
* pluginTarget.mixin(MyObject);
*
* @mixin
* @memberof PIXI.utils
* @param {object} obj - The object to mix into.
*/
function pluginTarget(obj)
{
obj.__plugins = {};
/**
* Adds a plugi... |
<button
class="btn"
[jhiFeatureToggle]="featureToggle"
[overwriteDisabled]="buttonLoading"
[class.btn-outline-primary]="outlined"
[class.btn-primary]="btnPrimary"
[class.btn-sm]="smallButton"
(click)="handleClick()"
>
<fa-icon [hidden]="!buttonLoading" [spin]="true" [icon]="faCircleNotch... |
The UI that makes up an article. Extracted because articles can be embedded in other pages like artist pages.

## Example
Include the template passing in the `article` local
````jade
#article-container
inc... |
====================================
RMG - Reaction Mechanism Generator
====================================
.. image:: https://github.com/GreenGroup/RMG-Java/raw/master/web/source/_static/rmg_logo.png
:align: right
RMG is an automatic chemical reaction mechanism generator that constructs
kinetic models comp... |
module Fog
module Compute
class RackspaceV2
module MetaParent
# Parent of metadata
# @return [#parent] parent of metadata
def parent
@parent
end
# Sets parent of metadata
# @param [#parent] new_parent of metadata
def parent=(new_parent)
... |
<?php
/**
* Statement utilities.
*
* @package SqlParser
* @subpackage Utils
*/
namespace SqlParser\Utils;
use SqlParser\Lexer;
use SqlParser\Parser;
use SqlParser\Statement;
use SqlParser\Token;
use SqlParser\TokensList;
use SqlParser\Components\Expression;
use SqlParser\Statements\AlterStatement;
use SqlPars... |
#ifndef BOOST_HANA_DETAIL_UNPACK_FLATTEN_HPP
#define BOOST_HANA_DETAIL_UNPACK_FLATTEN_HPP
#include <boost/hana/at.hpp>
#include <boost/hana/config.hpp>
#include <boost/hana/detail/algorithm.hpp>
#include <boost/hana/detail/array.hpp>
#include <boost/hana/length.hpp>
#include <boost/hana/unpack.hpp>
#include <cstdde... |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null |
#include "cpu/o3/decode_impl.hh"
#include "cpu/o3/isa_specific.hh"
template class DefaultDecode<O3CPUImpl>;
|
package org.dartlang.vm.service.element;
// This file is generated by the script: pkg/vm_service/tool/generate.dart in dart-lang/sdk.
import com.google.gson.JsonObject;
@SuppressWarnings({"WeakerAccess", "unused"})
public class LogRecord extends Response {
public LogRecord(JsonObject json) {
super(json);
}... |
case node['platform']
when 'oracle'
package 'libcgroup'
service 'cgconfig' do
supports :status => true, :restart => true, :reload => true
action [:enable, :start]
end
when 'ubuntu'
package 'cgroup-bin'
if node['platform_version'] == '12.04'
service 'cgconfig' do
action :start
end
... |
import json
import mwclient
import re
import requests
from bs4 import BeautifulSoup
def get_character_list():
r = requests.get('http://www.detectiveconanworld.com/wiki/Category:Characters')
html = r.text
soup = BeautifulSoup(html, 'html.parser')
#There should only ever be one section
character_sect... |
package org.apache.flex.forks.batik.svggen.font.table;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
*
* @author <a href="mailto:david@steadystate.co.uk">David Schweinsberg</a>
* @version $Id: Coverage.java 475477 2006-11-15 22:44:28Z cam $
*/
public abstract class Coverage {
public abstr... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sw=4 et tw=78:
*
* 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/. */
#ifn... |
package org.apache.calcite.adapter.geode.rel;
import org.apache.calcite.jdbc.CalciteConnection;
import org.apache.calcite.schema.SchemaPlus;
import org.apache.calcite.test.CalciteAssert;
import org.apache.geode.cache.Cache;
import org.apache.geode.cache.Region;
import com.google.common.collect.ImmutableList;
import... |
var test = require('tap').test;
var browserify = require('browserify');
var vm = require('vm');
var fs = require('fs');
var path = require('path');
var html = fs.readFileSync(__dirname + '/files/robot.html', 'utf8');
test('multiple var assignments', function (t) {
t.plan(1);
var b = browserify();
b.... |
def load_current_resource
require 'win32ole'
@link = WIN32OLE.new("WScript.Shell").CreateShortcut(@new_resource.name)
@current_resource = Chef::Resource::WindowsShortcut.new(@new_resource.name)
@current_resource.name(@new_resource.name)
@current_resource.target(@link.TargetPath)
@current_resource.argument... |
package org.apache.hadoop.hive.hbase;
import java.util.Properties;
import org.apache.avro.Schema;
import org.apache.avro.reflect.ReflectData;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hive.serde2.avro.AvroSchemaRetriever;
/**
* Mock implementat... |
using System;
using System.Collections.Generic;
using System.Text;
namespace Be.Windows.Forms
{
/// <summary>
/// Represents a position in the HexBox control
/// </summary>
struct BytePositionInfo
{
public BytePositionInfo(long index, int characterPosition)
{
_index = i... |
// SketchOp.h
// base class for machining operations which can have multiple depths
#ifndef SKETCH_OP_HEADER
#define SKETCH_OP_HEADER
#include "DepthOp.h"
#include <list>
class CSketchOp : public CDepthOp
{
public:
int m_sketch;
CSketchOp(int sketch, const int tool_number = -1, const int operati... |
dir=`dirname $0`
ARCHETYPE_ARTIFACT=vaadin-archetype-application-example
. $dir/validate-archetype-common.sh
mvn archetype:generate -DarchetypeGroupId=$ARCHETYPE_GROUP -DarchetypeArtifactId=$ARCHETYPE_ARTIFACT -DarchetypeVersion=$ARCHETYPE_VERSION -DarchetypeRepository=$ARCHETYPEREPO -DgroupId=$GROUP -DartifactId=$AR... |
using System;
using System.Runtime.InteropServices;
internal static partial class Interop
{
internal static partial class Sys
{
internal enum LockType : short
{
F_WRLCK = 1, // exclusive or write lock
F_UNLCK = 2 // unlock
}
[DllImport(Lib... |
// Package metrics provides abstractions for registering which metrics
// to record.
package metrics
import (
"net/url"
"sync"
"time"
)
var registerMetrics sync.Once
// LatencyMetric observes client latency partitioned by verb and url.
type LatencyMetric interface {
Observe(verb string, u url.URL, latency time... |
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
<!-- Copyright © 1991-2013 Unicode, Inc.
CLDR data files are interpreted according to the LDML specification (http://unicode.org/reports/tr35/)
For terms of use, see http://www.unicode.org/copyright.html
-->
<ldml>
<identity>
... |
/*! UIkit 2.16.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
if (jQuery && UIkit) {
component = addon(jQuery, UIkit);
}
if (typeof define == "function" && define.amd) {
define("uikit-notify", ["uikit"], function(){
retur... |
package com.wangjie.rxandroideventssample.mvp.events;
import com.wangjie.rxandroideventssample.provider.model.Feed;
import java.io.Serializable;
/**
* Author: wangjie
* Email: tiantian.china.2@gmail.com
* Date: 6/15/15.
*/
public class FeedItemClickEvent implements Serializable {
private String name = "ItemC... |
package libtrust
import (
"bytes"
"crypto"
"crypto/elliptic"
"crypto/tls"
"crypto/x509"
"encoding/base32"
"encoding/base64"
"encoding/binary"
"encoding/pem"
"errors"
"fmt"
"math/big"
"net/url"
"os"
"path/filepath"
"strings"
"time"
)
// LoadOrCreateTrustKey will load a PrivateKey from the specified pa... |
// expected-to-throw
/**
* @RelayResolver
*
* @onType User
* @fieldName greeting(salutation)
* @rootFragment myRootFragment
*
*/
graphql`
fragment myRootFragment on User {
name
}
`
|
package com.hazelcast.mapreduce;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.HazelcastInstanceAware;
import com.hazelcast.core.ICompletableFuture;
import com.hazelcast.core.IMap;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.s... |
typedef unsigned int GLenum;
class SkPromiseImageTexture;
namespace gl {
class GLImage;
}
namespace gfx {
class NativePixmap;
} // namespace gfx
namespace media {
class VASurface;
} // namespace media
namespace gpu {
class TextureBase;
namespace gles2 {
class Texture;
class TexturePassthrough;
} // namespace gl... |
package flags
import (
"flag"
"fmt"
"os"
"path/filepath"
"strings"
)
var (
Debug = flag.Bool("debug", false, "dump instructions as they are parsed")
OutputFile = flag.String("o", "", "output file; default foo.6 for /a/b/c/foo.s on amd64")
PrintOut = flag.Bool("S", false, "print assembly and machine cod... |
package org.apache.zeppelin.helium;
import com.google.gson.Gson;
import org.apache.thrift.TException;
import org.apache.zeppelin.interpreter.Interpreter;
import org.apache.zeppelin.interpreter.InterpreterGroup;
import org.apache.zeppelin.interpreter.InterpreterInfo;
import org.apache.zeppelin.interpreter.InterpreterS... |
package com.google.gdata.client.appsforyourdomain.migration;
import com.google.gdata.client.Service;
import com.google.gdata.client.appsforyourdomain.AppsForYourDomainService;
import com.google.gdata.client.batch.BatchInterruptedException;
import com.google.gdata.client.media.MediaService;
import com.google.gdata.d... |
package validation
import (
"fmt"
"k8s.io/apimachinery/pkg/api/validation/path"
utilvalidation "k8s.io/apimachinery/pkg/util/validation"
"k8s.io/apimachinery/pkg/util/validation/field"
"k8s.io/kubernetes/pkg/api/validation"
discoveryapi "k8s.io/kubernetes/cmd/kube-aggregator/pkg/apis/apiregistration"
)
func... |
<?php
namespace Doctrine\ORM\Proxy;
use Doctrine\ORM\EntityManager,
Doctrine\ORM\Mapping\ClassMetadata,
Doctrine\ORM\Mapping\AssociationMapping;
/**
* This factory is used to create proxy objects for entities at runtime.
*
* @author Roman Borschel <roman@code-factory.org>
* @author Giorgio Sironi <picco... |
package org.apache.ignite.internal.processors.query.h2.opt;
import org.apache.ignite.internal.processors.query.h2.database.H2TreeIndex;
import org.h2.index.Index;
import java.util.ArrayList;
/**
* Factory for system table indexes.
*/
public interface GridH2SystemIndexFactory {
/**
* Create list of index... |
namespace spdlog
{
namespace details
{
class async_log_helper
{
// Async msg to move to/from the queue
// Movable only. should never be copied
enum class async_msg_type
{
log,
flush,
terminate
};
struct async_msg
{
std::string logger_name;
level::leve... |
import scala.reflect.macros.whitebox.Context
import language.experimental.macros
object Interpolation {
implicit class TestInterpolation(c: StringContext) {
object t {
def unapply[T](x: T): Any = macro Macros.unapplyImpl[T]
}
}
}
object Macros {
def unapplyImpl[T: c.WeakTypeTag](c: Context)(x: c.T... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0.1 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Boost.MultiIndex Documentation - Index reference</title>
<link rel="stylesheet" href="../style.css" type="text/css">
<link rel="start" href="../index.html">
<li... |
<?php
/**
* @category Zend
* @package Zend_Mail
* @subpackage Storage
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Mail_Storage_Writable_Interface
{
/**
* creat... |
package clientv3
import (
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
)
type rpcFunc func(ctx context.Context) error
type retryRpcFunc func(context.Context, rpcFunc) e... |
<div class="slide-toggle" [ngClass]="{ checked: checked }" (click)="onToggleClick()" tabindex="0">
<label>
<div class="slide-toggle-bar">
<input class="hidden" style="display: none" type="checkbox">
<div class="slide-toggle-button-container">
<div class="slide-toggle-... |
package rms.common.utils;
import java.util.ArrayList;
import java.util.List;
import javax.mail.MessagingException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.... |
package org.elasticsearch.common.xcontent;
import com.google.common.base.Charsets;
import com.google.common.base.Objects;
import com.google.common.collect.Maps;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchParseException;
import org.elasticsearch.common.bytes.BytesArray;
im... |
package org.apache.ignite.cache.store.cassandra.persistence;
import java.util.LinkedList;
import java.util.List;
import org.apache.ignite.cache.affinity.AffinityKeyMapped;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
/**
* Stores persistence settings for Ignite cache key
*/
public class KeyPersistenc... |
<?php
namespace Zend\Config;
use Zend\Stdlib\ArrayUtils;
class Factory
{
/**
* Plugin manager for loading readers
*
* @var null|ReaderPluginManager
*/
public static $readers = null;
/**
* Plugin manager for loading writers
*
* @var null|WriterPluginManager
*/
... |
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strona';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...';
}
if ($... |
from django import forms
from django.contrib import admin
from django.conf.urls import url
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from django.contrib.admin.sites import NotRegistered
from django.utils.translation import ugettext_lazy as _
from .models import Prof... |
Backbone and Marionette aren't doing enough for us, we'll move to React + Redux.
### TL;DR
Our app is very complex and is only growing more complex. We need a framework
that helps us manage that complexity better than Backbone and Marionette have
been.
### Thinking
WWW is a very complicated front-end application, a... |
package com.facebook.buck.testutil.integration;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
import com.facebook.buck.io.MorePaths;
import com.google.common.base.Charsets;
import com.google.co... |
module Haml
module Helpers
# This module overrides Haml helpers to work properly
# in the context of ActionView.
# Currently it's only used for modifying the helpers
# to work with Rails' XSS protection methods.
module XssMods
def self.included(base)
%w[html_escape find_and_preserve ... |
require File.expand_path('../../../spec_helper', __FILE__)
describe "NilClass#to_f" do
it "returns 0.0" do
nil.to_f.should == 0.0
end
it "does not cause NilClass to be coerced to Float" do
(0.0 == nil).should == false
end
end
|
package com.taobao.weex.ui.component;
import com.taobao.weex.WXSDKInstance;
import com.taobao.weex.WXSDKManager;
import com.taobao.weex.dom.WXDomObject;
import com.taobao.weex.ui.view.listview.OnRefreshListener;
/**
* div component
*/
public class WXRefresh extends WXBaseRefresh implements OnRefreshListener {
p... |
#ifndef __GROVE_MOISTURE_CLASS_H__
#define __GROVE_MOISTURE_CLASS_H__
#include "grove_moisture.h"
//GROVE_NAME "Grove-Moisture"
//IF_TYPE ANALOG
//IMAGE_URL http://www.seeedstudio.com/wiki/images/c/ce/Moisture_sensor_.jpg
class GroveMoisture
{
public:
GroveMoisture(int pin);
bool ... |
'use strict';
function Zone(parentZone, data) {
var zone = (arguments.length) ? Object.create(parentZone) : this;
zone.parent = parentZone;
Object.keys(data || {}).forEach(function(property) {
var _property = property.substr(1);
// augment the new zone with a hook decorates the parent's hook
if ... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>PImage::loadPixels() \ Language (API) \ Processing 1.0</title>
<link rel="icon" href="img/processing-1.ico" type="image/... |
# Editable Grid + Node.js, Part 2
Since we already have the Read operation working from [part 1](#!/guide/editable_grid),
we are left with the Create, Update, and Delete operations to implement.
Let's start with updating existing movies in our grid.
## Updating
### Making the Grid Editable
As explained in the {@link... |
<html>
<body>
Reports <b>private</b> methods, which
are only called from an inner class of the class containing the method. Such
methods could be safely moved into that inner class.
<!-- tooltip end -->
<p>
Use the first checkbox below to ignore <b>private</b>
methods which are called from an anonymous class.
<p>
Use t... |
<?php
use PhpOffice\PhpSpreadsheet\Document\Properties;
use PhpOffice\PhpSpreadsheet\IOFactory;
require __DIR__ . '/../Header.php';
$inputFileType = 'Xls';
$inputFileName = __DIR__ . '/../templates/31docproperties.xls';
$spreadsheetReader = IOFactory::createReader($inputFileType);
$callStartTime = microtime(true);
... |