code stringlengths 2 1.05M |
|---|
/*
* jQuery File Upload User Interface Plugin 5.0.12
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
*/
/*jslint nomen: false, unparam: true, regexp: false */
/*global wind... |
import { ensureLogin, containsErrorMessage } from '../utils/HelpUtil';
import { waitInSeconds } from '../utils/WaitUtil';
import ClientHistoryRequest from '../utils/ClientHistoryRequest';
import * as mock from '../mock';
import permissionsMessages from '../../modules/RolesAndPermissions/permissionsMessages';
const aut... |
System.register([], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var Category, Type;
return {
setters:[],
execute: function() {
(function (Category) {
Category[Category["Item"] = 0] = "Item";
Cate... |
// @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
require('jquery');
// import "bootstrap-material-design/dist/css/bootstrap-material-design.css";
// import "bootstrap-material-design/dist/css/ripples.css";
... |
const template = require('./login.html');
const mainSong = require('../../public/music/Main.ogg');
export const LoginCtrlName = 'LoginCtrl';
export const LoginCtrlState = {
url: '/login',
template,
controller: LoginCtrlName,
controllerAs: 'login',
params: {
errorMessage: null
}
};
export const LoginC... |
/*jslint indent:2*/
'use strict';
// this will be dictionary containing
// - key: a string
// - all possible words with the characters of the key
var memory = {},
callsToFunction = 0;
// find all posible strings that can be formed with
// n characters, without repeating characters
// @param string {String} The ini... |
function pad(number, length) {
var str = '' + number;
while (str.length < length) {
str = '0' + str;
}
return str;
}
/**
* Gets a value from the querystring (or returns "")
* @param {string} name the name of the querystring parameter
* @param {string} [url] when omitted, the current location.url is assumed
*... |
var test = require('tape');
var isValidZip = require('../is-valid-zip');
test('is valid zip', function (t) {
t.plan(7);
t.equal(isValidZip(11743), true);
t.equal(isValidZip('11743-6961'), true);
t.equal(isValidZip('11743-6'), false);
t.equal(isValidZip(11743344), false);
t.equal(isValidZip(144), false);
... |
'use strict'
const fs = require('fs-extra')
const path = require('path')
const prune = require('../prune')
const test = require('ava')
const util = require('./_util')
function checkDependency (t, resourcesPath, moduleName, moduleExists) {
const assertion = moduleExists ? 'should' : 'should NOT'
const message = `m... |
define([
'model/CodeCollection',
'text!tinyschemer/intro.scm',
'text!tinyschemer/values.scm',
'text!tinyschemer/lists.scm',
'text!tinyschemer/functioncalls.scm',
'text!tinyschemer/listfunctions.scm',
'text!tinyschemer/define.scm',
'text!tinyschemer/recursionintro.scm',
'text!tinysche... |
const enums =
{
PlayerBan: 'playerBans',
PlayerKick: 'playerKicks',
PlayerMute: 'playerMutes',
PlayerNote: 'playerNotes',
PlayerWarning: 'playerWarnings'
}
module.exports = (type) => enums[type]
|
module.exports = {
name:'setup',
description:'Runs clone and then install to get your environment ready for action.',
example:'bosco setup',
cmd:cmd
}
function cmd(bosco, args) {
var clone = require('./clone');
var install = require('./install');
var team = require('./team');
var link... |
//
// Basic array functions that javascript annoyingly doesn't have
//
// a is an array. Return an array of the elements of a for which f returns true
var filter = function(a,f) {
var r = [];
var l = a.length;
for(var i=0; i<l; ++i) {
var e = a[i];
if (f(e)) {
r.push(e);
}
}
return r;
};
... |
// TODO(wuhf): AMD/CMD加载器
// ========================================================
;(function ($, global) {
var modules = {
'armer': {
exports: $
},
require: {exports: require},
exports: {exports: {}},
module: {exports: {}}
};
modules.jQuery = modules.... |
// Could implement other Array methods, like some(), filter(), etc.
function PropertyMapper () {
}
PropertyMapper.prototype.mapOwnEnumerables = function (cb) {
};
PropertyMapper.prototype.mapOwnNonenumerables = function (cb) {
};
PropertyMapper.prototype.mapOwnEnumerablesAndNonenumerables = function (cb) {
};
Pro... |
app.directive('desoslide', function () {
return {
restrict: 'A',
link: function(scope, element, attrs) {
$(element).desoSlide(scope.$eval(attrs.options));
}
};
});
|
this.NesDb = this.NesDb || {};
NesDb[ '974BA6A6C95551FF5B5F8842D876BA02A827A778' ] = {
"$": {
"name": "Stealth ATF",
"class": "Licensed",
"catalog": "NES-LH-USA",
"publisher": "Activision",
"developer": "Imagineering",
"region": "USA",
"players": "2",
"date": "1989-10"
},
"cartridge": [
{
"$": ... |
#!/usr/bin/env node
/**
*
* SCRIPTS: resources
*
*
* DESCRIPTION:
* - Retrieves metric resources.
*
*
* NOTES:
* [1]
*
*
* TODO:
* [1]
*
*
* LICENSE:
* MIT
*
* Copyright (c) 2014. Athan Reines.
*
*
* AUTHOR:
* Athan Reines. kgryte@gmail.com. 2014.
*
*/
(function() {
'use strict';
// MODULES //
var fs = req... |
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
dist: ['dist', 'docs']
},
jshint: {
options: {
node: true,
browser: true,
bitwise: true,
camelcase:... |
// server.js
var express = require('express'),
mysql = require('mysql'),
bodyParser = require('body-parser'),
cookieParser = require('cookie-parser'),
config = require('./config'),
compression = require('compression'),
fs = require('fs')
;
var connection = mysql.createConnection(config.db);
var app = express()... |
import React from 'react';
class Button extends React.Component {
render() {
return (
<div>
<button onClick={this.props.openPop}>Open</button>
</div>
)
};
}
export default Button;
|
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Utenti = mongoose.model('Utenti');
/**
* Globals
*/
var user, utenti;
/**
* Unit tests
*/
describe('Utenti Model Unit Tests:', function() {
beforeEach(function(done) {
... |
const fa_toggle_down = 'M1273 675q18 35-5 66l-320 448q-19 27-52 27t-52-27l-320-448q-23-31-5-66 17-35 57-35h640q40 0 57 35zm135 701v-960q0-13-9.5-22.5t-22.5-9.5h-960q-13 0-22.5 9.5t-9.5 22.5v960q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5-9.5t9.5-22.5zm256-960v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5... |
/*
Script: Booking form script
Author: Smart
Varsion: 1.1
*/
//includeScript ('jquery-ui-1.10.3.custom.min.js');
//includeScript ('jquery.fancyform.js');
//includeScript ('jquery.placeholder.js');
//includeScript ('regula.js');
(function($){
$.fn.bookingForm=function(options){
return this.each(functio... |
define(function(require) {
var test = require('../../../test');
var n = 0;
// 404
var a;
try {
a = require('./a')
} catch (e) {
test.assert(e.toString().indexOf('module was broken:') > -1, '404 error msg ' + e);
n++
}
test.assert(a === void 0, '404 a');
// exec error
setTimeout(funct... |
Ext.define('Fiddle.Chart', {
extend: 'Ext.chart.CartesianChart',
requires: [
'Fiddle.ChartController'
],
controller: 'fiddlechart',
alias: 'widget.fiddlechart',
store: fiddleStore,
insetPadding: 40,
axes: [{
type: 'numeric',
position: 'left',
grid: true,
... |
var ChildProcess = require('child_process'),
PassThrough = require('stream').PassThrough,
BaseFile = require('./base_arc_file'),
libpath = require('path'),
RarFile = require('./rar_file'),
TarFile = require('./tar_file'),
rimraf = require('rimraf'),
mmm = r... |
'use strict';
module.exports = {
port: 443,
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/enviewtest',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.min.css',
],
js: [
'public/lib/ang... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'codesnippet', 'ug', {
button: 'كود پارچىسى قىستۇرۇش',
codeContents: 'كود مەزمۇنى',
emptySnippetError: 'كود پارچىسى بوش ق... |
self.port.on("show", function (c) {
document.getElementById("username").value = c.username;
document.getElementById("password").value = c.password;
});
document.getElementById("save").addEventListener("click", function () {
self.port.emit("save", { username: document.getElementById("username").value, passw... |
/* * ====================================================================
* About: This a a compressed JS file from the Sarissa library.
* see http://dev.abiss.gr/sarissa
*
* Copyright: Manos Batsis, http://dev.abiss.gr
*
* Licence:
* Sarissa is free software distributed under the GNU GPL version 2
* or hi... |
//import $ from '../libs/jquery-2.1.4.min';
const $ = require('jquery');
function init() {
//_cacheDom();
//_bindEvents();
// ===========================================================
let devise = 0;
let backCall, order;
let id_device;
let id_model;
let id_repair;
let modelUrl;
... |
define(function(){
/**
* A sound resource.
* @class
* @memberof thruster.content
* @param {Howler.Howl} howl A Howl object from Howler.js.
*/
var Sound = function(howl){
this.howl = howl;
};
/**
* Plays this sound.
* @public
*/
Sound.prototype.play = function(){
this.howl.play();
};
re... |
require.config({
shim: {
easel: {
exports: 'createjs'
}
},
paths: {
easel: './easel'
}
});
requirejs(['game'],
function() {
this.game = new Game('evacuationCanvas');
}
);
|
version https://git-lfs.github.com/spec/v1
oid sha256:76b7b5c2236b49dc4fb0d70de35fcd36746989d16668d9ce48905db3d026ea50
size 6056
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.updateOverrideContexts = updateOverrideContexts;
exports.createFullOverrideContext = createFullOverrideContext;
exports.updateOverrideContext = updateOverrideContext;
exports.getItemsSourceExpression = getItemsSourceExpression;
expo... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
define(["require", "exports", "sitecore/shell/client/Speak/Assets/lib/core/1.2/SitecoreSpeak"],... |
import assign from 'object-assign';
import prependChars from './prependChars';
import formatAngle from './formatAngle';
const defaultTemplate = '{degree}° {prime}′ {doublePrime}″ {direction}';
export default function formatLatitude(value, options) {
options = options || {};
const template = typeof options.te... |
(function ($, window, document, undefined) {
'use strict';
Foundation.libs.forms = {
name: 'forms',
version: '4.1.6',
cache: {},
settings: {
disable_class: 'no-custom',
last_combo : null
},
init: function (scope, method, options) {
if (typeof method === 'object') {
... |
/**
*
* @note 字符 转换成 UTF-8 编码
* @param charStr
* @return {Array}
*
*/
const encode = (charStr) => {
const encodeStr = encodeURIComponent(charStr);
return encodeStr.split("%").map(item=>parseInt(item,16))
}
/**
* @note 转译 UTF-8
* @param charList
* @return {string}
*/
const decode = (charList) => {
... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2022 Mickael Jeanroy
*
* 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
... |
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.support.Plugin
sap.ui.define(['jquery.sap.global', 'sap/ui/base/Object', 'jquery.sap.dom', '... |
/**
* Created by joannarosedelmar on 1/5/15.
* angular-ui/angular-google-maps
* branch: master angular-google-maps/example/assets/scripts/controllers/search-box-autocomplete.js
*/
myApp.controller('mapController',
function ($scope, $log, $timeout ){
console.log("HERE IN MAP CONTROLLER center=" + JSON... |
'use strict';
(function (module) {
module.exports.getFilterCallback = getFilterCallback;
/**
* Function to provide a dynamic filter for Arrays of Objects.
*
* Example `filterObject`:
* {name: /Bill/} // Regexp match of Bill
* {name: 'Bill'} // Requires equality to 'Bill'
* {name: 'Bill', ... |
module.exports = function(EventEmitter) {
return EventEmitter('notification');
};
|
const en = [
{id: 1, value: 'Topics', description: 'for topics count in %ForumName% on forumItem component'},
{id: 2, value: 'Posts', description: 'for posts count in %ForumName% on forumItem component'},
{id: 3, value: 'Last message', description: 'for last message in %TopicName% on forumItem component'},... |
import React from 'react'
import PropTypes from 'prop-types'
import Props from 'rsg-components/Props'
import Methods from 'rsg-components/Methods'
import Events from 'rsg-components/Events'
import SlotsTable from 'rsg-components/SlotsTable'
export default function Usage({ props: { props, methods, events, slots } }) {
... |
var Lru = require("lru-cache");
var memory_store = function (args) {
args = args || {};
var self = {};
self.name = 'memory';
var ttl = args.ttl;
var lru_opts = {
max: args.max || 500,
maxAge: ttl ? ttl * 1000 : null
};
var lru_cache = new Lru(lru_opts);
self.set = func... |
(function() {
module.exports = function(args, c) {
var locals, n, output, _i, _len, _ref;
if (args.length < 2) {
throw new Error("'fun' needs at least two arguments");
}
if (!c.isIdArray(args[0])) {
throw new Error("'fun' expects first parameter to be an array of identifiers");
}
o... |
var formModule = angular.module('mlcl_forms.form');
var field = function field($compile, $templateCache, $rootScope) {
return function (fieldScope) {
var self = this;
this.render = function () {
var inputHtml = $templateCache.get('plugins/field_string_select_typeahead/field_string_select_typeahead.tpl.h... |
var path = require('path'),
logger = require('../logger')(),
isString = require('../isString');
function transcribe(libs, clients) {
function transcribeSingle(lib) {
if (lib.unify.getValue('type') === 'app')
return;
var name = lib.unify.getValue('name') || lib.name;
... |
'use strict';
module.exports = {
app: {
title: 'Expert-Alians',
description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js',
keywords: 'MongoDB, Express, AngularJS, Node.js'
},
port: process.env.PORT || 3000,
templateEngine: 'swig',
sessionSecret: 'MEAN',
sessionCollection: 'sessions... |
'use strict';
/**
* Module dependencies.
*/
var should = require('should'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
<%= crudNameCap %> = mongoose.model('<%= crudNameCap %>');
/**
* Globals
*/
var user, <%= crudName %>;
/**
* Unit tests
*/
describe('<%= crudNameCap %> Model Unit Tes... |
var gulp = require('gulp');
var browserify = require('gulp-browserify');
var rename = require("gulp-rename");
var uglify = require('gulp-uglify');
var del = require('del');
var jshint = require('gulp-jshint');
var bump = require('gulp-bump');
var shell = require('gulp-shell');
var merge = require('merge-stream');
var r... |
function Ago(a,b){a instanceof Array||(b=a,a=void 0),a=a||document.querySelectorAll("time"),b=b||{};var c={interval:1e4,units:[["minute",60],["hour",3600],["day",86400],["week",604800],["month",2592e3],["year",31536e3]],date:function(a){return new Date(a.getAttribute("datetime"))},format:function(a,b){if(!b)return"just... |
const { api, _, Action } = require("../../")
const util = require('icebreaker-network/lib/util')
module.exports = () => {
const groupId = "cjtvt7ch50000e8uj3gsn0fjv"
api.groups.put({ id: groupId, name: "friends", allow: "*" }, (err) => {
if (err) {
api.log.error(err)
process.exit(1)
}
})
... |
"use strict";
let EventEmitter = require('events');
module.exports = function(config) {
const me = this;
this.start = start;
this.stop = stop;
function start() {
console.log("Starting Fake Tamper generator for zone '" + config.zone + "'");
if (!me.emitter) {
me.emitter = n... |
class EnrolleeAddFormController{
constructor($uibModalInstance,API){
'ngInject';
var vm=this;
vm.data={
lastname:'Иванов',
firstname:'Иван',
middlename:'Иванович',
dateofbirth:new Date(),
gender:0,
profession:null,
... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
i... |
(function() {
'use strict';
angular.module('app', [
/*
* Order is not important. Angular makes a
* pass to register all of the modules listed
* and then when app.dashboard tries to use app.data,
* it's components are available.
*/
/*
* Ever... |
//Play.js
var GAME_INIT_STATE = 0;
var GAME_PLAY_STATE = 1;
var GAME_OVER_STATE = 2;
var GAME_PAUSE_STATE = 3;
var GAME_OVER_TRANSITION_STATE = 10;
var gamePlayState = GAME_INIT_STATE;
var playState = function(game) {
var score;
this.create = function() {
console.log('playState-create');
// this.game.ph... |
/**
* file: index.js
* auth: qk@detu.com
* update: 2016-01-27
*/
/**
* 打包阶段插件接口
* @param {Object} ret 一个包含处理后源码的结构
* @param {Object} conf 一般不需要关心,自动打包配置文件
* @param {Object} settings 插件配置属性
* @param {Object} opt 命令行参数
* @return {undefined}
*/
module.exports = function (ret, conf, settings, ... |
/**
* Created by guangqiang on 2017/8/26.
*/
/** 网络请求工具类的拓展类,便于后期网络层修改维护 **/
import HttpUtils from './HttpUtils'
import {API_URL, MIAMI_URL, TIME_MOVIE_URL, TIME_TICKET_URL} from '../../../constants/urlConfig'
import {ApiSource} from '../../../constants/commonType'
import {dataCache} from '../cache'
/**
* GET \ P... |
/**
* Created by zhangruofan on 2015/12/23.
*/
var cookie=require('../lib/cookie.js');
$(document).ready(function () {
var wait = 60;
function getUrlParam(name)
{
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r!=null)... |
/* [MS-XLS] 2.4.326 TODO: payload is a zip file */
function parse_Theme(blob, length, opts) {
var end = blob.l + length;
var dwThemeVersion = blob.read_shift(4);
if(dwThemeVersion === 124226) return;
if(!opts.cellStyles || !jszip) { blob.l = end; return; }
var data = blob.slice(blob.l);
blob.l = end;
var zip; tr... |
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
Vue.use(Router)
export default new Router({
mode: 'history',
routes: [
{
path: '/',
name: 'home',
component: Home,
},
{
path: '/article/:number',
... |
'use strict';
const app = require('./app');
const bootstrap = require('./bootstrap');
const port = app.get('port');
const server = app.listen(port);
server.on('listening', function() {
var p = bootstrap.init();
p.then(function() {
return app.logger.info(`Feathers application started on ${app.get('host')}:${p... |
console.log('TD_COAP_CORE_13 Handle request containing several URI-Query options');
var common = require('./common.js');
erbium = require('node-erbium');
udpApp = common.udpBearer();
coapServerApp = common.server();
coapClientApp = common.client();
exports.TEST_ENDPOINT = '/query';
function check1(raw) {
common.... |
app.factory('MessageFactory', ['$http', 'AuthFactory', function($http, AuthFactory){
// console.log('MessageFactory running');
var currentMessage = {};
var unreadMessages = {};
//--------------------------------------------------------------------------//
function setMessage(item){
currentMessage.thing ... |
'use strict'
const db = require('APP/db')
const Warehouse = db.model('warehouse')
const Router = require('express').Router()
Router.get('/', (req, res, next) => {
Warehouse.findAll()
.then(warehouses => {
res.json(warehouses)
})
.catch(next)
})
Router.get('/:id', (req, res, next) => {
Warehouse.... |
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @externs_url https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/maps/google_maps_api_v3.js
// ==/ClosureCompiler==
/**
* @name MarkerClusterer for Google Maps v3
* @version version 1.0
* @author Luke Mahe
* @fileov... |
import { browserHistory } from 'react-router';
import { NotificationManager } from 'react-notifications';
import * as t from './actionTypes';
import { app } from '../lib/WebApi';
/*
* Set the "sending request" flag in state.
* Can be used to show a spinner or something
*/
export function setSendingRequest(isSendin... |
import deepEqual from 'deep-equal';
import uniqueId from 'lodash.uniqueid';
import { createSheet } from './utils';
import { composes, config } from './composes';
import { attachRule, addRule } from './attach';
import { formatRule } from './format';
let cache = [];
let vuduSheet = createSheet('vSheet');
/**
* buildR... |
(function() {
'use strict';
angular.module('workspaceApp')
.controller('OpenimagesCtrl', ['$scope', '$http', function($scope, $http) {
$scope.results = [];
$scope.search = function() {
$http({
method: 'GET',
url: 'https://a... |
'use strict';
// Module dependencies.
var express = require('express'),
fs = require('fs'),
path = require('path'),
mongoose = require('mongoose'),
passport = require('passport'),
logger = require('mean-logger');
var app = express();
// Load configurations
process.env.NODE_ENV = process.env.NODE_ENV || 'de... |
import DS from 'ember-data';
export default DS.Model.extend({
currently: DS.attr(),
daily: DS.attr(),
flags: DS.attr(),
hourly: DS.attr(),
minutely: DS.attr()
});
|
var apistatus = require('../lib/apistatus.js')
var statusCodes = require('../lib/codes.js')
var assert = require('assert')
var nock = require('nock');
// Mock http responses
var nockServer = nock('http://localhost:9876');
nockServer.get('/ok').reply(200, undefined).persist();
nockServer.get('/fail').reply(501, undefi... |
//
// APNDevice.js — APNRS
// today is 11/13/12, it is now 04:42 PM
// created by TotenDev
// see LICENSE for details.
//
//Modules
var assert = require('assert'),
deviceStoreWrapper = require('./APNDeviceQueryWrapper.js'),
definitions = require('./definitions.js')();
/**
* Initialize APNDevice function
**/
mo... |
/*!
* ansi-green <https://github.com/jonschlinkert/ansi-green>
*
* Copyright (c) 2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
'use strict';
var wrap = require('ansi-wrap');
module.exports = function green(message) {
return wrap(32, 39, message);
};
//# sourceMappingURL=index-compiled.js.map |
/**
* @module ember-paper
*/
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import Component from '@ember/component';
import { isPresent } from '@ember/utils';
import { htmlSafe } from '@ember/string';
import layout from '../templates/components/paper-progress-linear';
... |
/**
* @jsx React.DOM
*/
/* not used but thats how you can use touch events
* */
//React.initializeTouchEvents(true);
/* not used but thats how you can use animation and other transition goodies
* */
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
/**
* we will use yes for true
* we will use no f... |
"use strict";
import Id from "./Id";
if ( __CLIENT__ ) {
var THREE = require( "three" );
}
/**
* Entity
*/
export default class Entity extends Id {
static ID = 0;
/**
* Config
* @type {{}}
* @protected
*/
_config = {};
/**
* Create an entity
* @param {String... |
(function(/*! Stitch !*/) {
if (!this.require) {
var modules = {}, cache = {};
var require = function(name, root) {
var path = expand(root, name), indexPath = expand(path, './index'), module, fn;
module = cache[path] || cache[indexPath];
if (module) {
return module;
} else i... |
import { Map } from 'immutable';
import { INITIALIZE_GAMES,
NEW_GAME,
MAKE_MOVE,
MOVE_CURSOR,
SET_GAME_EVALUATOR,
SET_INITIAL_BOOK_MOVES,
SET_BOOK_MOVES,
SET_SCORE_DATA,
SET_HIGHLIGHT_SAN,
} from '../constants';
import {
gameFromImmutable,
GameSt... |
import DS from 'ember-data';
import Ember from 'ember';
export default DS.ActiveModelAdapter.extend({
namespace: 'api',
channelService: Ember.inject.service("channel"),
channel: null,
setupChannel: function(){
this.set('channel', this.get('channelService').connect('todos','list', {}));
this.channel.o... |
import {curry} from 'ramda'
export const createEnvelope = curry((ctx: Object, patch: Object) => {
const envelope = ctx.createGain()
envelope.gain.value = 0.0;
return {
triggerAttack() {
var now = ctx.currentTime;
var envAttackEnd = now + (patch.attack/20.0);
envelope.gain.setValueAtTime( 0... |
import 'angular';
import config from './blocks.config.js';
import logger from './blocks.logger.js';
import exception from './blocks.exception.js';
export default angular.module('app.blocks', [
//Module
config.name,
//Blocks
logger.name, exception.name
]); |
var questionData= require('../questions.json')
exports.view = function(req, res) {
res.render('teacherQueue',questionData);
} |
/*
weighted.test.js - WeightedSnapshot test
The MIT License (MIT)
Copyright (c) 2014-2019 Tristan Slominski
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 withou... |
// Javascript file used to change slide //
$(function() {
/**
* Declaration of the carousel
* @return {void}
*/
var slideShow = $('.carousel');
slideShow.carousel('pause');
/**
* Event to previous and next slide
* @return {void}
*/
$('#prevSlide').on('click', prevSlide);
$('#nextSlide').on("click", ... |
import React from 'react';
import Portal from './Portal';
import Position from './Position';
import RootCloseWrapper from './RootCloseWrapper';
import elementType from 'react-prop-types/lib/elementType';
/**
* Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
... |
"use strict";
var escapeHTML = require("hexo-util").escapeHTML;
hexo.extend.helper.register("escapeHTML", (str) => escapeHTML(str));
|
/* jshint node:true */
var runCommand = require('ember-addon-genie/lib/utils/run-command');
module.exports = {
init: function() {
this._previousVersion = require('../package.json').version;
},
afterPublish: function(project, versions) {
runCommand('ember github-pages:commit --message "Released ' + vers... |
import { select } from 'd3';
export default function layout(element) {
const containers = {
main: select(element)
.append('div')
.classed('query-overview', true)
};
containers.topRow = containers.main.append('div').classed('qo-row qo-row--top', true);
containers.control... |
import React from 'react';
import { connect } from 'react-redux';
import { navigate } from '../../../actions/route';
import _ from 'lodash';
import $ from 'jquery';
import D3ForceLayout from './D3ForceLayout';
import ComponentNode from './ComponentNode';
import ComponentLink from './ComponentLink';
class ComponentsG... |
/*!
* datastructures-js
* directedGraph
* Copyright(c) 2015 Eyas Ranjous <eyas@eyasranjous.info>
* MIT Licensed
*/
function directedGraph() {
'use strict';
var self = {},
vertices = [], // graph nodes
directions = [], // graph directions [][]
verticesCount = 0,
removeElem... |
import {route} from 'part:@lyra/base/router'
import LyraVision from './LyraVision'
import VisionIcon from './components/VisionIcon'
export default {
router: route('/*'),
name: 'vision',
title: 'Vision',
icon: VisionIcon,
component: LyraVision
}
|
/* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from '../../__tests__/render';
import { CardMedia } from '../';
describe('Card', () => {
describe('CardMedia', () => {
it('should render a div with the card media css class', () => {
const output = ... |
import $ from 'jquery';
import BaseRoute from '../base-route';
/**
* Route to be created for handling modules
* @class API.Modules
* @constructor
* @extends Ember.Route
*/
export default BaseRoute.extend({
/**
* Fetches modules's JSON at: `${this.get('fountainhead.apiNamespace')}/modules/${params.file_id}.js... |
// Copyright 2014, Yahoo! Inc.
// Copyrights licensed under the Mit License. See the accompanying LICENSE file for terms.
var WebDriverManager = require('../../../');
var AbstractClientDecorator = require('preceptor').AbstractClientDecorator;
var Promise = require('promise');
var utils = require('preceptor-core').util... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.