code stringlengths 2 1.05M |
|---|
{
if (x === 104) {
return null;
}
}
|
const path = require('path')
const express = require('express')
const bodyParser = require('body-parser')
const github = require('./routes/github')
const authRoutes = require('./routes/auth')
const userRoutes = require('./routes/users')
const tagRoutes = require('./routes/tags')
const sprintRoutes = require('./routes/... |
/**
* Broadcast updates to client when the model changes
*/
'use strict';
var Law = require('./law.model');
exports.register = function (socket) {
Law.schema.post('save', function (doc) {
onSave(socket, doc);
});
Law.schema.post('remove', function (doc) {
onRemove(socket, doc);
});
... |
'use strict';
angular.module('mean.icu.data.settingsservice', [])
.service('SettingServices', function($http) {
function getAll() {
return $http.get('/api/admin/moduleSettings/icu').then(function(result) {
return result.data;
});
}
return {
getAll: getAll
};
});
|
'use strict';
angular.module('contentCardsApp.version', [
'contentCardsApp.version.CardView'
])
.value('version', '0.1');
|
import {BreezeObservationAdapter} from '../src/observation-adapter';
import breeze from 'breeze';
import getEntityManager from './breeze-setup';
describe('breeze observation adapter', function() {
var entityManager, memberType, repositoryType;
beforeAll(() => {
entityManager = getEntityManager();
memberTyp... |
/*jshint esversion:6 */
const mongoose = require('mongoose');
const mongoose_config = require('../../../mongoose_config');
mongoose.Promise = global.Promise;
// // fall- back
// mongoose.connect('mongodb://mongoose_config.user:mongoose_config.password@192.168.1.30/mongoose_config.database');
// var db = mongoose.conn... |
var searchData=
[
['what',['what',['../classtracery_1_1_tracery_exception.html#a3706603e7ec4aee2902022d2b1545809',1,'tracery::TraceryException']]]
];
|
'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]; } } }... |
/**
* Module dependencies.
*/
var Application = require('./application')
, Controller = require('./controller');
/**
* Expose default singleton.
*
* @api public
*/
exports = module.exports = new Application();
/**
* Framework version.
*/
require('pkginfo')(module, 'version');
/**
* Export constructors.
... |
// @ts-check
const { app, protocol, session } = require('electron');
const { readFile } = require('fs');
const isDev = require('electron-is-dev');
const { setupAutoUpdates } = require('../updates');
const { InMemoryStore } = require('../store');
const WindowManager = require('./window');
const settingsStore = require('... |
var express = require("express")
, app = express()
, http = require("http").createServer(app)
, bodyParser = require("body-parser")
, io = require("socket.io").listen(http)
, _ = require("underscore");
var participants = [];
var pointsDrawn = []
var undoPointStore = []
app.set('port', process.env.PORT || 8... |
var connect = require('react-redux').connect;
var SecurityActions = require('../actions/SecurityActions');
var SecurityTemplateActions = require('../actions/SecurityTemplateActions');
var ErrorActions = require('../actions/ErrorActions');
var SecuritiesTab = require('../components/SecuritiesTab');
function mapStateT... |
var app = require('../../lib/app.js'),
request = require('request');
var World = function(cb) {
this.app = app;
this.currentPage = '/';
this.request = request;
this.proxiedServer = undefined;
this.proxiedChunk = "";
cb();
}
module.exports = World;
|
var searchData=
[
['h',['h',['../struct_s_fixed_font_info.html#a5116a6259c857fffdbbfc0867ced31b9',1,'SFixedFontInfo']]],
['height',['height',['../structssd1306__lcd__t.html#af576fdaf144fefdb8e278ca3cb90f49e',1,'ssd1306_lcd_t::height()'],['../struct_s_font_header_record.html#ad650740842794fe175eb1dccfa3cedea',1,'SFo... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
$(function() {
var containerItems = $('.NavBar-items');
var page = 1;
// var size = 30;
var scrollTop = 0;
var opts = {
'url': 'api/MDM0001/MDM000105',
'data': {
Method: 'Q',
Content: {
PageNo: page,
Pag... |
var mongoose = require('mongoose')
var Snapshot = mongoose.model('Snapshot', {
owner: String,
createdAt: { type: Date, expires: 15 * 60, default: Date.now }
});
module.exports = Snapshot; |
'use strict';
angular.module('issueTracker.labels', [])
.factory('Labels', [
'$http',
'$q',
'BASE_URL',
function ($http, $q, BASE_URL) {
function getLabelsByFilter(filter) {
var defered = $q.defer();
var url = BASE_URL + 'labels/?filter=... |
/* eslint-disable max-nested-callbacks */
import { Record, List } from 'immutable'
import expect from 'expect'
import Constraint from '../Constraint'
describe('models/Constraint.js', () => {
describe('{ Constraint }', () => {
it('should be a Record', () => {
const instance = new Constraint.Constraint({})
... |
import Express from 'express';
import Routes from './Routes';
class RouterService {
initialize() {
const router = new Express.Router();
Routes.addTo(router);
return router;
}
}
export default new RouterService();
|
'use strict';
var server = require('./src/server/main'),
config = require('./src/config')();
server.startServer(config);
|
/**********************************************************************************
* Backbone Classes
**********************************************************************************/
function genVal() {
return Math.floor(Math.random() * 100000);
}
var TestModel = Backbone.Model.extend({
defaults: { value: undef... |
'use strict';
var libpath = require('path');
var formatters = require('es6-module-transpiler/lib/formatters');
var Container = require('es6-module-transpiler/lib/container');
var NPMFileResolver = require('es6-module-transpiler-npm-resolver');
var UMDWrapperResolver = require('../lib/global-resolver');
var FileResolve... |
function solve([n,k]) {
let seq = [1];
for (let current = 1; current < n; current++) {
let start = Math.max(0, current - k);
let end = current - 1;
let sum = 0;
for (let i = start; i <= end; i++) {
sum += seq[i];
}
seq[current] = sum;
}
console... |
/** @type {import("../../../../").Configuration} */
module.exports = {
output: {
filename: "[name].mjs",
library: {
type: "module"
}
},
target: ["web", "es2020"],
experiments: {
outputModule: true
},
optimization: {
minimize: true,
runtimeChunk: "single",
splitChunks: {
cacheGroups: {
sepa... |
/**
* @ngdoc directive
* @name refigureApp.directive:mostVisited
* @restrict E
* @description
* Search Results
* @example
* <collection-row item="refigureObject"></collection-row>
*/
(function (angular) {
'use strict';
angular
.module('refigureShared')
.component('collectionRow', {
... |
export class Contactme {
constructor() {
this.title = 'Contact Me';
this.description = 'Router is working'
this.items = [];
this.displayName = "Eddy Ma";
this.photoURL = "";
this.email = "eddy.ma616@gmail.com"
}
} |
const fs = require("fs");
const path = require("path");
const PostModel = require("../models/post_model");
const appDir = path.dirname(require.main.filename);
module.exports = {
/** Creates a new post document with specified attributes */
create(request, response, next) {
const { file, params } = reque... |
(function(module) {
var homeController = {};
homeController.reveal = function() {
$('.hero').slideDown('slow', function() {
$('.main-content').fadeIn(500);
});
};
module.homeController = homeController;
})(window);
|
import TestUtils from 'react-addons-test-utils'
import { bindActionCreators } from 'redux'
import { DaveHomeView } from 'views/DaveHomeView'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function renderWithProps (... |
const webpack = require('webpack');
const path = require('path');
module.exports = {
entry: [ // files to run at startup (points are where self-contained scripts go)
'babel-polyfill',
'./src/main.jsx',
'./assets/styles/main.scss',
'./assets/index.html',
'webpack-dev-server/... |
'user strict';
/**
* Module dependencies
*/
var app = module.exports = require('express').Router();
var formHome = require('shared/home-form');
var jade = require('jade');
var templatePath = require.resolve('./index.jade');
var template = jade.compileFile(templatePath, {'cache': true});
/**
* Render
*/
function ... |
describe("Authentication", function () {
beforeEach(() => {
cy.app("clean");
});
describe("admin", () => {
it("can login", () => {
//call a scenario in app_commands/scenarios
cy.appScenario("admin");
cy.visit("/users/sign_in");
cy.get('input[ty... |
ngf.declare("sap.sbo.ngf.C", null, [], function() {
console.log("C");
return this._super.extend({
info: "C"
});
}); |
/* @flow */
'use strict'
/* ::
import type {
CLIFlags,
CLIOptions
} from '../types.js'
*/
const os = require('os')
const displayCors = require('../lib/cors/display.js')
const displayRoutes = require('../lib/routes/display.js')
const scope = require('../lib/scope.js')
const variables = require('../lib/variables.j... |
import React from 'react';
import {compose} from 'recompose';
import withHighcharts from './../withHighcharts';
import withStackedColumn from './withStackedColumn';
import CustomLegend from './../customLegend/customLegend';
const ColumnChart = ({
children,
customLegendData,
displayHighContrast,
}) => {
ret... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.UploadCollection.
sap.ui.define(['jquery.sap.global', './MessageBox', './Dialog', './library', 'sap/ui/core/... |
/*
* This file is part of the EcoLearnia platform.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* EcoLearnia v0.0.1
*
* @fileoverview
* This file includes definition of HapiResource.
*
* @author Young Suk Ahn Park
* @... |
/*
* mongo-edu
*
* Copyright (c) 2014 Przemyslaw Pluta
* Licensed under the MIT license.
* https://github.com/przemyslawpluta/mongo-edu/blob/master/LICENSE
*/
var request = require('request'),
cheerio = require('cheerio'),
ProgressBar = require('progress'),
_ = require('lodash'),
videoHandler = r... |
import test from 'tape';
import { and, or, not } from './';
import { $lt, $mod } from './';
test('Logic', t => {
t.plan(1);
const predicate = and($lt(15),
not($lt(5)),
or($mod(2), $mod(3)));
const values = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,... |
$(document).ready( function() {
document.getElementById('headerText').innerHTML = '<h1>Live</h1>';
var line = 0;
var outF = false;
var liveAgainToggle = true;
$('#story').click ( function() {
if(outF) {
$('.lineOne').textillate('out');
} else {
if(line < story.length) {... |
(function(w, Raphael){
'use strict';
var wW = window.innerWidth,
wH = window.innerHeight,
paper,
shots; // set of shots
function _initDemo(){
paper = Raphael(document.getElementById('paper'), wW, wH); //Create Paper
_createRandomShots(300); // Create shots
}
function _createRandomShots(nbOfShots){
... |
import Remarkable from 'remarkable';
import hljs from 'highlight.js';
const remarkableInstance = new Remarkable({
highlight: (str) => {
try {
return hljs.highlight('javascript', str).value;
} catch(err) {
console.log(err);
}
}
});
function decorateString(str) {
return '```\n' + str + '``... |
require('./helper')
module.exports = PageObject
/**
* PageObject
* @param driver
* @param repoUrl
* @constructor
*/
function PageObject(driver, repoUrl) {
this.driver = driver
this.one = driver.findElement.bind(driver)
this.all = driver.findElements.bind(driver)
this.repoUrl = repoUrl
}
PageObject.proto... |
function Require(resolve, modules, requiringModules, initializedModules, modulePath) {
this.resolve = resolve;
return function require(path) {
var resolved = resolve(path);
if(requiringModules[resolved] && !initializedModules[resolved] && console && console.warn) {
console.error('... |
import React from 'react';
import PropTypes from 'prop-types'
import links from 'app/utils/Links'
import {browserHistory} from 'react-router'
import shouldComponentUpdate from 'app/utils/shouldComponentUpdate'
export default class Link extends React.Component {
static propTypes = {
// HTML properties
... |
import { triggerAnims } from '@bolt/components-animate/utils';
/**
* Event handler for click on block region, only fires
* on icon or title click. Expands the block content.
* Only works on mobile. To configure this, adjust mediaQuery.
*
* @param e {Event}
*/
const handleBlockTitleMobileAccordionClick = async e ... |
module.exports = [
'weekday',
'summer',
'winter',
'autumn',
'some day',
'one day',
'all day',
'some point',
'eod',
'eom',
'standard time',
'daylight time',
]
|
import Humps from 'humps';
import { ApiUrls } from './api-urls';
const getActionTypes = (actions, payload) => (
actions instanceof Array ?
actions.map((action) => ({ type: action, ...payload }))
: { type: actions, ...payload }
);
export const fetchDispatcher = (beforeAction, afterAction, url) => (dispatch) ... |
'use strict';
// MODULES //
var partial = require( './partial.js' );
// PMF //
/**
* FUNCTION: pmf( out, arr, m, n, k )
* Evaluates the probability mass function (PMF) for a Hypergeometric distribution with number of white balls in urn `m` and number of black balls in urn `n` and number of draws `k` for each array... |
var formbuilder = new function() {
this.buildCommandForm = function(obj, commandDefinition) {
var props = commandDefinition.commandModel.commandProperties;
for(var a = 0; a < props.length; a++) {
var prop = props[a];
switch(prop.propertyType) {
case "SELECT"... |
import { Selector } from 'testcafe';
class ProjectsPage {
constructor() {
this.pageId = '#projects-page';
this.pageSelector = Selector(this.pageId);
}
/** Checks that this page is currently displayed. */
async isDisplayed(testController) {
await testController.expect(this.pageSelector.exists).ok()... |
var request = require('supertest');
var assert = require('assert');
var should = require('should');
describe('Validate', function() {
request = request(process.env.HOST || 'http://localhost:5000');
describe('combo', function() {
it('should return true for a valid type and size', function(done) {
request... |
import * as path from "path";
const electronConfig = {
node: {
__filename: false,
__dirname: false
},
target: "electron-renderer", // important
entry: {
electron: ["babel-polyfill", "./src/main/index.js"]
},
output: {
filename: "[name].js",
chunkFilename:... |
/*
Import project dependencies
if ( importing via node_modules ) {
import thing from 'thing'
}
else if ( importing es5 ) {
import * as thing from 'thing'
}
The webpack.ProvidePlugin (webpack.config.js)
allows us to declare ['jquery', '$'] as global variables.
Essentially, jQuery is built in.
... |
//index.js
import dian from '../../dian/index';
//获取应用实例
var app = getApp();
Page( {
data: {
userInfo: {},
haveMsg : false
},
//设置处理函数
setting: function() {
wx.navigateTo( {
url: '../settingdetail/settingdetail'
})
},
toMoney: function () {
wx.navigateTo({
url: '../myfile/mon... |
var React = require('react');
var ReactNative = React;
ReactNative.StyleSheet = {
create: function(styles) {
return styles;
}
};
module.exports = ReactNative;
|
'use strict';
var Button = require('streamhub-ui/button');
var inherits = require('inherits');
var ShareCommand = require('streamhub-share/share-command');
/**
*
* [opts] {Object=}
* [opts.command] {Command=} Command in place of the default.
* [opts.content] {Content=} Content to share. Can be set later.
*/
var... |
/*jslint indent: 2, maxlen: 120, browser: true, todo: true*/
/*global requirejs, require, define, console*/
requirejs.config({
paths: {
'bootstrap': '//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min',
'bootstrap-datepicker': '//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _without2 = require('lodash/without');
var _without3 = _interopRequireDefault(_without2);
var _each2 = require('lodash/eac... |
var pageCommon = require("ui/page/page-common");
var viewModule = require("ui/core/view");
var trace = require("trace");
var utils = require("utils/utils");
global.moduleMerge(pageCommon, exports);
var UIViewControllerImpl = (function (_super) {
__extends(UIViewControllerImpl, _super);
function UIViewController... |
(function($){
$(document).ready(function(){
$('.nospace').keypress(function(e){
if (e.charCode === 32) {
e.preventDefault();
}
});
});
})(jQuery);
function defer_init() {
var imgDefer = document.getElementsByClassName('lazy-img');
for (var i=0; i<imgDefer.length; i++) {
if(imgDefer[i].getAtt... |
'use strict';
const path = require('path');
const fs = require('fs');
const config = {
name: 'default',
numCPUs: 4,
port: 8001,
mongodb: 'mongodb://localhost:27017/iot',
brokerPort: 1883
};
var customConfig = path.join(__dirname, 'config.js');
if (fs.existsSync(customConfig)) {
var options = require(cust... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const DebugClient_1 = require("./DebugClient");
const localDebugClientV2_1 = require("./localDebugClientV2");
class NonDebugClientV2 extends localD... |
'use strict';
var path = process.cwd();
var ClickHandler = require(path + '/app/controllers/clickHandler.server.js');
var BookmarkHandler = require(path + '/app/controllers/bookmarkHandler.server.js');
var UpvoteHandler = require(path + '/app/controllers/upvoteHandler.server.js');
var ArticleHandler = require(path + '... |
var extName = require('../vendor/ext-name');
function isAsset(filename) {
var info = extName(filename);
return (
info &&
info.mime &&
(/^((image)|(audio)|(video)|(font))\//.test(info.mime) ||
/application\/((x[-]font[-])|(font[-]woff(\d?))|(vnd[.]ms[-]fontobject))/.test(
... |
const assert = require('chai').assert
const app = require('../index')
const request = require('supertest')(app)
const mongoose = require('mongoose')
const User = require('../models/User').User
const Student = require('../models/Student').Student
const Teacher = require('../models/Teacher').Teacher
const { Map } = requ... |
export const GET_TODOS = 'GET_TODOS';
export const TOGGLE_TODO = 'TOGGLE_TODO';
export const ADD_TODO = 'ADD_TODO';
export const HYDRATE = 'HYDRATE_TODOS';
export const UPDATE_TODOS = 'UPDATE_TODOS';
export const DELETE_TODO = 'DELETE_TODO';
|
require("babel-register");
var path = require('path');
var compareMethod = require('../helper/compareMethod');
exports.config = {
specs: [
path.join(__dirname, '*.test.js')
],
capabilities: [
{
browserName: 'phantomjs',
'phantomjs.binary.path': require('phantomjs').path,
}
],
sync: ... |
/*
* json-template-replace
* https://github.com/domsob/json-template-replace
*
* Copyright (c) 2016 Dominik Sobania
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'... |
/**
TODO: rtl support
Styling templates:
<style>
.listview[data-listview-orientation="vertical"] > .listview-inner {
width: 100%;
}
.listview[data-listview-orientation="horizontal"] > .listview-inner {
height: 100%;
}
.listview > .listview-inner > * {
padding: 0.5em 1em;
}
.listview[data-listview-orientation="ve... |
/* eslint-disable */
const CONFIG = {
log: {
useLogger: true
}
};
export default CONFIG;
|
'use strict';
exports.__esModule = true;
var _class, _temp;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
require('trix');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instanc... |
'use strict'
var rkck = require('../lib')
var evaluations = 0
var deriv = function(dydt, y, t) {
evaluations ++
dydt[0] = 1/t * Math.cos(1/t)
}
var ta = 0.01
var tb = 1
var i = rkck( [-1], deriv, ta, 1e-8, {
tol: 5e-8,
maxIncreaseFactor: 2
})
var rkck_y0 = i.y[0]
i.steps( Infinity, tb )
var rkck_y1 = i.y[0... |
'use strict';
require('mocha');
var assert = require('assert');
var File = require('vinyl');
var utils = require('../lib/utils');
var loader = require('..');
describe('utils', function () {
describe('toFile', function () {
it('should create a vinyl file', function() {
var file = utils.toFile('abc', 'abc',... |
console.log('index.js called');
var HeavensAboveClient = require('./lib/client.es6');
var client = new HeavensAboveClient('http://heavens-above.com/'); |
angular
.module('material.components.autocomplete')
.directive('mdAutocomplete', MdAutocomplete);
/**
* @ngdoc directive
* @name mdAutocomplete
* @module material.components.autocomplete
*
* @description
* `<md-autocomplete>` is a special input component with a drop-down of all possible matches to a
* ... |
'use strict';
var Benchmark = require('benchmark'),
PubSub = require('../upubsub'),
EventEmitter = require('events').EventEmitter,
EventEmitter2 = require('eventemitter2').EventEmitter2;
var pubsub = PubSub();
pubsub.subscribe('test', function () {});
var pubsubProduction = PubSub.Production();
pubsubPro... |
describe('Text Field directives', function() {
beforeEach(module('material.components.textField'));
describe('- mdInputGroup', function() {
var scope;
beforeEach(function() {
scope = {
user : {
firstName: 'Thomas',
lastName: 'Burleson',
email: 'ThomasBurleson@gm... |
var Frame = require('./frame')
, Hand = require('./hand')
, Pointable = require('./pointable')
, CircularBuffer = require("./circular_buffer")
, Pipeline = require("./pipeline")
, EventEmitter = require('events').EventEmitter
, gestureListener = require('./gesture').gestureListener
, _ = require('undersco... |
const { CLASSES } = require("hoctable/hoc/menu");
module.exports = function(bag) {
const dom = {
get menu() {
let { popups } = bag.dom;
return popups && popups.querySelector("[data-rel=menu-body]");
},
custom: {
get button() {
let { container } = bag.dom;
return cont... |
import DomHelper from '../view/dom-helper.js';
/**
* Controls all audio logic
*/
export default class AudioController {
constructor() {
this.isMuted = false;
this.deathSound = new Audio('assets/death.wav');
this.killSound = new Audio('assets/kill.wav');
this.foodCollectedSound = ne... |
(function () { "use strict";
function $extend(from, fields) {
function Inherit() {} Inherit.prototype = from; var proto = new Inherit();
for (var name in fields) proto[name] = fields[name];
if( fields.toString !== Object.prototype.toString ) proto.toString = fields.toString;
return proto;
}
var Main = function() {
... |
"use strict";
/**
* Created by Papa on 8/27/2016.
*/
var OracleAdaptor = (function () {
function OracleAdaptor(sqlValueProvider) {
this.sqlValueProvider = sqlValueProvider;
}
OracleAdaptor.prototype.getParameterReference = function (parameterReferences, newReference) {
throw "Not implement... |
'use strict';
var Lab = require('lab'),
Hapi = require('hapi'),
Plugin = require('../../../lib/plugins/DJCordhose');
var describe = Lab.experiment;
var it = Lab.test;
var expect = Lab.expect;
var before = Lab.before;
var after = Lab.after;
describe('DJCordhose', function() {
var server = new Hapi.Server();
i... |
/**
* webpack config
*/
let webpack = require('webpack');
let ShakePlugin = require('webpack-common-shake').Plugin;
let path = require('path');
let BannerPlugin = webpack.BannerPlugin;
module.exports = function createConfig(option) {
let {entry, outFilename, outLibrary, codeTreeShaking, mode} = option || {};
... |
if(!steal.build){
steal.build = {};
}
steal('steal',
'steal/build/share',
'steal/build/js',
'steal/build/css',
'steal/build/open',
function( steal, shareUtil ) {
/**
* @function steal.build.apps
* @parent steal.build
*/
var apps = steal.build.apps = function( list, buildOptions ) {
buil... |
function CryptoAuth(config) {
window.postMessage("cryptoauth:available:"+btoa(config.serverPubkey), "*")
window.addEventListener('message', function(event) {
var data = event.data.split(':'),
method = data[1],
payload = atob(data[2])
switch(method) {
case 'requestToken':
config.requestToken(pay... |
window.onload = function(){
var todosCampos = document.getElementsByTagName("input");
if(todosCampos != null){
for(var i=0; i<todosCampos.length; i++){
if(todosCampos[i].type == "checkbox"){
todosCampos[i].onclick=function(){
enviaCheckbox(this)
};
}
}
}
}
function enviaCheckbox(caix... |
/*!
* CanJS - 2.0.5
* http://canjs.us/
* Copyright (c) 2014 Bitovi
* Tue, 04 Feb 2014 22:36:36 GMT
* Licensed MIT
* Includes: can/component,can/construct,can/map,can/list,can/observe,can/compute,can/model,can/view,can/control,can/route,can/control/route,can/view/mustache,can/view/bindings,can/view/live,can/view/s... |
describe("CDWidget", () => {
let widget,
module,
hideMessageDelay;
var setFixture = () => {
document.body.innerHTML =
'<div w-type="countdown"></div>';
};
beforeAll(() => {
window.__VERSION__ = 'mockedVersion';
setFixture();
module = require('products-and-docs/widgets/countdown/1.0.0/src/main-widget.... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2897',"Tlece.Recruitment.Models.TleceAccount Namespace","topic_00000000000009CC.html"],['2913',"RecaptchaResponse Class","topic_00000000000009D9.html"],['2914',"Properties","topic_00000000000009D9_props--.html"],['2... |
'use strict'
/**
* Methods that model a hierarchical timing system, allowing objects to map time between their parent and local time.
* @interface
* @see https://developer.apple.com/documentation/quartzcore/camediatiming
*/
export default class CAMediaTiming {
/**
* constructor
* @access public
* @c... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=WordCorrection.js.map |
/* eslint no-magic-numbers: ["error", { "ignore": [-1] }] */
import PropTypes from 'prop-types';
import React, { forwardRef, useRef } from 'react';
const PREVENT_DEFAULT_HANDLER = event => event.preventDefault();
// Differences between <button> and <AccessibleButton>:
// - Disable behavior
// - When the widget is ... |
'use strict';
/*
* Setting up users route.
*/
angular.module('users').config(['$stateProvider',
function($stateProvider) {
$stateProvider.
// User profile state routing.
state('profile', {
url: '/:username',
templateUrl: '/modules/users/views/profile/profile.client.view.html'
}).
s... |
var searchData=
[
['eta',['Eta',['../d1/d03/structproperties.html#abd91deb543a31a6a1f75892af7cf95c8',1,'properties']]],
['exec_2dbudgeted_2dtrain_2ec',['Exec-budgeted-train.c',['../d5/d89/Exec-budgeted-train_8c.html',1,'']]],
['exec_2dfull_2dtrain_2ec',['Exec-full-train.c',['../d3/d54/Exec-full-train_8c.html',1,'... |
function euler153() {
// Good luck!
return true
}
euler153()
|
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import configureStore from '../store/configure_store';
import { syncHistoryWithStore } from 'react-router-redux';
import { observeStore } from '../ddp_ob... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.