code stringlengths 2 1.05M |
|---|
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
export const QUERY = gql`
query GetScheduleTransaction($id: ID!) {
transaction: node(id: $id) {
... on ScheduledTransaction {
numberOfPayments
next
end
id
transactionId: entityId
reminderD... |
var chai = require('chai');
var path = require('path');
var expect = chai.expect,
should = chai.should;
var EppFactory = require('../lib/epp-factory');
var filePath = path.resolve(__dirname, '../config', 'epp-config-example.json');
var nconf = require('../lib/utilities/config').getConfig(filePath);
var logger = req... |
/**
* Copyright (C) 2000-2014 Geometria Contributors
* http://geocentral.net/geometria
*
* Geometria is free software released under the MIT License
* http://opensource.org/licenses/MIT
*/
define([
"geometria/GDictionary",
"geometria/GHelp",
"geometria/GMainContainer"
], function(dict, help, mainCont... |
var map, layer,graphicsLayer,drawTool,gindex;
window.onload = function() {
if(window.navigator.userAgent.indexOf("Chrome")<0){
alert('暂时只支持chrome,Firefox正在努力修改中');
}
init();
}
var init = function() {
initPosition();
initMap();
document.getElementById('pointNum').onchange=function(event){
... |
// All symbols in the `Osmanya` script as per Unicode v9.0.0:
[
'\uD801\uDC80',
'\uD801\uDC81',
'\uD801\uDC82',
'\uD801\uDC83',
'\uD801\uDC84',
'\uD801\uDC85',
'\uD801\uDC86',
'\uD801\uDC87',
'\uD801\uDC88',
'\uD801\uDC89',
'\uD801\uDC8A',
'\uD801\uDC8B',
'\uD801\uDC8C',
'\uD801\uDC8D',
'\uD801\uDC8E',
... |
// app/models/recette.js
const mongoose = require('mongoose');
// define the schema for our model
const recetteSchema = mongoose.Schema({
nom: String,
ajoute: { type: Date, default: Date.now },
auteur: String,
bases: [
{
ratio: String,
nicotine: Number,
pourcentage: Number
}
],
ar... |
import request from 'request-promise'
import xml2js from 'xml2js-es6-promise'
import generateHelp from '../../util/generateHelp'
import globalconfig from '../../../config'
function main(message, config) {
for (let booru of config.commands) {
if (message.content[0] === booru.name) {
return querybooru(messag... |
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); }
i... |
const SQ = require('sequelize');
module.exports = {
register: async ORM => {
const ORMTest = ORM.db.define('orm_test', {
id: {
type: SQ.INTEGER,
primaryKey: true,
autoIncrement: true
},
data: {
type: SQ.STR... |
const LOAD = 'tfk-portalen/info/LOAD'
const LOAD_SUCCESS = 'tfk-portalen/info/LOAD_SUCCESS'
const LOAD_FAIL = 'tfk-portalen/info/LOAD_FAIL'
const REMOVE_CONTECT = 'tfk-portalen/info/REMOVE_CONTECT'
const REMOVE_CONTECT_SUCCESS = 'tfk-portalen/info/REMOVE_CONTECT_SUCCESS'
const REMOVE_CONTECT_FAIL = 'tfk-portalen/info/R... |
const STATES = {
IDLE: 'Idle',
PREPARATION: 'Preparation',
ACTION: 'Action',
REMINDER: 'Reminder'
};
module.exports = STATES;
|
$A.bind(window, 'load', function(){
// Syntax : setCalendar( ID , TriggeringElement , TargetEditField , EnableComments , clickHandler , config )
$A.setCalendar('UniqueCalendarId', $A.getEl('dateIcon'), $A.getEl('date'), true, undefined,
{
// Configure optional overrides
// If not included, all of t... |
var checkerboard = [[null,null,null,null,null,null,null,null],
[null,null,null,null,null,null,null,null],
[null,null,null,null,null,null,null,null],
[null,null,null,null,null,null,null,null],
[null,null,null,null,null,null,null,null],
... |
define(["require", "exports", "./Persona.Props", "./Persona.scss"], function (require, exports, Persona_Props_1, stylesImport) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var styles = stylesImport;
exports.PERSONA_SIZE = (_a = {},
_a[Persona_Props_1.PersonaSize... |
var common = require("../common");
var redis = require("./redisFactory");
var config = require("../config").config;
//连接Redis
var redisClient = redis.create();
//新增预约会议
function addReserveConf(userid, userInfo, callback) {
};
//删除预约会议
function removeReserveConf(userid, userInfo, callback) {
};
exports.add = add... |
(function() {
function c() {
return window.anychart.color.lighten(this.sourceColor)
}
function b() {
return window.anychart.color.darken(this.sourceColor)
}
function a() {
return this.sourceColor
}
window.anychart = window.anychart || {};
window.anychart.themes ... |
version https://git-lfs.github.com/spec/v1
oid sha256:d9463908bb3769f99c780635cddcae254b50b937f740809ec48cdd7035d10d80
size 37553
|
/**
* Redeem Daemon Request event
* @module daemon/events/redeem-daemon-request
*/
const uuid = require('uuid');
const NError = require('nerror');
const Base = require('./base');
/**
* Redeem Daemon Request event class
*/
class RedeemDaemonRequest extends Base {
/**
* Create service
* @param {App} a... |
import * as types from './types';
export function init(api, preference, element)
{
return {
type: types.INIT_PLE,
api,
preference,
element,
};
} |
/**
* xGesture.js
* https://github.com/kiinlam/xGesture
*/
; (function (window, $) {
var isSupportTouch = 'ontouchend' in document ? true : false,
_touchstart = isSupportTouch ? 'touchstart' : 'mousedown',
_touchmove = isSupportTouch ? 'touchmove' : 'mousemove',
_touchend = isSupportTouc... |
"use strict";
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* --------------------------------------------------... |
import createRequestMiddleware from './request'
import createRequestLoggerMiddleware from './requestLogger'
import createResponseParserMiddleware from './responseParser'
import createRequestModifierMiddleware from './requestModifier'
export {createRequestMiddleware, createResponseParserMiddleware, createRequestLoggerM... |
import React, { Component } from 'react'
import userActions from '../../actions/UserActions'
import userStore from '../../stores/UserStore'
import UserProfileForm from './UserProfileForm'
export default class UserProfilePage extends Component {
constructor (props) {
super(props)
this.state = {
user: {}... |
require('proof')(5, async (okay) => {
const fs = require('fs').promises
const path = require('path')
const test = require('./test')
for await (const harness of test('create', okay)) {
await harness($ => $(), 'open', async ({ strata, prefix, directory, pages }) => {
okay(pages.size,... |
// LICENSE : MIT
"use strict";
import React from "react"
import MarkdownToolbar from "./components/MarkdownToolbar";
import MarkdownEditor from "./components/MarkdownEditor";
import MarkdownPreview from "./components/MarkdownPreview";
import VideoTranscript from "./components/VideoTranscript"
import VideoViewer from ".... |
import LastReleaseChanges from './view';
export default LastReleaseChanges;
|
angular.module('asch').controller('personalCtrl', function ($scope, $rootScope, apiService, ipCookie, $window, $http, userService, postSerivice, $translate) {
$rootScope.active = 'personal';
$rootScope.userlogin = true;
//下拉菜单隐藏
// 账单默认显示
$scope.accountInfo = true;
$scope.passwordInfo = false;
$scope.qrcode = u... |
"use strict";
var Student = (function () {
function Student(student_id, title, name, image, overall_xp, level, course_id, username, password, id, selected, progressType, maxXP, badges, email) {
this.student_id = student_id;
this.title = title;
this.name = name;
this.image = image;
... |
var Mode = require('./mode')
var NumericData = require('./numeric-data')
var AlphanumericData = require('./alphanumeric-data')
var ByteData = require('./byte-data')
var KanjiData = require('./kanji-data')
var Regex = require('./regex')
var Utils = require('./utils')
var dijkstra = require('dijkstrajs')
/**
* Returns ... |
'use strict';
var expect = require('expect.js'),
jsrules = require('../lib');
function isErrorThrown() {
var isThrown = false;
try {
new jsrules.Operator('foo');
}
catch (err) {
isThrown = true;
}
return isThrown;
}
describe('jsrules.InvalidOperatorError', function() {
it('throws a custom Ty... |
var fs = require('fs-promise');
var lib = require('./lib');
(async function () {
var img1 = await fs.readFile('./people1.jpg');
var img2 = await fs.readFile('./people2.jpg');
console.time('get_diff_image');
var diffImage = lib.get_diff_image(img1, img2);
console.timeEnd('get_diff_image');
fs.... |
/**
* Created by Luis Montero on 7/18/2016.
*/
(function () {
'use strict';
angular
.module('employee')
.controller('EmployeeController', EmployeeController);
EmployeeController.$inject = [
'employees',
'employeeRestService',
'$window'
];
function EmployeeController(employees, empl... |
var debug = require('debug')('p3api-server:media/cufflinks+gff')
var when = require('promised-io/promise').when
var es = require('event-stream')
// var wrap = require("../util/linewrap");
function sanitize (val) {
return val.replace(/;/g, '%3B').replace(/=/g, '%3D').replace(/&/g, '%26').replace(/,/g, '%2C')
}
funct... |
(function () {
function autoCallback(fn) {
fn();
}
// Localize the splat test functions
var test = Splat.test,
testAsync = Splat.testAsync,
assert = Splat.assert;
// Create a function to test modules
function testModule(moduleName, runner, finalCallback) {
// Fallback test runner
runner = runner || auto... |
ScalaJS.impls.scala_Function2$mcJID$sp$class__$init$__Lscala_Function2$mcJID$sp__V = (function($$this) {
/*<skip>*/
});
//@ sourceMappingURL=Function2$mcJID$sp$class.js.map
|
require('dist/og-alerts');
module.exports = 'ogAlerts'; |
var toString = Object.prototype.toString
/**
* @param {*} obj
* @return {boolean}
*/
function isNumber(obj) {
return toString.call(obj) === '[object Number]'
}
/**
* @callback CheckedType~validate
* @param {*} obj
* @return {boolean}
*/
/**
* @typedef {Object} CheckedType
* @property {string} typeOf
* @... |
import React, {Component} from 'react'
import {List} from 'react-virtualized'
import ScreenSize from './ScreenSize'
const NumberOfColumns = (nPictures, startIndex, preferredNumColumns) => {
return Math.min(preferredNumColumns, nPictures - startIndex)
}
const ImageHeight = (album, startIndex, numberOfColumns, margin... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
// Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at most k.
/**
* @param {number[]} nums
* @param {number} k
* @return {boolean}
*/
var containsNearbyDuplicate = function(... |
import { uniqueId } from "lodash";
export const attachId = (func) => {
return (...args) => ({
mutations: func(...args),
id: uniqueId("throttledEvent")
});
};
|
var g1;
window.onload = function(){
var g1 = new JustGage({
id: "g1",
value: getRandomInt(0, 100),
min: 0,
max: 100,
title: "Temperature",
titleFontColor:"white",
label: "Celsius"
});
setInterval(function() {
... |
/**
* Account Manager System (https://github.com/PsyduckMans/accountmanager)
*
* @link https://github.com/PsyduckMans/accountmanager for the canonical source repository
* @copyright Copyright (c) 2014 PsyduckMans (https://ninth.not-bad.org)
* @license https://github.com/PsyduckMans/accountmanager/blob/mast... |
'use strict';
/**
* @ngdoc function
* @name helmeditor2App.controller:Modal
* @description
* # ModalCtrl
* Modal for right-click on canvas
*/
//for right-click modal views
//modal example provided with ui bootstrap doc: http://plnkr.co/edit/?p=preview
angular.module('helmeditor2App')
.controller('modal', ['$sc... |
/* global require */
var gulp = require('gulp');
var templateCache = require('gulp-angular-templatecache');
var minifyHtml = require('gulp-minify-html');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var streamqueue = require('streamqueue');
var jscs = require('gulp-jscs');
var karma = req... |
$(document).ready(function () {
//kendo.culture("en-GB");
$.validator.addMethod('date',
function (value, element) {
return this.optional(element) || kendo.parseDate(value)
});
}); |
module.exports = {
"w": {
page: 32712,
description: require('./fieri.js').guy
},
"w's": {
page: 23266,
description: require('./fieri.js').guy
},
"w/": {
page: 177,
description: require('./fieri.js').guy
},
"w/o": {
page: 1790,
description: requ... |
/*! jQuery UI - v1.9.2 - 2013-09-25
* http://jqueryui.com
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.ka={closeText:"დახურვა",prevText:"< წინა",nextText:"შემდეგი >",currentText:"დღეს",monthNames:["იანვარი","თებერვალი","მარტი","აპრილი","მ... |
module.exports = require('./lib/subscriber.js');
|
var expect = require('expect.js');
var mockery = require('mockery');
var platformMatcher;
var actions;
describe('platform-matcher', function() {
before(function() {
mockery.enable({useCleanCache: true});
mockery.registerAllowable('../src/index');
});
after(function() {
mockery.de... |
'use strict';
require('babel-register');
const config = require('../config');
const mongoose = require('mongoose');
const User = require('../backend/models/User');
const Department = require('../backend/models/Department');
const Room = require('../backend/models/Room');
mongoose.Promise = require('bluebird');
let data... |
import webpack from 'webpack';
import logStats from './logStats.js';
const { debug } = logger('app:bundle');
const { watch } = config.app.argv;
// creates a cellback function
// that webpack runs when it's done bundling
const bundleCallback = cb => {
let initial = true;
return (err, stats) => {
logStats(err, ... |
(function($){
$(function(){
$('.button-collapse').sideNav();
$('.aToProjects').on("click", function() {
$('#skills').hide();
$('#contact').hide();
$('#projects').show();
});
$('.aToSkills').on("click", function() {
$('#projects').hide();
$('#skills').show();
... |
var fs = require("fs");
var runCount = 0,
testCount = 0,
failCount = 0;
function runTests(test){
var begin = Date.now();
//read files, load them, run them
fs.readdirSync(__dirname + test.dir
).map(function(file){
if(file[0] === ".") return false;
return require(__dirname + test.dir + file);
}).forEach(func... |
(function () {
"use strict";
module.exports = {
"LAYOUT": {
"SHOW_SIDEBAR": "Show menu",
"HIDE_SIDEBAR": "Hide menu"
},
"NAV": {
"HOME": "Home",
"CUSTOMERS": "Customers",
"INVOICES": "Invoices",
"BACK": "Back",
... |
// a simple wrapper on Firebase and AngularFire to simplify deps and keep things DRY
angular.module('firebase.utils', ['firebase', 'myApp.config'])
.factory('fbutil', ['$window', 'FBURL', '$firebase', function($window, FBURL, $firebase) {
"use strict";
return {
syncObject: function(path, factor... |
describe("Typing Specifications", function() {
var input,events;
beforeEach(function(){
events=[];
input =
$("<input />")
.bind("keydown keypress keyup",function(e){events.push(e)})
.appendTo("body");
});
afterEach(function(){
input.remove();
});
describe("when entering a carriage... |
import React from 'react';
import $ from 'jquery';
import CommonHeader from '../components/common_header';
import CommonNotice from '../components/common_notice';
import CommonTags from '../components/common_tags';
import CommonLatest from '../components/common_latest';
import CommonTimeline from ... |
// @flow
// Each scope gets a bitset that may contain these flags
// prettier-ignore
export const SCOPE_OTHER = 0b000000000,
SCOPE_PROGRAM = 0b000000001,
SCOPE_FUNCTION = 0b000000010,
SCOPE_ASYNC = 0b000000100,
SCOPE_GENERATOR = 0b000001000,... |
Package.describe({
name: 'tarzak:gridstackjs',
summary: ' gridstack.js re-packaged meteorjs ',
version: '0.2.3'
});
Package.onUse(function(api) {
api.versionsFrom('METEOR@1.0.2.1');
api.use('jquery', 'client');
api.use('linto:jquery-ui@1.0.0', 'client');
api.use('underscore@1.0.0')
ap... |
/**
* @name detail.js
* @autor
* @description Detail Controller definition
*/
'use strict';
// Gets the controller dependencies
var region = require('../regions/main'),
dispatcher = require('../services/dispatcher'),
books = require('../data/books'),
DetailView = require('../modules/detail');
// Creates the ... |
/**
* Created by yangyxu on 5/20/17.
*/
(function (zn){
var CHAR_CODE = {
lower: [97, 123],
upper: [65, 91]
};
zn.html = zn.Class({
static: true,
methods: {
decode: function (value){
if(value && value.length){
value = value.... |
import babel from 'rollup-plugin-babel';
const pkg = require('./package.json');
export default {
input: pkg.module,
output: {
name: pkg.name
.split('-')
.map((str,i) => i > 0
? str.substring(0,1).toUpperCase() + str.substring(1)
: str)
... |
export default function (fn) {
return function (...args/*, callback*/) {
var callback = args.pop();
return fn.call(this, args, callback);
};
}
|
const fs = require('fs');
const { preprocess } = require('@glimmer/syntax');
function findAstItems(astBody) {
let allItems = [];
astBody.forEach((item) => flattenAstItem(item, allItems));
return allItems;
}
function flattenAstItem(item, allItems = []) {
allItems.push(item);
if (item.children) {
item.c... |
import { connect } from 'react-redux'
import { requestCreateRemoteTimer } from '../actions/actions'
import TimerForm from '../Components/TimerForm'
const mapStateToProps = state => {
return {
errorText: state.errorText
}
}
const mapDispatchToProps = dispatch => {
return {
createTimer: (minutes) => {
... |
module.exports = {
"name": "AngularJS Test App",
"questions" : [
{
"question" : "Which is not an advantage of using a closure?",
"options" : [
"Prevent pollution of global scope",
"Encapsulation",
"Private propertie... |
// Copyright 2014 (c) David Hayes
var fs = require('fs');
var path = require('path');
var htmlparser = require('htmlparser2');
var Q = require('kew');
var sqlite3 = require('sqlite3');
sqlite3.verbose();
// Arguments.
var argv = require('yargs')
.usage('Fill an existing sqlite3 DB with pointers to the ImpactJS HTML... |
import $ from 'jquery';
import {showAlert,showLoading} from './promptAction';
import * as service from '../ajaxService/service'
export const USER_REQUEST = 'USER_REQUEST';
export const USER_SUCCESS = 'USER_SUCCESS';
export const USER_FAILURE = 'USER_FAILURE';
export function userRequest() {
return {
type: ... |
if (Meteor.isClient) {
Session.set('university',0);
Session.set('crimeCategory','Any');
Session.set('severity',10);
Session.set('isCity',0);
//The universities information for select
PlaceInfo = [
{"_id": 0, "placeIndex": 0,"placeCategory": 'Syracuse University'},
{"_id": 1, "placeIndex": 1,... |
/**
* 从gulp-compass修改而来,主要是为了适应本项目
* 原repo https://github.com/appleboy/gulp-compass
* Copyright (c) 2014 Bo-Yi Wu
*/
'use strict';
var fs = require('fs');
var path = require('path');
var _ = require('lodash');
var vinylFs = require('vinyl-fs');
var gutil = require('gulp-util');
var through2 = require('through2');... |
require.config({
paths: {
'jquery': 'lib/jquery',
'mustache': 'lib/mustache',
'underscore': 'lib/underscore',
'machina': 'lib/machina',
'text': 'lib/text',
'json': 'lib/json',
'EasyStar': 'lib/easystar-0.1.0.min',
'SimplexNoise': 'lib/perlin-noise-simp... |
/**
* Copyright 2014 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
'use strict';
const assert = require('assert');
const path = require('path');
const tagData = require(path.resolve(__dirname, '../../marko.json')).tags[
'amp-img'
];
function renderAmpImg(input = {}, dontClose) {
const attributes = [];
assert.ok(
input.src || input.srcset,
`Either src or srcset attribu... |
function ClientManager() {
this.clients = new Array();
this.add_client = function ( client ) {
if( this.clients.indexOf( client ) == -1 ) {
this.clients.push( client );
}
};
this.remove_client = function ( client ) {
if( this.clients.indexOf( client ) != -1 ) {
this.clients.splice( this.clients.index... |
module.exports = function() {
var __ks_Array = {};
return {
Array: Array,
__ks_Array: __ks_Array
};
}; |
/**
* typescript:spreadArray
* 这个文件由工具生成,请不要手动修改
*
* Efront Authors
* 2021-02-23T21:59:11.253Z
*/
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
to[j] = from[i];
return to;
}; |
'use strict';
var MainPanel = $('#HeroSelectionBox');
var SelectedHeroPanel,
SelectedTabIndex,
SelectionTimerEndTime = 0,
HideEvent,
DOTA_ACTIVE_GAMEMODE,
CustomChatLinesPanel,
MinimapPTIDs = [],
HeroesPanels = [],
tabsData = {},
PlayerSpawnBoxes = {},
HeroSelectionState = -1,
PlayerPanels = [],
... |
var sinon = require('sinon');
var chai = require('chai');
require("./mocks/virtualport");
var modbus_Serial = require("../dist/modbus-serial");
var assert = chai.assert;
var expect = chai.expect;
describe('Serial Port Master Options', function() {
it("Serial Port Master Default Options", function (done)... |
app.controller("ContactsShowCtrl", function($scope, $routeParams, Contact) {
$scope.contact = Contact.show({ id: $routeParams.id });
}); |
'use strict';
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
commonjsGlobal.data = [4, 5, 6];
var shared = commonjsGlobal.data;
exports.commonjsGlobal = commonjsGlobal;
exports.d = shared;
|
const opToSql = {
gt: '>',
lt: '<',
ge: '>=',
le: '<=',
eq: '=',
ne: '<>'
};
module.exports = (query, filters) => {
let filteredQuery = query;
filters.forEach((filter) => {
const f = filter;
for (const op of ['gt', 'ne', 'lt', 'ge', 'le', 'eq']) {
if (f.has... |
module.exports = {
"config": [
"config"
],
"tmp": [
".tmp"
]
} |
let webpack = require('webpack')
let webpackConfig = require('./webpack.dev')
let express = require('express')
let config = require('./config')
let opn = require('opn')
webpackConfig.entry.app.unshift('./build/dev-client.js')
let app = express()
let compiler = webpack(webpackConfig)
let devMiddleware = require('webp... |
import React from 'react';
import Article from '../../src/components/Article';
import articles from '../../src/data/articles';
class About extends React.Component {
render () {
return (
<footer className="about section section--light" id="about">
<div className="width-limiter">
<div class... |
/*global describe,it,expect,$$,element,browser,by*/
describe('Reference fields', function () {
'use strict';
describe('in ShowView', function () {
beforeEach(function() {
browser.get(browser.baseUrl + '#/show/posts/1');
});
it('should display ReferencedList as a datagrid', ... |
version https://git-lfs.github.com/spec/v1
oid sha256:268009224182bb524bbe749cdc8da120f4aaaa2527ba50b587e93685b76d3444
size 1872
|
importPackage(javax.naming);
var gm = self.getGameModel();
/**
* terminate the current week.
* if value of week <= max value of week :
* - Increment the value of week
* - Check the end of all task (checkTasksEnd)
* - Check the end of all absent (checkAbsencesEnd)
* - Remove all deactivated assignments (removeDea... |
P.module("P.core.math.Matrix",["P.core.math.Math"],function(math){
function Matrix(args) {
//var args = Array.prototype.concat.call(null , arguments);
if(args == undefined)
args = [
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let async = require('async');
const pip_services_commons_node_1 = require("pip-services-commons-node");
const pip_services_commons_node_2 = require("pip-services-commons-node");
const pip_services_commons_node_3 = require("pip-services-commons... |
/*global Wizard, TemplateManager, Backbone, _, $*/
Wizard.Views = Wizard.Views || {};
(function () {
'use strict';
Wizard.Views.SuccessView = Backbone.View.extend({
template: 'js/templates/success.html',
className: 'row',
render: function () {
var view = this;
... |
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
(function() {
var block = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
fences: noop,
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n... |
var settings = require('../core/settings');
var THREE = require('three');
var undef;
var mesh = exports.mesh = undef;
exports.init = init;
exports.update = update;
var _geometry;
var _material;
var BLACK = new THREE.Color(0x111111);
var WHITE = new THREE.Color(0xcccccc);
function init() {
_geometry = new THREE... |
var config = require('./')
module.exports = {
autoprefixer: { browsers: ['last 2 version'] },
src: config.sourceAssets + "/stylesheets/**/*.{sass,scss}",
dest: config.publicAssets + '/stylesheets',
settings: {
includePaths: ['./node_modules/bootstrap-sass/assets/stylesheets', './node_modules/font-awesome/sc... |
import LoadingHOC from 'react-loading-hoc';
import React from 'react';
import request from 'browser-request';
import Alert, {ALERT_TYPE_SUCCESS, ALERT_TYPE_ERROR} from '../../alert';
import Button from '../../ui/button';
import LoadingBar from '../../ui/loading-bar';
import Modal from '../../ui/modal';
import browse... |
/* eslint-disable no-unused-vars */
const optimist = require('good');
|
export { EntityManager } from './core/entity-manager'
export { SystemType } from './core/system-manager' |
'use strict';
describe('Service: locationInfo', function () {
// load the service's module
beforeEach(module('nightOwlApp'));
// instantiate service
var locationInfo;
beforeEach(inject(function (_locationInfo_) {
locationInfo = _locationInfo_;
}));
it('should do something', function () {
expec... |
'use strict';
module.exports = {
db: 'mongodb://localhost/webdev-hw1-test',
port: 3001,
app: {
title: 'webdev-hw1 - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/c... |
var models = require('../models');
var Sequelize = require('sequelize');
var url = require('url');
var authenticate = function(login, password){
return models.User.findOne({where: {username: login}}).then(function(user){
if(user && user.verifyPassword(password)){
return user;
}else{
return null;
}
});
};... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.