code stringlengths 2 1.05M |
|---|
'use strict';
// Helper function for the lock-icon to make sure its classes are cleared
function clearLockIcon() {
eID('lock-icon').className = 'fa';
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Locking ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Markup changes to reflect locked state
function setLocked() {
clearLockIcon();
eI... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
jQuery.noConflict();
jQuery(document).ready(function($){
MYNAMESPACE.namespace('view.AutoAddressManagerForIE10');
MYNAMESPACE.view.AutoAddressManagerForIE10 = function() {
this.initialize.apply(this, arguments);
};
MYNAMESPACE.view.AutoAddressManagerForIE10.prototype = {
_Num_Name1 : null
,_Num_Name2 ... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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
// without limitation the rights to use, copy, modi... |
'use strict'
const express = require('express');
const app = express();
app.use('/', express.static(__dirname + '/'));
module.exports = app
|
'use strict'
class RunnerInterface {
constructor () {
if (new.target === RunnerInterface) {
throw new Error('RunnerInterface cannot be directly constructed')
}
}
run () {
throw new Error('Unimplemented method')
}
close () {
throw new Error('Unimplemented method')
}
exit () {
... |
/**
*/
THREE.GlitchPass = function ( dt_size ) {
if ( THREE.DigitalGlitch === undefined ) console.error( "THREE.GlitchPass relies on THREE.DigitalGlitch" );
var shader = THREE.DigitalGlitch;
this.uniforms = THREE.UniformsUtils.clone( shader.uniforms );
if (dt_size == undefined) dt_size = 64;
this.unifo... |
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', ... |
ApplicationFollowButtonView = Backbone.View.extend({
events: {
'click .follow_btn': 'toggleFollowing'
},
initialize: function (options) {
if (options.user.get('id') != CurrentUser.get('id')){
this.model = new FollowButton();
this.listenTo(this.model, 'sync', this.ren... |
'use strict';
window.onload = function init (){
$("#H1C").fadeIn("slow");
$("#H2C").fadeIn("slow");
$("#H3C").fadeIn("slow");
$("#H1PC").fadeOut("slow");
$("#H2PC").fadeOut("slow");
$("#H3PC").fadeOut("slow");
/*
$(".BateauG1").fadeOut("slow");
$(".BateauP1").fadeOut("slow");
$(".BateauM1")... |
/*
* Navigation is where when the app first starts it reads from the configuration
* and determine which navigator to use
*/
import React from 'react';
import { connect } from 'react-redux';
import { Views, Defaults } from '../../global/globalIncludes';
class NavigationShell extends React.Component {
static pr... |
'use strict';
module.exports = [
{
method: 'GET',
path: '/assets/{filename}',
handler: {
file: (request) => {
return request.params.filename;
}
}
},
{
method: 'GET',
path: '/{path*}',
handler: (request, reply) => {
reply.file('index.html');
}
}
]; |
'use strict';
const common = require('../common');
const { Readable } = require('stream');
const assert = require('assert');
{
const read = new Readable({
read() {}
});
read.resume();
read.on('close', common.mustCall());
read.destroy();
assert.strictEqual(read.destroyed, true);
}
{
const read = n... |
(function(){
var C = (typeof window === 'undefined') ? require('./Crypto').Crypto : window.Crypto;
// Shortcuts
var util = C.util,
charenc = C.charenc,
UTF8 = charenc.UTF8,
Binary = charenc.Binary;
var MARC4 = C.MARC4 = {
/**
* Public API
*/
encrypt: function (message, password) {... |
module.exports={A:{A:{"2":"K C G E B A WB"},B:{"1":"D u Y I M H"},C:{"2":"0 1 2 3 5 6 7 UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v g SB RB"},D:{"2":"0 1 2 3 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v... |
/*!
* jquery.fancytree.columnview.js
*
* Render tree like a Mac Finder's column view.
* (Extension module for jquery.fancytree.js: https://github.com/mar10/fancytree/)
*
* Copyright (c) 2008-2016, Martin Wendt (http://wwWendt.de)
*
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/Lice... |
const camelCase = require('lodash/camelCase');
function writeImport(config, cmd) {
if (config && config.loader === false) {
return `// not importing ${cmd}`;
}
return `import ${camelCase(cmd)} from '${cmd}'`
}
function uc(value) {
if (value) {
value = value + '';
return value[0... |
!function (doc, $) {
var q = require('qwery')
$.pseudos = q.pseudos
$._select = function (s, r) {
// detect if sibling module 'bonzo' is available at run-time
// rather than load-time since technically it's not a dependency and
// can be loaded in any order
// hence the lazy function re-definiti... |
// Generated by CoffeeScript 1.6.2
(function() {
var Director, Messenger, _ref,
__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.prot... |
(function($) {
"use strict"; // Start of use strict
// jQuery for page scrolling feature - requires jQuery Easing plugin
$('a.page-scroll').bind('click', function(event) {
var $anchor = $(this);
$('html, body').stop().animate({
scrollTop: ($($anchor.attr('href')).offset().top - ... |
'use strict'
var Buffer = require('safe-buffer').Buffer
var writeToStream = require('./writeToStream')
var EE = require('events').EventEmitter
var inherits = require('inherits')
function generate (packet) {
var stream = new Accumulator()
writeToStream(packet, stream)
return stream.concat()
}
function Accumulat... |
var request = require('request');
module.exports = class TTV{
constructor(){
if(config.API.youtube && config.API.youtube.key !== ''){
this.yt_search = true;
} else {
b.log.error('Missing Youtube API key!');
this.yt_search = false;
}
if (config.API.trakt && config.API.trakt.key !== ''){
this.us... |
/*
* jQuery Nivo Slider v3.2
* http://nivo.dev7studios.com
*
* Copyright 2012, Dev7studios
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
var NivoSlider = function(element, options){
// Defaults are below
var settings = $... |
(function (app) {
'use strict';
app.registerModule('professions', ['core.admin', 'spells', 'ui.bootstrap']);
})(ApplicationConfiguration);
|
// Flags: --expose-internals
// Copyright Joyent, Inc. and other Node contributors.
//
// 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
// without limitation ... |
'use strict'
const fs = require('fs')
const path = require('path')
/**
* mkdirp recursively creates needed folders for the given dir path
* @param {string} dir
* @returns {string} The path that was created
*/
module.exports.mkdirp = (dir) => {
return path
.resolve(dir)
.split(path.sep)
.reduce((acc, ... |
import React from 'react'
import Icon from 'react-icon-base'
const IoSocialWindowsOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.8 22h-16.9v11.6l16.9 2.5v-14.1z m1.2-1.3v16.8l-19.4-2.8v-14h19.4z m-21.9 1.3h-11.8v9.3l11.8 1.7v-11z m1.3-1.3v13.8l-14.4-2.1v-11.7h14.4z m19.4-16.8l-... |
/*global Autolinker, _, describe, beforeEach, afterEach, it, expect, jasmine */
describe( "Autolinker.matcher.Mention", function() {
var MatchChecker = Autolinker.match.MatchChecker,
matcher;
beforeEach( function() {
matcher = new Autolinker.matcher.Mention( {
tagBuilder : new Autolinker.AnchorTagBuilder()... |
import React from 'react';
import { withState } from 'recompose';
import styled from 'styled-components';
import MenuWrapper from './MenuWrapper';
import Layer from './Layer';
import { play as Play, pause as Pause } from './Icons';
import { mergePixels, debounce } from '../utils';
class Debounce extends React.Componen... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const q = require("smartq");
const paths = require("../npmts.paths");
const plugins = require("./mod.plugins");
/**
* removes the dist directory which will be entirely rebuild
*/
let removeDist = function () {
plugins.beautylog.ora.text... |
/**
* server-sent-event.module.dev.js
*
* @package ServerSentEventModule
* @category Module
* @version 1.0
* @author Ricky Hurtado <ricky@aelogica.com>
*/
// ServerSentEvent Namespace
I.ServerSentEvent = {};
define([
'server_sent_event_view',
'server_sent_event_controller',
'serve... |
// @flow
type Point = {
x: number,
y: number
}
export function ps (p: Point) {
return `${p.x} ${p.y}`
}
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.9.4_A2.4_T3;
* @section: 11.9.4;
* @assertion: First expression is evaluated first, and then second expression;
* @description: Checking with undeclarated vari... |
// This function will be executed as soon as the page is loaded and is responsable for the main orchestration
window.onload = function() {
var controller = new Controller();
controller.bindElements();
controller.bindActions();
}
// The controller... where all logic is controlled or delegated to other controllers... |
exports.level = {
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C3\",\"id\":\"master\",\"remoteTrackingBranchID\":\"o/master\",\"localBranchesThatTrackThis\":null},\"o/master\":{\"target\":\"C3\",\"id\":\"o/master\",\"remoteTrackingBranchID\":null,\"localBranchesThatTrackThis\":[\"master\"]}},\"commits\"... |
var searchData=
[
['_7econsole',['~Console',['../classthewizardplusplus_1_1utils_1_1_console.html#a3f2c8232f58fcbe5cbd826419dbd190d',1,'thewizardplusplus::utils::Console']]],
['_7egraphicapi',['~GraphicApi',['../classthewizardplusplus_1_1anna_1_1graphics_1_1_graphic_api.html#ae2403ea4d117c29e5070a50b8a418897',1,'th... |
/**
* A utility class to help make it easier to access the data stores
* @extends {Map}
*/
class Collection extends Map {
/**
* Returns an ordered array of the values of this collection.
* @returns {array}
* @example
* // identical to:
* Array.from(collection.values());
*/
array() {
return ... |
/* @flow */
import React from "react";
import { observer } from "mobx-react";
type Props = { status: string, style: Object };
const Status = observer(({ status, style }: Props) => {
switch (status) {
case "running":
return (
<div className="inline-container spinner" style={style}>
<div ... |
define(['./_realNames'], function(realNames) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Gets the name of `func`.
*
* @private
* @param {Function} func T... |
'use strict';
module.exports = function(gulp) {
var help,
dependencies = [
''
];
help = 'build the code for release';
gulp.task('release', help, dependencies);
};
|
var Tokenizer = require('../../../index').query.tokenizer;
var assert = require('assert');
describe('Tokenizer ::', function() {
describe('Various Operators', function() {
it('should generate a valid token array when LIKE is used', function() {
var result = Tokenizer({
select: ['*'],
from: ... |
import React, { PropTypes } from 'react';
import { dateTimeUtils } from '../../utils';
import styles from './DateBlock.sass';
const DateBlock = ({ startDate, endDate }) => {
const isMultiDayEvent = endDate ? dateTimeUtils.dateTimeNoOffset(startDate, 'DDD') !== dateTimeUtils.dateTimeNoOffset(endDate, 'DDD') : false;... |
module.exports = {
extends: './index.js'
};
|
// Returns fragment generator, where each returned fragment emits selected indexed data for
// specified object
'use strict';
var ensureCallable = require('es5-ext/object/valid-callable')
, ensureString = require('es5-ext/object/validate-stringifiable-value')
, escape = require('es5-ext/reg-exp/escape')... |
#!/usr/bin/env node
var CompactToStylishStream = require('../')
var minimist = require('minimist')
var argv = minimist(process.argv.slice(2), {
boolean: [
'stdin'
]
})
if (!process.stdin.isTTY || argv._[0] === '-' || argv.stdin) {
var snazzy = new CompactToStylishStream()
// Set the process exit code ba... |
import { jsdom } from 'jsdom'
if (typeof document === 'undefined') {
global.document = jsdom('<!doctype html><html><body></body></html>')
global.window = document.defaultView
global.navigator = global.window.navigator
} |
'use strict';
var qs = require('querystring');
var request = require('request');
var parseString = require('xml2js').parseString;
module.exports = function(auth) {
return function(o, cb) {
var fmt = 'MM/DD/YYYY';
var url = 'https://xmlreporter.dotcom-monitor.com/reporting/xml/responses.aspx?' +
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = babelHelpers.interopRequireDefault(require("react"));
var RandomComponent = /*#__PURE__*/function (_Component) {
babelHelpers.inherits(RandomComponent, _Component);
var _super = babelHelpers.... |
var searchData=
[
['py',['py',['../namespacepresence_1_1py.html',1,'presence']]]
];
|
import add2D from './2d/add2D';
import { complexChromatogram } from './complexChromatogram';
import postProcessingNMR from './postProcessingNMR';
import profiling from './profiling';
import simpleChromatogram from './simpleChromatogram';
export default function postProcessing(entriesFlat, result, options) {
// conve... |
'use strict';
require('mocha');
const path = require('path');
const assert = require('assert');
const { braceExpand } = require('..');
if (!process.env.ORIGINAL_PATH_SEP) {
process.env.ORIGINAL_PATH_SEP = path.sep
}
describe('.braceExpand()', () => {it('should throw an error when arguments are invalid', () => {
... |
Package.describe({
name: "server-render",
version: "0.4.0",
summary: "Generic support for server-side rendering in Meteor apps",
documentation: "README.md"
});
Npm.depends({
"combined-stream2": "1.1.2",
"magic-string": "0.25.7",
"stream-to-string": "1.2.0",
"parse5": "4.0.0"
});
Package.onUse(function... |
var React = require('react/addons');
var {
Container,
createApp,
UI,
View,
ViewManager
} = require('touchstonejs');
// App Config
// ------------------------------
var PeopleStore = require('./stores/people')
var peopleStore = new PeopleStore()
var App = React.createClass({
mixins: [createApp()],
childContex... |
/*******************************************************************************
# ____ __ __ _ _____ _ _ #
# / __ \ \ \ / / | | / ____| | | | #
# | | | |_ __ ___ _ __ \ /\ / /__| |__ | | __| | ___ | |__ ___ ... |
//>>built
define({smiley:"\u9854\u6587\u5b57\u306e\u633f\u5165",emoticonSmile:"\u7b11\u9854",emoticonLaughing:"\u5927\u7b11\u3044",emoticonWink:"\u30a6\u30a3\u30f3\u30af",emoticonGrin:"\u306b\u3084\u308a",emoticonCool:"\u30af\u30fc\u30eb",emoticonAngry:"\u6012\u308a",emoticonHalf:"\u3084\u3084\u4e0d\u6e80",emoticonEyeb... |
/*
evol.colorpicker 3.2.1
ColorPicker widget for jQuery UI
https://github.com/evoluteur/colorpicker
(c) 2015 Olivier Giulieri
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
*/
(function( $, undefined ) {
var _idx=0,
ua=window.navigator.userAgent,
isIE=ua.indexOf("MSIE ")>0,
_ie=isIE?'-ie':'',
isMo... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.17/esri/copyright.txt for details.
//>>built
define("esri/opsdashboard/FeatureActionFeatures",["dojo/_base/declare","./core/messageHandler"],function(d,c){return d(null,{dataSourceProxy:null,constructor:functi... |
/**@module request-listener*/
modules.define('request-listener', ['app-navigation'], function (provide, navigation, RequestListener) {
"use strict";
/**
* @class RequestListener
* @extends BEM
* @exports
*/
provide(RequestListener.decl(/**@lends RequestListener.prototype*/{
/**... |
// This file is part of Indico.
// Copyright (C) 2002 - 2019 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
(function($) {
'use strict';
$.widget('indico.actioninput', $.indico.clearableinput, {
opti... |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... |
/**
* @module inputex-list
*/
var lang = Y.Lang,
inputEx = Y.inputEx;
/**
* Meta field to create a list of other fields
* @class inputEx.ListField
* @extends inputEx.Field
* @constructor
* @param options Added options:
* <ul>
* <li>sortable: Add arrows to sort the items if true (default false)</li>
... |
Ext.define('MyApp.view.project.action.EditUserAction', {
extend : 'MyApp.action.Action',
icon : 'css/images/edit_16x16.png',
requires : [ 'MyApp.view.project.EditUserWin' ],
text : Locale.getMsg('view.common.edit'),
panel : null,
// TODO disableIfNoSelectionOrMoreThanOne:true,
handler : function() {
var me = t... |
var searchData=
[
['add_5fdemonstration',['add_demonstration',['../classintprim_1_1bayesian__interaction__primitives_1_1BayesianInteractionPrimitive.html#a47a076a1ad01545460f65ddd0b5d2ae7',1,'intprim.bayesian_interaction_primitives.BayesianInteractionPrimitive.add_demonstration(self, trajectory)'],['../classintprim_1... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M21.95 8.15c-.29-.16-.61-.31-.93-.46C19.4 4.33 15.98 2 12 2 8.02 2 4.6 4.33 2.99 7.68c-.33.15-.64.3-.93.46C1.41 8.5 1 9.17 1 9.91v4.18c0 .74.41 1.41 1.05 1.... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {InspectedElementPayload} from 'react-devtools-shared/src/backend/types';
import type {DehydratedData} fro... |
$(document).ready(function() {
/* Demo Start */
/* jQuery-UI Widgets */
$(".mws-accordion").accordion();
$(".mws-tabs").tabs();
$(".mws-datepicker").datepicker({showOtherMonths:true});
$(".mws-datepicker-wk").datepicker({showOtherMonths:true, showWeek:true});
$(".mws-datepicker-mm").datepicker({showO... |
/*
* RequestUtils
* Visit http://createjs.com/ for documentation, updates and examples.
*
*
* Copyright (c) 2012 gskinner.com, inc.
*
* 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 ... |
'use babel';
import VueAutocomplete from '../lib/vue-autocomplete';
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs.
//
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit`
// or `fdescribe`). Remove the `f` to unfocus the block.
describe('VueAutocomplete', ()... |
/*
* jQuery Nivo Slider v3.2
* http://nivo.dev7studios.com
*
* Copyright 2012, Dev7studios
* Free to use and abuse under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
(function($) {
var NivoSlider = function(element, options){
// Defaults are below
var settings = $... |
System.register(['@angular/core', '@angular/http', 'rxjs/Observable', '../shared/apiurl.service'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.l... |
import {extend} from 'lodash';
import path from 'path';
import baseConfig from './base.config';
import webpack from 'webpack';
export default extend({}, baseConfig, {
output: {
path: path.resolve('./dist'),
filename: 'rt-select.js'
},
entry: './src/index',
externals: [{
'react': {
root: 'React... |
var fs = require("fs")
, child_process = require("child_process")
, path = require("path")
, chain = require("slide").chain
, asyncMap = require("slide").asyncMap
, TapProducer = require("./tap-producer.js")
, TapConsumer = require("./tap-consumer.js")
, assert = require("./tap-assert.js")
, inherits = ... |
version https://git-lfs.github.com/spec/v1
oid sha256:91504203f93c53de9a0f4163604c239d5e7a34f40c4f8b48872990570878d111
size 13467
|
const parseVersion = require('./util/parse-version');
const Driver = require('./driver');
const cqlTypes = require('./util/cql-types');
function driverFactory(context) {
context = context || {};
context.config = context.config || {};
const {
protocolOptions: {
maxVersion = '3.1.0'
} = {}
} = cont... |
angular.module('myApp.controllers').config(function ($translateProvider) {
$translateProvider.translations('en', {
TITLE: 'Fangular',
USERNAME: 'Username',
LANGUAGE: 'Language',
LOGOUT: 'Logout',
OPTION_LANG_EN: 'English',
OPTION_LANG_TW: '繁體中文',
SELECT_ALL: 'ALL',
SELECT_NONE: 'NONE',
SORT_BY: 'Sor... |
import fs from 'fs'
import path from 'path'
import _ from 'underscore'
import Promise from 'bluebird'
/**
*
* Create a shadow link of theme's static folder.
*
* @param {Theme} [theme] the theme object.
* @param {String} [realPath] [the realPath of target theme]
* @return {Promise}
*
**/
export function shadow(theme, ... |
/*global document*/
//dependencies
import React from 'react';
import ReactDOM from 'react-dom';
import mountedComponents from './mounted-components';
import clearComponent from './clear';
/**
* Render a react component in a DOM selector.
* @param {object} component - A react component.
* @param {string} selector - A... |
/*
AngularJS v1.6.1
(c) 2010-2016 Google, Inc. http://angularjs.org
License: MIT
*/
(function (z) {
'use strict'; function M(a, b) { b = b || Error; return function () { var d = arguments[0], c; c = "[" + (a ? a + ":" : "") + d + "] http://errors.angularjs.org/1.6.1/" + (a ? a + "/" : "") + d; for (d = 1; d < a... |
exports.config = {
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
args: ['--disable-web-security']
}
},
baseUrl: 'http://localhost:8100',
specs: [
'e2e-tests/**/*.tests.js'
],
jasmineNodeOpts: {
... |
import Draft from './Draft';
export default Draft;
|
/*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.5.3(793ede49d53dba79d39e52205f16321278f5183c)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-------------------------------------... |
/*
* @name Video Pixels
* @frame 320,240
* @description <p>Load a video, manipulate it's pixels and draw to canvas.
* <p><em><span class="small"> To run this example locally, you will need the
* <a href="http://p5js.org/reference/#/libraries/p5.dom">p5.dom library</a>
* at least one video file, and a running <a h... |
/* Magic Mirror
* Node Helper: Calendar - CalendarFetcher
*
* By Michael Teeuw http://michaelteeuw.nl
* MIT Licensed.
*/
var ical = require("./vendor/ical.js");
var moment = require("moment");
var CalendarFetcher = function(url, reloadInterval, excludedEvents, maximumEntries, maximumNumberOfDays, auth) {
var se... |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.6 (2020-01-28)
*/
(function (domGlobals) {
'use st... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Attractor = void 0;
const Utils_1 = require("../../../../Utils");
class Attractor {
constructor(container) {
this.container = container;
}
interact(p1, _delta) {
var _a;
const container = this.contai... |
"use strict";import"../../Stock/Indicators/DEMAIndicator.js"; |
import InputNode from '../core/InputNode.js';
class IntNode extends InputNode {
constructor( value = 0 ) {
super( 'int' );
this.value = value;
}
serialize( data ) {
super.serialize( data );
data.value = this.value;
}
deserialize( data ) {
super.serialize( data );
this.value = data.value;
... |
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
};
|
define([
"../core",
"../css"
], function( jQuery ) {
function Tween( elem, options, prop, end, easing ) {
return new Tween.prototype.init( elem, options, prop, end, easing );
}
jQuery.Tween = Tween;
Tween.prototype = {
constructor: Tween,
init: function( elem, options, prop, end, easing, unit ) {
this.elem = e... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'image2', 'es', {
alt: 'Texto Alternativo',
btnUpload: 'Enviar al Servidor',
captioned: 'Imagen subtitulada',
infoTab: 'Información de Imagen',
l... |
var http = require('http')
// make requests to the server
var request = module.exports = function request (o, cb ) {
if (!request.address) throw new Error('missing host/port');
return new Request;
}
function Request () {
this.host = request.address.address;
this.port = request.address.port;
this.path;
th... |
var React = require('react');
var JobListing = React.createClass({
getInitialState: function() {
return null;
},
render: function() {
return (
<div className="job-item">
<div className="job-location">
<div className="loc-icon"><img className="loc-img" src="https://maps.google.com/mapfi... |
var Board = require("../lib/board.js"),
events = require("events"),
util = require("util");
/**
* Sonar
* @constructor
*
* @param {Object} opts Options: pin (analog)
*/
function Sonar( opts ) {
if ( !(this instanceof Sonar) ) {
return new Sonar( opts );
}
var median, last, samples;
median... |
// @flow
const path = require('path');
module.exports = {
tests: path.resolve(__dirname, '../tmp/tests.js'),
testUrl: process.env.DOCKER_TEST_URL || 'http://10.200.10.1:3090',
storage: {
baseline: path.resolve(__dirname, 'regressions/screenshots'),
output: path.resolve(__dirname, '../tmp/output'),
},
... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Answer Schema
*/
var AnswerSchema = new Schema({
answer1: {
type: String,
default: '',
required: 'Please fill Answer 1',
trim: true
},
answer2: {
type: String,
default: '',
requ... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/core/Element','./library'],function(q,E,l){"use strict";var C=E.extend("sap.ui.unified.Cale... |
/* global assert, suite, test */
suite('a-mixin', function () {
suite('cacheAttributes', function () {
test('cache component attributes', function () {
var mixinEl = document.createElement('a-mixin');
mixinEl.setAttribute('material', 'color: red');
mixinEl.cacheAttributes();
asser... |
$(function(){
$("#show_area").click(function(){
$("#j_headercitylist").slideToggle();
});
$("#j_headercitylist").children("li").hover(function(){
//清空二级地区
$("#citylist").empty();
//鼠标移入样式
$(this).css({
"background":"#89ccf0",
"color":"#fff"
});
//获取当前子地区
var id=$(this).attr("id")
var data... |
import 'dep'; |
import React, { PropTypes } from 'react'
import { FloatingActionButton } from 'material-ui'
import { selectColor } from '../actions'
import PureComponent from 'react-pure-render/component'
import '../styles/ColorPicker.less'
// TODO: refactor ColorPicker
export default class ColorPicker extends PureComponent {
sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.