text stringlengths 3 1.05M |
|---|
package transport
import (
"bytes"
"crypto/tls"
"fmt"
"reflect"
"sync"
"time"
utilnet "k8s.io/apimachinery/pkg/util/net"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/util/connrotation"
"k8s.io/client-go/util/workqueue"
"k8s.io/klog/v2"
)
const... |
package org.elasticsearch.indices;
import org.elasticsearch.cluster.routing.ShardRouting;
import org.elasticsearch.common.Nullable;
import org.elasticsearch.common.component.AbstractComponent;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.i... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using Newtonsoft.Json;
using Top.Api;
namespace FirstFrame.PushMessage
{
public class AlidayuSmsHelper
{
public static string Post(string url, string d... |
package storage
import (
// load the packages
_ "github.com/codedellemc/libstorage/drivers/storage/efs/storage"
)
|
package openapi
import (
"fmt"
"strings"
"github.com/go-openapi/spec"
"k8s.io/apimachinery/pkg/conversion"
"k8s.io/apiserver/pkg/util/trie"
)
const (
DEFINITION_PREFIX = "#/definitions/"
)
var cloner = conversion.NewCloner()
// Run a walkRefCallback method on all references of an OpenAPI spec
type walkAll... |
// ========================================================================
// Copyright 2009 Webtide LLC
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
// 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.
#nullable disable
using System;
using Xunit;
using Xunit.Sdk;
namespace Microsoft.CodeAnalysis.Test.Utilities
{
... |
import {KeyCodes} from '../../../../src/utils/key-codes';
import {adopt} from '../../../../src/runtime';
import {createIframePromise} from '../../../../testing/iframe';
import {Services} from '../../../../src/services';
import {assertScreenReaderElement} from '../../../../testing/test-helper';
import {toggleEx... |
SBBuildPhase* SBFrameworksBuildPhase::create(const PBXBuildPhase* phase, SBTarget& parentTarget)
{
const PBXFrameworksBuildPhase* linkPhase = dynamic_cast<const PBXFrameworksBuildPhase*>(phase);
SBNativeTarget& nativeParent = dynamic_cast<SBNativeTarget&>(parentTarget);
return new SBFrameworksBuildPhase(linkPhase... |
using System;
using System.Linq;
using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Integration;
using Xunit;
public class FollowersClientTests : IDisposable
{
readonly IGitHubClient _github;
readonly User _currentUser;
public FollowersClientTests()
{
_github = Helper.GetAuthent... |
namespace glm{
namespace detail
{
template <typename T>
union float_t
{};
// https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
template <>
union float_t<float>
{
typedef int int_type;
typedef float float_type;
GLM_CONSTEXPR float_t(float_type Num = 0.0f) : f(Num)... |
namespace spvtools {
template <typename T, typename... Args>
std::unique_ptr<T> MakeUnique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
} // namespace spvtools
#endif // LIBSPIRV_OPT_MAKE_UNIQUE_H_
|
#ifndef NONLINEARRELATIONWITHSIGNINVERSED_H
#define NONLINEARRELATIONWITHSIGNINVERSED_H
#include "SiconosKernel.hpp"
class NonlinearRelationWithSignInversed : public FirstOrderType2R
{
protected:
public:
NonlinearRelationWithSignInversed();
virtual ~NonlinearRelationWithSignInversed() {};
virtual void initComp... |
using System;
using System.Collections;
public class DictionaryEntryCtor
{
private const int c_MIN_STRING_LEN = 8;
private const int c_MAX_STRING_LEN = 256;
public static int Main()
{
DictionaryEntryCtor dec = new DictionaryEntryCtor();
TestLibrary.TestFramework.BeginTestCase("Diction... |
<?php
namespace Pan100\MoodLogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Pan100\MoodLogBundle\Entity\Day;
use Pan100\MoodLogBundle\Entity\Medication;
use Pan100\MoodLogBundle\Entity\Trigg... |
#ifndef BX_ERROR_H_HEADER_GUARD
#define BX_ERROR_H_HEADER_GUARD
#include "string.h"
#define BX_ERROR_SET(_ptr, _result, _msg) \
BX_MACRO_BLOCK_BEGIN \
BX_TRACE("Error %d: %s", _result.code, "" _msg); \
_ptr->setError(_result, "" _msg); \
BX_MACRO_BLOCK_END
#define BX_ERROR_USE_TEMP_WHEN_NULL(_ptr) \... |
/// <reference path="fourslash.ts" />
////interface I<TString, TNumber> {
//// [s: string]: TString;
//// [s: number]: TNumber;
////}
////
////declare function foo<TString, TNumber>(obj: I<TString, TNumber>): { str: T/*1*/ }
goTo.marker("1");
verify.memberListContains("I");
verify.memberListContain... |
// Copyright 2015 Google Inc. 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 required by applicable ... |
@interface ScrollLabel : UILabel
- (CGFloat)scrollTime;
@end
@interface CWStatusBarNotification : NSObject
typedef NS_ENUM(NSInteger, CWNotificationStyle) {
CWNotificationStyleStatusBarNotification,
CWNotificationStyleNavigationBarNotification
};
typedef NS_ENUM(NSInteger, CWNotificationAnimationStyle) {
... |
{% if site.twitter_follow_button or site.twitter_tweet_button %}
<script type="text/javascript">
(function(){
var twitterWidgets = document.createElement('script');
twitterWidgets.type = 'text/javascript';
twitterWidgets.async = true;
twitterWidgets.src = 'http://platform.twitter.com/widge... |
# Simple Playground.js Animations
Provides simple spritesheet-based animations for [Playground.js](http://playgroundjs.com/), using the default [CanvasQuery](http://canvasquery.com/)-based renderer.
## Usage
Define a spritesheet to be used for the animation(s). Sheets can be reused for multiple animations.
```java... |
<ion-view view-title="Contact">
<ion-content class="has-footer">
<form id="contact-form" name="contactForm" ng-submit="send(contactForm)" novalidate>
<div class="list">
<label class="item item-input item-floating-label" ng-class="{ 'has-error' : contactForm.name.$invalid }">
... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
describe "UnboundMethod#owner" do
it "returns the owner of the method" do
"abc".method(:upcase).owner.should == String
end
it "returns the name even when aliased" do
obj = UnboundMethodSp... |
namespace boost {
namespace container {
namespace containers_detail {
//!A deleter for scoped_ptr that deallocates the memory
//!allocated for an array of objects using a STL allocator.
template <class Allocator>
struct scoped_array_deallocator
{
typedef typename Allocator::pointer pointer;
typedef typename ... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
import socket
import ssl
import sys
from logstash_async.constants import SOCKET_TIMEOUT
class UdpTransport(object):
# ----------------------------------------------------------------------
def __init__(self, host, port, **kwargs):
self._host = host
self._port = port
self._sock = None
... |
namespace mp4v2 { namespace util {
///////////////////////////////////////////////////////////////////////////////
class SubtitleUtility : public Utility
{
private:
enum SubtitleLongCode {
LC_LIST = _LC_MAX,
LC_EXPORT,
LC_IMPORT,
LC_REMOVE,
};
public:
SubtitleUtility( int,... |
namespace quic {
enum Endianness {
NETWORK_BYTE_ORDER, // big endian
HOST_BYTE_ORDER // little endian
};
// Provide utility functions that convert from/to network order (big endian)
// to/from host order (can be either little or big endian depending on the
// platform).
class QuicEndian {
public:
// Conv... |
package utils
import (
"fmt"
"sync"
"testing"
)
type safeMap struct {
mu sync.RWMutex
m map[int]bool
}
func (s *safeMap) Add(index int, ok bool) {
s.mu.Lock()
defer s.mu.Unlock()
s.m[index] = ok
}
func (s *safeMap) Read() map[int]bool {
s.mu.RLock()
defer s.mu.RUnlock()
return s.m
}
func TestInParallel... |
// 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;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using Syst... |
package org.pac4j.oauth.profile.strava;
import org.pac4j.core.profile.converter.DateConverter;
import org.pac4j.core.profile.converter.FormattedDateConverter;
import org.pac4j.oauth.profile.converter.JsonListConverter;
/**
* Strava profile fields specific converters.
*
* @author Adrian Papusoi
*/
public final cl... |
<?php
namespace Predis\Command;
/**
* @group commands
* @group realm-scripting
*/
class ServerEvalTest extends PredisCommandTestCase
{
/**
* {@inheritdoc}
*/
protected function getExpectedCommand()
{
return 'Predis\Command\ServerEval';
}
/**
* {@inheritdoc}
*/
... |
<!--
CareWheels Corporation 2017
Filename: groupStatus.html
Description: This creates the individual data status screen
Authors: Capstone students PSU Aug 2016
Revision: Disabled center user call button - AV 01/27/2017
Notes for the unintiated:
The browser calls the index.html first and that loads this file.
getPhoneN... |
var ADD = '.kr-add-button';
var CUT='.kr-cut-button';
var PASTE='.kr-paste-button';
var DELETE='.kr-delete-button';
var REFRESH='.kr-refresh-button';
var ADDPARENT='.kr-addparent-button';
var EDIT='.kr-edit-button';
var TREE = '.tree-bar-button';
var ENABLED = true;
var pasting = false;
function disableButton(id) {
... |
package com.android.dx.dex.file;
import com.android.dx.rop.cst.CstType;
/**
* Representation of a reference to an item inside a Dalvik file.
*/
public abstract class IdItem extends IndexedItem {
/**
* {@code non-null;} the type constant for the defining class of
* the reference
*/
private f... |
<?PHP
class Beranda extends CI_Controller
{
//Constructor
public function __construct()
{
parent::__construct();
$this->load->model('konten_m');
}
//Index
public function index()
{
$this->load->view('beranda_v');
}
public function update()
{
$this->konten_m->set_konten($this->... |
<HTML><HEAD>
<TITLE>Review for Bob Roberts (1992)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0103850">Bob Roberts (1992)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Frank+Maloney">... |
const assert = require('assert');
const { parseString } = require('xml2js');
const BucketInfo = require('arsenal').models.BucketInfo;
const constants = require('../../../constants');
const { cleanup, DummyRequestLogger, makeAuthInfo } = require('../helpers');
const inMemMetadata
= require('../../../lib/metadata/i... |
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using Csla;
using Csla.Data;
using Invoices.DataAccess;
namespace Invoices.DataAccess.Sql
{
/// <summary>
/// DAL SQL Server implementation of <see cref="IInvoiceEditDal"/>
/// </summary>
public... |
package com.woorea.openstack.examples.heat;
import com.woorea.openstack.examples.ExamplesConfiguration;
import com.woorea.openstack.heat.Heat;
import com.woorea.openstack.heat.model.CreateStackParam;
import com.woorea.openstack.heat.model.Stack;
import com.woorea.openstack.keystone.model.Access;
import com.woorea.open... |
#ifndef __RenderToVertexBuffer_H__
#define __RenderToVertexBuffer_H__
#include "OgrePrerequisites.h"
#include "OgreRenderOperation.h"
#include "OgreHeaderPrefix.h"
namespace Ogre {
/** \addtogroup Core
* @{
*/
/** \addtogroup RenderSystem
* @{
*/
/**
An object which renders g... |
package it.smartcommunitylab.carpooling.model;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author nawazk
*
*/
public class Recurrency {
/** travel times(mins of day)-reqd.**/
private int time;
/** days of week when route is due [1,2,3,4,5,6,7]->[Do,Lu,Ma,Me,Gi,Ve,Sa].**/
p... |
"""This module contains the data connector exceptions.
These exceptions should be used instead of driver-specific exceptions when
possible.
"""
class ConnectorError(RuntimeError):
"""Abstract connector error exception."""
pass
class DriverNotFound(ConnectorError):
"""Exception raised when the selecte... |
#ifndef RTLD_MACHDEP_H
#define RTLD_MACHDEP_H 1
#include <sys/types.h>
#include <machine/atomic.h>
struct Struct_Obj_Entry;
/* Return the address of the .dynamic section in the dynamic linker. */
#define rtld_dynamic(obj) (&_DYNAMIC)
Elf_Addr reloc_jmpslot(Elf_Addr *where, Elf_Addr target,
const struc... |
<!doctype html>
<title>CodeMirror: Pig Latin mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">
<link rel="stylesheet" href="../../lib/codemirror.css">
<script src="../../lib/codemirror.js"></script>
<script src="pig.js"></script>
<style>.CodeMirror {border: 2px inset #dee;}</style>
... |
"use strict";
exports.__esModule = true;
var _babelPresetStage = require("babel-preset-stage-1");
var _babelPresetStage2 = _interopRequireDefault(_babelPresetStage);
var _babelPluginTransformDoExpressions = require("babel-plugin-transform-do-expressions");
var _babelPluginTransformDoExpressions2 = _interopRequireD... |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use ... |
package abstractfactory.use;
/**
* 因特尔CPU.
*
* @author Zhang.Ge
* @version v1.0 2017年3月30日 下午10:35:34
*/
public class IntelCPU implements CPUApi {
private int point = 0;
public IntelCPU(int point) {
this.point = point;
}
@Override
public void calculate() {... |
/* From ppb_input_event.idl modified Thu Apr 3 14:52:10 2014. */
#ifndef PPAPI_C_PPB_INPUT_EVENT_H_
#define PPAPI_C_PPB_INPUT_EVENT_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_std... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.orpc</groupId>
<artifactId>rpc-example-simple</artif... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using OOPTeamwork.Common;
using OOPTeamwork.Core;
using OOPTeamwork.Models.Contracts;
using OOPTeamwork.Models.GameAbstracts;
namespace OOPTeamwork.Models.Players
{
public class Enemy : Player, IEnemy
{
private ... |
namespace web_view {
namespace {
bool AlwaysCreateNewFrameTree() {
return base::CommandLine::ForCurrentProcess()->HasSwitch(
web_view::switches::kOOPIFAlwaysCreateNewFrameTree);
}
} // namespace
bool AreAppIdsEqual(uint32_t app_id1, uint32_t app_id2) {
return app_id1 == app_id2 &&
app_id1 != mojo... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Knockout validator for the "max" constraint.</title>
<meta name="description" content="Knockout validator for the "max" constraint.">
<meta name="viewport" content="... |
Describe 'Classes inheritance syntax' -Tags "CI" {
It 'Base types' {
class C1 {}
class C2a : C1 {}
class C2b:C1 {}
[C2a]::new().GetType().BaseType.Name | Should -Be "C1"
[C2b].BaseType.Name | Should -Be "C1"
}
It 'inheritance from abstract base class with no abstra... |
#import "LoggerTransportStatusCell.h"
#import "LoggerAppDelegate.h"
#import "LoggerTransport.h"
@implementation LoggerTransportStatusCell
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
{
NSArray *transports = ((LoggerAppDelegate *)[NSApp delegate]).transports;
LoggerTransport *transp... |
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<!-- The PullToRefreshScrollView replaces a standard PullToRefreshScrollView widget. -->
<com.handmark.pulltorefresh.e... |
package com.pme.exe.res.vi;
/**
* @author yole
*/
public interface VersionInfoFactory {
VersionInfoBin createChild(int index);
}
|
The documentation is designed to help you to implement the features on your side. PDF to excel API in PowerShell can be implemented with PDF.co Web API. PDF.co Web API is the flexible Web API that includes full set of functions from e-signature requests to data extraction, OCR, images recognition, pdf splitting and pdf... |
/*
* HeadingPicker
* author: Raoh
* create date: 2013.05-02
*/
.kb-h1
{
font-family:'Segoe UI','Helvetica Neue',openSansRegular,Arial,Helvetica,sans-serif;
font-size:28px !important;
font-weight:bold;
text-decoration:none;
text-transform:none;
color:rgb(0, 0, 0);
}
.kb-h2
{
font-family:"Segoe UI","Helvetica... |
package org.apache.flink.runtime.jobmaster.slotpool;
import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.runtime.clusterframework.types.AllocationID;
import org.apache.flink.runtime.clusterframework.types.ResourceProfile;
import org.apache.flink.runtime.concurrent.FutureUtils;
import org.ap... |
import React from 'react';
import styles from './Features.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import FeatureList from '../FeatureList';
let data = [
{banner: 'Friday at 2PM - Shows', heroHref: 'http://placehold.it/350x350', headline: 'Catie Olson / Jabberwocky', ex... |
var cv = require('opencv');
var lowThresh = 0;
var highThresh = 100;
var nIters = 2;
var minArea = 2000;
var BLUE = [0, 255, 0]; //B, G, R
var RED = [0, 0, 255]; //B, G, R
var GREEN = [0, 255, 0]; //B, G, R
var WHITE = [255, 255, 255]; //B, G, R
cv.readImage('../test/square2.jpg', function(err, im) {
var out =... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<title>MulticastResult.Builder | Android Developers</title>
<!-- STYLESHEE... |
$(function(){
// Todo Model
// ----------
// Our basic **Todo** model has `title`, `order`, and `done` attributes.
var Todo = Backbone.Model.extend({
// Default attributes for the todo item.
defaults: function() {
return {
title: "empty todo...",
order: Todos.nextOrder(),
... |
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
describe "Enumerable#group_by" do
ruby_version_is "1.8.7" do
it "returns a hash with values grouped according to the block" do
EnumerableSpecs::Numerous.new(*%w(foo bar baz)).group_by{ |word... |
/**
* Autogenerated by Thrift Compiler (0.11.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.facebook.buck.artifact_cache.thrift;
@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"})
@javax.annotation.Generated(value = "Autogenerated by Thri... |
package org.apache.camel.util;
import org.apache.camel.LoggingLevel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
/**
* A logger which logs to a slf4j {@link Logger}.
* <p/>
* The name <tt>CamelLogger</tt> has been chosen to avoid any name clash... |
package com.google.javascript.jscomp;
import static com.google.common.base.Strings.nullToEmpty;
import com.google.common.base.Joiner;
import com.google.javascript.jscomp.CompilerOptions.LanguageMode;
import com.google.javascript.jscomp.RewritePolyfills.Polyfills;
import com.google.javascript.rhino.Node;
import java.... |
package api
// IsBuildDisabled returns true if the builder feature is disabled.
func IsBuildEnabled(config *MasterConfig) bool {
return !config.DisabledFeatures.Has(FeatureBuilder)
}
|
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Commands.Storage.ScenarioTest.Common;
using Commands.Storage.ScenarioTest.Util;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MS.Test.Common.MsTestLib;
using StorageTestLib;
using StorageBlob = Microsoft.Wi... |
CREATE TABLE "GROUNDFISH"."GS_AGEMAT"
( "CODE" NUMBER(1,0),
"DESCRIPTION" VARCHAR2(30 BYTE)
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 65536 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE ... |
package org.apache.camel.component.netty.http;
import org.apache.camel.builder.RouteBuilder;
import org.junit.Test;
public class NettyHttpXMLXPathResponseTest extends BaseNettyTest {
@Test
public void testHttpXML() throws Exception {
String out = template.requestBody("netty-http:http://localhost:{{p... |
using FileDBGenerator.ViewModels;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace FileDBGenerator
{
public partial class MainWindow : Window
{
MainWindowViewModel viewModel = new MainWindowViewModel();
System.Threading.Cancella... |
package org.apache.nifi.reporting.azure.loganalytics;
import java.io.IOException;
import java.nio.charset.Charset;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.text.MessageFormat;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.form... |
;(function ($) {
var cancelClickMove=false;
var preventAll = function(e)
{
e.preventDefault();
e.stopPropagation();
}
var redirectMouseToTouch = function(type, originalEvent, newTarget)
{
var theTarget = newTarget ? newTarget : originalEvent.target;
//stop propagation, and remove default... |
using namespace cv;
using namespace std;
int edgeThresh = 1;
Mat image, gray, edge, cedge;
// define a trackbar callback
void onTrackbar(int, void*)
{
blur(gray, edge, Size(3,3));
// Run the edge detector on grayscale
Canny(edge, edge, edgeThresh, edgeThresh*3, 3);
cedge = Scalar::all(0);
im... |
export default class UserEventsList {
init() {
$(function () {
$('.form-delete').submit(function () {
return confirm(
"Cette action va supprimer l'événement ainsi que toutes les données rattachées. Continuer ?"
);
});
$... |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifac... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (ge... |
package org.batfish.representation.aws.matchers;
import static org.hamcrest.Matchers.equalTo;
import java.util.List;
import javax.annotation.Nonnull;
import org.batfish.representation.aws.matchers.ElasticsearchDomainMatchersImpl.HasAvailable;
import org.batfish.representation.aws.matchers.ElasticsearchDomainMatchersI... |
The `coreos.oem.*` parameters follow the [os-release spec][os-release], but have been repurposed as a way for coreos-cloudinit to know about the OEM partition on this machine. Customizing this section is only needed when generating a new OEM of CoreOS from the SDK. The fields include:
- **id**: Lowercase string identi... |
/*
* GemEntityValueNode.java
* Creation date: Nov 7, 2003
* By: Frank Worsley
*/
package org.openquark.cal.valuenode;
import org.openquark.cal.compiler.DataConstructor;
import org.openquark.cal.compiler.SourceModel;
import org.openquark.cal.compiler.TypeExpr;
import org.openquark.cal.compiler.io.In... |
"""The synology component."""
|
<?php
final class Aphront304Response extends AphrontResponse {
public function getHTTPResponseCode() {
return 304;
}
public function buildResponseString() {
// IMPORTANT! According to the HTTP/1.1 spec (RFC 2616) a 304 response
// "MUST NOT" have any content. Apache + Safari strongly agree, and
... |
var el: HTMLElement = new HTMLElement();
interface SerializeData {
x?: number;
y?: number;
}
var options: GridsterOptions = {
min_cols: 5,
autogenerate_sytesheet: true,
serialize_params: ($w: JQuery, wgd: GridsterCoords) => {
return {
x: wgd.row,
y: wgd.col
};
}
};
var gridster = <Gridster>$('.gridst... |
This component allows buyer users to view categories, sub-categories, and products assigned to them.
It uses the Me resource to list the correct data for the logged in user.
If you have configured Category and Product Facets using the Facets component, the catalog component will take care of displaying those facets t... |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_20) on Wed Sep 01 18:11:09 CEST 2010 -->
<TITLE>
Uses of Class com.rambris.TextTable
</TITLE>
<META NAME="date" CONTENT="2010-09-01">
<LINK REL ="s... |
Param($installPath, $toolsPath, $package, $project)
Function MakeRelativePath($Origin, $Target) {
$originUri = New-Object Uri('file://' + $Origin)
$targetUri = New-Object Uri('file://' + $Target)
$originUri.MakeRelativeUri($targetUri).ToString().Replace('/', [System.IO.Path]::DirectorySeparatorChar)
}
Add... |
package org.springframework.security.oauth.common;
import org.springframework.security.core.AuthenticationException;
/**
* Base exception for OAuth processing.
*
* @author Ryan Heaton
*/
public class OAuthException extends AuthenticationException {
public OAuthException(String message) {
super(message);... |
require 'spec_helper'
describe Eve::API::Services::Eve do
context "#certificate_tree" do
subject { mock_service(:eve, :certificate_tree).categories }
it "follows expected structure" do
subject.should behave_like_rowset('categoryID,categoryName') { |category|
category.classes.should behave_like... |
module Locomotive
module API
module Entities
class TranslationEntity < BaseEntity
#http://www.rubydoc.info/gems/lotus-model
expose :key, :values
end
end
end
end
|
#ifndef __CC_PU_PARTICLE_3D_SLAVE_BEHAVIOUR_TRANSLATOR_H__
#define __CC_PU_PARTICLE_3D_SLAVE_BEHAVIOUR_TRANSLATOR_H__
#include "extensions/Particle3D/PU/CCPUScriptTranslator.h"
#include "extensions/Particle3D/PU/CCPUScriptCompiler.h"
#include "extensions/Particle3D/PU/CCPUSlaveBehaviour.h"
NS_CC_BEGIN
class PUSla... |
package wal
import "github.com/prometheus/client_golang/prometheus"
var (
syncDurations = prometheus.NewHistogram(prometheus.HistogramOpts{
Namespace: "etcd",
Subsystem: "wal",
Name: "fsync_durations_seconds",
Help: "The latency distributions of fsync called by wal.",
Buckets: prometheus.Expone... |
<?php
namespace Slim;
use RuntimeException;
use SplStack;
use SplDoublyLinkedList;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
use UnexpectedValueException;
/**
* Middleware
*
* This is an internal class that enables concentric middleware layers. This
* class is an implem... |
using System;
using Projects.Models.Glass.Common.FieldSections;
using Sitecore;
using Sitecore.Data;
using Sitecore.Data.Items;
#endregion
namespace Projects.Reboot.Core.Search
{
public class FacetValue
{
#region C'tors
public FacetValue(string name, int aggregate)
{
Name ... |
/* @flow */
var getStateKey = require('./get-state-key');
var VALID_KEYS = [':active', ':focus', ':hover'];
var getState = function (
state: {_radiumStyleState: {[key: string]: {[value: string]: boolean}}},
elementKey: string,
value: string
): boolean {
if (VALID_KEYS.indexOf(value) === -1) {
throw new E... |
package gov.nasa.worldwind.layers;
import gov.nasa.worldwind.Configuration;
import gov.nasa.worldwind.cache.GpuResourceCache;
import gov.nasa.worldwind.geom.Angle;
import gov.nasa.worldwind.render.DrawContext;
import gov.nasa.worldwind.util.*;
import javax.media.opengl.*;
import java.io.*;
import java.nio.*;
/**
*... |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (c) 2010 International Business Machines Corporation and others. All rights reserved.
-->
<!DOCTYPE ldml SYSTEM "http://www.unicode.org/repos/cldr/trunk/common/dtd/ldml.dtd"
[
<!ENTITY % icu SYSTEM "http://www.unicode.org/repos/cldr/trunk/common/dtd/ldmlICU.dtd... |
// @filename: server.d.ts
declare module "other" {
export class C { }
}
declare module "server" {
import events = require("other"); // Ambient declaration, no error expected.
module S {
export var a: number;
}
export = S; // Ambient declaration, no error expected.
}
// @... |
package org.elasticsearch.deps.lucene;
import org.apache.lucene.document.*;
import org.apache.lucene.index.*;
import org.apache.lucene.search.*;
import org.apache.lucene.store.Directory;
import org.apache.lucene.store.RAMDirectory;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.BytesRefBuilder... |