code stringlengths 2 1.05M |
|---|
(function() {
angular
.module('meanApp')
.controller('tripDetailsCtrl', tripDetailsCtrl);
tripDetailsCtrl.$inject = ['$location', 'authentication', 'meanData', '$q', '$scope', '$window', '$http'];
function tripDetailsCtrl($location, authentication, meanData, $q, $scope, $window, $http) {
var ... |
var notifications = {
newPost: {
properties: function () {
return Posts.getNotificationProperties(this.data.post);
},
subject: function () {
return 'Someone has created a new post: '+this.postTitle;
},
emailTemplate: "emailNewPost"
},
newPendingPost: {
properties: function ()... |
import gql from 'graphql-tag';
export default gql`
query text($id: [ID]) {
text(id:$id) {
id
text
}
}
`;
|
import React from 'react';
import {Container, Row, Col, Card} from '../../src/Grid';
import styles from './ExampleGrid.scss';
import TextField from '../../src/TextField';
import Input from '../../src/Input';
import Label from '../../src/Label';
function renderStandardInput() {
return (
<TextField>
<Label
... |
datab = [{},{"Functional Group Macro":{"colspan":"1","rowspan":"1","text":"X-Ray Exposure Control Sensing Regions"},"PS3.3 Reference":{"colspan":"1","rowspan":"1","text":""},"Usage":{"colspan":"1","rowspan":"1","text":"Specifies the shape and size of the sensing regions in pixels, as well as their position relative to ... |
import Ember from 'ember';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';
import './default-user-settings/index';
let App;
Ember.MODEL_FACTORY_INJECTIONS = true;
App = Ember.Application.extend({
modulePrefix: config.modulePrefix... |
// error handler for async/await
exports.catchErrors = (fn) => {
return function (req, res, next) {
return fn(req, res, next).catch(next)
}
}
// error handler for route that is not found
exports.notFound = (req, res, next) => {
const err = new Error('Not Found')
err.status = 404
next(err)
}
// flash val... |
'use strict';
// Call this function when the page loads (the "ready" event)
$(document).ready(function() {
initializePage();
})
/*
* Function that is called when the document is ready.
*/
function initializePage() {
console.log("Javascript connected!");
$(".nameA").click(function(e){
e.pr... |
/* eslint-env browser */
/* eslint-disable no-lone-blocks, global-require, prefer-template, import/no-unresolved */
import 'babel-polyfill';
import React, { Suspense } from 'react';
import ReactDom from 'react-dom';
// import TestRenderer from 'react-test-renderer';
import ReactHotLoader, { setConfig } from '../../src... |
import { notificationManager } from './index.js';
import * as uuid from 'uuid';
import * as fuzzer from 'JavaScript-fuzz';
import { generateRandomJS } from 'eslump';
describe('notificationManager methods', function () {
let sandbox;
beforeEach(function () {
sandbox = sinon.sandbox.create();
});
... |
tgo.views.welcomeView = (function() {
var view = new tgo.views.View();
var playerName, gameId, createGameButton, joinGameButton;
view.templateId = 'welcome-template';
view.init = function() {
playerName = $('#player-name-input');
gameId = $('#game-id-input');
// let's use the l... |
module.exports = {
extends: '../../.eslintrc',
overrides: [
{
files: ['*.ts'],
extends: '../../eslintrc.ts.base.json',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
},
{
files: ['test/*.ts'],
extends: '../../eslintrc.ts.... |
const commander = require('../');
test('when configure program then affects program helpInformation', () => {
const program = new commander.Command();
program.configureHelp({ formatHelp: () => { return 'custom'; } });
expect(program.helpInformation()).toEqual('custom');
});
test('when configure program then aff... |
'use strict';
const hooks = require('./hooks');
// feathers-blob service
const blobService = require('feathers-blob');
// Here we initialize a FileSystem storage,
// but you can use feathers-blob with any other
// storage service like AWS or Google Drive.
const fs = require('fs-blob-store');
const blobStorage = fs(__... |
(function() {
var CommerceMlParser, OrdersParser, _,
extend = 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(); child.__super__ = parent.proto... |
import test, { describe } from 'ava-spec'
import sinon from 'sinon'
import TextOperation from 'ot/text-operation'
import jsdom from 'jsdom'
global.assert = require('power-assert')
global.document = jsdom.jsdom('<body></body>')
global.window = document.defaultView
global.navigator = window.navigator
global.WebSocket = r... |
define(function (require, exports, module) {
var $ = require("../../../lib/jquery"),
_ = require("../../../lib/underscore"),
inherit = require("../../../lib/inherit"),
EventEmitter = require("../public/EventEmitter");
var Flight = inherit({});
EventEmitter.mixTo(Flight);
module.exports = Flight;
}); |
/* keep track of which salts have been used. */
var form, usedIvs = {'':1}, usedSalts = {'':1};
/* enter actions */
var enterActions = {
password: doPbkdf2,
salt: doPbkdf2,
iter: doPbkdf2
};
function loaded() {
form = new formHandler('theForm', enterActions);
form._extendedKey = [];
sjcl.random.startColle... |
'use strict';
/**
* Module dependencies
*/
var isValidRule = require('./is-valid-rule');
/**
* Module exports
*/
module.exports = validateRules;
/**
* @param {Object} styles
* @param {Result} result - PostCSS Result, for registering warnings
*/
function validateRules(styles, result) {
styles.eachRule(func... |
var getDragEvent = require("../getters/getDragEvent"),
SyntheticMouseEvent = require("./SyntheticMouseEvent");
var SyntheticMouseEventPrototype = SyntheticMouseEvent.prototype,
SyntheticDragEventPrototype;
module.exports = SyntheticDragEvent;
function SyntheticDragEvent(nativeEvent, eventHandler) {
S... |
module.exports = function() {
return 'foobar';
}; |
window.onload = function() {
// Begin Swagger UI call region
const ui = SwaggerUIBundle(Object.assign({
urls: [{"name":"v1","url":"v1.json"},{"name":"v2","url":"openapi.json?name=v2"}],
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalone... |
import Icon from '../components/Icon.vue'
Icon.register({"stumbleupon":{"width":1920,"height":1792,"paths":[{"d":"M1062 712v-118q0-42-30-72t-72-30-72 30-30 72v612q0 175-126 299t-303 124q-178 0-303.5-125.5t-125.5-303.5v-266h328v262q0 43 30 72.5t72 29.5 72-29.5 30-72.5v-620q0-171 126.5-292t301.5-121q176 0 302 122t126 29... |
/**
* Created by john on 7/15/15.
*/
// Base on: https://github.com/StarterSquad/startersquad.com/tree/master/examples/angularjs-requirejs-2
/**
* bootstraps angular onto the window.document node
* NOTE: the ng-app attribute should not be on the index.html when using ng.bootstrap
*/
define([
'require',
'an... |
import gulp from 'gulp';
import runSequence from 'run-sequence';
gulp.task('build:prod', ['clean'], (cb) => {
const callback = cb || (() => {});
global.isProd = true;
return runSequence(['styles', 'views', 'images'], 'browserify', callback);
});
gulp.task('build:dev', ['clean'], (cb) => {
global.isProd = fals... |
Test.raiseDocumentEvent = function(name, eventData, state) {
var e;
if (document.createEvent) {
e = document.createEvent("Event");
e.initEvent(name, true, false);
} else {
e = document.createEventObject();
e.eventType = name;
}
e.eventName = name;
e.eventData = ... |
/* ========================================================================
* Bootstrap: tab.js v3.1.1
* http://getbootstrap.com/javascript/#tabs
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/bl... |
const dante_font_family_sans = 'inherit' // `'jaf-bernino-sans', 'Open Sans', "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans_serif;`;
const dante_font_family_serif = 'inherit' // `'freight-text-pro', 'Merriweather', Georgia, Cambria, "Times New Roman", Times, serif;`;
const dante_font_fami... |
/*global require */
/*global module */
/*global console */
var matchdep = require('matchdep');
module.exports = function (grunt) {
'use strict';
matchdep.filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
uglify: {
options: {
mangle: false
},
sources: {
src: ['src/app/main.j... |
var map;
$(document).ready(function() {
/* ======= Flexslider ======= */
$('.flexslider').flexslider({
animation: "fade"
});
/* ======= jQuery Placeholder ======= */
$('input, textarea').placeholder();
/* ======= Carousels ======= */
$('#news-carousel').carousel({interval: false}... |
import React from 'react';
import PropTypes from 'prop-types';
import Formsy from 'formsy-react';
import { Input } from 'formsy-react-components';
import { connect } from 'react-redux';
import * as AdminActions from '../../modules/admin/actions';
class Login extends React.Component {
static propTypes = {
loginE... |
/**
* "Clamps" a number within the given limits, both included.<br/>
* The function will convert to number all its parameters before starting any
* evaluation, and will return <code>NaN</code> if <code>min</code> is greater
* than <code>max</code>.
* @example
* _.clamp(-5, 0, 10) // => 0
* _.clamp(5, 0, 10) // =... |
var options = require('config');
var mainClient = require('../../lib/database/main');
var chai = require('chai');
var should = chai.should();
var expect = chai.expect;
describe('main database test', function () {
it('should get main data', function (done) {
mainClient.getMainPageData(options, function (err, da... |
/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
(function(){
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
// The base Class implementation (does nothing)
var Class = function(){};
// Create ... |
// When an error occurs
function errorFn(msg, trace) {
// Log the error and trace
console.error(msg);
trace.forEach(function(item) {
console.error(' ', item.file, ':', item.line);
});
// Leave with a bad exit code
phantom.exit(1);
}
phantom.onError = errorFn;
// Load in dependencies
var system = re... |
import '@babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Label from './Label.jsx';
require('./interval')();
const onReady = new Promise(resolve => {
if (document.readyState === 'complete') {
resolve();
} else {
document.addEventListener('DOMContentLoaded', resolve, fa... |
'use strict';
// import namespaces
let utils = bayon.utils;
let app = bayon.app;
let fs = require('fs');
let debug = require('debug')('bayon:log');
function logHandler(obj, prop) {
return function () {
return obj(prop, utils._.toArray(arguments));
};
}
function Log() {
let message = '';
let p... |
import React, { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from './actions';
import { Navbar, AppFooter } from 'components';
class Main extends Component {
componentDidMount() {
const {
loadPersistedUser... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 |
import React, { Component } from 'react'
import enhanceWithClickOutside from 'react-click-outside'
class ClickOutside extends Component {
constructor (props) {
super(props)
this.state = {
message: (!(this.props.messsage) ? 'CLICK OUTSIDE' : this.props.message),
outside: false,
clickInOrOut... |
'use strict';
var _validate = require('validate.js');
var _validate2 = _interopRequireDefault(_validate);
require('./maxlength');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('Validator Adapter - maxlength', function () {
var constraints = void 0;
be... |
const {
// ipc to communicate with main process from renderer process
ipcRenderer
} = require('electron');
var fs = require('fs');
var os = require('os');
var mkdirp = require('mkdirp');
var ytdl = require('ytdl-core');
var homeDir = os.homedir() + '/';
var appDir = homeDir + '.mu-tube/'
var dlDir = appDir + 'd... |
import React from 'react';
class AboutPage extends React.Component {
render() {
return(
<div>
<h1>About</h1>
<p>This app uses react and other stuff</p>
</div>
);
}
}
export default AboutPage;
|
const { expect } = require('chai');
const sinon = require('sinon');
const { init } = require(
'../../../../../../app/routers/offers-router/controller'
);
describe('offers controller', () => {
let data = null;
let controller = null;
const offers = [1, 2, 3, 4];
const users = ['username'];
let ... |
/*
*
* Marginals actions
*
*/
import {
DEFAULT_ACTION,
} from './constants';
export function defaultAction() {
return {
type: DEFAULT_ACTION,
};
}
|
// This event triggers when there's a need for the Bot to reconnect
const chalk = require('chalk');
const moment = require('moment');
module.exports = (settings) => {
console.log(chalk.bgGreen.black(`[${moment().format(settings.timeFormat)}] Reconnecting...`));
};
|
/**
* @ngdoc module
* @name material.components.input
*/
var inputModule = angular.module('material.components.input', [
'material.core'
])
.directive('mdInputContainer', mdInputContainerDirective)
.directive('label', labelDirective)
.directive('input', inputTextareaDirective)
.directive('textarea', in... |
var module = angular.module("example", ["angularGrid"]);
module.controller("exampleCtrl", function($scope, $http) {
var columnDefs = [
{headerName: "Athlete", field: "athlete", width: 150},
{headerName: "Age", field: "age", width: 90},
{headerName: "Country", field: "country", width: 120,... |
var AuthLocalStrategy = require('passport-local').Strategy;
var Promise = require('promise');
var users = require('./users');
var _ = require('lodash');
module.exports = function (passport, config, app) {
passport.use('local', new AuthLocalStrategy(
function (username, password, done) {
co... |
"use strict";
const fs = require("fs");
const path = require("path");
try {
fs.unlinkSync(path.join(__dirname, "../browser.js"));
} catch (err) {}
|
version https://git-lfs.github.com/spec/v1
oid sha256:462cf0219cb7b80a1541b17aff0704cbc616ae425a8ddc0c46548e856842ea4c
size 124588
|
import path from 'path';
import { expect } from 'chai';
import jscodeshift from 'jscodeshift';
import transform from './box-borderradius-values';
import readFile from '../util/readFile';
function read(fileName) {
return readFile(path.join(__dirname, fileName));
}
describe('@mui/codemod', () => {
describe('v5.0.0'... |
/* ==========================================================
* bootstrap-alerts.js v1.4.0
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*... |
// Beispielimplementierung, es gibt auch andere Möglichkeiten
(function () {
'use strict';
/* Adapter: start */
var serverCommunication = {
getData: function () {
var serverData = httpDummy.get();
clientData = transform(serverData);
return clientData;
},
updateData: function (client... |
var searchData=
[
['sensor_2ec',['Sensor.c',['../Sensor_8c.html',1,'']]],
['sensor_2eh',['Sensor.h',['../Sensor_8h.html',1,'']]],
['socket_2ec',['Socket.c',['../Socket_8c.html',1,'']]],
['socket_2eh',['Socket.h',['../Socket_8h.html',1,'']]]
];
|
import Ember from 'ember';
import layout from '../templates/components/ui-code-highlight';
var typeOf = Ember.typeOf;
export default Ember.Component.extend({
layout: layout,
isPre: true,
tagName: 'pre',
classNames: ['ui-code-highlight'],
classNameBindings: ['border'],
language: 'auto',
languages: Emb... |
require('./core'); |
/***Generated Resource **/
var resource = require('resource');
var TipAction = resource.define('TipAction');
TipAction.schema.description = "The act of giving money voluntarily to a beneficiary in recognition of services rendered.";
TipAction.persist('fs');
TipAction.property('additionalType', {
"name" : "addi... |
import { uuid, documentHelpers } from 'substance'
import { findChild, getText, retainChildren } from '../util/domHelpers'
import SectionContainerConverter from './SectionContainerConverter'
export default function jats2internal (jats, doc, jatsImporter) {
// metadata
_populateAffiliations(doc, jats)
_populateAut... |
const { stdin, stdout } = process;
function Iterator(min, max) {
let idx = 0;
return {
jump(i) { return idx = Math.max(min, Math.min(max, i)) },
next() { return this.jump(++idx) },
prev() { return this.jump(--idx) },
over() { return idx == max },
curr() { return idx }
}
}
function Scanne... |
/* =========================================================
* bootstrap-datetimepicker.js
* =========================================================
* Copyright 2012 Stefan Petre
*
* Improvements by Andrew Rowls
* Improvements by Sébastien Malot
* Improvements by Yun Lai
* Improvements by Kenneth Henderick
... |
'use strict';
/**
* Created by dave on 19.04.15.
*/
module.exports = 'some content!'; |
'use strict'
const Joi = require('@hapi/joi')
const isObjectId = require('../util/is-object-id')
const { buildPregnancyCenterSchema } = require('../util/services')
const personSchemaJoi = require('./person')
const {
addressSchemaJoi,
hoursSchemaJoi,
dateUserActionSchemaJoi,
} = require('./location')
const pregnanc... |
var fs = require('fs');
var ncp = require('ncp').ncp;
var outputDir = './dist';
// create dist dir
if(!fs.existsSync(outputDir)) {
fs.mkdirSync(outputDir);
}
// copy files to dist
ncp( './tmp/src', outputDir, logErrorAndExit);
copyFile('./README.md', outputDir + '/README.md'... |
import Store from './store';
export { Store };
|
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
var __ks_RegExp = {};
var __ks_String = {};
__ks_String.__ks_func_foobar_0 = function() {
return this;
};
__ks_String._im_foobar = function(that) {
var args = Array.prototype.slice.call(arguments, 1, arguments.length);
if(args.lengt... |
import '../../common'
require.ensure(['knockout', '../../models/parent-scenarios/edit'], (require) => {
const ko = require('knockout')
const Model = require('../../models/parent-scenarios/edit')
const model = new Model()
model.init()
ko.applyBindings(model)
})
|
(function() {
'use strict';
b3e.nodes.Wait = b3e.node.create('Wait', b3e.MODULATOR, {
title: 'Wait <delay> seconds.',
description: 'Wait a specified amount of time. The task will return '+
'running until the task is done waiting. It will return '+
'until the task is done w... |
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:jsonp_callback.jquery.json>',
meta: {
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.home... |
/**
* watchFileForChanges
*
* Adds a file as loader dependency which will make Webpack watch
* the file in watch-mode and reloads if it changes.
*/
module.exports = function(loader, file) {
return loader.addDependency(file)
}
|
(function (exports) {
'use strict';
/**
* Binary Search algorithm.
*/
var binarySearch = (function () {
/**
* Finds the position of a specified input value within an array
* using the binary search algorithm.
*
* @param {Array} array - Input sorted array.
* @param {Integer} ... |
import React from 'react';
import sinon from 'sinon';
import { mount } from 'enzyme';
import Breadcrumb from '../src/Breadcrumb';
describe('<Breadcrumb.Item>', () => {
it('Should render `a` as inner element when is not active', () => {
mount(<Breadcrumb.Item href="#">Crumb</Breadcrumb.Item>)
.find('a.acti... |
const { expect } = require('chai');
const translate = require('../index');
describe('translator modal', () => {
it('should translate modal', () => {
expect(translate(`
<div class="modal fade">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h... |
import {Point, Rectangle} from 'phaser';
import Waypoint from '../classes/Waypoint';
import Human from './Human';
export default class AI extends Human {
constructor(game, asset, frame = null) {
let position = Waypoint.randomWalkable().position;
super(game, position.x, position.y, asset, frame);
... |
import argscheck from 'cordova/argscheck';
import utils from 'cordova/utils';
import exec from 'cordova/exec';
import Coordinates from './geolocation/coordinates';
import Position from './geolocation/position';
import PositionOptions from './geolocation/position-options';
import P... |
var CMS = {
settings: {
web_root: '/',
onload: function(){
CMS.ui.reattach();
},
forms : {}
},
ui: {
modal: function(message){
var html = '<div class="modal fade"><div class="modal-header"> <button type="button" class="close" data-dismiss="m... |
module.exports = {
baseUrl: 'src',
paths: {
'knockout': '../bower_components/knockout/dist/knockout.debug',
'jquery': '../bower_components/jquery/dist/jquery',
'jqueryui-amd': '../bower_components/jquery-ui/ui',
'promise': '../bower_components/es6-promise/promise',
'hamme... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[130],{911:function(e,n){e.exports=function(e){return{keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true fal... |
/// <reference path="jQuery_plugins.js" />
/// <reference path="external/jquery-2.0.2.js" />
/// <reference path="object_utils.js" />
/// <reference path="external/MongoLab.js" />
/// <reference path="calendar-controller.js" />
/// <reference path="contact-controller.js" />
/// <reference path="enums.js" />
//$(functi... |
'use strict';
const fs = require('fs');
const path = require('path');
const ts = require('typescript');
const tsOptions = {
module: ts.ModuleKind.CommonJS,
jsx: ts.JsxEmit.React,
};
function formatErrorMessage(error) {
if (error.file) {
const message = ts.flattenDiagnosticMessageText(error.messageText, '\n... |
var moment = require('moment');
moment.locale("zh-cn");
function parse(date){
if(Object.prototype.toString.call(date)!=='[object Date]'){
try{
date = new Date();
}catch(e){
console.error(e.message);
}
}
date = moment.utc(date).fromNow();
return date;
}
module.exports = parse; |
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.services',
'myApp.controllers',
'myApp.version'
])
.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when("/login", {templateUrl: "views/login.html", controller:... |
define([
"dojo/_base/declare",
"dojo/_base/array",
"hc-backend/widget/ContentLocalization/widget/Form",
"dijit/_WidgetsInTemplateMixin",
"hc-backend/config",
"dojo/text!./templates/Form.html",
"dojo/i18n!../../nls/Add",
"dijit/form/TextBox",
"dijit/form/Textarea",
"dojo-common/fo... |
import { module, test } from "../qunit";
import moment from "../../moment";
module("string prototype");
test('string prototype overrides call', function (assert) {
var prior = String.prototype.call, b;
String.prototype.call = function () {
return null;
};
b = moment(new Date(2011, 7, 28, 15, ... |
module.exports = require('./lib/ibc.broadcastServer').broadcastServer;
|
import { module, spy } from 'substance-test'
import substanceGlobals from '../util/substanceGlobals'
import isEqual from '../util/isEqual'
import inBrowser from '../util/inBrowser'
import DefaultDOMElement from '../dom/DefaultDOMElement'
import Component from '../ui/Component'
import TestComponent from './fixture/TestC... |
'use strict';
var amazon = require('amazon-product-api');
var client = amazon.createClient({
awsId: process.env.AWS_ID,
awsSecret: process.env.AWS_SECRET,
awsTag: process.env.AWS_TAG
});
module.exports = function(title, cb) {
var query = {
keywords: title,
searchIndex: 'Books',
responseGroup: 'Ite... |
import Schema from './Schema';
import type from '../Schema/type';
import FlexSchemaError from '../Error';
const initNestedSchema = (args) => {
switch(type(args)) {
case 'function':
return params => {
const result = args(params);
if(result instanceof Promise) {
return result.then(result => initNeste... |
//目次
//ブラウザ判定、body,formのid,class付与
//ConfigManagerからid取得
//ID付与(IDがない場合)(nameが被った場合、単にiを付与する方が処理が軽い)
//事前コンバート
//ConfigManagerからclass取得
//ConfigManagerからvalidation取得
//new
//action
jQuery.noConflict();
jQuery('html').hide();
jQuery(document).ready(function($){
jQuery('html').show();
//ブラウザ判定、body,formのid,class付与――――... |
var http = require("http");
var StompServer = require('../stompServer');
var server = http.createServer();
var stompServer = new StompServer({server: server});
server.listen(61614);
stompServer.subscribe("/**", function(msg, headers) {
var topic = headers.destination;
console.log(topic, "->{" + (typeof msg) + "}... |
/*!
* Bootstrap Colorpicker
* http://mjolnic.github.io/bootstrap-colorpicker/
*
* Originally written by (c) 2012 Stefan Petre
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* @to do Update DOCS
*/
(function(factory) {
"use strict";
if (typeof exports === 'o... |
/**
* Navigation controls
*/
import { Cookies } from './Cookies'
export class Navigation {
constructor () {
this.mobile()
this.toggleCollapse()
this.tooltip()
}
mobile () {
const navbarWidth = this.calculateNavbarWidth()
const $navbarNav = $('.navbar-dark .navbar-nav')
$('.navbar-dark... |
/*
* RubberBand React Component
*
* Copyright © Roman Nosov 2017
* Original CSS Effect - Copyright (c) 2016 Daniel Eden
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import { bool, number } from 'prop-types';
import wrap fro... |
/* global availity, jasmine, describe, beforeEach, it, module, spyOn, inject, expect */
describe('AvModal', function() {
'use strict';
var template =
'<div data-av-modal>' +
'<div class="modal-header">' +
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</butto... |
export default function Evaluation(node, context){
if(node.body && node.body.length === 0){
Return NormalCompletion(undefined);
} else if(node.body && node.body.length > 0) {
const {body: StatementList} = node;
let oldEnv = context.LexicalEnvironment;
let blockEnv = NewDeclarativeEnvironment(oldEnv);
BlockD... |
var sig = require('sig-js'),
event = require('sig-event'),
eio = require('engine.io-client')
function client() {
var self = {}
self.engine = eio.apply(null, arguments)
self.in = sig.functor(input(self))
self.out = sig.functor(output(self))
self.close = function() {
self.in().end()
self.out... |
$( document ).ready(function() {
"use strict";
var i, genreId;
//open de data API voor aanmaak van genre options op index
$.getJSON("https://api.themoviedb.org/3/genre/movie/list?api_key=f32e0e7660d450db58d253702535beb2&language=en-us", function(data){
//aanmaak van alle genre options op index
for (i = ... |
var Tool = new Function();
Tool.prototype = {
version : "1.0",
date : function(str) {
var a = str.substring(0,4)+"-"+ str.substring(4,6)+"-" + str.substring(6,8);
return new Date(Date.parse(a));
},
timeStr : function(str) {
var a = str.substring(0,2)+":"+ str.substring(2,4);
return a;
},
set... |
export default function Collector(callback) {
return function collector() {
this.input("IN").on("data", ip => {
ip.drop();
callback(ip.contents());
});
};
}
|
// =====================================================================================================================
// the objective of this test is to check the ability to create a extension object from it's node
// id out of the address_space
//
// For instance if ServerStatus
// var ServerStatusDataType = ad... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.