code stringlengths 2 1.05M |
|---|
var menuControllers = angular.module('menuControllers', []);
menuControllers.controller('UserCtrl', [ '$rootScope', '$scope', 'UserService', '$localStorage', '$location', ( rootScope, scope, UserService, localStorage, location ) => {
scope.currentUser = UserService.getCurrentUser();
rootScope.$on('user-logged-in', ... |
import React, { Component } from 'react';
import { StyleSheet, Text } from 'react-native';
import { Container, Content, Button, Card, CardItem } from 'native-base';
import LoginForm from '../forms/login';
export default class Login extends Component {
login() {
const { login } = this.props;
const value = th... |
import Grammar from "./grammar";
import Rule from "./rule";
import { Turtle3D } from "./turtle";
export default {
Grammar,
Rule,
Turtle3D
};
|
var Settings = {
defaultColor: '#330066',
setUrls: function(urls) {
localStorage.setItem('urls', JSON.stringify(urls));
},
setColor: function(color) {
localStorage.setItem('color', color);
},
getColor: function() {
var color = localStorage.getItem('color') || Settings.defaultColor;
retur... |
'use strict';
const globalHooks = require('../../../hooks');
const hooks = require('feathers-hooks');
exports.before = {
all: [],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
};
exports.after = {
all: [],
find: [],
get: [],
create: [],
update: [],
patch: [],
remove: []
};
|
//for clones and deletes
function compile(pairs,ind){
var n,links,i,v,nn;
n = pairs[ind][0];
if(nset[n].Link){
links = nset[n].Link;
$.each(links,function(i,v){
pairs.push([v,n]);
});
delete nset[n].Link;
pass(pairs,ind);
function pass(pairs,ind){
var pair,nn;
ind += 1;
pair =... |
/**
* @license Copyright (c) 2012, Viet Trinh All Rights Reserved.
* Available via MIT license.
*/
/**
* A private node tests results handler. This will run the unit tests in node's environment and pipe back the results.
*/
define([ 'framework/request/base_request_handler',
'../tests_private_tests_results_serv... |
import DataProcessor from './data.processor';
const ARRAY_POSITION = 1,
FRAME_SIZE_POSITION = 0;
/**
* messageHandler - Entry point of a data processing WebWorker, contains full life cycle
*
* @param {object} event - generyc JS webworker event, contains passed from window data
*/
self.onmessage = function me... |
// @flow
///////////////////////////////////////////////////////////////////////////////
// @file : Settings.js //
// @summary : //
// @version : 0.0.1 ... |
/* global ExpressionManager, TextProperty */
(function addDecorator() {
function searchExpressions() {
if (this.data.d.x) {
this.calculateExpression = ExpressionManager.initiateExpression.bind(this)(this.elem, this.data.d, this);
this.addEffect(this.getExpressionValue.bind(this));
return true;
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
'use strict'
// "ready","paused","onGround","crashed","sts","ts","pitch","roll","yaw","airspeed","altitude","vspeed","ilsDeviation.loc","ilsDeviation.gs","onTrack","status","lng","lat","weather.wind.heading","weather.wind.speed","weather.temp","weather.turbulance","collectorId","runId"
var color = require('cli-color'... |
Polymer({
is: 'krisinfo-footer',
});
|
/**
* @license Copyright (c) 2013, Viet Trinh All Rights Reserved.
* Available via MIT license.
*/
/**
* A controller implementation of the set routes of the collection page.
*/
define([ 'framework/controller/base_controller',
'framework/core/utils/clazz',
'../collection_set_add_client_request',
'../col... |
System.config({
"transpiler": "babel",
"babelOptions": {
"optional": [
"runtime",
"es7.decorators"
]
},
"paths": {
"*": "*.js",
"github:*": "jspm_packages/github/*.js",
"aurelia-loader/*": "dist/*.js",
"npm:*": "jspm_packages/npm/*.js"
}
});
System.config({
"map": {
... |
describe('{} aegis.core', function() {
var ensure = require('noire').ensure
var sinon = require('sinon')
var _ = require('../src/core')
var folders = require('../src/folders')
describe('{} Stream', function() {
function S(xs){ return _.Stream.make(xs) }
function number_p(x, n) { n(typeof x =... |
var app = angular.module('app', ['ngTouch', 'ui.grid', 'ui.grid.edit', 'ui.grid.cellNav', 'ui.grid.pinning', 'ui.grid.filldown']);
app.controller('MainCtrl', ['$scope', function ($scope) {
$scope.filldownOptions = {
additionalField: 'value'
};
$scope.gridOptions = {
enableSortin... |
var iot_peer = require("../../iot-peer.js");
iot_peer.login("sensor1",function(data){
console.log("starting to send data");
setInterval(
function(){
iot_peer.send_data(50);
}
,1000
);
});
|
var React = require('react');
var Link = require('./components/link.js');
var Resource = require('./components/resource.js');
export {
Link,
Resource
}; |
var angular = angular || {};
angular.module('app.router', [])
.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('basic', {
url: '/',
templateUrl:'views/basic.html',
controller: 'BasicCtrl'
})
///redirect to default.
... |
'use strict';
var respond = require('./utils').respond;
module.exports = function(models) {
var getAll = function(req, res, next) {
models.Team.findAll({
include: [
models.Player
]
}).then(function(team) {
respond(res, 200, true, null, team);
}).catch(function(err) {
respond(res, 500, false, er... |
import FlexberryDatepicker from 'ember-flexberry/components/flexberry-datepicker';
export default FlexberryDatepicker;
|
export const USER_SIGNIN = 'USER_SIGININ';
export const USER_SIGNOUT = 'USER_SIGNOUT';
export const USER_REG = 'USER_REG';
export const SHOW_PROGRESS = "SHOW_PROGRESS";
export const HEAD_LINE = 'HEAD_LINE' |
/*
Copyright (c) 2015 NAVER Corp.
name: @egjs/infinitegrid
license: MIT
author: NAVER Corp.
repository: https://github.com/naver/egjs-infinitegrid
version: 4.2.0-beta.5
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === ... |
/**
* QCObjects 2.3
* ________________
*
* Author: Jean Machuca <correojean@gmail.com>
*
* Cross Browser Javascript Framework for MVC Patterns
* QuickCorp/QCObjects is licensed under the
* GNU Lesser General Public License v3.0
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
*
*... |
var Q = require(SP_NODE_MODULES + 'q');
var Database = require(SP_MODULES_FOLDER + 'database/database.module.js');
module.exports = function (args) {
var args = args || {};
var self = new BASEITEM(args.initialAttributes);
self.req = args.req;
self.create = PROMISIFY(create);
functi... |
define(function (require) {
'use strict';
/**
* Module dependencies.
*/
var Aloha = require('aloha');
return {
/**
* Selects the text from the given range.
*
* @param {RangyRange} range
*/
selectTextFromRange: function (range) {
var selection = Aloha.getSelection();
selection.removeAll... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React from "react";
import {Renderer} from "neutrine/lib/components";
import {Icon} from "neutrine/lib/components";
import {Media, MediaContent, MediaStart, MediaEnd} from "neutrine/lib/components";
import style from "./style.scss";
//Button component wrapper
let Button = function (props) {
return (
... |
/**
* @license Highstock JS v8.1.0 (2020-05-05)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Kacper Madej
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.expor... |
/*!
* vue-router v4.0.0-rc.4
* (c) 2020 Eduardo San Martin Morote
* @license MIT
*/
import { getCurrentInstance, inject, onUnmounted, onDeactivated, onActivated, computed, unref, defineComponent, reactive, h, provide, ref, watch, shallowRef, nextTick } from 'vue';
const hasSymbol = typeof Symbol === 'function'... |
/*
Highstock JS v8.1.1 (2020-06-09)
Indicator series type for Highstock
(c) 2010-2019 Daniel Studencki
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/indicators/keltner-channe... |
class TonicTemplate {
constructor (rawText, templateStrings, unsafe) {
this.isTonicTemplate = true
this.unsafe = unsafe
this.rawText = rawText
this.templateStrings = templateStrings
}
valueOf () { return this.rawText }
toString () { return this.rawText }
}
class Tonic extends window.HTMLElemen... |
'use strict';(function(d,m){"object"===typeof exports&&"undefined"!==typeof module?m(exports,require("react"),require("history"),require("react-router")):"function"===typeof define&&define.amd?define(["exports","react","history","react-router"],m):(d=d||self,m(d.ReactRouterDOM={},d.React,d.HistoryLibrary,d.ReactRouter)... |
typeof window !== "undefined" &&
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Hls"] = f... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Konva = factory());
})(this, (function () { 'us... |
/*!
* lightgallery | 2.2.0-beta.1 | July 15th 2021
* http://www.lightgalleryjs.com/
* Copyright (c) 2020 Sachin Neravath;
* @license GPLv3
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd... |
rolls = {
name: "rolls",
ingredients: [wheat] //depends on the global wheat.js being available
}; |
/* global ngDescribe, it, beforeEach, afterEach */
angular.module('BeforeAndAfterA', [])
.value('foo', 'bar');
ngDescribe({
name: 'before and after example',
module: 'BeforeAndAfterA',
inject: 'foo',
only: false,
verbose: false,
tests: function (deps) {
var localFoo;
beforeEach(function () {
... |
var _ = require("lodash");
var async = require("async");
var request = require([__dirname, "request"].join("/"));
module.exports = {
dataset: function(code, options, fn){
if(_.isFunction(options) && _.isUndefined(fn)){
fn = options;
options = {};
}
var format = opt... |
describe('stringView', function() {
beforeEach(function() {
var that = this, done = false;
require(['stringUtil', 'jqueryCookie'], function(String) {
that.String = String;
done = true;
});
//็ญๅพ
ๅๅงๅๅฎๆ
waitsFor(function() {
return done;
}, "Create Models");
});
afterEach(function() {
});
... |
const AnsiToHtml = require('ansi-to-html')
const { Writable } = require('stream')
const fakeWindow = require('../fakeWindow')
class BrowserWindowWritable extends Writable {
constructor(streamName) {
super()
const $fakeBrowserWindow = fakeWindow(
document,
streamName.toUpperCase(),
'cucumber... |
/* */
'use strict';
function ZStream() {
/* next input byte */
this.input = null; // JS specific, because we have no pointers
this.next_in = 0;
/* number of bytes available at input */
this.avail_in = 0;
/* total number of input bytes read so far */
this.total_in = 0;
/* next output byte should be pu... |
/** @ignore */
import AbstractInstruction from './AbstractInstruction';
export default class InstructionWrapper extends AbstractInstruction {
constructor(instruction) {
super(instruction.methodInfo, instruction.idx, instruction.opcode);
this.instruction = instruction;
}
get size() {
return this.ins... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _createClass2 = require('babel-runtime/helpers/createClass');
var _createClass3 = _interopReq... |
/* Controllers */
angular.module('core')
.controller('SigninCtrl', ['$rootScope', '$scope', '$location', '$window', '$timeout', 'Auth',
function ($rootScope, $scope, $location, $window, $timeout, Auth) {
$scope.display_forgot_icon = false;
$scope.hideForgotIconOnBlur = function () {
... |
var apiUrl = process.env.CLOUD ?
'http://' + process.env.CLIENT_DOMAIN + process.env.CLIENT_API_PATH :
'http://' + process.env.CLIENT_DOMAIN + ':' + process.env.PORT + process.env.CLIENT_API_PATH;
exports = module.exports = {
environment: process.env.NODE_ENV,
port: process.env.PORT,
api: {
... |
var Logger = require('./logger');
var logger = new Logger();
module.exports = logger;
|
'use strict';
angular.module('sv')
.controller('NavbarCtrl', function ($scope) {
$scope.date = new Date();
});
|
๏ปฟ/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'floatpanel', {
requires: 'panel'
} );
( function() {
var panels = {};
function getPanel( editor, doc, parentElement, definition, l... |
function(page) {
var regex = /<img[^>]*src="(content\/formfield_files\/[^"]*)"/;
var match = regex.exec(page);
return match[1];
}
|
version https://git-lfs.github.com/spec/v1
oid sha256:3758b79412e0dd3334876feeab6044efed8d2dcf5aa48bcbff46cb708c93ace4
size 33861
|
import _curry3 from './internal/_curry3';
/**
* Makes a shallow clone of an object, setting or overriding the specified
* property with the given value. Note that this copies and flattens prototype
* properties onto the new object as well. All non-primitive properties are
* copied by reference.
*
* @func
* @me... |
export { Card } from './Card.style'
export { CardActions } from './CardActions.style'
export { CardMedia } from './CardMedia.style'
export { CardMenu } from './CardMenu.style'
export { CardSubtitleText } from './CardSubtitleText.style'
export { CardSupportingText } from './CardSupportingText.style'
export { CardTitle }... |
function makeData() {
"use strict";
var dataAustralia = [
{phoneType: "feature", demographic: "Male", value: 0.33},
{phoneType: "feature", demographic: "Female", value: 0.29},
{phoneType: "feature", demographic: "Ages 16-24", value: 0.19},
{phoneType: "feature", demographic: "Ages ... |
var w = 960,
h = 500,
mouse = [null, null],
fill = d3.scale.linear().domain([0, 1e4]).range(["brown", "steelblue"]);
// Initialise boids.
var boids = d3.range(100).map(function() {
return boid()
.position([Math.random() * w, Math.random() * h])
.velocity([Math.random() * 2 - 1, Math.random() ... |
export default {
projections: {
DiagramLink: {
name: {
__caption__: 'name'
},
description: {
__caption__: 'description'
}
}
}
};
|
// @ts-nocheck
export const { Buffer } = require('buffer')
|
/** @jsx h */
import h from '../../../helpers/h'
export const input = (
<state>
<document>
<paragraph>
one
</paragraph>
</document>
</state>
)
export const output = {
kind: 'state',
document: {
kind: 'document',
data: {},
nodes: [
{
kind: 'block',
... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
define(["dojo/_base/lang",
"dojo/_base/array",
"dojo/_base/Deferred",
"dojo/DeferredList",
"dojo/on",
"dojo/_base/sniff"],
function(lang, array, Deferred, DeferredList, on, has){
// module:
// dojox/css3/transition
//create cross platform animation/transition effects
//TODO enable opera mobile when... |
define(['./kindOf'], function (kindOf) {
var _win = this;
/**
* Convert array-like object into array
*/
/**
* Description
* @method toArray
* @param {} val
* @return ret
*/
function toArray(val){
var ret = [],
kind = kindOf(val),
n;
... |
var dir_5a37fa460d8d8ed46083971603ae2788 =
[
[ "modules", "dir_418f0b3bebd041d70149628f27b94e66.html", "dir_418f0b3bebd041d70149628f27b94e66" ]
]; |
import request from '../functions/request';
/* istanbul ignore next */
export default async (bot, uri) => {
const { get, post, put, del } = request(bot, uri);
bot.listen(/^teamline manage add (\w+) (.*)/i, async message => {
const [type, name] = message.match;
const t = type.toLowerCase();
const item... |
var express = require('express');
var router = express.Router();
router.post('/', function(req, res, next) {
var dm = req.app.locals.dataManager;
var newRecord = req.body;
if (dm.checkDataSheme(newRecord)) {
dm.addRecord(newRecord, function(success) {
if (success) {
res.... |
'use strict';
describe('Service: UserMedia', function () {
// load the service's module
beforeEach(module('pulsarClientApp'));
// instantiate service
var UserMedia;
beforeEach(inject(function (_UserMedia_) {
UserMedia = _UserMedia_;
}));
it('should do something', function () {
expect(!!UserMed... |
var UU5 = UU5 || {};
UU5.DocKit = UU5.DocKit || {};
UU5.DocKit.data = UU5.DocKit.data || {};
UU5.DocKit.data.uu5_bricks_date_time = {
tagName: "UU5.Bricks.DateTime",
sourceFile: "../../data/source/uu5-bricks-date-time.js",
cssFile: "../../data/source/uu5-bricks-date-time.less",
descLSI: {
en: '',
cs: `... |
describe('hotttlist section', function () {
beforeEach(module('myApp.hotttlist'));
describe('Hottt Controller', function () {
var $controller;
beforeEach(inject(function (_$controller_) {
// The injector unwraps the underscores (_) from around the parameter names when matching
... |
$.RaCalendar = {
version: '0.0.1',
elements: {
root: null,
header: null,
resources: null,
content: null
},
config: {
date: {
begin_time: "09:00:00",
duration: 3600,
round: '15m'
},
events: {
id: "id",
resource_id: "resource_id",
title: "name",
... |
/* global console */
var _ = require('lodash');
var tape = require('tape');
var test = tape;
//qunit has equal/strictEqual, we just have equal
tape.Test.prototype.strictEqual = function () {
this.equal.apply(this, arguments);
};
tape.skip = function (name) {
console.log('SKIPPING', name);
};
//stub qunit mo... |
import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Root from '../src/components/Root/Root';
import Dashboard from '../src/components/Dashboard/Dashboard';
storiesOf('Spinner', module)
.add('Active Spinner', () => (
<div>
<Root
IsSpinnerActive
location={{
... |
// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name SelecTable.js
// ==/ClosureCompiler==
/**
* @license The MIT License (MIT)
* Copyright (c) 2014 c0ff3m4r <l34k@bk.ru>
*/
/* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and a... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zM4 14v2h2c0-1.11-.89-2-2-2zm0-3v1.43c1.97 0 3.5... |
KISSY.add('brix/gallery/charts/js/pub/views/modules/sign/main',function(S,Base,Node,Global,SVGElement,SVGGraphics){
var $ = Node.all
function Main(){
var self = this
Main.superclass.constructor.apply(self,arguments);
// self.init()
}
Main.ATTRS = {
w:{
value:0
},
h:{
value:0
},
element:... |
import _ from 'lodash';
import { replaceVersion } from 'clayutils';
import { UPDATE_PAGE, REVERT_PAGE, IS_PUBLISHING } from './mutationTypes';
import { UPDATE_PAGE_STATE } from '../page-state/mutationTypes';
import {
save, create, getObject, removeText, remove, getHTML, getMeta
} from '../core-data/api';
import { add... |
angular.module('juiceShop').controller('RecycleController', [
'$scope',
'RecycleService',
'UserService',
'ConfigurationService',
function ($scope, recycleService, userService, configurationService) {
'use strict'
configurationService.getApplicationConfiguration().then(function (config) {
if (co... |
var Utils = require('./../utils')
module.exports = (function() {
var HasManyDoubleLinked = function(definition, instance) {
this.__factory = definition
this.instance = instance
}
HasManyDoubleLinked.prototype.injectGetter = function(options) {
var self = this, _options = options
var customEvent... |
define({
root: ({
_widgetLabel: "Scalebar",
scale: "Scale"
}),
"ar": 1,
"bs": 1,
"ca": 1,
"cs": 1,
"da": 1,
"de": 1,
"el": 1,
"es": 1,
"et": 1,
"fi": 1,
"fr": 1,
"he": 1,
"hi": 1,
"hr": 1,
"hu": 1,
"it": 1,
"id": 1,
"ja": 1,
"ko": 1,
"lt": 1,
"lv": 1,
"nb": 1,
"... |
var assert = require('assert');
var app = require('../lib/app').default;
var wepy = require('../lib/wepy').default;
var App = require('./fake/app');
var wxfake = require('./wxfake');
wxfake.resetGlobal();
describe('app.js', () => {
let appConfig = wepy.$createApp(App, true);
let app = appConfig.$app;
... |
Package.describe({
name: "vulcan:email-templates",
summary: "Telescope email templates package",
version: '1.3.0',
git: "https://github.com/TelescopeJS/Telescope.git"
});
Package.onUse(function (api) {
api.versionsFrom(['METEOR@1.0']);
api.use([
'vulcan:core@1.3.0',
'vulcan:posts@1.3.0',
'vul... |
๏ปฟcordova.define("cordova-plugin-dialogs.NotificationProxy", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. ... |
var $ = require('jquery/dist/jquery');
var log = require('./log');
$(function() {
console.log('hello world');
}); |
// shows this is run through jsbin & you can edit
(function () {
if (window.location.hash == '#noedit') return;
var ie = (!+"\v1");
function set(el, props, hover) {
for (prop in props) {
el.style[prop] = props[prop];
}
}
function hide() {
set(el, { opacity: '0' });
}
var el = do... |
// https://babeljs.io/docs/en/babel-plugin-proposal-private-methods
// Test for `classPrivateProperties` and `classPrivateMethods`
class Counter extends HTMLElement {
#xValue = 0;
#render() {}
get #x() { return this.#xValue; }
set #x(value) {
this.#xValue = value;
window.requestAnimationFrame(
... |
'use strict';
angular.module('sidecar.services', ['ngRoute', 'ui.bootstrap'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/services', {
templateUrl: 'services/services.html',
controller: 'servicesCtrl'
});
}])
.factory('stateService', function($http, $q) {
function svcGetS... |
var app = require('app');
var BrowserWindow = require('browser-window');
var mainWindow = null;
app.on('ready', function() {
mainWindow = new BrowserWindow({ width: 800, height: 800 });
mainWindow.loadUrl('file://' + __dirname + '/index.html');
});
|
/*
* Utilities: A classic collection of JavaScript utilities
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
*
* 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... |
var HelloWorldLayer = cc.Layer.extend({
sprite:null,
ctor:function () {
//////////////////////////////
// 1. super init first
this._super();
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may mo... |
import TransformerPass from "./transformer-pass";
import * as messages from "../messages";
import isFunction from "lodash/lang/isFunction";
import traverse from "../traversal";
import isObject from "lodash/lang/isObject";
import assign from "lodash/object/assign";
import * as acorn from "../../acorn";
import File from ... |
import { storiesOf } from "@kadira/storybook";
import backgrounds from "react-storybook-addon-backgrounds";
import centered from "../../../.storybook/decorators/centered";
import defaultColors from "../../defaults";
import IconSocial, { IconSocialFilled } from "./index";
const story = storiesOf("Social Icons", module... |
/**
* Loader, contains list of Controllers module components
*/
define(['./home-ctrl'], function() {
'use strict';
});
|
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
//
// This class implements a musical system, which is a collection of staves,
// each which can have one or more voices. All voices across all staves in
// the system are formatted together.
import { Element } from './element';
import { Factory } f... |
import Ember from 'ember';
import app from '../app';
import { normalizeURLSafeBase64 } from '../utils/base64';
export default Ember.Controller.extend({
queryParams: {access_key: null},
access_key: null,
modelChanged: function() {
// TODO: unsubscribe
app.pubnub.subscribe({
channel: this.get('mod... |
var searchData=
[
['plasmid_2epy',['plasmid.py',['../plasmid_8py.html',1,'']]]
];
|
/*===
0.00
1.00
1.00
0.9999
0.99990
1.23457e+7
1.234568e+7
12345678
12345678.0
8.76543e+7
8.765432e+7
87654321
87654321.0
5.556e+4
55555
4.444e+4
44444
1.000e+5
99999
0
0
0.0
0.00
0
0
0.0
0.00
===*/
function precisionTest() {
function test(x, n) {
print(new Number(x).toPrecision(n));
}
test(0, 3);... |
app.directive('restrict', function($parse) {
return {
restrict: 'A',
require: 'ngModel',
link: function(scope, iElement, iAttrs, controller) {
scope.$watch(iAttrs.ngModel, function(value) {
if (!value) {
return;
}
... |
import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getUnhandledProps,
META,
useValueAndKey,
} from '../../lib'
import TableCell from './TableCell'
/**
* A table can have a header cell.
*/
function TableHeaderCell(props) {
const { as, classNam... |
/**
* @class SelectField
* @extends FormField
* @param config {Object} Configuration object
* @constructor
* @description A select field node
*/
Y.SelectField = Y.Base.create('select-field', Y.ChoiceField, [Y.WidgetParent, Y.WidgetChild], {
FIELD_TEMPLATE : '<select></select>',
/**
* @property Sele... |
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"2":"C p x J L N I"},C:{"2":"0 1 2 3 4 5 6 8 9 YB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y WB QB"},D:{"1":"GB HB IB","2":"0 1 2 3 4 F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.