text stringlengths 3 1.05M |
|---|
<!DOCTYPE html>
<!--
Copyright (c) 2012 Intel Corporation.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of works must retain the original copyright notice, this list
of conditions and the following di... |
package chapter_08.mouse;
import javax.swing.*;
import javax.swing.plaf.basic.BasicTabbedPaneUI;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList... |
<!-- vim:ts=4:sts=4:sw=4:et:tw=60 -->
This library has the following policy about versions.
- Presently, all planned versions have a major version number of 0.
- The minor version number increases for every backward-incompatible
change to a documented behavior.
- The patch version number increases for every... |
import tempfile
import unittest
from telemetry.internal.platform import network_controller_backend
from telemetry.internal import forwarders
from telemetry.util import wpr_modes
class FakePlatformBackend(object):
@property
def wpr_ca_cert_path(self):
return None
@property
def forwarder_factory(self):
... |
<?php
// Main : Header
|
layout: post
title: WakefulBroadcastReceiver 学习笔记
category: android
tags: [android]
---
[WakefulBroadcastReceiver](https://developer.android.com/reference/android/support/v4/content/WakefulBroadcastReceiver.html) 是一种特殊的广播接收器. 它可以自动创建和管理唤醒锁 `PARTIAL_WAKE_LOCK` 来执行任务. 确保耗时任务执行完毕之前设备不会休眠.
`WakefulBroadcastReceiver` 收到广播... |
/**
* @file
* This file includes definitions for forwarding IPv6 datagrams across the Thread mesh.
*/
#ifndef MESH_FORWARDER_HPP_
#define MESH_FORWARDER_HPP_
#include "openthread-core-config.h"
#include "common/locator.hpp"
#include "common/tasklet.hpp"
#include "mac/channel_mask.hpp"
#include "mac/data_poll_... |
using System.Collections.Generic;
namespace Chame.ContentLoaders
{
/// <summary>
/// An execution order sorter for <see cref="IContentLoader"/> instances.
/// </summary>
public interface IContentLoaderSorter
{
void Sort(List<IContentLoader> loaders);
}
}
|
package com.commonsware.empublite;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.os.Process;
import de.greenrobot.event.EventBus;
public class DatabaseHelper extends SQLiteOpenHelper {
pr... |
/* globals jQuery:false */
/**
* A KBox type and a corresponding jQuery plugin.
*
* So, what is a kbox?
* A kbox can be a modal dialog or a (dhtml, not window) popup or a ...
* The kbox can be configured programatically or using data-* attributes.
* Default styles are in kbox.css.
*
* Usage
* Declarative:... |
module("luci.controller.luci_diag.luci_diag_devinfo", package.seeall)
function index()
local e
e = entry({"admin", "voice", "diag", "phones"}, arcombine(cbi("luci_diag/smap_devinfo"), cbi("luci_diag/smap_devinfo_config")), _("Phones"), 10)
e.leaf = true
e.subindex = true
e.dependent = true
e = entr... |
<?php
/** Error reporting */
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
date_default_timezone_set('Europe/London');
/** Include PHPExcel */
require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
/... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... |
'use strict';
import express from 'express';
import http from 'http';
import morgan from 'morgan';
import bodyParser from 'body-parser';
import cookieParser from 'cookie-parser';
import methodOverride from 'method-override';
let app = express();
let server = http.createServer(app);
const port = parseInt(process.env.... |
import '../../lib/load-env-file.js';
import * as pullRequest from './pull-request.js';
try {
await pullRequest.checkEnv();
await pullRequest.init();
const changedComponents = await pullRequest.fetchChangedComponents();
const lines = [];
if (changedComponents.added.schema ||
changedComponents.modified.... |
<aside class="share">
<h4>Share this.</h4>
<a href="http://twitter.com/share?text={{page.title}}&url={{ site.url }}{{ page.url }}&hashtags=web,dev,blog,soudev&via=nandomoreirame"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">Twitter</a>
<a href="https://www... |
from cloudmesh_database.dbconn import get_mongo_dbname_from_collection
from cloudmesh_management.cloudmeshobject import CloudmeshObject
from mongoengine import *
class Committee(CloudmeshObject):
db_name = get_mongo_dbname_from_collection("manage")
if db_name:
meta = {'db_alias': db_name}
reviewe... |
package nl.xillio.xill.plugins.date.constructs;
import nl.xillio.xill.api.components.MetaExpression;
import nl.xillio.xill.api.construct.Argument;
import nl.xillio.xill.api.construct.ConstructContext;
import nl.xillio.xill.api.construct.ConstructProcessor;
import nl.xillio.xill.api.data.Date;
import nl.xillio... |
namespace ui {
OzoneChannel::OzoneChannel() : event_converter_(NULL) {
}
OzoneChannel::~OzoneChannel() {
}
void OzoneChannel::InitializeRemoteDispatcher() {
event_converter_ = new RemoteEventDispatcher();
ui::EventFactoryOzoneWayland::GetInstance()->
SetEventConverterOzoneWayland(event_converter_);
}
void... |
require 'spec_helper_acceptance'
describe 'abs function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do
describe 'success' do
it 'should accept a string' do
pp = <<-EOS
$input = '-34.56'
$output = abs($input)
notify { "$output": }
EOS
apply_manifest(p... |
<?php
/**
* @file
* Contains \Drupal\system\Tests\Condition\CurrentThemeConditionTest.
*/
namespace Drupal\system\Tests\Condition;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\simpletest\KernelTestBase;
/**
* Tests the CurrentThemeCondition plugin.
*
* @group Condition
*/
class CurrentThemeConditionTe... |
//
// RKDotNetDateFormatter.h
// RestKit
//
// Created by Greg Combs on 9/8/11.
// Copyright (c) 2009-2012 RestKit. 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 Licens... |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../mode/sql/sql"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../../mode/sql/sql"], mod);
else // Plain browser env
... |
#pragma once
#include <aws/cloudfront/CloudFront_EXPORTS.h>
#include <aws/cloudfront/CloudFrontRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudFront
{
namespace Model
{
/**
*/
class AWS_CLOUDFRONT_API DeleteOriginRequestPolicy2020_05_31Request : ... |
#ifndef NGX_HTTP_PUSH_STREAM_RBTREE_UTIL_H_
#define NGX_HTTP_PUSH_STREAM_RBTREE_UTIL_H_
static ngx_http_push_stream_channel_t * ngx_http_push_stream_get_channel(ngx_str_t *id, ngx_log_t *log, ngx_http_push_stream_loc_conf_t *cf);
static ngx_http_push_stream_channel_t * ngx_http_push_stream_find_channel(ngx_s... |
package resource
import (
"github.com/stellar/horizon/txsub"
"golang.org/x/net/context"
)
// Populate fills out the details
func (res *TransactionResultCodes) Populate(ctx context.Context,
fail *txsub.FailedTransactionError,
) (err error) {
res.TransactionCode, err = fail.TransactionResultCode()
if err != nil {... |
namespace mojo {
class ApplicationManager;
// Interface to allowing loading behavior to be established for schemes,
// specific urls or as the default.
// A ApplicationLoader is responsible to using whatever mechanism is appropriate
// to load the application at url.
// The handle to the shell is passed to that appli... |
package envoy_service_discovery_v2
import (
"bytes"
"errors"
"fmt"
"net"
"net/mail"
"net/url"
"regexp"
"strings"
"time"
"unicode/utf8"
"google.golang.org/protobuf/types/known/anypb"
)
// ensure the imports are used
var (
_ = bytes.MinRead
_ = errors.New("")
_ = fmt.Print
_ = utf8.UTFMax
_ = (*regexp.... |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>Next Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
... |
'use strict';
var util = require('util');
var ScriptBase = require('../script-base.js');
var Generator = module.exports = function Generator() {
ScriptBase.apply(this, arguments);
// if the controller name is suffixed with ctrl, remove the suffix
// if the controller name is just "ctrl," don't append/remove "c... |
<p class="imgpar" id="active-papers">
<img src="{{site.filesurl}}/missing.jpg" alt="ActivePapers" />
<a href="http://www.activepapers.org/" class="project">ActivePapers</a>
aims to make computational science more open and more reliable by
making computations reproducible and publishable. It is a file
format f... |
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/be... |
package com.planet_ink.coffee_mud.Abilities.Thief;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import ... |
// -------------------------------------------------------------------------------------------------------------------
// This file is was created from the google-caja project, and the standalone sanitizer // cd ~/src/cartodb
// https://code.google.com/p/google-caja/wiki/JsHtmlSanitizer
//
// Steps to rebuild this file... |
"""Tests for the 'zero' plugin"""
from __future__ import (division, absolute_import, print_function,
unicode_literals)
from test._common import unittest
from test.helper import TestHelper
from beets.library import Item
from beets import config
from beetsplug.zero import ZeroPlugin
from beets.... |
CRayTracer::CRayTracer() {
// Default settings
m_viewPlane.gamma = 2.2f;
m_viewPlane.hRes = 400;
m_viewPlane.vRes = 400;
m_viewPlane.invGamma = 1.f / m_viewPlane.gamma;
m_viewPlane.pSize = 0.01f;
m_viewPlane.samples = 1;
}
void CRayTracer::setResolution(unsigned int hRes, unsigned int vRes) {
m_viewPla... |
package unix
import (
"syscall"
"unsafe"
)
var _ syscall.Errno
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func Linkat(olddirfd int, oldpath string, newdirfd int, newpath string, flags int) (err error) {
var _p0 *byte
_p0, err = BytePtrFromString(oldpath)
if err != nil {
return
}
var _... |
package com.hazelcast.client.impl.connection.tcp;
import com.hazelcast.internal.util.Clock;
import com.hazelcast.logging.ILogger;
import java.util.Random;
public class WaitStrategy {
private final int initialBackoffMillis;
private final int maxBackoffMillis;
private final double multiplier;
privat... |
/*
* 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... |
package org.elasticsearch.common.lucene.search.function;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.Explanation;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
impor... |
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using WebApplication.Models;
using Microsoft.Extensions.Configuration;
using System.IO;
using Microsoft.EntityFrameworkCore.Infrastructure;
namespace WebAp... |
import {DOM} from 'angular2/src/platform/dom/dom_adapter';
import {StringMapWrapper} from 'angular2/src/facade/collection';
import {global, isFunction, Math} from 'angular2/src/facade/lang';
import {NgZoneZone} from 'angular2/src/core/zone/ng_zone';
import {provide} from 'angular2/core';
import {
createTestInjector... |
<?php
namespace Symfony\Bundle\MonologBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\LoggerChannelPass;
use Symfony\Bundle\MonologBundle\DependencyInjection\Compiler\DebugHandlerPass;
u... |
cask "mac2imgur" do
version "226"
sha256 "8faeb435fcb866267fa67d4b93d5fc9fb82bcfb2e959c7fcc6f59ab15fb05ccb"
url "https://github.com/mileswd/mac2imgur/releases/download/b#{version}/mac2imgur.zip"
name "mac2imgur"
desc "Upload images and screenshots to Imgur"
homepage "https://github.com/mileswd/mac2imgur"
... |
(function() {
var _ref, _ref1, _ref2, _ref3,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor()... |
require "qu"
module ActiveJob
module QueueAdapters
# == Qu adapter for Active Job
#
# Qu is a Ruby library for queuing and processing background jobs. It is
# heavily inspired by delayed_job and Resque. Qu was created to overcome
# some shortcomings in the existing queuing libraries.
# The ad... |
package twitter4j;
import twitter4j.api.HelpResources;
import twitter4j.conf.Configuration;
/**
* @author Yusuke Yamamoto - yusuke at mac.com
* @since Twitter4J 2.2.3
*/
public class LanguageJSONImpl implements HelpResources.Language {
private String name;
private String code;
private String status;
... |
require 'spec_helper'
describe 'Indicator' do
subject do
t = TechnicalAnalysis::Data::CandleArray.new
t.load_from_csv('spec/samples/1_month_petr4.csv')
t
end
it '#HiLo' do
# probaly it should round prices to 2 decimal...
# TODO: check if is necessary more than 2 decimal
# subject.hilo.shou... |
package com.hazelcast.internal.config;
import com.hazelcast.config.CacheSimpleConfig;
import com.hazelcast.config.Config;
import com.hazelcast.config.MergePolicyConfig;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.internal.config.mergepolicies.ComplexCustomMergePolicy;
import com.hazelcast.spi.m... |
package events
import (
"testing"
"time"
info "github.com/google/cadvisor/info/v1"
"github.com/stretchr/testify/assert"
)
func createOldTime(t *testing.T) time.Time {
const longForm = "Jan 2, 2006 at 3:04pm (MST)"
linetime, err := time.Parse(longForm, "Feb 3, 2013 at 7:54pm (PST)")
if err != nil {
t.Fatalf(... |
/**
* @fileoverview A slider control in SVG.
* @author fraser@google.com (Neil Fraser)
*/
'use strict';
/**
* Object representing a horizontal slider widget.
* @param {number} x The horizontal offset of the slider.
* @param {number} y The vertical offset of the slider.
* @param {number} width The total width... |
// +build windows
package util
import (
"errors"
)
// Umask returns an error on Windows
func Umask(mask int) (int, error) {
return 0, errors.New("platform and architecture is not supported")
}
|
package tokens
import (
"errors"
"github.com/rackspace/gophercloud"
os "github.com/rackspace/gophercloud/openstack/identity/v2/tokens"
)
var (
// ErrPasswordProvided is returned if both a password and an API key are provided to Create.
ErrPasswordProvided = errors.New("Please provide either a password or an API... |
#ifndef IDBVersionChangeRequest_h
#define IDBVersionChangeRequest_h
#if ENABLE(INDEXED_DATABASE)
#include "IDBRequest.h"
namespace WebCore {
class IDBVersionChangeRequest : public IDBRequest {
public:
static PassRefPtr<IDBVersionChangeRequest> create(ScriptExecutionContext*, PassRefPtr<IDBAny> source, const S... |
#include <aws/core/client/DefaultRetryStrategy.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/utils/UnreferencedParam.h>
using namespace Aws;
using namespace Aws::Client;
bool DefaultRetryStrategy::ShouldRetry(const AWSError<CoreErrors>& error, long attemptedRetries) const
{
if (attemptedRetr... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isDirective = isDirective;
exports.assertDirective = assertDirective;
exports.isSpecifiedDirective = isSpecifiedDirective;
exports.specifiedDirectives = exports.GraphQLDeprecatedDirective = exports.DEFAULT_DEPRECATION_REASON = expor... |
cask 'paragon-ntfs' do
version '15'
sha256 :no_check # required as upstream package is updated in-place
url "https://dl.paragon-software.com/demo/ntfsmac#{version}_trial.dmg"
name 'Paragon NTFS for Mac'
homepage 'https://www.paragon-software.com/ufsdhome/ntfs-mac/'
auto_updates true
installer manual: "... |
var $ = require('jquery');
var prettify = require("google-code-prettify");
/**
* The composition plan for the sidebar on pages that use the
* data-code-prettify feature attribute.
* @module
*/
module.exports = initPrettify;
/**
* Creates and initializes the composition plan for the prettify library.
* Calling t... |
/**
* @fileOverview Defines the {@link CKFinder.lang} object for the Latin American Spanish
* language.
*/
/**
* Contains the dictionary of language entries.
* @namespace
*/
CKFinder.lang['es-mx'] =
{
appTitle : 'CKFinder',
// Common messages and labels.
common :
{
// Put the voice-only part of the lab... |
require_relative "../../files/chef-gem/build-chef-gem/gem-install-software-def"
BuildChefGem::GemInstallSoftwareDef.define(self, __FILE__)
|
require 'overcommit'
require 'yaml'
module Overcommit::Hook::PreCommit
class ReallyEatYourDogfood < Base
def description
"Checking for unused plugins"
end
def run
config = get_config_hash
installed = get_installed_plugins
diff = key_diff installed, config
if diff.empty?
... |
require 'rss/1.0'
require 'rss/dublincore'
module RSS
# The prefix for the Image XML namespace.
IMAGE_PREFIX = 'image'
# The URI for the Image specification.
IMAGE_URI = 'http://purl.org/rss/1.0/modules/image/'
RDF.install_ns(IMAGE_PREFIX, IMAGE_URI)
# This constant holds strings which contain the names... |
require "test_helper"
ENV["MANDRILL_INGRESS_API_KEY"] = "1l9Qf7lutEf7h73VXfBwhw"
class ActionMailbox::Ingresses::Mandrill::InboundEmailsControllerTest < ActionDispatch::IntegrationTest
setup do
ActionMailbox.ingress = :mandrill
@events = JSON.generate([{ event: "inbound", msg: { raw_msg: file_fixture("../fi... |
<?php
require_once dirname(__FILE__).'/../TestCase.php';
class Twig_Tests_Node_Expression_NameTest extends Twig_Tests_Node_TestCase
{
/**
* @covers Twig_Node_Expression_Name::__construct
*/
public function testConstructor()
{
$node = new Twig_Node_Expression_Name('foo', 0);
$t... |
> turn `http.Server` instances into readable streams
HTTPiped allows you to wrap an instance of `http.Server` into a Readable Stream in objectMode, opening up the opportunity to create stream-based middleware or micro-frameworks with ease.
## Installation
npm install httpiped
## Example
### `server.js`
```js
... |
class CreateEventOrderItems < ActiveRecord::Migration
def change
create_table :event_order_items do |t|
t.integer :order_id , null: false
t.integer :ticket_id, null: false
t.integer :quantity , null: false
t.float :price , null: false
t.timestamps
end
end
end
|
/* jslint esnext: true */
export var hop = Object.prototype.hasOwnProperty;
export function extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
if (!source) { continue; }... |
/**
* @license AngularJS v1.2.27
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {'use strict';
/**
* @ngdoc module
* @name ngRoute
* @description
*
* # ngRoute
*
* The `ngRoute` module provides routing and deeplinking services and directives for ang... |
package com.typesafe.sbt
package packager
package universal
import sbt._
trait UniversalKeys {
val packageZipTarball = TaskKey[File]("package-zip-tarball", "Creates a tgz package.")
val packageXzTarball = TaskKey[File]("package-xz-tarball", "Creates a txz package.")
val packageOsxDmg = TaskKey[File]("package-os... |
driver=org.expath.file.saxon.qt3.Driver
all:
( cd ../../ && ant compile-test )
java -cp .:../../lib/saxon9he.jar:../../lib/saxon9-test.jar:../../lib/expath-tools-java.jar:../../lib/expath-tools-saxon.jar:../../lib/expath-file-java.jar:../../build/classes/:../../build/test/classes/ \
$(driver) \
`pwd`
rm -... |
from datetime import datetime
from django.test.client import Client
from django.contrib.auth.models import User, Group
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
from object_log.models import LogItem, LogAction, create_defaults
global user1, user2
class TestLogActi... |
var pipeline = require('../');
var through = require('through2');
var stringify = require('JSONStream').stringify;
var split = require('split');
var concat = require('concat-stream');
var test = require('tape');
test('nested splicer', function (t) {
t.plan(1);
var addNewLines = through(function (buf, enc,... |
<?php
include_once dirname(__FILE__).'/../../../bootstrap/unit.php';
include_once dirname(__FILE__).'/../../../bootstrap/database.php';
sfContext::createInstance($configuration);
sfDoctrineRecord::setDefaultCulture('ja_JP');
$t = new lime_test(5, new lime_output_color());
//------------------------------------------... |
package org.kuali.rice.core.impl.config.property;
import org.kuali.rice.core.api.config.property.ConfigContext;
import org.springframework.beans.factory.FactoryBean;
/**
*
* A FactoryBean which reads the value of the specified config parameter name and returns it.
* If the config parameter does not exist, it wil... |
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="package/name" tests="4" skipped="1" failures="1" time="0.1">
<testcase name="TestOne" time="0.02"></testcase>
<testcase name="TestTwo" time="0.03"></testcase>
<testsuite name="package/name/nested" tests="2" skipped="1" failures="1" time="0.05">... |
Syntactic sugar for jQuery selection using data-hook attributes.
Based on an article written by Will Boyd: [Effective Event Binding with jQuery](http://www.sitepoint.com/effective-event-binding-jquery/).
License: [MIT](https://github.com/Falc/jquery.datahook/blob/master/LICENSE)
## Requirements
* [jQuery](http://jq... |
package com.esri.gpt.control.webharvest.client.res;
import com.esri.gpt.catalog.harvest.protocols.HarvestProtocolResource;
import com.esri.gpt.control.webharvest.IterationContext;
import com.esri.gpt.control.webharvest.common.CommonCriteria;
import com.esri.gpt.framework.resource.api.Resource;
import com.esri.gpt.fra... |
#include "config.h"
#include "JSHTMLStyleElement.h"
#include "HTMLStyleElement.h"
using namespace JSC;
namespace WebCore {
}
|
<%
DIRECTIVE SAFE_OUTPUT_OPEN;
var headContent = {
include("/pages/template/head.html"){}
include("/pages/includes/umeditor.html"){}
%>
<script type="text/javascript">
var ue = UE.getEditor('container');
var oper = {
save:function(id){
if(!validForm()) {
return false;
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (fn) {
return (0, _rest2.default)(function (args /*..., callback*/) {
var callback = args.pop();
fn.call(this, args, callback);
});
};
var _rest = require('lodash/rest');
var _rest2 = ... |
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<div style="display: none">
<span id="lower1">lower 1</span><br>
<span id="lower2">lower 2</span><br>
<span id="UPPER1">UPPER 1</span><br>
<span id="UPPER2">UPPER 2</span><br>
</div>
<script>
... |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache Lice... |
package com.siyeh.ig.bugs;
import com.intellij.psi.*;
import com.intellij.psi.util.ConstantExpressionUtil;
import com.intellij.psi.util.PsiUtil;
import com.siyeh.InspectionGadgetsBundle;
import com.siyeh.ig.BaseInspection;
import com.siyeh.ig.BaseInspectionVisitor;
import org.jetbrains.annotations.NonNls;
import org.... |
'use strict';
var global = require('./$.global')
, $ = require('./$')
, $def = require('./$.def')
, fails = require('./$.fails')
, hide = require('./$.hide')
, mix = require('./$.mix')
, forOf = require('./$.for-of')
, strictNew = ... |
<?xml version="1.0" encoding="utf-8"?>
<PRONOM-Report xmlns="http://pronom.nationalarchives.gov.uk">
<report_format_detail>
<FileFormat>
<FormatID>630</FormatID>
<FormatName>Rich Text Format</FormatName>
<FormatVersion>1.4</FormatVersion>
<FormatAliases>
</FormatAliases>
... |
import sys
import test.test_support
test.test_support.verbose = 0
def runtest(name):
__import__(name)
module = sys.modules[name]
if hasattr(module, "test_main"):
module.test_main()
runtest("test.test_minidom")
runtest("test.test_pyexpat")
runtest("test.test_sax")
runtest("test.test_xml_etree")
ru... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Button - Checkboxes</title>
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.5.1.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"... |
warn 'deprecated openssl/ssl use: require "openssl" instead of "openssl/ssl"'
require 'openssl'
|
// 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... |
package com.asksunny.jbdstudio;
import java.io.File;
import java.io.FilenameFilter;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.HashMap;
import com.asksunny.jbdstudio.util.CLIOptions;
public class JBDStudioContext extends HashMap<String, Object>
{
pu... |
package org.apache.hadoop.metrics2.filter;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import com.google.re2j.Pattern;
/**
* A regex pattern filter for metrics
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class RegexFi... |
<?php
namespace DoctrineORMModuleTest\Assets\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*/
class ResolveTarget
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\OneToOne(targetEntity="TargetInterfa... |
// (C) Copyright 2015 Martin Dougiamas
//
// 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 agre... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.designer.designSurface.tools;
import com.intellij.designer.designSurface.EditableArea;
import com.intellij.designer.model.RadComponent;
import com.intellij.o... |
#include "config.h"
#include "core/css/CSSFontSelector.h"
#include "core/css/CSSFontSelectorClient.h"
#include "core/css/CSSSegmentedFontFace.h"
#include "core/css/CSSValueList.h"
#include "core/css/FontFaceSet.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
#include "core/frame/LocalF... |
package jef.database.routing.jdbc;
public class JCallableStatement {
}
|
FROM ubuntu
ENV name value
ENV name=value
ENV name=value name2=value2
ENV name="value value1"
ENV name=value\ value2
ENV name="value'quote space'value2"
ENV name='value"double quote"value2'
ENV name=value\ value2 name2=value2\ value3
ENV name=value \
name1=value1 \
name2="value2a \
value2b" \
nam... |
#include <aws/devicefarm/model/DeviceFilterAttribute.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace DeviceFarm
{
namespace Model
{
namespace DeviceFilterAttribu... |
<?php
namespace Faker\Provider\hu_HU;
class Company extends \Faker\Provider\Company
{
protected static $formats = array(
'{{lastName}} {{companySuffix}}',
'{{lastName}}',
);
protected static $companySuffix = array('Kft', 'és Tsa', 'Kht', 'ZRT', 'NyRT', 'BT');
}
|
package org.apache.jackrabbit.oak.jcr;
import static org.apache.jackrabbit.JcrConstants.NT_UNSTRUCTURED;
import static org.apache.jackrabbit.oak.plugins.index.IndexConstants.ASYNC_PROPERTY_NAME;
import static org.apache.jackrabbit.oak.plugins.index.IndexConstants.REINDEX_PROPERTY_NAME;
import static org.apache.jackra... |