code stringlengths 2 1.05M |
|---|
/*
# Agnostic scene composition for Lucidity
*/
'use strict'
const ShaderEffect = require ( './lib/ShaderEffect' )
const RecursiveShader = require ( './lib/RecursiveShader' )
const MixShader = require ( './lib/MixShader' )
const Anaglyph = require ( './lib/Anaglyph' )
const Multipass ... |
(function($){
'use strict';
/**
* get angle
* @param {Object} self - 'this' object
* @param {Object} point
* @return {number}
*/
var get_angle = function(self, point){
var radians = 0
,left = self.circle.center_abs_left - point.left
,top = self.circle.center_abs_top - point.top;
//tan(radians) ... |
"use strict";
var random = require("../core/random");
var MIN_INTEGER = -100000000, MAX_INTEGER = 100000000;
var numberType = function numberType(value) {
var min = typeof value.minimum === 'undefined' ? MIN_INTEGER : value.minimum, max = typeof value.maximum === 'undefined' ? MAX_INTEGER : value.maximum, multipleO... |
var JasmineXMLReporter = {
output_dir: './',
junitreport: false,
filePrefix: 'results',
detect: function(arguments){
arguments.forEach(function (param, i, args) {
var pair = param.split('=');
var name = pair[0];
var value = pair.length > 1 ? pair[1] : '';
... |
const isError = require('iserror')
const allowedMapObjectTypes = [ 'string', 'number', 'boolean' ]
/**
* Convert an object into a structure with types suitable for serializing
* across to native code.
*/
const serializeForNativeLayer = (map, maxDepth = 10, depth = 0, seen = new Set()) => {
seen.add(map)
const ... |
#!/usr/bin/env node
const program = require('commander');
const chalk = require('chalk');
const cloudformation = require('./cloudformation');
const yaml = require('js-yaml');
const log = console.log;
const tools = require('./tools');
const meta = require('../package.json');
let stackFilter;
program
.version(meta.v... |
(function (angular) {
'use strict';
angular.module('jcs-autoValidateWithDirty')
.factory('bootstrap3ElementModifier', [
'$log',
function ($log) {
var reset = function (el) {
angular.forEach(el.find('span'), function (spanEl) {
... |
import { connect } from 'react-redux';
import { increment, doubleAsync } from '../modules/counter';
/* This is a container component. Notice it does not contain any JSX,
nor does it import React. This component is **only** responsible for
wiring in the actions and state necessary to render a presentational
... |
import React from 'react'
import { Dimensions, FlatList, Image } from 'react-native'
import { formatPhotoUri } from '../api/picsum'
export default function PhotoGrid({ photos, numColumns, onEndReached }) {
const { width } = Dimensions.get('window')
const size = width / numColumns
// ...
}
|
import { defineMessages } from 'react-intl';
export default defineMessages({
details: {
id: 'component.city-weather.details',
defaultMessage: 'Details',
},
temperature: {
id: 'component.city-weather.temperature',
defaultMessage: 'Temperature',
},
minTemperature: {
id: 'component.city-weat... |
describe('show: after clearing', () => {
beforeEach(playbyplay.clear);
it('should show the empty label', done => {
function onShow(err) {
expect(err).to.be.null;
expect($('.playbyplay-empty')).to.exist;
expect($('.playbyplay-run')).to.not.exist;
done();
... |
"use strict";
const ElementInstance = require('./elementInstance');
/**
* An instance of the Button form element.
* @class
* @extends Defiant.Plugin.FormApi.ElementInstance
* @memberOf Defiant.Plugin.FormApi
*/
class ButtonInstance extends ElementInstance {
/**
* When this function is finished, then the for... |
const path = require("path");
const packageName = require("./package.json").name;
const webpackConfig = require("./webpack.config");
webpackConfig.resolve.alias = {
"rsg-components/Wrapper": path.join(__dirname, 'utils', 'ExampleWrapper.tsx')
};
module.exports = {
propsParser: require("react-docgen-typescript").p... |
var gulp = require('gulp');
var gutil = require('gulp-util');
var args = require('yargs').argv;
var mmhtConfig = require("./mmhtConfig.json");
var clean = require('./lib/clean');
var compile = require("./lib/compile");
var update = require("./lib/update");
var test = require("./lib/test");
var pull = require("./lib/p... |
export const authSecret = '*SECRET*'
|
const express = require('express');
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.get('/user', (req, res) => {
res.send('user');
});
const server = app.listen(8080, () => {
const host = server.address().address;
const port = server.address().port;
console.log('Examp... |
/* ************************************************************************
Copyright: 2013 Hericus Software, LLC
License: The MIT License (MIT)
Authors: Steven M. Cherry
************************************************************************ */
qx.Class.define("welcome.Singleton", {
type: "singleton",
extend: q... |
// Generated by CoffeeScript 1.10.0
(function() {
var BinaryXmlParser;
BinaryXmlParser = (function() {
var ChunkType, NodeType, StringFlags, TypedValue;
NodeType = {
ELEMENT_NODE: 1,
ATTRIBUTE_NODE: 2,
CDATA_SECTION_NODE: 4
};
ChunkType = {
NULL: 0x0000,
STRING_POOL:... |
//-----------------------------------------------------
//
// Author: Daeren Torn
// Site: 666.io
//
//-----------------------------------------------------
"use strict";
//-----------------------------------------------------
require("../index");
//-----------------------------------------------------
var schUse... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
dist: [
'assets/js/scripts.min.js',
'assets/svg/compressed',
'assets/svg/output'
]
},
sass: { // Task
dist: { ... |
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
(function ( $ ) {
'use strict';
$.fn.extend({
provinceField: function () {
$('se... |
var Prefab = Class.extend({
isPrefab: true,
id: null,
fullyLoaded: false,
data: { },
layers: [ ],
widthTiles: 0,
heightTiles: 0,
widthPx: 0,
heightPx: 0,
tileset: null,
tilesPerRow: 0,
blockedRects: [],
ladderRects: [],
init: function (id) {
this.id... |
import { connect } from 'react-redux';
import { actions, VisibilityFilters } from '../modules/todolist';
import TodoList from '../components/TodoList';
const getTodos = (todos, filter) => {
switch (filter) {
case VisibilityFilters.SHOW_COMPLETED :
return todos.filter(todo => todo.completed);
case Visib... |
'use strict'
require('./index.scss')
import React from 'react'
import {log, toString, getInstace} from 'custom/utils'
import statsStore from '../../stores/stats'
import instanceStore from '../../stores/instance'
import InstancesNumberManager from '../instances-number-manager'
import charts from './charts'
const {cr... |
const webpack = require("webpack");
module.exports = {
entry: "./src/index.js",
output: {
path: __dirname + "/dist/",
filename: "pcloudsdk.js",
library: "pCloudSdk",
libraryTarget: "umd",
umdNamedDefine: true,
},
devtool: "source-map",
mode: "production",
module: {
rules: [
{
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../core/tsSupport/declareExtendsHelper ../core/tsSupport/decorateHelper ./Accessor ./Handles ./accessorSupport/decorators ../views/support/... |
export const u1F1FD = {"viewBox":"0 0 2600 2760.837","children":[{"name":"path","attribs":{"d":"M2182 2275q5 7 6 12t1 12q0 17-12 29t-29 12h-512q-11 0-20.5-4.5T1601 2322l-301-445-300 445q-12 18-34 18H452q-19 0-30-12.5t-11-30.5q0-10 7-22l582-846-578-859q-5-5-6-11t-1-13q0-18 12-29.5t29-11.5h488q21 0 34 18l322 469 322-469q... |
import http from 'http';
import fs from 'fs';
import WebSocket from 'ws';
const Methods = {
GET: 1,
POST: 2,
PUT: 3,
DELETE: 4,
OPTIONS: 5,
};
const Conn = {
req: null,
res: null,
hedares: null,
method: null,
url: null,
};
const messages = [];
let requests = [];
const server = http.createServer(... |
'use strict';
var assign = require('object-assign');
var defaultConfig = require('../config/default');
var envConfig;
var path = require('path');
var pkg = require('../package.json');
//this if waterfall sucks, but it's needed for browserify
if (process.env.NODE_ENV === 'development') {
envConfig = require('../conf... |
(function(){
var PokemonController = function($scope, $rootScope, $routeParams, $location, PokeFact){
var urlImages = "images/pokedex/",
pokeName = $routeParams.name;
$rootScope.appTitle= pokeName+" stats, abilities and evolutions";
$scope.pokemon = {};
PokeFact.getSinglePokeName( pokeName )
.then(fun... |
var rest = require('restler');
var auth = require('./auth');
var util = require('./util');
function getEvents(callback) {
var spacesURL = 'http://www.nususc.com/USCWebsiteInformationAPI.asmx/GetAllEvents';
var data = {
authenticationCode: 'USC$2016DevTool'
};
rest.postJson(spacesURL, data, {
... |
const config = require('./../../config/config');
const initDebug = require('debug')('server:init');
const debug = require('debug')('server:request');
const bodyParser = require('body-parser');
module.exports = (app) => {
initDebug('bootstrap app');
app.engine('html', require('ejs').renderFile);
app.set('view en... |
// Generated by CoffeeScript 1.9.3
var COMMON_REQUEST_HEADERS, COMMON_RESPONSE_HEADERS, QUICK_CONTENT_TYPES, contentType, fn, fn1, fn2, header, identifier,
hasProp = {}.hasOwnProperty;
COMMON_REQUEST_HEADERS = require('../common-request-headers');
COMMON_RESPONSE_HEADERS = require('../common-response-headers');
mo... |
import m from "mithril"
import { bulmify } from '../common'
export const Progress = {
view: vnode =>
m("progress.progress", bulmify(vnode.attrs, ['state', 'max']),
vnode.children
)
}
|
/**
* Copyright (c) 2016, Lee Byron
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @ignore
*/
/**
* [Iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterato... |
'use strict';
//Setting up route
angular.module('breakouts').config(['$stateProvider',
function($stateProvider) {
// Breakouts state routing
$stateProvider.
state('listBreakouts', {
url: '/breakouts',
templateUrl: 'modules/breakouts/views/list-breakouts.client.view.html'
}).
state('createBreakout', {
... |
import React from 'react';
import Router from 'react-router';
import App from './components/App';
import Page from './components/Page';
const {Route} = Router;
const routes = <Route handler={App}>
<Route name='page' path='/page/:id' handler={Page} />
</Route>;
Router.run(routes, Router.HistoryLocation, Root =>
Re... |
import {
LOGIN_REQUEST,
LOGIN_SUCCESS,
LOGIN_FAILURE,
LOGOUT,
TOGGLE_AGREEMENT,
SAVE_NEW_METADATA
} from './actions';
import { getStoredAuthData } from '../helpers/utils';
export const initialState = {
isLoggingIn: false,
idToken: null,
profile: null,
error: null
};
function initializeState() {
... |
$(document).ready(function () {
/*-------------------------------------------
Sparkline
---------------------------------------------*/
function sparklineBar(id, values, height, barWidth, barColor, barSpacing) {
$('.'+id).sparkline(values, {
type: 'bar',
height: heigh... |
(function ($) {
'use strict';
$.fn.twittie = function () {
var options = (arguments[0] instanceof Object) ? arguments[0] : {},
callback = (typeof arguments[0] === 'function') ? arguments[0] : arguments[1];
// Default settings
var settings = $.extend({
... |
/*! Flocking 0.2.0-dev, Copyright 2015 Colin Clark | flockingjs.org */
(function (root, factory) {
if (typeof exports === "object") {
// We're in a CommonJS-style loader.
root.flock = exports; // Always create the "flock" global.
factory(exports, require("jquery"));
} else if (typeof d... |
export var castShadowUniforms = {
lightViewProjectionMatrix: { value: new THREE.Matrix4() }
}; |
//es5
console.log("hello".indexOf("h") === 0);
console.log("hello".indexOf("o") === ("hello".length - 1));
console.log("hello".indexOf("l") !== -1);
//es6
|
require.config({
baseUrl: "/base/src/",
deps: ["specRunner"]
});
|
/**
* The PlaceService class manages places in the application.
*
* A place is just the current state of the application which can be
* represented as an Object or a URL. For example, the place associated with:
*
* http://localhost:5000/map/6/2/17/ALL/terrain/loss
*
* Can also be represented like this:
*
* ... |
(function() {
'use strict';
angular
.module('<%= scriptAppName %>')
.service('<%= cameledName %>', <%= cameledName %>);
/* @ngInject */
function <%= cameledName %>() {
this.api01 = method;
function method() {
}
}
})();
|
import React from "react";
import { observer, Observer } from "mobx-react";
import styled from "styled-components";
import { Helmet } from "react-helmet";
import LevelPlay from "./LevelPlay";
import LevelMenu from "./LevelMenu";
import LevelEditor from "./LevelEditor";
import { AppDiv } from "./Style";
import State fr... |
/**
*
* Popup
*
*/
import React, { Children } from 'react';
import {
StyledPopup,
PopupContent,
PopupBackDrop,
PopupBtn,
} from './styles';
export class Popup extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.state = {
... |
import * as firebase from 'firebase'
export default {
state: {
loadedCustomProject: []
},
mutations: {
setLoadedCustomProject (state, payload) {
state.loadedCustomProject = payload
},
updateCustomProject (state, payload) {
state.loadedCustomProject.widgetTitle = payload.widgetTitle
... |
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
const webpackHotMiddleware = require('webpack-hot-middleware');
const webpackConfig = require('./webpack.config');
const path = require('path');
const express = require('express');
const parser = require('body-parser');
... |
/*jslint node: true */
/*jslint esversion: 6 */
var os = require('os');
var pageviewCounter = 0,
pageviewCounters = [],
sysMemory = new Array(45),
sysCPU = new Array(45),
saveSysLoadtimer;
/**
* Convert seconds into a days hh:nn:ss format
* @param {integer} seconds
* @return {string}
*/
function secondsTo... |
var fire = require("../../../../../index.js")
var Expression = fire.Expression
function expressionModule2() {
}
expressionModule2.prototype = new Expression()
expressionModule2.prototype.execute = function() {
this._blockContext._resultCallback("Hello World expressionModule2")
}
var fireModule = fire.igniteModule(m... |
const arr10000 = new Array(10000).fill(0);
const arr100 = new Array(100).fill(0);
const arr10 = new Array(10).fill(0);
module.exports = [
{
input: [arr100],
output: undefined
}
];
|
/**
* @class CM_Layout_Abstract
* @extends CM_View_Abstract
*/
var CM_Layout_Abstract = CM_View_Abstract.extend({
/** @type String */
_class: 'CM_Layout_Abstract',
/** @type jQuery|Null */
_$pagePlaceholder: null,
/** @type jqXHR|Null */
_pageRequest: null,
/**
* @returns {CM_View_Abstract|null}... |
(function() {
// jsonのキー名。
var ID_KEY = 'id';
var NAME_KEY = 'name';
var app = angular.module('pageSelectorApp', [
'pageSelectorControllers'
]);
var controllers = angular.module('pageSelectorControllers', []);
controllers.controller('pageListCtrl', ['$scope', '$http', function($scope, $http) {
var editor =... |
var INLINE_LINK = /(\S+)(?:\s+([\s\S]+))?/;
var path = require('canonical-path');
var where = require('lodash-node/modern/collections/where');
module.exports = {
name: 'link',
description: 'Process inline link tags (of the form {@link some/uri Some Title}), replacing them with HTML anchors',
handlerFactory: functio... |
Search.setIndex({envversion:42,terms:{content:0,index:0,modul:0,search:0,page:0},objtypes:{},objnames:{},filenames:["index"],titles:["Welcome to Foreign Guides’s documentation!"],objects:{},titleterms:{guid:0,welcom:0,indic:0,foreign:0,tabl:0,document:0}}) |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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, { PropTypes } from 'react';
import withStyle... |
/*!
* Image (upload) dialog plugin for Editor.md
*
* @file image-dialog.js
* @author pandao
* @version 1.3.4
* @updateTime 2015-06-09
* {@link https://github.com/pandao/editor.md}
* @license MIT
*/
(function() {
var factory = function(exports) {
var pluginNa... |
import { $TD, $TDX } from "../api/bridge.js";
import { $ } from "../api/jquery.js";
import { replaceFunction } from "../api/patch.js";
import { TD } from "../api/td.js";
import { checkPropertyExists, ensurePropertyExists } from "../api/utils.js";
import { getColumnName } from "./globals/get_column_name.js";
import { ch... |
Ext.define('Signout.store.Students', {
extend : 'Ext.data.Store',
storeId: 'studentsstore',
model : 'Signout.model.Student'
});
|
'use strict';
const easeIn = p => Math.pow(p, 3);
const easeOut = p => Math.pow(p - 1, 3) + 1;
const easeInOut = p => p < 1/2 ? 4 * easeIn(p) : 0.5 * (easeOut(2*p - 1) + 1);
const ease = (currentTime, deltaTime) =>
easeInOut(currentTime / deltaTime);
function scroll(y) {
window.scroll(window.scrollX, y);
}
modu... |
Entity = Class.extend({
init: function() {
},
update: function() {
}
});
|
tinyMCE.addI18n('en.formula',{
desc : 'This is a formula editor.'
});
|
/**
* @module Hyperlapse
*/
/**
*
* @class HyperlapsePoint
* @constructor
* @param {google.maps.LatLng} location
* @param {Number} pano_id
* @param {Object} params
*/
var HyperlapsePoint = function(location, pano_id, params ) {
var self = this;
var prams = params || {};
/**
* @attribute locatio... |
'use strict';
var camelcase = require('camelcase');
var getFileExtension = require('./getFileExtension');
module.exports = function getAssetKind(options, asset) {
var ext = getFileExtension(asset);
return camelcase(ext);
}; |
var SubmitB = React.createClass({displayName: "SubmitB",
getInitialState: function(){
return{value: '', text: false, para: ''};
},
handleClick : function(e){
this.setState({value: this.refs['a'].state.text, text: this.refs['b'].state.text, para: this.refs['c'].state.value}, function () {
console.log(this.... |
function introController ($scope) {
$scope.menuOptions = [
{
option: 'Jogue agora',
href: '/client',
clas: 'glyphicon glyphicon-flash'
},
{
option: 'Campeonato',
href: '/campeonato',
clas: 'glyphicon glyphicon-gift'
},
{
option: 'Sala Privada',
... |
'use strict'
var app = angular.module('demo', ['ngConexo']);
app.constant('USER_NATURE', {
anonymous: 'anonymous',
primeiroAcesso: 4,
segurado: 5
});
app.controller('DemoCtrl', ['$cxAuth', '$cxRequest', '$scope',
function ($cxAuth, $cxRequest, $scope) {
$scope.message = $cxAuth.getUser();
$scope.login ... |
App.TodoListRoute = Ember.Route.extend({
model: function () {
return this.store.find('todoList');
},
}); |
module.exports = {
access_token: process.env.GOOGLE_ACCESS_TOKEN,
refresh_token: process.env.GOOGLE_REFRESH_TOKEN,
token_type: 'Bearer',
expiry_date: process.env.GOOGLE_TOKEN_EXPIRY_DATE,
};
|
var path = require('path');
var moment = require('moment');
var meta = require(process.cwd() + '/package.json');
module.exports = function(archiveName) {
if('version' in meta) {
archiveName = archiveName + '_' + meta.version;
}
return archiveName + '_' + moment().format('YYYYMMDDHHmmss') + '.zip';
};
|
import Route from '@ember/routing/route';
export default class Example4Route extends Route {}
|
// @flow
import {snakeCase} from 'lodash';
/**
* @private
* Uppercase and snakecase the given string.
* @param {string} type The string to be formatted.
* @return {string} A formatted version of 'type'.
*/
function anaconda(type) {
return snakeCase(type).toUpperCase();
}
/**
* @private
* @example
* // Retu... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({widgetLabel:"\u00e6_Attachments____________\u00c2",attachmentDetails:"\u00e6_Attachment details___________________\u00c2",add:"\u00e6_Add_______\u00c2",upd... |
/*! jQuery UI - v1.10.1 - 2013-03-14
* http://jqueryui.com
* Includes: jquery.ui.datepicker-uk.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.uk={closeText:"Закрити",prevText:"<",nextText:">",currentText:"Сьогодні",monthNames:["Січень","Л... |
import App from 'component/app'
window.App = App || {} |
(function() {
var width = 600, height = 600; // Width and height of simulation in pixels. Each pixel is 10km by 10km
var cellSize = 6; // Size of a cell in pixels.
var yCellCount = Math.floor(height/cellSize); // Number of cells in the up-down direction.
var xCellCount = Math.floor(width/cellSize); // Number of ce... |
import Application from 'ember-bootstrap-docs/app';
import config from 'ember-bootstrap-docs/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { setup } from 'qunit-dom';
import { start } from 'ember-qunit';
setApplication(Application.create(config.APP));... |
import Themeable from './themeable'
export default {
mixins: [Themeable],
data () {
return {
errorBucket: [],
focused: false,
tabFocused: false,
lazyValue: this.value
}
},
props: {
appendIcon: String,
appendIconCb: Function,
disabled: Boolean,
error: Boolean,
... |
const writeFile = require('./write-file');
module.exports = function (opts) {
const file =
`root = true
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true`;
writeFile({
directory: opts.directory,
fileName: '.editorc... |
var Seatbid = require('../../lib/openrtb2_3/seatbid').object;
var SeatbidBuilder = require('../../lib/openrtb2_3/seatbid').builder;
var RtbObject = require('../../lib/rtbObject');
describe("The Seatbid object should", function() {
it("be an instance of RtbObject", function() {
var seatbid = new Seatbid();
seatbid... |
import React, { Component, PropTypes } from 'react';
import s from './ScreenshotPage.scss';
import withStyles from '../../decorators/withStyles';
import cx from 'classnames';
import Steam from '../../api/steam';
import Header from '../Header';
import Colors from '../../api/colors';
import Palette from '../Palette';
imp... |
var canvas;
var gl;
var numVertices = 6;
var texSize = 256;
var numChecks = 64;
//var flag = true;
var near = 0.3;
var far = 3.0;
var fovy = 45.0; // Field-of-view in Y direction angle (in degrees)
var aspect = 1.0; // Viewport aspect ratio
var texture1, texture2, texture3, texture4;
// Create a che... |
'use strict';
var shelljs = require('shelljs');
var format = require('string-template');
var request = require('request');
var _ = require('lodash');
module.exports = function(grunt){
var getPort = function(){
var port = grunt.option( 'port' ) || 3000;
if(grunt.option( 'host' ) && !grunt.option( 'port' )){... |
module.exports = function($scope, todoService) {
$scope.loaded = false;
$scope.newTitle = "";
$scope.stats = todoService.getStats();
$scope.tabs = todoService.getTabs();
$scope.removeCompleted = function() {
todoService.removeCompleted();
};
$scope.selectTab = function(option) {
... |
import React from 'react'
import classNames from 'classnames';
class PageAnimator extends React.Component {
constructor(props) {
super(props);
this.state = {
active: false
}
}
componentDidMount() {
setTimeout(() => { this.setState({active: true}) }, 5)
}
render() {
const { an... |
(function () {
'use strict';
angular
.module('milesBoard')
.controller('AddRunToUserController', AddRunToUserController);
AddRunToUserController.$inject = ['$scope', '$uibModalInstance'];
function AddRunToUserController($scope, $uibModalInstance) {
let vm = this;
... |
/**
* Created with JetBrains WebStorm.
* User: teisaacs
* Date: 10/15/13
* Time: 6:21 PM
* To change this template use File | Settings | File Templates.
*/
var Store = (function() {
// private variables and functions
var API_KEY = "";
var DB_NAME = "dwitasks";
var COLLECTION_LIST = "lists";
var ... |
function Cleanup(list) {
function cleanup(target) {
if (isNode(this) && !isNode(target)) {
target = this;
}
for (var cx = list.length - 1; cx >= 0; cx--) {
var element = list[cx];
if (element === target) {
list.splice(cx, 1);
}
... |
module.exports = 'module-one-A-applicationMiddleware';
|
import Ember from 'ember';
import Registry from './registry';
export default Ember.Mixin.create({
registerWithParent: Ember.on('didInsertElement', function() {
var registry = this.get('parentComponent');
if (registry) {
registry.register(this);
}
}),
deregisterWithParent: Ember.on('willDestroy... |
import Twit from 'twit'
import Async from 'async'
import log from './helpers/logger'
import User from './models/User'
const WAITING_PERIOD = 15 * 60 * 1000
const RATE_LIMIT_FLAG = 'rate-limit'
const MAX_IDS = 100
let twitter = function (options) {
this.followersQueue = Async.queue((worker, callback) => this._getFol... |
import './imported_item_timeline.html';
import './imported_item_timeline.css';
import { Template } from 'meteor/templating';
import { Util } from '../../../../imports/api/util';
import '../contributors/contributor_link';
/**
* Template Helpers
*/
Template.ImportedItemTimeline.helpers({
timelineEntries () {
... |
'use strict';
var React = require('react'),
RouteHandler = require('react-router').RouteHandler,
Header = require('./header.jsx'),
App;
App = React.createClass({
render: function render() {
return (
<div>
<Header />
<RouteHandler/>
</div>
);
}
});
module.e... |
module.exports = {
'id' : 1,
'username' : 'admin@easymongo.com',
'password' : 'demo',
'type' : 'admin'
}; |
'use strict';
module.exports = {
type: 'error',
error: {
line: 1,
column: 3,
message: 'Unexpected end of line. Number at 1:1 is unfinished.',
},
};
|
version https://git-lfs.github.com/spec/v1
oid sha256:273a225e99d1d16cfb16d2a22ec1fe6ea074604a73a572f4dd6253aeb614fbe5
size 3784
|
version https://git-lfs.github.com/spec/v1
oid sha256:788a4cc38870b8c76a644e6646a6cad68034f34dcd884a8f94447f5858d2377c
size 22885
|
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.