code stringlengths 2 1.05M |
|---|
"use strict";
var crypto = require("crypto");
var util = require("util");
var EventEmitter = require("events").EventEmitter;
var router = require("easy-router");
var webSocketCollector = [];
router.setMap("wsindex", "websocket/client.html");
function WebSocket(socket) {
this.state = "OPEN";
this.pingTimes = 0... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var pinterestP = exports.pinterestP = { "viewBox": "0 0 1280 1792", "children": [{ "name": "path", "attribs": { "d": "M0 597q0-108 37.5-203.5t103.5-166.5 152-123 185-78 202-26q158 0 294 66.5t221 193.5 85 287q0 96-19 188t-60 177-100 149.5-14... |
'use strict';
/* jshint ignore:start */
var expect = require('expect.js');
/* jshint ignore:end */
var Qty = require('../../qty');
describe('Charge' , function () {
it('should evaluate empty input as 0 coulomb', function () {
var zero = Qty.Charge();
expect(zero.value()).to.be(0);
expect(... |
var expect = require("chai").expect;
var tools = require("../lib/tools");
describe("Tools", function(){
describe("printName()", function() {
it("should print the last name first", function() {
var results = tools.printName({ first: "Alex", last: "Banks"});
expect(results).to.equal("Banks, Alex");
});
}... |
//= require jquery
//= require jquery_ujs
//= require jquery-ui
// Required by Blacklight
//= require blacklight/blacklight
//= require nyulibraries_javascripts/nyulibraries
//= require_tree .
|
/**
* @class Ext.ux.TreeCheckNodeUI
* @extends Ext.tree.TreeNodeUI
*
* 对 Ext.tree.TreeNodeUI 进行checkbox功能的扩展,后台返回的结点信息不用非要包含checked属性
*
* 扩展的功能点有:
* 一、支持只对树的叶子进行选择
* 只有当返回的树结点属性leaf = true 时,结点才有checkbox可选
* 使用时,只需在声明树时,加上属性 onlyLeafCheckable: true 既可,默认是false
*
* 二、支持对树的单选
* 只允许选择一个结点
* 使用时,只需... |
// Very small wrapper for getting a data URL
var DataWrapper = function () {
return {
get: function (file) {
return chrome.extension.getURL(file);
}
};
};
if(!xt) var xt = {};
xt.data = DataWrapper(); |
import React, { Component } from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
import MobileSidebar from '../sidebar/MobileSidebar';
import MobileToolbarBtn from './MobileToolbarBtn';
export default class MobileToolbarFull extends Component {
shouldComponentUpdate = shouldPureComponent... |
var expect = require("chai").expect;
module.exports = function (helpers) {
var component = helpers.mount(require.resolve("./index"), {});
var els = component.getEls("colorListItems");
expect(els.length).to.equal(3);
expect(els[0].innerHTML).to.equal("red");
expect(els[1].innerHTML).to.equal("green");
expec... |
/** A ChangesetDownloader downloads, parses, and stores the contents of a changeset.*/
var zlib = require('zlib'),
request = require('request'),
N3 = require('n3');
function ChangesetDownloader(options) {
}
ChangesetDownloader.prototype._parseFileFillTriples = function(input) {
input.triples = [];
va... |
var fs = require('fs');
var path = require('path');
var async = require('async');
var connection = require('./connection.js');
var data = JSON.parse(fs.readFileSync(path.join(__dirname, 'database.json'), 'utf8'));
module.exports = exports = {
data: data,
setUp: function (cb) {
var docs = data;
if (docs && d... |
import React, {Component} from 'react'
import Header from '../Common/Header'
import {View, StyleSheet, ScrollView} from 'react-native'
import {Actions} from 'react-native-router-flux'
import * as Theme from '../../Theme'
import Button from '../Common/Button'
import MarkerView from '../Common/MarkerView'
import PropType... |
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* Route to handle root element: return uri's for available resources & note on authentication */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
'use strict';
l... |
'use strict';
// Use Applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('channels');
|
export const TRIP_QUERY_FROM = `FROM "Trip" t, "CheckIn" ci, "CheckIn" fci, "CheckIn" lci`;
export const TRIP_QUERY_WHERE = `
AND ci."userId" = t."userId"
AND fci.id = t."firstCheckInId"
AND lci.id = t."lastCheckInId"
AND ci."createdAt" BETWEEN fci."createdAt" AND lci."createdAt"
`;
export const OPEN_TRIP_QUER... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactHtml5Video"] =... |
module.exports = {
test: val => val && typeof val === 'object',
print: val => JSON.stringify(val, null, 2),
};
|
const gear = require('../../gearbox.js');
const fs = require('fs');
const request = require('request');
const download = async function(uri, filename, callback){
request.head(uri, async function(err, res, body){
console.log('content-type:', res.headers['content-type']);
console.log('content-length:', res.hea... |
import Icon from '../components/Icon.vue'
Icon.register({
'hand-point-left': {
width: 512,
height: 512,
paths: [
{
d: 'M44.8 155.8h149.2c-5.8-8.2-10.6-16.6-14.2-24.9-13.6-31.8 9.9-66.9 44.1-66.9 18.6 0 32.2 10.9 40 29.1 12.1 28.3 78.6 64.3 107.5 77.3 17.9 8 28.5 25.5 28.5 43.8l0 0v171.5c0 1... |
Template.registerHelper('pages', function(kw) {
var options = (kw && kw.hash) || {};
return scorpius.pages.collection.find(options);
});
ReactiveTemplates.helpers('pages.index', {
tabularTable: function() {
return scorpius.pages.tabular;
},
});
/**
* Create Route
*/
ReactiveTemplates.onRendered('pages.c... |
import Vue from 'vue'
import CAvatar from 'components/c-avatar'
describe('avatar.vue', () => {
let el
let vm
beforeEach(() => {
el = document.createElement('div')
document.body.appendChild(el)
})
afterEach(() => {
// document.body.removeChild(el)
vm.$destroy()
})
it('should render corr... |
/**
* @author v.lugovsky
* created on 16.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.tables')
.controller('TablesPageCtrl', TablesPageCtrl);
/** @ngInject */
function TablesPageCtrl($scope, $filter, editableOptions, editableThemes) {
$scope.smartTablePag... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'find', 'en-au', {
find: 'Find',
findOptions: 'Find Options',
findWhat: 'Find what:',
matchCase: 'Match case',
matchCyclic: 'Match cyclic',
matc... |
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
// Load all gulp plugins automatically
// and attach them to the `plugins` object
var plugins = require('gulp-load-plugins')();
// Temporary solution until gulp 4
// https://github.com/gulpjs/gulp/issues/355
var runSequence = require('ru... |
$(document).ready(function() {
// Adjust the width of images to fill the
// maximum space available
$('.post-content-uber p').each(function(i){ // For each paragraph
if ( ($(this).find('img').length) && // If there's an image
(!$.trim($(this).text()).length)) // and there's no text
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = maAddressColumn;
function maAddressColumn() {
return {
restrict: 'E',
scope: {
entry: '=',
field: '&',
value: '&'
},
link: function link(scope) {
... |
version https://git-lfs.github.com/spec/v1
oid sha256:0046626ac81a629a20efcfe5eff9fd48f9e889f2b19e37af8bb4214f8942e15f
size 15239
|
var searchData=
[
['sendmsg',['sendMsg',['../class_connection.html#a4b9f6db1fb42fc9857f829fa0bc52e6e',1,'Connection']]],
['setbackground',['setBackground',['../class_graph_viewer.html#a02437b5fecd8b90de24436068312d593',1,'GraphViewer']]],
['setedgecolor',['setEdgeColor',['../class_graph_viewer.html#a07ccc96707efa... |
var Promise = require('../promise.js');
module.exports = {
deferred: function () {
var deferred = {};
deferred.promise = new Promise(function (resolve, reject) {
deferred.resolve = resolve;
deferred.reject = reject;
});
return deferred;
},
resolved:... |
'use strict';
angular.module('tvApp')
.config(function ($stateProvider) {
$stateProvider
.state('main', {
url: '/',
templateUrl: 'app/main/main.html',
controller: 'MainCtrl'
});
}); |
var path = require('path');
var url = require("url");
var siteConfig = require("./configs/siteConfig");
function route(req, res, next) {
var pathinfo = url.parse(req.url).pathname.split("/");
var ctrlname = pathinfo[1] == '' ? siteConfig.defaultCtrl : pathinfo[1];
var action = typeof(pathinfo[2]) == 'undefi... |
define (
[
],
function (createjs) {
// Convert all displayobject.mask shapes with alphafilters
var AlphaMaskFilter = function (createjs) {
var alphaMaskFilter = this;
this.createjs = createjs;
Object.defineProperty (
createjs.DisplayObject.prototype,
'mask',
{
'get' : function () {
... |
/**
@module ember-data
*/
import Ember from 'ember';
var get = Ember.get;
/**
An adapter is an object that receives requests from a store and
translates them into the appropriate action to take against your
persistence layer. The persistence layer is usually an HTTP API, but
may be anything, such as the bro... |
'use strict';
const assert = require('assert');
const del = require('del');
const extrakt = require('extrakt');
const mkdirp = require('make-dir');
const path = require('path');
const pathExists = require('path-exists');
const parseFilesize = require('filesize-parser');
const ... |
import React, { Component } from 'react';
import DataParser from '../../src/DataParser';
// import MultiCheckbox from '../components/MultiCheckbox';
import ParseInput from '../components/ParseInput';
import DefaultValidator from '../../src/validators/DefaultValidator';
import BooleanParserModule from '../../src/modul... |
/// <reference path="../../../Graphics/ImageSource.ts" />
/// <reference path="../../IMapLoader.ts" />
/// <reference path="../../IMapLoadedResult.ts" />
/// <reference path="../../IMapPreloadInfo.ts" />
/// <reference path="../../IHookFunction.ts" />
/// <reference path="../../../Graphics/TileMaps/SquareTileMap.ts" />... |
/*
* Copyright 2011-2012 the original author or authors.
*
* 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 app... |
import assert from 'assert'
import twkb from '../src/twkb'
import { POINT, LINESTRING, POLYGON, MULTIPOINT, MULTILINESTRING, MULTIPOLYGON, COLLECTION } from '../src/constants'
describe('twkb', function () {
describe('toGeoJSON', function () {
it('should decode point to geojson', function () {
var g = tw... |
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 Cesium Contributors
*
* 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/l... |
// Ion.RangeSlider | version 2.1.6 | https://github.com/IonDen/ion.rangeSlider
;(function(f){"function"===typeof define&&define.amd?define(["jquery"],function(p){return f(p,document,window,navigator)}):"object"===typeof exports?f(require("jquery"),document,window,navigator):f(jQuery,document,window,navigator)})(functio... |
module.exports = function (grunt) {
/** LOAD Tasks **/
grunt.loadNpmTasks('grunt-replace');
grunt.loadNpmTasks('grunt-bower-cli');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-watch'... |
'use strict';
class Credits {
create() {
this.game.stage.backgroundColor = '#FFF';
var tmpCreditsText = this.game.cache.getImage('credits_text');
var credits_text = this.game.add.sprite(
(this.game.width - tmpCreditsText.width) / 2,
this.game.height * 0.2,
... |
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { Text, View } from 'react-native'
import * as d3Scale from 'd3-scale'
import * as array from 'd3-array'
import Svg, { G, Text as SVGText } from 'react-native-svg'
class XAxis extends PureComponent {
state = {
width: 0,
... |
var React = require('react');
var PropTypes = React.PropTypes;
function Main (props) {
return (
<div className="main-container">
{props.children}
</div>
);
}
module.exports = Main;
|
const webpack = require('webpack');
const postcssBasePlugins = [
// require('postcss-modules-local-by-default'),
require('postcss-import')({
addDependencyTo: webpack,
}),
require('postcss-cssnext')({
browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 8'],
}),
];
const postc... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.10.1-master-76bc8b9
*/
!function(t,n,i){"use strict";n.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$animate","$rootElement","$window","$log","$$rAF","$document",function(t,n,i,... |
export class RoomDeleted {
constructor(room) {
this.room = room;
}
} |
(function(angular){
angular.module('app')
.controller('PlayerCtrl',
['$scope', '$game', '$socket', '$location',
function ($scope, $game, $socket, $location) {
$scope.$game = $game;
$scope.move = $game.move;
$scope.color = 'g... |
var types = Ext.data.Types;
Ext.define('MilestoneTreeModel', {
extend: 'Ext.data.TreeModel',
fields: [
{name: 'FormattedID', mapping: 'FormattedID', type: types.STRING},
{name: 'Name', mapping: 'Name', type: types.STRING},
{name: 'TargetDate', mapping: 'AcceptedDate', t... |
/**
* A small exercise in parallax scrolling.
* Pleas look at http://en.wikipedia.org/wiki/Parallax_scrolling for more information on the topic.
* Wikipedia is also the source for the images used here.
*/
window.onload = (function() {
var WIDTH = 640, HEIGHT = 480;
var IMG_GROUND = "../img/Ground_front_laye... |
var I = [
[
[0, 0, 0, 0],
[1, 1, 1, 1],
[0, 0, 0, 0],
[0, 0, 0, 0],
],
[
[0, 0, 1, 0],
[0, 0, 1, 0],
[0, 0, 1, 0],
[0, 0, 1, 0],
],
[
[0, 0, 0, 0],
[0, 0, 0, 0],
[1, 1, 1, 1],
[0, 0, 0, 0],
],
[
[0, 1, 0, 0],
[0, 1, 0, 0],
[0, 1, 0, 0],
[0, 1, 0, 0],
]
];
var J = [
[
[1, 0, 0... |
var request = require('request-promise');
var errors = require('request-promise/errors');
var Hashids = require('hashids');
var _ = require('lodash');
var api = function (config) {
var self = this;
self.api_url = config.api;
self.api_key = config.api_key;
self.secret = config.secret;
var hashi... |
import React, {Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import {storiesOf} from '@kadira/storybook';
import style from './Storybook.scss';
import {SortableContainer, SortableElement, SortableHandle, arrayMove} from '../index';
import {defaultFlexTableRowRenderer, FlexColumn, FlexTable, Virt... |
import React from 'react'
import {View, TouchableOpacity, Text, StyleSheet, ScrollView, Dimensions} from 'react-native'
import {connect} from 'react-redux'
import Button from '../../components/controls/Button'
import * as layoutActions from '../../actions/layoutActions'
import * as LoginActions from '../../actions/logi... |
import React from 'react'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
import { config } from 'config'
import { prefixLink } from 'gatsby-helpers'
export default class Index extends React.Component {
render() {
return (
<div>
<Helmet title={config.siteTitle + ' | contact'}... |
'use strict';
var execFileSync = require('child_process').execFileSync;
var sizeOf = require('image-size');
var mkdirp = require('mkdirp')
var rimraf = require('rimraf-then');
var fs = require('fs');
var path = require('path');
function tileLevel(inPath, outPath, zoom, tileSize, pattern, quality) {
var dotExtensio... |
'use strict';
var self = put;
module.exports = self;
var async = require('async');
var _ = require('underscore');
function put(req, res) {
var bag = {
inputParams: req.params,
reqBody: req.body,
resBody: {}
};
bag.who = util.format('systemMachineImages|%s', self.name);
logger.info(bag.who, 'Star... |
/**
* index.js - delish
*
* Licened under MIT license.
* Copyright (C) 2017 Karim Alibhai.
*/
require('babel-register')
require('./lib/env')
const http = require('./lib').default
http.listen(process.env.PORT || 8080, () =>
console.log('Listening :%s', http.address().port)
) |
// All code points with the `Grapheme_Extend` derived core property as per Unicode v5.2.0:
[
0x300,
0x301,
0x302,
0x303,
0x304,
0x305,
0x306,
0x307,
0x308,
0x309,
0x30A,
0x30B,
0x30C,
0x30D,
0x30E,
0x30F,
0x310,
0x311,
0x312,
0x313,
0x314,
0x315,
0x316,
0x317,
0x318,
0x319,
0x31A,
0x31B,
0x... |
import React, { useState } from 'react'
import Radio from '../index'
import {
customDatas,
} from './data'
const Demo = () => {
const [disable, setDisable] = useState(false)
const [defValue, setDefValue] = useState(1)
const handleValue = (v)=> {
console.log('test data: ', v)
}
const handlesubmit = () ... |
import ApiService from '../../../services/Api'
import { reset } from 'redux-form'
import { fetchHouseholdsComplete } from '../Households/actions'
import { fetchMealsComplete } from '../Meals/actions'
import { showLoading, hideLoading } from 'react-redux-loading-bar'
export const authenticating = () => ({ type: 'AUTHEN... |
var class_yeah_1_1_fw_1_1_html_components_1_1_combo_box_html_component =
[
[ "render", "class_yeah_1_1_fw_1_1_html_components_1_1_combo_box_html_component.html#a8c860bd0c556ae563b3a543aaadb1e82", null ]
]; |
var inquirer = require('../util/Inquirer.js')
, chalk = require ('chalk')
, config = require('./config')
, edit_diary = require('./crud')
, date = require('./convertdate')
, encryption = require('./encryption')
, colors = require ('./writecolor')
, write = colors.current_theme();
var submis... |
import { Services } from 'urbano'
'use strict'
class dflt extends Services {
}
export default dflt
|
var LogoutCtrl = function($scope, $state, AuthService, BungieService) {
AuthService.logout().then(function() {
BungieService.reset();
location.reload();
})
};
angular
.module('app.auth')
.controller('LogoutCtrl', ['$scope', '$state', 'AuthService', 'BungieService', LogoutCtrl]);
|
"use strict";
define(["res", "system-common"], function (res, common) {
var z_init = {
prop: {
数字: 0,
模拟: 0,
焊接: 0,
论文: 0,
声望: 0,
道德: 0,
秩序: 0
},
uid: 0, //unique id
power: 8,
powerMax: 10,
... |
const { argv } = require('yargs')
.option('platform', {
describe: 'The documentation platform.',
type: 'string',
demandOption: true,
})
.option('source', {
describe: 'Relative local build location.',
type: 'string',
demandOption: true,
})
.option('host', {
describe: 'The host to co... |
$('.form').find('input, textarea').on('keyup blur focus', function (e) {
var $this = $(this),
label = $this.prev('label');
if (e.type === 'keyup') {
if ($this.val() === '') {
label.removeClass('active highlight');
} else {
label.addClass('active highlight');
... |
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
// Configurable paths
var config = {
app: 'app'
};
grunt.initConfig({
config: config,
// Watches files for changes and runs tasks based on the changed files
watch: {
... |
fnc.uiControls.panels.wrappanel = (function () {
var panel = fnc.uiControls.panels.panel;
var wrappanel = function (name, publicProperties, privateProperties) {
this.initialize(name, publicProperties, privateProperties);
this.tag = "wrappanel";
}
var placeChildrenInsideWrapPanel = funct... |
var roundtrip = require('../../util/roundtrip')
, assert = require('../../assert/roundtrip');
describe('jsr-rdb (parser)', function() {
it('should load and save 32 bit integer value', function(done) {
roundtrip('integer-32.rdb', assert(done));
});
});
|
'use strict';
const User = require('../models/user');
const Material = require('../models/material');
module.exports = {
users: require('./users')(User),
materials: require('./materials')(Material)
} |
'use strict';
describe('Service: IndexService', function () {
// load the service's module
beforeEach(module('getAgileApp'));
// instantiate service
var IndexService;
beforeEach(inject(function (_IndexService_) {
IndexService = _IndexService_;
}));
it('should do something', function () {
expec... |
/**
* PriorityQueue
* Elements in this queue are sorted according to their value
*
* @author Lukasz Krawczyk <contact@lukaszkrawczyk.eu>
* @copyright MIT
*/
/**
* PriorityQueue class construcotr
* @constructor
*
* @example
* queue: [1,2,3,4]
* priorities: [4,1,2,3]
* > result = [1,4,2,3]
*
* @param {Arra... |
'use strict';
/*
* GET home page.
*/
exports.index = function(req, res){
res.render('index', {
title: 'Express'
});
}; |
/*
* Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
var Blob = require('../blob').Blob;
/**
* Appends file contents onto queue.
*
* @param options {Object} File options or filename.
* @param options.n... |
'use strict'
const pinyin = require('./core')
const patcher56L = require('./patchers/56l')
// Patch dict for icudt56l.dat related env, such as safari|node v4.
if (pinyin.isSupported() && patcher56L.shouldPatch(pinyin.genToken)) {
pinyin.patchDict(patcher56L)
}
module.exports = pinyin
|
var path = require('path');
var fs = require('fs');
var express = require('express');
var app = express();
app.get('/books', function (req, res) {
fs.readFile(process.argv[3], function (err, data) {
if (err) {
throw err;
}
object = JSON.parse(data);
res.send(object);
});
});
app.listen(proce... |
const CALL_API = Symbol('Call API');
export default CALL_API;
|
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import ValueListCell from './ValueListCell';
export default function ClusterFactCheckedByTeamsCell({ projectMedia }) {
const values = projectMedia.cluster.fact_checked_by_team_names;
return (
<ValueLis... |
import { Slingshot } from 'meteor/edgee:slingshot';
Slingshot.fileRestrictions("assets", {
allowedFileTypes: ["image/png", "image/jpeg", "image/gif"],
maxSize: 10 * 1024 * 1024 // 10 MB (use null for unlimited).
});
Slingshot.fileRestrictions("profile", {
allowedFileTypes: ["image/png", "image/jpeg", "image/gif... |
System.register(['angular2/core'], 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 = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwn... |
/*
* WebGLHelper
* 管理WebGL的辅助对象
*/
var WebGLHelper = {
/* 根据ID定位DOM元素 */
$ : function(id){
return typeof id == 'string' ? document.getElementById(id) : id;
},
/* 获取canvas标记的WebGL对象 */
$$ : function(canvas){
if(!(canvas = this.$(canvas))
|| canvas.nodeType != 1
|| canvas.nodeName.toLowerCase(... |
/**
* Created by miralemcebic on 05/02/16.
*/
'use strict';
angular.module('ngsocial.facebook', ['ngRoute', 'ngFacebook'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/facebook', {
templateUrl: 'facebook/facebook.html',
controller: 'FacebookCtrl'
... |
var ajax = require('../lib/Ajax');
module.exports = Ractive.extend({
data: {
value: null,
url: ''
},
fetch: function(cb) {
var self = this;
ajax.request({
url: self.get('url'),
json: true
})
.done(function(result) {
self.set('value', result);
if(cb) {
cb(nul... |
describe('BrowserStack', function() {
describe('Platform', function() {
require('./browserstack/platform/status')
})
})
|
/**
* Isotope v1.5.21
* An exquisite jQuery plugin for magical layouts
* http://isotope.metafizzy.co
*
* Commercial use requires one-time license fee
* http://metafizzy.co/#licenses
*
* Copyright 2012 David DeSandro / Metafizzy
*/
/*jshint asi: true, browser: true, curly: true, eqeqeq: true, forin: false, imm... |
/**
* @author Joe Adams
*/
goog.provide('CloseContact.Systems.ActorSystem');
goog.require('CrunchJS.System');
goog.require('CrunchJS.Components.RenderShape')
/**
* @constructor
* @class
*/
CloseContact.Systems.ActorSystem = function() {
goog.base(this);
};
goog.inherits(CloseContact.Systems.ActorSystem, Crunc... |
/*
Copyright © 2018 Andrew Powell
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
The above copyright notice and this permission notice shall be
included in all ... |
import Ember from 'ember';
import Resolver from 'ember/resolver';
export default Resolver.extend({
customPattern: function(parsedName) {
var name = parsedName.fullNameWithoutType;
var segs = name.split('/');
var postfix = '';
var type = this.pluralize(parsedName.type);
if (parsedName.type === ... |
import isEmpty from 'lodash/isEmpty';
import clone from 'lodash/clone';
import uniqueId from 'lodash/uniqueId';
import isFunction from 'lodash/isFunction';
export default class FormModelPrototype {
constructor(defaultModel, dispatch) {
this._defaultModel = defaultModel;
this._dispatch = dispatch;
... |
import React from 'react';
import PageContainer from '../components/PageContainer';
import { render } from 'react-dom'
import {
AboutUs
} from '../components/FontComponents'
import {
Grid,
Col,
Form,
Input,
Thumbnail,
Image,
Icon,
Button,
Panel,
Modal,
ModalTrigger,
} from 'amazeui-react';
impor... |
require('nodeunit');
var Soteria = require('../lib/soteria.js');
var MockServer = require('./mock_server.js');
var utils = require('./utils.js');
var testServer = new MockServer();
var candidateServer = new MockServer();
var config = require('config');
var candidatePort = config.get("candidate.port");
var originPo... |
athens.alert = (function () {
var messageTypes = {
success: {
glyphicon: 'glyphicon-ok',
bootstrapType: 'success'
},
wait: {
glyphicon: 'glyphicon-time',
bootstrapType: 'info'
},
info: {
glyphicon: 'glyphicon-exclam... |
const JKISS31 = require('../jkiss');
const {newBlock, clearBlock, shuffleInPlace, matrixFloodFill} = require('./util');
// Block properties
// Non-solid: Null color blocks act as air.
// Solid: The block can be swapped with other blocks and air and is displayed displayed by the UI.
// Floating: If a block has air unde... |
'use strict';
/* Filters */
// Nothing change here, at the moment.
var simulationApp = angular.module('simulationApp.filters', []);
simulationApp.filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}]);
|
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
/*!
* engine-assemble <https://github.com/doowb/engine-assemble>
*
* Copyright (c) 2014-2015, Brian Woodward.
* Licensed under the MIT License.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var handlebars = require('..');
var assert = require('assert');
describe('.renderSync()', function ... |
'use strict';
const express = require('express');
const router = express.Router();
const bodyParser = require('body-parser');
const request = require('request');
const models = require('../../db/models');
const config = require('config')['News'];
module.exports.getAll = (req, res) => {
models.User.where({ email: re... |
// Given preorder and inorder traversal of a tree, construct the binary tree.
//
// Note:
// You may assume that duplicates do not exist in the tree.
/**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {number[]} preo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.