code stringlengths 2 1.05M |
|---|
/**
* # authActions.js
*
* All the request actions have 3 variations, the request, a success
* and a failure. They all follow the pattern that the request will
* set the ```isFetching``` to true and the whether it's successful or
* fails, setting it back to false.
*
*/
/**
* ## Imports
*
* The actions suppo... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
exports.init = function (req, res, next) {
res.send('You get wrong url !');
} |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var default_i18n_1 = require("./default-i18n");
var msg_formatter_1 = require("./formatters/msg-formatter");
exports.createFormatter = msg_formatter_1.createFormatter;
exports.default = default_i18n_1.createI18N;
//# sourceMappingURL=types.js.... |
// curry :: ((a, b, c, ...) -> z) -> a -> b -> c -> ... -> z
export const curry = (fn, ...args) => args.length >= fn.length ? fn(...args) : curry.bind(null, fn, ...args)
// compose2 :: (b -> c) -> (a -> b) -> a -> c
const compose2 = (f, g) => x => f(g(x))
// compose :: (a -> c) -> [(a -> a)] -> (a -> c)
export const ... |
module.exports = {
entry: './test/localforage.spec.ts',
output: {
filename: 'testbundle.js',
path: require('path').resolve(__dirname, 'dist'),
},
resolve: {
// Add '.ts' and '.tsx' as a resolvable extension.
extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js'],
},
module: {
loa... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
datab = [{},{"Attribute":{"colspan":"1","rowspan":"1","text":"Annotation Position"},"Tag":{"colspan":"1","rowspan":"1","text":"(2030,0010)"},"Valid Range":{"colspan":"1","rowspan":"1","text":"0 - Max number of annotation strings defined for Annotation Format"},"Default Value if not sent by SCU or invalid value received... |
"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 gulp = require('gulp');
var babel = require('gulp-babel');
var nodemon = require('gulp-nodemon');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var sequence = require('run-sequence');
gulp.task('copy', function () {
return gulp.src('src/**/*.html')
.pipe(gulp.dest('dist... |
var classoi_1_1_object_transformation =
[
[ "ObjectTransformation", "classoi_1_1_object_transformation.html#a40db375776b044de3c44e5c76a239332", null ],
[ "~ObjectTransformation", "classoi_1_1_object_transformation.html#aa2c5878f1ed730bfc8e790f39b2aca9e", null ],
[ "exec", "classoi_1_1_object_transformation.... |
var conversionObject = {
special: {
"Temperature": {
"Kelvin": {
toKelvin: function (e) {
return e;
},
toCelsius: function (e) {
return (e - 273.15);
},
toFahrenheit:... |
/**
* Copyright 2012-2018, Plotly, Inc.
* 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.
*/
'use strict';
module.exports = {
moduleType: 'locale',
name: 'fr-CH',
dictionary: {},
format: {
days: ... |
/* eslint-env browser */
import Decorator from '../decorator';
import ContentAssist from '../../components/content-assist/content-assist';
import React from 'react'; // eslint-disable-line
import PropTypes from 'prop-types';
class CursorDecorator extends Decorator {
componentWillReceiveProps (nextProps) {
... |
// Comby - yet another parser combinator library for JavaScript
// For more info see README.md or Wikipedia: https://en.wikipedia.org/wiki/Parser_combinator
// Copyright (c) 2016 Crystalline Emerald
// Licensed under MIT license.
var C = require('./comby.js');
var util = require('./util.js');
var pr = console.log;
v... |
'use strict';
const valueParser = require('postcss-value-parser');
const declarationValueIndex = require('../../utils/declarationValueIndex');
const getDeclarationValue = require('../../utils/getDeclarationValue');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');... |
import React from 'react';
import PropTypes from 'prop-types';
import { mount, shallow } from 'enzyme';
import {
Avatar,
BaseAvatar,
EntityAvatar,
UserAvatar,
getInitials,
} from '../Avatar';
import { Icon } from '../../Icon';
describe('getInitials()', () => {
it('returns an empty string when passed an em... |
var express = require('express')
, midware = require('./lib/midware')
var app = exports.app = express();
app.configure(function(){
app.use(express.favicon());
//app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
});
app.configure('development',... |
import React from 'react';
import { NavLink, Switch, Route } from 'react-router-dom';
import Bip44Demo from './RichTestPage';
import BitcoinJSHowToPage from './BitcoinJSHowToPage';
import FuelSavings from './FuelSavingsPage';
const HomePage = () => {
return (
<div>
<h1>HomePage</h1>
<p>Just a... |
"use strict";
/*
* TopJs Framework (http://www.topjs.org/)
*
* @link http://github.com/qcoreteam/topjs for the canonical source repository
* @copyright Copyright (c) 2016-2017 QCoreTeam (http://www.qcoreteam.org)
* @license http://www.topjs.org/license/new-bsd New BSD License
*/
TopJs.namespace("TopJs.std... |
/**
* Gumby InView
* http://github.com/GumbyFramework/InView v1.0.3
*/
!function($) {
'use strict';
function InViewWatcher($el){
Gumby.debug('Initializing InViewWatcher', $el);
//store the element inside this class
this.$el = $el;
var scope = this;
this.setup();
// re-initialize module
this.$el.o... |
define(['skeleton', 'config', './VcbEntry'],
function(sk, config, VcbEntry) {
var Collection = sk.Collection.extend({
model: VcbEntry,
url: '/words',
configure: function(){
},
select: function(specific, wordId, down){
this.active = wordId;
t... |
import * as React from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import Link from 'docs/src/modules/components/Link';
import { useTranslate } from 'docs/src/modules/utils/i18n';
const useStyles = makeStyles(
(theme) => ({
root: {
padding: theme.spacing(1, 2, 1... |
angular.module('chatty')
.directive('keepScroll', function($window) {
return {
controller: function($scope) {
$scope.element = 0
$scope.lastHeight = null
this.setElement = function(el) {
$scope.element = el
... |
const log4js = require("log4js");
const logger = log4js.getLogger();
const taskController = require('../controllers/taskController');
const userController = require('../controllers/userController');
const ruleController = require('../controllers/ruleController');
const userManager = require('./user/userManager');
cons... |
var optparse = require('..');
var parse = new optparse(process.argv, 'ab:c:de:');
console.log("optind: " + parse.getoptind());
console.log("---------------------------------");
var opt;
while ((opt = parse.getopt()) !== undefined) {
console.log("optind: " + parse.getoptind() + ", argv[]:" + process.argv[parse.getop... |
/* eslint-env mocha */
/* global expect:false */
import {
addComicToPullList,
removeComicFromPullList,
removeComicFromPullListWithUndo,
undoRemoveComicFromPullList
} from './pullList.actions'
import { comicsMinimalInfoSelector } from './pullList.selectors'
import { normalizeComics } from '~/src/features/Commo... |
export default (str) => {
const newArr = []
let arr = str.split('')
arr.map( x => {
let number = x.charCodeAt()
if ( (number > 64) && (number < 91) ) {
let lower = String.fromCharCode( number + 32 )
newArr.push( lower )
} else {
newArr.push( x )
}
})
console.log (newArr.jo... |
// Currently this only works on the issue page itself. Will look into allowing on dashboards and/or kanban boards later. Perhaps a setting for it?
var title = document.getElementById("summary-val");
var anchor = document.createElement("a");
anchor.setAttribute("id", "jira-grabber-button");
anchor.setAttribute("href", "... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.m.Input.
sap.ui.define(['jquery.sap.global', './Bar', './Dialog', './InputBase', './List', './Popover', './St... |
/**
* Module dependencies.
*/
var start = require('./common')
, should = require('should')
, mongoose = require('./common').mongoose
, Schema = mongoose.Schema
, random = require('../lib/utils').random
, MongooseBuffer = mongoose.Types.Buffer;
// can't index Buffer fields yet
function vali... |
/**
* 303 (See Other) Handler for Rstudio-api (passes parameters)
*
* Usage:
* return res.rstudio_redirect(uri)
*
* e.g.:
* ```
* return res.rstudio_redirect(uri)
* ```
*
* NOTE:
* This response is needed if the viewer_pane parameter, the Rstudio_port and/or the session_shared_secret for Rstudio or importan... |
var myFSAPI = require('./myFSapi');
var champions = require('./champions.json');
var config = require('./../config.json');
function getChampion(id) {
var name = '';
Object.keys(champions.data).forEach(function(key) {
if (champions.data[key].key == id) {
name = champions.data[key].id;
}
});
return... |
/******/ (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... |
// app.js
var app = angular.module('app', []);
app.controller('MainController', function($scope) {
$scope.num = 0
$scope.nums = []
$scope.increment = function() {
$scope.num++;
}
// $scope.$watch('num', function() {
// $scope.nums.push($scope.num)
// })
$scope.stopWatch = $scope.$watch('num',... |
__req.define([
"lib/Class",
"src/NJModule"
], function( Class, NJModule ) {
var NJGoogleAnalytics = Class( NJModule, function( cls, parent ){
cls.constructor = function(){
parent.constructor.apply(this,arguments);
};
cls.installTo = function( ctx ) {
}
... |
function init() {
selectize = $("#userid").selectize({
create: true
});
}
window.addEventListener('load', init); |
window.MetaMaskProvider = null;
// External Web3 Injection Support (MetaMask)
if (typeof window.web3 === 'undefined') {
var web3 = new Web3();
} else {
var web3 = new Web3();
window.MetaMaskProvider = window.web3.currentProvider;
web3.setProvider(window.web3.currentProvider);
}
// Set Web3
window.web3 = web3;... |
import React from 'react';
import PropTypes from 'prop-types';
import { COLORS, TYPEOGRAPHY, TEXTSIZE } from '../../lib/styles';
const H6 = ({ children, light, style }) => {
const color = light ? COLORS.texts.primary.light : COLORS.texts.primary.dark;
return (
<h6 style={style} >
{children}
<style ... |
import Pricing from './components/pricing';
import Autocomplete from './components/autocomplete';
import Toggler from './components/toggler';
(function(){
Pricing.search();
Autocomplete.google();
Toggler.addToggleHandler();
})();
|
/*
backgrid
http://github.com/wyuenho/backgrid
Copyright (c) 2013 Jimmy Yuen Ho Wong and contributors
Licensed under the MIT license.
*/
/**
Grid represents a data grid that has a header, body and an optional footer.
By default, a Grid treats each model in a collection as a row, and each
attribute i... |
'use strict';
// Include gulp
var gulp = require('gulp');
// Include plugins
var sass = require('gulp-sass'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
minify = require('gulp-minify-css'),
sourcemaps = require('gulp-sourcemaps'),
concat = require('gulp-concat'),
jade = ... |
/*
* Knapsack
* For the full copyright and license information, please view the LICENSE.txt file.
*/
/* jslint node: true */
'use strict';
// Init the module
module.exports = function() {
// Resolves the given problem
var resolve = function resolve(capacity, items) {
var result = [],
leftCap = c... |
import includes from "lodash/collection/includes";
import traverse from "../index";
import defaults from "lodash/object/defaults";
import * as messages from "../../messages";
import Binding from "./binding";
import globals from "globals";
import flatten from "lodash/array/flatten";
import extend from "lodash/object/ext... |
/**
* @hidden
* Removes from an array the element at the specified index.
* @param xs Array or array like object from which to remove value.
* @param index The index to remove.
* @return True if an element was removed.
*/
export default function removeAt(xs, index) {
// use generic form of splice
// splic... |
/**
* @since 14/12/2017 12:05
* @author vivaxy
*/
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/sw.js').then(
function (registration) {
// Registration was successful
},
function (err) {
// registration fai... |
var assert = require('assert'),
gabencoin = require('../'),
config = require('./config'),
commands = require('../lib/commands');
var getHelpCommands = function(client, cb) {
var commandRegex = /^([a-z]+)/;
client.cmd('help', function(err, commandList) {
if (err) return cb(err);
va... |
//@flow
import React, { PureComponent } from "react";
import raf from "raf";
import hoistNonReactStatics from "hoist-non-react-statics";
// NB this is only an utility for the examples
export default (
C: ReactClass<*>,
{ refreshRate = 60 }: { refreshRate?: number } = {}
): ReactClass<*> => {
class TL extends Pur... |
/**
* Created by ben on 11/22/16.
*/
String.prototype.isEmpty = function() {
return this == null || this == '';
};
RegExp.escape = function(val) {
return val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
}; |
module.exports = class App
{
constructor(dir)
{
const Fs = require('./fs/Main.js');
const Root = require('./fs/Root.js');
const Directory = require('./fs/Directory.js');
let fs = new Fs;
let root = new Root(fs);
root.base = dir;
fs.root = root;
this.fs = fs;
this.devic... |
const {getPackages} = require('@commitlint/config-lerna-scopes').utils;
module.exports = {
extends: ['@commitlint/config-angular'],
rules: {
'header-max-length': [2, 'always', 140],
'scope-enum': () => [2, 'always', [...getPackages(), 'all']],
'subject-case': [2, 'always', ['lower-case', 'kebab-case']]... |
// -----------------------------------------------------------------------------
// Name: /handlers/get.js
// Author: Adam Barreiro Costa
// Description: Sets all the GET request handlers
// -----------------------------------------------------------------------------
var handler = require('./general.js');
/**
* Sets... |
'use strict';
var escapeStringRegexp = require('escape-string-regexp');
var ansiStyles = require('ansi-styles');
var supportsColor = require('supports-color');
var defineProps = Object.defineProperties;
var isSimpleWindowsTerm = process.platform === 'win32' && !/^xterm/i.test(process.env.TERM);
function Chalk(options)... |
$(function(){
var socket = null;
var msgBox = $("#chatbox textarea");
var messages = $("#messages");
$("#chatbox").submit(function(){
if (!msgBox.val()) return false;
if (!socket) {
alert("Error: There is no socket connection.");
return false;
}
socket.send(msgBox.val());
ms... |
var eelmail = require('../');
var level = require('level-party');
var db = level('./data/db');
var em = eelmail(db, { dir: './data' });
em.createServer('smtp').listen(25);
em.createServer('imap').listen(143);
|
var im = require('simple-imagemagick');
var fs = require('fs');
var async = require('async');
// still need to figure out what '+repage' does, but it fixes a lot of issues :p
// orientates the image correctly
function autoOrient (inputfile, outputfile, callback) {
im.convert([
inputfile,
'+repage' ,
'-auto... |
/**
* Module dependencies.
*/
var Route = require('./route')
, utils = require('./utils')
, debug = require('debug')('kerouac');
/**
* Initialize a new `Router`.
*
* @api private
*/
function Router() {
var self = this;
this._routes = [];
this.middleware = function(page, next) {
self._dispatch(page... |
import * as Require from './require';
import parseExpression from './expression';
import parseCompound from './compound';
export default tokens => {
Require.variable(tokens.peek());
const variable = {
type: tokens.pop().type,
value: undefined
};
if (Require.isIdentifier(tokens.peek()... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { RouteTransition } from 'react-router-transition';
import base from '../base';
import paths from '../paths';
import Icon from './Icon';
class PageTemplate extends Component {
cons... |
const fs = require('fs');
function DirectoryExistenceChecker(path, directory) {
this.perform = () => {
const directoryToCheck = `${path}/${directory}`;
try {
fs.accessSync(directoryToCheck, fs.F_OK);
return true;
} catch (error) {
return false;
}
};
}
module.exports = DirectoryEx... |
import Ember from 'ember'
const { computed, get } = Ember
export default Ember.Component.extend({
name: '',
computedValue: computed('value', 'options', function () {
const value = get(this, 'value')
return value == null ? null : get(this, 'options').find(option => option.value === value)
}),
options: c... |
(function($) {
// This is the connector function.
// It connects one item from the navigation carousel to one item from the
// stage carousel.
// The default behaviour is, to connect items with the same index from both
// carousels. This might _not_ work with circular carousels!
var connector = ... |
version https://git-lfs.github.com/spec/v1
oid sha256:ffe868bf6da30bd52339eec5ee64ade17f53afffe5019315f5b37d2c61b5818e
size 2193
|
var gulp = require('gulp');
var browserSync = require('browser-sync');
var plumber = require('gulp-plumber');
var watch = require('gulp-watch');
var bower = require('main-bower-files');
var concat = require('gulp-concat');
// for compass
var compass = require('gulp-compass');
// for webpack
var webpack = require('gul... |
import FizzBuzz from '../src/FizzBuzz';
describe('FizzBuzz', () => {
let game = new FizzBuzz();
it('returns 1 for 1', () => {
expect(game.for(1)).toBe('1');
});
it('returns 2 for 2', () => {
expect(game.for(2)).toBe('2');
});
it('returns Fizz for 3', () => {
expect(ga... |
'use strict';
const line = require('@line/bot-sdk');
const express = require('express');
// create LINE SDK config from env variables
const config = {
channelAccessToken: process.env.CHANNEL_ACCESS_TOKEN,
channelSecret: process.env.CHANNEL_SECRET,
};
// create LINE SDK client
const client = new line.Client(c... |
import Model, { attr } from '@ember-data/model';
import { computed } from '@ember/object';
import { equal, or } from '@ember/object/computed';
export default Model.extend({
name: attr('string'),
startingPrice: attr('number'),
startingUsers: attr('number'),
privateCredits: attr('number'),
publicCredits: attr(... |
'use strict'
const curryRight = require('lodash/curryRight')
const pMap = curryRight(require('p-map'), 2)
const findConfig = require('cordova-find-config')
const {
parseConfig,
extractExcludePatterns,
buildDeletionJobs,
processDeletionJob,
} = require('./util')
const deletionJobBuilderFor = curryRight(buildDe... |
const click = () => console.log('clicked...')
module.exports = [
{
description: 'Invisible item.',
input: ['Show', click, { visible: false }],
output: { label: 'Show', visible: false, click }
}
]
|
$.readline.prompt($.preserveCursor || undefined);
output.readline = $.get('readline');
|
var webpack = require('webpack');
var UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
var path = require('path');
var env = require('yargs').argv.mode;
var libraryName = 'web-notifications';
var plugins = [], outputFile;
if (env === 'build') {
plugins.push(new UglifyJsPlugin({ minimize: true }));
outputFile = ... |
'use strict';
// Setting up route
angular.module('core').config(['$stateProvider', '$urlRouterProvider',
function($stateProvider, $urlRouterProvider) {
// Redirect to home view when route not found
$urlRouterProvider.otherwise('/');
// Home state routing
$stateProvider.
state('home', {
url: '/',
temp... |
var url = require("url");
var URL = url.URL;
var http = require("http");
var https = require("https");
var assert = require("assert");
var Writable = require("stream").Writable;
var debug = require("debug")("follow-redirects");
// RFC7231§4.2.1: Of the request methods defined by this specification,
// the GET, HEAD, O... |
/* eslint-disable react/destructuring-assignment */
import smoothscroll from 'smoothscroll-polyfill';
import React from 'react';
import PropTypes from 'prop-types';
const Element = (props) => props.children;
class Scroll extends React.Component {
constructor() {
super();
this.handleClick = this.handleClick.... |
window.esdocSearchIndex = [
[
"hoist-connector-xero/src/views/edit.js~editform",
"class/src/views/edit.js~EditForm.html",
"<span>EditForm</span> <span class=\"search-result-import-path\">hoist-connector-xero/src/views/edit.js</span>",
"class"
],
[
"builtinexternal/ecmascriptexternal.js~array",... |
import Renderer from './3d_viewer';
export default () => {
const viewer = new Renderer(document.getElementById('js-stl-viewer'));
[].slice.call(document.querySelectorAll('.js-material-changer')).forEach((el) => {
el.addEventListener('click', (e) => {
const { target } = e;
e.preventDefault();
... |
(function() {
"use strict";
//use this if you have under 400 markers, 1000 is pushing it, 10,000 becomes unresponsive
angular.module('chGoogleMap.models').directive("marker",['$timeout', 'chCoordiante', 'chMarker', function($timeout, chCoordiante, chMarker){
return {
restrict:'AE',
scope: {
position:'=... |
import { expect } from 'chai'
import { storage, setStorage, scheduler } from 'react-easy-params'
const STORAGE_NAME = 'REACT_EASY_STORAGE'
describe('storage synchronization', () => {
afterEach(async () => {
setStorage({})
await scheduler.processing()
})
it('should initialize from localStorage', () => {... |
version https://git-lfs.github.com/spec/v1
oid sha256:7fa2310ab91313ebf25d03d0c4592d1f2bc45e1d378396b6764aeef56ce38d61
size 681
|
'use strict';
/*
*
* Reducer of IncomeStatsPage
*
*/
import * as IncomeStatsPageActionTypes from '../actiontypes/incomeStatsPage';
const initialState = {
year: '', // @TODO: remove hardcode
amountByCat: [],
amountByMember: [],
amountByDate: [],
amountByDateAndMember: [],
amountByCatAndMe... |
export default {
* index(next) {
return 'comments#index'
},
* create(next) {
let name = 'trek'
let age = 233
return { name, age }
},
* ['new'](next) {
this.body = 'comments#new'
},
* show(next) {
this.body = 'comments#show'
},
* update(next) {
this.body = 'comments#up... |
/*
* Globalize Culture pa-IN
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this f... |
import React from 'react';
import PropTypes from 'prop-types';
import { Button, FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import './Login.css';
export default function LoginForm(props) {
return (
<div className="Login">
<form onSubmit={props.handleSubmit}>
<FormGroup controlId=... |
// !LOCNS:galactic_war
define(['shared/gw_common'], function (GW) {
return {
visible: function(params) { return true; },
describe: function(params) {
return '!LOC:Orbital Combat Tech increases speed of all orbital units by 50%, health by 50%, and damage by 25%';
},
summa... |
(function() {
var SCOPE_OPENERS,
__indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
SCOPE_OPENERS = ['FOR', 'WHILE', 'UNTIL', 'LOOP', 'IF', 'POST_IF', 'SWITCH', 'WHEN', 'CLASS', 'TRY', 'CATCH', 'FIN... |
function CTextButton(iXPos,iYPos,oSprite,szText,szFont,szColor,iFontSize,bAttach){
var _aCbCompleted;
var _aCbOwner;
var _oButton;
this._init =function(iXPos,iYPos,oSprite,szText,szFont,szColor,iFontSize,bAttach){
_aCbCompleted=new Array();
_aCbOwner =new Array();
... |
/*global require, module*/
var Promise = require('bluebird'),
aws = require('aws-sdk'),
find = require('../util/find');
module.exports = function allowApiInvocation(functionName, functionVersion, restApiId, ownerId, awsRegion, path) {
'use strict';
var lambda = Promise.promisifyAll(new aws.Lambda({region: awsRegion... |
// Mix all threejs plugins here, provide a unified interface
define( ["threejs"], function( threeCore ) {
return threeCore;
} );
|
'use strict';
var fsAutocomplete = require('vorpal-autocomplete-fs');
var delimiter = require('./../delimiter');
var interfacer = require('./../util/interfacer');
var preparser = require('./../preparser');
var cd = {
exec: function exec(dir, options) {
var self = this;
var vpl = options.vorpal;
options... |
const express = require("express");
const app = express();
const server = require("http").Server(app);
const path = require("path");
const bodyParser = require("body-parser");
const swig = require("swig");
const React = require("react");
const ReactDOM = require("react-dom/server");
const Router = require("react-router... |
angular.module("lcars").directive("lcarsIndicator", function() {
return {
"templateUrl": "templates/indication.html",
"controller" : "indication",
"scope": {
}
};
});
|
module.exports = require('yeoman-generator').Base.extend({
do: require('../generate')({
category: 'components',
templateFileName: '_component.js'
})
})
|
import {Text, View, TouchableOpacity, TouchableHighlight, ListView, Image, StyleSheet, Dimensions} from 'react-native';
import React, {Component} from 'react';
import Icon from 'react-native-vector-icons/Ionicons';
import Detail from '../creation/Detail';
export default class Questions extends Component {
constru... |
// flow-typed signature: 2b2b61dd4598299ed3177dba0b9b1b1d
// flow-typed version: <<STUB>>/redux-thunk_v2.1.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
*
* 'redux-thunk'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the... |
//Workflow to simulate the taking of a pizza order
var workflowDefinition = {
Name: "ProcessOrder",
Parameters: [
{ name: "deliveryType", displayName: "Delivery Type", parameterType:"Select", options: [{ name: "Delivery" }, {name:"Takeout"}] },
{ name: "name", displayName: "Customer Name", para... |
import insertImage from './insertImage'
export default {
type: 'drop-asset',
match(params) {
// Mime-type starts with 'image/'
let isImage = params.file.type.indexOf('image/') === 0
return params.type === 'file' && isImage
},
drop(tx, params) {
insertImage(tx, params.file)
}
}
|
export default {
default: {},
};
|
var classRespuestaDelChat =
[
[ "RespuestaDelChat", "classRespuestaDelChat.html#abb7c0f529be82c2396ff54ebb2289d1a", null ],
[ "~RespuestaDelChat", "classRespuestaDelChat.html#a7f33fe070472b44067617e554dbad28a", null ],
[ "setRespuestaGCM", "classRespuestaDelChat.html#a53a20f3049b1a7fa51a9a19500184810", null... |
'use strict';
module.exports = {
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/foodie',
assets: {
lib: {
css: [
'public/lib/bootstrap/dist/css/bootstrap.min.css',
'public/lib/bootstrap/dist/css/bootstrap-theme.min.css'... |
/**
* @license Handlebars hbs 0.8.1 - Alex Sexton, but Handlebars has its own licensing junk
*
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/require-cs for details on the plugin this was based off of
*/
/* Yes, deliciously evil. */
/*jslint evil: true, strict: false, plusplus: false... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.