code stringlengths 2 1.05M |
|---|
import React, { Component } from 'react'
class Info extends Component {
render () {
return (
<div style={styles.container}>
<div>
<h1 style={styles.header}>Useful Links</h1>
<div style={styles.row}>
<h2>Social Security</h2>
<span>Serviços de Atendimen... |
(function() {
exports.workerCleanup = function() {
return Repository.find({}, function(err, repositories) {
if (err) {
throw err;
}
console.log('Looking for hung builds.');
return repositories.forEach(function(repository) {
console.log('Found repo: ' + repository.url);
... |
var express = require('express')
var bodyParser = require('body-parser')
var app = express()
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({extended: true}))
app.use(express.static(__dirname + "/public"))
app.get("*", function (req, res) {
res.sendFile(__dirname + "/public/index.html")
})
var dbCtrl = r... |
import { inject as service } from '@ember/service';
import { all } from 'rsvp';
import Route from '@ember/routing/route';
import ResetScrollPositionMixin from 'frontend/mixins/reset-scroll-position';
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
export default Route.extend(... |
Package.describe({
name: 'tap:i18n-db',
summary: 'Internationalization for Meteor Collections',
version: '0.4.3',
git: 'https://github.com/TAPevents/tap-i18n-db'
});
Package.on_use(function (api) {
api.versionsFrom('METEOR@0.9.1');
api.use(["coffeescript", "underscore", "meteor", "jquery", "reactive-dict"... |
app.controller('ErrorsController', ['$scope', '$rootScope', function($scope, $rootScope) {
$scope.loading = false;
$scope.alerts = [];
$rootScope.toggleLoading = function() {
$scope.loading = !$scope.loading;
}
$rootScope.addAlert = function(type, msg) {
$scope.alerts.push({
... |
'use strict';
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]; } } } return target; };
var _createClass = function () { function defi... |
var RATS = require('..')
var tape = require('tape')
var path = require('path')
var rimraf = require('rimraf')
var mkdirp = require('mkdirp')
var collect = require('collect-stream')
tape('range', function (t) {
var dir = path.join('.', 'temp')
mkdirp(dir, function (err) {
t.error(err)
prepare()
})
var r... |
var redis = require("redis"),
util = require('util');
exports.connect = function (req, res) {
client = redis.createClient();
console.log('Working');
client.on("error", function (err) {
console.log("Error " + err);
});
client.set("string key", "string val", redis.print);
client... |
module.exports = {
description: 'Make sure side-effects are passed along destructuring assignments',
options: { name: 'bundle' }
};
|
/*
* Neverwell Moor, a fantasy action RPG
* Copyright (C) 2012 Jason Oster
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any la... |
'use strict';
angular
.module('about')
.run(initAbout);
//------------------------------------------------------------
function initAbout(routingProvider) {
'ngInject';
var states = [
{
name: 'about',
url: '/about',
templateUrl: 'about/about.html'
}
];
routingProvider.addState... |
const app = new Vue({
el: "#app",
data: {
characters: [],
rarity: [],
stats: {
level: {
value: 70,
max: 70,
min: 1,
step: 1,
color: "blue"
},
bs: {
value: 4... |
import $ from 'jquery'
import Translator from './i18n'
let Menu = {
/**
* Menu component
*
* Adds a sidebar menu to the document
*/
init: function (config, Dispatcher) {
this.Dispatcher = Dispatcher
this.t = new Translator($('html').attr('lang'))
this.collapsableUserArea = config.collapsabl... |
var test = require('tap').test,
ws = require('ws'),
wsProxy = require('../');
test("ws-proxy", function (t) {
var server = new ws.Server({ port: 8000 }),
proxy = wsProxy.createServer('ws://localhost:8000');
server.on('connection', function (serverSocket) {
serverSocket.on('message', function (ms... |
'use strict';
angular.module('servers').controller('ServersController', ['$scope','$interval','Server','$modal',
function($scope,$interval,Server,$modal) {
$scope.servers = Server.query();
// Configure Pagination
$scope.currentPage = 1;
$scope.itemsPerPage = 15;
$scope.servers.$promi... |
/* eslint-disable react/no-danger */
import React from 'react';
import PropTypes from 'prop-types';
import addons from '@storybook/addons';
const styles = {
notesPanel: {
margin: 10,
fontFamily: 'Arial',
fontSize: 14,
color: '#444',
width: '100%',
overflow: 'auto',
},
};
export class Notes... |
var LocalStrategy = require('passport-local').Strategy;
var User = require('../userStorage.js');
var bCrypt = require('bcrypt-nodejs');
module.exports = function (passport) {
passport.use('login', new LocalStrategy({
passReqToCallback : true
},
function (req, username, password, d... |
const chokidar = require("chokidar");
const config = require("../config");
const gulp = require("gulp");
const shouldMinify = require("./shouldMinify");
const shouldWatch = require("./shouldWatch");
const stream = require("event-stream");
const streamCopy = require("../tasks/str... |
Informant.BucketList = Backbone.Collection.extend({
model: Informant.BucketModel,
url: function() {
return this.parent.url() + '/buckets';
},
initialize: function(buckets, options) {
this.parent = options.parent;
},
}); |
(function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) {
var pollId = request.pathParams.poll_id;
var pollHelper = new x_snc_polls.PollData_Creator();
// Validate if poll record exists
var pollRecord = new GlideRecordSecure("x_snc_polls_poll");
pollRecord.get(pollId);
if (!pollRecord.isVal... |
/*Javascript function to block Submit if Grand Total And Grand Total of individual is notch matched*/
function modify_barga_compensation(){
document.getElementById('Land017').value
}
function calculate_plot_barga_compensation(countOwners)
{
if(document.getElementById('Land0BargaPercentage').value == '')
{
... |
'use strict';
function HomeController() {
}
app.controller('HomeController', HomeController);
|
'use strict';
angular.module('angularCharlaApp')
.controller('MainCtrl', function ($scope) {
$scope.slide = 0;
});
|
/* jshint newcap:false */
/* global require, exports */
var _util = require('./util'),
_controls = require('./controls'),
ControlsMixin = _controls.ControlsMixin,
extend = _util.extend,
Class = _util.Class;
var Toolbar = Class(Object, {
defaults: {
classPrefix: '',
fontAwesomeEnab... |
// # Oscillator
import { createAudioNode } from "../synth"
/**
* Create an Oscillator
* A oscillator is always started
*/
export default function Osc (ac, state, start = true) {
const osc = createAudioNode(ac, "Oscillator", Osc.params)
if (start) osc.start(+start)
return osc
}
Osc.params = ["type", "frequency... |
/**
* Unit tests for HeadlightEntities
*
* @license MIT
*
* @author Jason Hillier <jason@paviasystems.com>
*/
var Chai = require("chai");
var Expect = Chai.expect;
var Assert = Chai.assert;
var fs = require('fs');
var _MockSettings = (
{
Product: 'PaviaUtility',
ProductVersion: '0.0.1'
});
var _Fable = re... |
'use strict';
require('../../../TestHelper');
/* global bootstrapDiagram, inject */
var changeSupportModule = require('../../../../lib/features/modeling'),
coreModule = require('../../../../lib/core');
describe('features/change-support', function() {
beforeEach(bootstrapDiagram({
modules: [
coreM... |
/**
* @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... |
/**
* 如果要全局使用,可以导入本文件
*/
import DoveMX_UIDataInfo from './ui-data-info.vue'
import DoveMX_UIPropertyEditor from './ui-property-editor.vue'
import DoveMX_UIPropertyEditorItem from './ui-property-editor-item.vue'
import { DataInformation, DataCategory, DataItem } from './def-data'
import { PropertyItem } from './def-... |
(function() {
'use strict';
angular
.module('webHipsterApp')
.factory('Editora', Editora);
Editora.$inject = ['$resource'];
function Editora ($resource) {
var resourceUrl = 'api/editoras/:id';
return $resource(resourceUrl, {}, {
'query': { method: 'GET', i... |
var merge = require('webpack-merge')
var prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"/api"',
})
|
require("./index.css");
require("./default.css");
var Keys = require("./Keys");
var operator = require("./operator");
$(function () {
hljs.initHighlightingOnLoad();
var context;
$("#content").keydown(function (e) {
var keyCode = e.keyCode || e.which;
var tabType = $("input[name=tabType]... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z" />
, 'Tab');
|
var Address6 = require("ip-address").Address6;
var Crypto = require("crypto");
var ffmpeg = require("fluent-ffmpeg");
var FS = require("q-io/fs");
var FSSync = require("fs");
var Path = require("path");
var promisify = require("promisify-node");
var Util = require("util");
var UUID = require("uuid");
var Captcha = req... |
version https://git-lfs.github.com/spec/v1
oid sha256:186c2838e80069cab8ed50ace0bb4fa723bce6f284dc0516255acee53769ac9d
size 1618
|
var simplifyJS = require('simplify-js');
import cleanCoords from '@turf/clean-coords';
import clone from '@turf/clone';
import { geomEach } from '@turf/meta';
import { isObject } from '@turf/helpers';
/**
* Takes a {@link GeoJSON} object and returns a simplified version. Internally uses
* [simplify-js](http://mourne... |
var _ = require('underscore')
, winston = require('winston')
, colors = require('colors')
, util = require('util');
var Parsley = (function() {
var TaskMessage = function(task, args) {
var name = task.fn.name;
};
var Task = function Task(fn) {
this.fn = fn;
this._makeLogger();
this.logger... |
/**
* Copyright (c) 2012 Andreas Madsen
* MIT License
*/
(function () {
"use strict";
var path = require('path');
var fs = require('fs');
// fs exists
exports.existsSync = fs.existsSync || path.existsSync;
exports.exists = fs.exists || path.exists;
// get test folders
exports.root = path.join(pat... |
export { default } from 'dsember-core/locales/en/translations';
|
version https://git-lfs.github.com/spec/v1
oid sha256:ff60f00274f43ec516fa71240f6b8be4e5a732e2578ef9cafbfc9c0e5c9a479d
size 4237
|
describe("DialogDirective", function() {
var dialogService, actions, scope, linkFunction, onVisibleCallback;
beforeEach(function() {
scope = {
$broadcast: jasmine.createSpy("scope.$broadcast()"),
$eval: sinon.stub()
};
scope.$eval.withArgs("test-map").returns("test-events");
dialogServi... |
Package.describe({
name: 'peerlibrary:url-utils',
summary: "URL normalization utils",
version: '0.4.0_3',
git: 'https://github.com/peerlibrary/meteor-url-utils.git'
});
Npm.depends({
'node-url-utils': '0.4.0'
});
Package.on_use(function (api) {
api.versionsFrom('METEOR@1.0.3.1');
// 3rd party dependenc... |
import db from '../';
import fs from 'fs';
const testDbFile = './test.json';
function cleanupTestDb() {
try {
fs.unlinkSync(testDbFile);
} catch(e) {
// do nothing
}
}
describe('database interface', () => {
beforeEach(cleanupTestDb);
afterEach(cleanupTestDb);
it('fails if not... |
function findLongestWord(str) {
var wordArray = str.toLowerCase().split(/\s/);
var longestWord = wordArray[0].length;
for( i=1; i<wordArray.length; i++ ) {
var currentWord = wordArray[i].length;
if( currentWord > longestWord ) {
longestWord = currentWord;
}
}
... |
'use babel';
import { CompositeDisposable } from 'atom';
import Docker from 'dockerode';
import Crypto from 'crypto';
import FP from 'find-free-port';
import * as os from 'os';
export default {
subscriptions: null,
servers: {},
// mapping between container paths and ports
containerPorts: {},
imageTag: 'dld... |
'use strict';
/**
* This object contains all the handlers to use for this provider
*/
var rarity = require('rarity');
var async = require('async');
var CancelError = require('anyfetch-provider').CancelError;
var Evernote = require('evernote').Evernote;
var config = require('../config/configuration.js');
var client =... |
'use strict';
import http from 'http';
import https from 'https';
import path from 'path';
import bodyParser from 'body-parser';
import cookieParser from 'cookie-parser';
import BaseFrameworkStrategy from '../BaseFrameworkStrategy/BaseFrameworkStrategy';
import express from 'express';
class ExpressFrameworkStrategy e... |
(function(){
var fnHT = {};
window.onmessage=function(e){
var data = e.data;
//console.log("on messge:", e);
var name = $XP(data, "name");
if (name in fnHT)
fnHT[name](data.message);
};
//window.addEventListener("message", onmessage, false );
IX.ns("IXW");
IXW.listenOnMessage = function(name, fn){
fnHT[name] ... |
global.Utilities = require('./mocks/Utilities');
import Util from '../lib/Util';
import Timer from '../lib/Timer';
import TriggerService from '../lib/TriggerService';
import Properties from '../lib/Properties';
import Constants from '../lib/Constants';
import Logging from '../lib/Logging';
const userProperties = requir... |
define(["react"], function(React){
return React.createClass({
render: function(){
var timerDiv = this.props.timed === "true" ? <h4 id="timer"></h4> : "";
var controllerButtons = this.props.showControllerSelection === "true" ?
<div className="row" style={{disp... |
// All code points in the `Greek` script as per Unicode v5.2.0:
[
0x370,
0x371,
0x372,
0x373,
0x375,
0x376,
0x377,
0x37A,
0x37B,
0x37C,
0x37D,
0x384,
0x386,
0x388,
0x389,
0x38A,
0x38C,
0x38E,
0x38F,
0x390,
0x391,
0x392,
0x393,
0x394,
0x395,
0x396,
0x397,
0x398,
0x399,
0x39A,
0x39B,
0x39C... |
var DateSpan = function (start, end) {
var start_array = start.split('-');
this.start_month = start_array[0];
this.start_day = start_array[1];
var end_array = end.split('-');
this.end_month = end_array[0];
this.end_day = end_array[1];
};
module.exports = DateSpan;
|
"use strict";
var inherits = require('util').inherits;
var Validator = require('./core/validator');
var On = function (matchValidator, validator) {
this.matchValidator = matchValidator;
this.validator = validator;
};
On.prototype.matches = function (ctx) {
ctx.setNoError(true);
var matches = this.matchValidator.... |
var gulp = require('gulp'),
shell = require('gulp-shell'),
download = require('gulp-download'),
fs = require('fs');
gulp.task('download-jxcore-cordova', function (callback) {
if (fs.existsSync('./io.jxcore.node')) {
callback();
} else {
var url = 'https://github.com/jxcore/... |
describe("Release Process Controller", function () {
var sut, mocks, logger;
var $q, $rootScope;
beforeEach(function () {
module("app", function ($provide) { $provide.value("authService", {}) });
mocks = {
common: {
logger: jasmine.createSpyObj("logger", ["getLo... |
/**
* ldb.js - database backend for bcoin
* Copyright (c) 2014-2015, Fedor Indutny (MIT License)
* Copyright (c) 2014-2017, Christopher Jeffrey (MIT License).
* https://github.com/bcoin-org/bcoin
*/
'use strict';
var assert = require('assert');
var LowlevelUp = require('./lowlevelup');
var util = require('../uti... |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { Router, hashHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import injectTapEventPlugin from 'react-tap-event-plugin'
import { webFrame } from 'electron'
import routes fr... |
import RouterModel from '../components/router'
import Router from '../components/router/viewable'
export default function create ({provider}) {
const routerModel = RouterModel({provider})
return Router({model: routerModel})
}
|
import Vue from 'vue'
import DarkMixin from '../../mixins/dark.js'
import TagMixin from '../../mixins/tag.js'
import ListenersMixin from '../../mixins/listeners.js'
import { slot } from '../../utils/slot.js'
export const skeletonTypes = [
'text', 'rect', 'circle',
'QBtn', 'QBadge', 'QChip', 'QToolbar',
'QCheck... |
/**
* Copyright 2013-2014 Facebook, Inc.
*
* 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 agree... |
define([
'../../util/Class',
'../../util/BaseEvented'
], function (Class, BaseEvented) {
/**
*
* @class com.sesamtv.core.abstract.plugin.BaseModel
* @copyright Copyright (c) 2013, SesamTV. All rights reserved.
* > Important notice: This software is the sole property of SesamTV
* > a... |
'use strict';
var test = require('selenium-webdriver/testing'),
By = require('selenium-webdriver').By,
expect = require('chai').expect,
_ = require('underscore'),
moment = require('moment'),
Promise = req... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
var lib = require('../lib');
var ipports = require('../ipports.json');
var update_index = 0;
exports.update = function () {
var ipport = ipports[update_index % ipports.length];
if (lib.external_address !== ipport.address || this.port !== ipport.port) {
var message = new Buffer(JSON.stringify({
... |
'use strict';
let Dispatcher = require('flux').Dispatcher;
let assign = require('object-assign');
let AppDispatcher = assign(new Dispatcher(), {
/**
* @param {object} action The details of the action, including the action's
* type and additional data coming from the source.
*/
handleAction (action) {
... |
export const SERVER_ERROR = 'SERVER_ERROR'
export const UNAUTHENTICATED = 'UNAUTHENTICATED'
export const WHO_AM_I = 'WHO_AM_I'
export const HOME = 'HOME'
export const DISCUSSIONS = 'DISCUSSIONS'
export const DIRECT = 'DIRECT'
export const GET_USER_FEED = 'GET_USER_FEED'
export const SHOW_MORE_COMMENTS = 'SHOW_MORE_COMM... |
var
Database =require('./Database'),
HttpServer =require('./HttpServer')
module.exports=GameServer
function GameServer(
configurationVersion,
configuration,
callback
){
this.database=new Database
this.database.connect(err=>{
var countdownToCallback=2
... |
class Column extends Element{
constructor(tag){
super(tag);
}
column(...args){
return this;
}
count(...args){
this._setArguments(args);
this._stack.push('columnCount');
this._apply();
return this;
}
fill(...args){
this._setArguments(args);
this._stack.push('columnFill');
... |
// modules =================================================
var express = require('express');
var app = express();
var methodOverride = require('method-override');
var winston = require('winston');
// configuration ===========================================
// config files
//var db = require(... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
/*
* Copyright (c) 2006-2007 Erin Catto http:
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commer... |
'use strict';
angular
.module('fli.look')
.controller('look.content.facebook.user.ctrl',
function ($routeParams, $q, $scope, api, url, facebook) {
var vm = this;
vm.img = facebook.img;
function _getId(_url) {
var _id = url.extract('*/app_scoped_user_id/:id(/)', _url).id;
if (_id) {
... |
/*
* /MathJax-v2/localization/tr/TeX.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/license... |
var crypto = require('crypto');
var shortId = require('shortid');
module.exports = {
// Idenitity is a unique name for this model
identity: 'sessions',
connection: 'authentication',
types: {
stamp: function (time) {
return time.opened && time.expires
}
},
attributes: {
sessionID: {
... |
/**
* ### Utilities library
*
* All functions that are not related to a specific logic and that can be
* reused across modules
*
* @module Library/Utilities
*/
"use strict";
const path = require("path");
const {
curry,
get,
isFunction
} = require("lodash/fp");
const BPromise = require("bluebird");
... |
(function(){
var self = this;
//avalon control space
var items_ctrl = avalon.define({
$id: 'expo_list_ctrl',
list:[],
sort: 0,
get_pic_path: function(path){
return upload_img+path;
},
... |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var browserSync = require('browser-sync');
var browserSyncSpa = require('browser-sync-spa');
var util = require('util');
var proxyMiddleware = require('http-proxy-middleware');
function browserSyncInit(baseDir, brow... |
var keystone = require('keystone'),
Types = keystone.Field.Types;
/**
* ProductBitrate Model
*/
var ProductBitrate = new keystone.List('ProductBitrate', {
label: 'Bitrate',
sortable: true
});
/**
* ProductBitrate Schema
*/
ProductBitrate.add({
mageId: { type: Types.Number },
name: { type: Types.Text, requ... |
import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './MysqlPlainWordmark.svg'
/** MysqlPlainWordmark */
function MysqlPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'MysqlPlainWor... |
System.register(['@angular/core', './file.service', './autoEllipses.pipe', './fileContentToHtml.pipe'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = argume... |
/*
* SignUpPageReducer
*
* The reducer takes care of our data. Using actions, we can change our
* application state.
* To add a new action, add it to the switch statement in the reducer function
*
* Example:
* case YOUR_ACTION_CONSTANT:
* return state.set('yourStateVariable', true);
*/
import {
LOGIN_REQ... |
module.exports = { prefix: 'fal', iconName: 'chevron-down', icon: [448, 512, [], "f078", "M443.5 162.6l-7.1-7.1c-4.7-4.7-12.3-4.7-17 0L224 351 28.5 155.5c-4.7-4.7-12.3-4.7-17 0l-7.1 7.1c-4.7 4.7-4.7 12.3 0 17l211 211.1c4.7 4.7 12.3 4.7 17 0l211-211.1c4.8-4.7 4.8-12.3.1-17z"] }; |
var Thunder = {};
Thunder.VERSION = "1.0.9";
Thunder.DEBUG = false;
Thunder.ID = 0; //Global used for instance names
Thunder.VERTICAL = 0;
Thunder.HORIZONTAL = 1;
//get Thunder's root directory
var scripts = document.getElementsByTagName("script");
var i = scripts.length;
while(i--){
var match = scripts[i].src.match... |
(function() {
var Lexer, RESERVED, compile, fs, lexer, parser, path, vm, _ref;
fs = require('fs');
path = require('path');
vm = require('vm');
_ref = require('./lexer'), Lexer = _ref.Lexer, RESERVED = _ref.RESERVED;
parser = require('./parser').parser;
if (require.extensions) {
require.extensions['.co... |
/*
* Timeglider for Javascript / jQuery
* http://timeglider.com/jquery
*
* Copyright 2011, Mnemograph LLC
* Licensed under Timeglider Dual License
* http://timeglider.com/jquery/?p=license
*
/*
* DEPENDENCIES:
rafael.js
ba-tinyPubSub
... |
// ActivityPanel : Area for the display of the learner welcome and status messages
(function (window, HYBRoot) {
HYBRoot.ActivityPanel = HYBRoot.ActivityPanel || {};
if (HYBRoot.ActivityPanel.moduleName) { return; }
var HYBModule = HYBRoot.ActivityPanel;
HYBModule.moduleName = "Activity Panel";
... |
var page = require('webpage').create();
var url;
if (phantom.args) {
url = phantom.args[0];
} else {
url = require('system').args[1];
}
page.onConsoleMessage = function (message) {
console.log(message);
};
function exit(code) {
setTimeout(function(){ phantom.exit(code); }, 0);
phantom.onError = function(){... |
'use strict'
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const ProgressBarPlugin = require('progress-bar-webpack-plugin')
const AssetsPlugin = require('assets-webpack-plugin')
const webpack_base = require('./webpack.base')
const config = require('./config')
webpa... |
#!/usr/bin/env node
require("./proof")(1, function (step, relatable, resetManufacturer, deepEqual) {
step(function () {
resetManufacturer(step());
}, function () {
relatable.select(__dirname, "sourced.sql", { manufacturerId: 1 }, step());
}, function (results) {
deepEqual(
[ { id: 1,
... |
(function() {
'use strict';
angular
.module('jamesAuth')
.factory('authService', [
'$http',
'$cookies',
'$state',
authService
]);
function authService($http, $cookies, $state) {
var authService = {
login: login,
... |
var assert = require('assert-plus');
var mapHelper = require('./../../mapHelper');
var VIN_VALUE_MAP_FIELD = 'vin.value';
var exports = {};
exports.resolve = function (map/*, options*/) {
assert.object(map, 'map');
};
exports.VIN_VALUE_MAP_FIELD = VIN_VALUE_MAP_FIELD;
module.exports = exports; |
import $ from 'jquery';
import { clearStyles } from '../util';
export default function () {
let jews = {};
var titleData = $('#titlebox');
jews.title = $('h1', titleData).text();
jews.subtitle = (function () {
var h3 = $('h3', titleData).text();
var h2 = $('h2', titleData).text();
... |
/**
* Created by David on 14. 5. 2016.
*/
var meesages = [
{ 'text': "I'M BOREDDDDDD" },
{ 'text': 'definan orgullo #JB22 https://t.co/he76TC3D0m' },
{ 'text': 'Chocolate croissant, hot chocolate n a spinach mushroom goat cheese frittata to kill the chocolate over dose!... https://t.co/HElGJj5qqH' },
{ 'text': "My W... |
var moment = require('moment');
var FixDate = moment('2014-12-11 21:24:10.292');
console.log(FixDate.format());
console.log(FixDate.format('dddd, MMMM Do YYYY, h:mm:ss a'));
console.log(FixDate.format('ddd, hA'));
console.log(FixDate.locale('zh-tw').format('YYYY/MMM/DD ddd, A h:mm:ssZ '));
|
(function () {
'use strict';
/* global AppConfig */
/**
* @module pagarMe
*/
AppConfig.registerModule('pagarMe');
})(); |
import gulp from 'gulp';
import plugins from 'gulp-load-plugins';
import browser from 'browser-sync';
import rimraf from 'rimraf';
import panini from 'panini';
import yargs from 'yargs';
import lazypipe from 'lazypipe';
import inky from 'inky';
import fs from 'fs';
import siphon from 'siphon-me... |
var WebDriverMultiTaskDecorator = require('../lib/plugins/taskDecorator/multi');
var sinon = require('sinon');
var expect = require('chai').expect;
beforeEach(function () {
this.sandbox = sinon.sandbox.create();
});
afterEach(function () {
this.sandbox.restore();
});
describe('Preceptor-WebDriver', function () {
... |
/* -----------------------------------------------
/* Author : Vincent Garreau - vincentgarreau.com
/* MIT license: http://opensource.org/licenses/MIT
/* Demo / Generator : vincentgarreau.com/particles.js
/* GitHub : github.com/VincentGarreau/particles.js
/* How to use? : Check the GitHub README
/* v2.0.0
/* ---------... |
var mongojs = require('mongojs');
const vm = require('vm');
var path = require('path');
var mongoquery = require("../app/mongo-query.js");
var collection = require("../app/collection.js");
const MP = require("../config/const.js");
var exports = module.exports = {};
// loop for synchronous nodes and export node... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.