code
stringlengths
2
1.05M
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. All Rights Reserved. // // 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.ap...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ 'use strict'; var utils = require('./utils'); /** * @deprecated * This...
'use strict'; const userUID = 'plugin::users-permissions.user'; const roleUID = 'plugin::users-permissions.role'; module.exports = ({ strapi }) => { const { naming } = strapi.plugin('graphql').service('utils'); const user = strapi.getModel(userUID); const role = strapi.getModel(roleUID); const createRole = ...
import webpack from 'webpack'; import type { WebpackError, Stats, WebpackOptions } from 'webpack'; const options: WebpackOptions = { devServer: { compress: true }, infrastructureLogging: { level: 'info', debug: ['MyPlugin', /MyPlugin/, (name) => name.includes('MyPlugin')], }, output: { filen...
'use strict'; import Constant from './constant'; export default { getTopics(params) { params.path = '/api/v1/topics/?page=' + params.page + '&tab=' + params.tab + '&limit=10'; request(params); }, getDetailById(params) { params.path = '/api/v1/topic/' + params.id; request(params); } }; functio...
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Before generating any new files, remove any previously-created files. clean: { tests: ['test/output/'] }, // Configuration to be run (and then tested). kss: { options: {}, dist: ...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M4 6c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm2 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6 2c-1.1 0-2 ...
const should = require('should'); const sinon = require('sinon'); const models = require('../../../../server/models'); const {UnauthorizedError} = require('../../../../server/lib/common/errors'); const sessionController = require('../../../../server/api/v2/session'); const sessionServiceMiddleware = require('../../.....
"use strict"; var transformValues = [ ['translate3d(0px, 0px, 0px)', 'translate3d(20px, 40px, 60px)', 'translateZ(20px)'], ['translateZ(50px) scale3d(1, 1, 1)', 'translateZ(50px) scale3d(1.5, 3, 5)', 'translateZ(50px) scaleZ(2)'], ['rotateX(0deg)', 'rotateX(50deg)'], ['rotateY(0deg)', 'rotateY(50deg)'], ...
import React from "react"; import ReactDOM from "react-dom"; import VictoryErrorBar from "src/components/victory-errorbar/victory-errorbar"; import VictoryChart from "src/components/victory-chart/victory-chart"; import VictoryGroup from "src/components/victory-group/victory-group"; import VictoryStack from "src/compone...
const plugin = require('./index'); module.exports = plugin.default;
function x ( a b ) {}
var test = require('tap').test; var fs = require('fs'); var basename = require('path').basename; var util = require('util'); var async = require('async'); var git = require('../lib/git'); git.setOutputDirectory(__dirname + '/../tmp/'); test("Bower test", function(t) { var bower = require('../lib/sources/bower'); ...
module.exports = { openSeedFile, openSeedDirectory, openTorrentFile, openTorrentAddress, openFiles } const { dialog } = require('electron') const log = require('./log') const windows = require('./windows') /** * Show open dialog to create a single-file torrent. */ function openSeedFile () { if (!window...
var datatable, tokeninput; datatable = function(){ $('#datatable').dataTable({ "order": [[1, 'desc']], oLanguage: { sLengthMenu: '_MENU_ नोंदण्या दाखवा', sInfo: '_TOTAL_ पैकी _START_ ते _END_ नोंदण्या दर्शवित आहे', sInfoFiltered: '', sInfoEmpty: 'कोणतीही नोंदणी नाही', sEmptyTable...
/** * Copyright <%= year %> Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
var _curry2 = require('./internal/_curry2'); var _dispatchable = require('./internal/_dispatchable'); var _xfind = require('./internal/_xfind'); /** * Returns the first element of the list which matches the predicate, or `undefined` if no * element matches. * * Acts as a transducer if a transformer is given in li...
module.exports = { getLink: function(url, meta, cb) { var canonical = meta.canonical && meta.canonical.href || meta.canonical; if (!canonical || url == canonical || !url.match(/^https?:\/\/(m|mobile)\./i)) { cb(null); } cb({ redirect: canonical ...
angular.module('umbraco.services') .factory('userService', function ($rootScope, eventsService, $q, $location, $log, securityRetryQueue, authResource, dialogService, $timeout, angularHelper) { var currentUser = null; var lastUserId = null; var loginDialog = null; //this tracks...
/** * Site Header */ RB.HeaderView = Backbone.View.extend({ SEARCH_SUMMARY_TRIM_LEN: 28, DESKTOP_SEARCH_RESULTS_WIDTH: 350, events: { 'click #nav_toggle': '_handleNavClick', 'touchstart #nav_toggle': '_handleNavClick', 'focus #search_field': '_closeMobileMenu', }, /** ...
import { get, set, bind } from 'ember-metal'; import { Object as EmberObject } from 'ember-runtime'; import EmberLocation from './api'; /** @module @ember/routing */ /** `HashLocation` implements the location API using the browser's hash. At present, it relies on a `hashchange` event existing in the browser. ...
'use strict'; var map = require('lodash/collection/map'), forEach = require('lodash/collection/forEach'), isString = require('lodash/lang/isString'), filter = require('lodash/collection/filter'), assign = require('lodash/object/assign'); var Types = require('moddle/lib/types'), parseNameNs = requi...
/* * creations_ecosystem_server.js */ 'use strict' // Path and paths: needs to be at the top var path = require('../libraries/path'); var paths = require('../paths/paths'); // Babel ES6/JSX Compiler: needs to be before ES6/JSX components require(path.join(paths.libraries, '/babel-register')); // Core Node.js modu...
function screenGame() { if (debug) { gpsRequiredAccuracy = 10000 } if (gps.latitude && gps.longitude && gps.accuracy < gpsRequiredAccuracy) // Only do stuff if we know where we are { if (zombies.length == 0) // Spawn zombies if we have none currently { makeZombies() } if (ammo.length == 0) // Make a...
lychee.define('lychee.ai.enn.Genome').exports((lychee, global, attachments) => { /* * IMPLEMENTATION */ const Composite = function(data) { let states = Object.assign({}, data); this.genes = []; this.__map = {}; this.setGenes(states.genes); states = null; }; Composite.prototype = { /* ...
var config = { apiKey: "AIzaSyCUHgCvf3OhLuDIm4T5156qu_tkfD8LJM8", authDomain: "independence-day-capstone.firebaseapp.com", databaseURL: "https://independence-day-capstone.firebaseio.com", storageBucket: "", }; firebase.initializeApp(config);
const DrawCard = require('../../drawcard.js'); class Attainted extends DrawCard { setupCardAbilities(ability) { this.whileAttached({ effect: ability.effects.removeIcon('intrigue') }); } canAttach(player, card) { if(card.getType() !== 'character' || card.controller === t...
import RESTAdapter from 'ember-data/adapters/rest'; export default RESTAdapter.extend({ });
/** * Created by jasper on 2/5/14. */ var questoria_app = angular.module('questoria', ['ui.bootstrap', 'ngResource', 'ngCookies', 'angular-growl']); questoria_app.config(['growlProvider', function(growlProvider) { growlProvider.globalTimeToLive(4000); }]); //questoria_app.factory('loadingInterceptor', function(...
var mongoose = require('mongoose'); var config = require('config'); var async = require('async'); var _ = require('lodash'); var fs = require('fs'); require('date-utils'); var Project = require('../lib/model/project'); var Logs = require('../lib/model/log'); var STORE_PATH = __dirname + '/store/taskUpdateLog'; async...
describe('{{ module}}.{{ name }} module', function() { 'use strict'; var ctrl; // Include the main module beforeEach(module('{{module}}')); //Mock dependencies beforeEach(module(function($provide) { var serviceMock = jasmine.createSpy('serviceMock') .and....
/* * language_data.js * ~~~~~~~~~~~~~~~~ * * This script contains the language-specific data used by searchtools.js, * namely the list of stopwords, stemmer, scorer and splitter. * * :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :license: BSD, see LICENSE for details. * */ va...
define({"months-format-abbr":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],"months-format-wide":["Chaitra","Vaisakha","Jyaistha","Asadha","Sravana","Bhadra","Asvina","Kartika","Agrahayana","Pausa","Magha","Phalguna"],eraAbbr:["SAKA"],"months-for...
// deps with dots angular.module('main', ['myLibrary.one', 'myLibrary.two.something']);
// Generated by CoffeeScript 1.9.3 /** * @package CleverStyle Music * @category Web Components * @author Nazar Mokrynskyi <nazar@mokrynskyi.com> * @copyright Copyright (c) 2014-2015, Nazar Mokrynskyi * @license MIT License, see license.txt */ (function() { document.webL10n.ready(function() { var e...
var http = require('http'), path = require('path'), fs = require('fs'); var lab = exports.lab = require('lab').script(), assert = require('assert'); var describe = lab.experiment, it = lab.test, before = lab.before, after = lab.after; var server = require('../server'); describe('server', fun...
/** @module ember @submodule ember-runtime */ // require('ember-runtime/mixins/array'); // require('ember-runtime/mixins/mutable_enumerable'); // .......................................................... // CONSTANTS // var OUT_OF_RANGE_EXCEPTION = "Index out of range"; var EMPTY = []; // ...........................
'use strict'; /** * This file is part of the Aisel package. * * (c) Ivan Proskuryakov * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @name AiselKernel * @description Kernel module, module contains data that we c...
/* * Array enumeration order is not strictly specified. This test case * compares behavior against the currently desired semantics: * * - If dense, enumerate array keys first, then other keys * * - When converting to sparse, re-add keys so that array keys * are first (i.e. preserve order when aband...
import{cx}from"@twind/core";import{twind,cssom,observe}from"@twind/core";var active;function runtime(t,e){return active?.destroy(),active=observe(twind(t,cssom()),e)}function apply(t,...e){return"~{"+cx(t,...e)+"}"}function tw(t,...e){e=cx(t,...e);return active?active.inject(e):e}function theme(){}export{runtime,apply,...
var SOSIDemo = window.SOSIDemo || {}; (function (ns, undefined) { "use strict"; var Form = Backbone.View.extend({ tagName: "form", template: $("#sosiform").html(), events: { "submit": "submit" }, initialize: function () { _.bindAll(this, "sub...
let project = new Project('New Project'); project.addAssets('Assets/**'); project.addSources('Sources'); resolve(project);
import { run } from '@ember/runloop'; export default function destroyApp(application) { if (server) { server.shutdown(); } run(application, 'destroy'); }
import React, { PropTypes } from 'react'; import injectSheet from 'react-jss'; import SimpleDialog from './simpleDialog'; const DialogComponent = ({ title, fixedContent, scrollableContent, classes, show = true, onHide, onCancel, submit }) => ( <SimpleDialog show={show} onHide={onHide} onCancel={onCancel}...
module("gradient"); test("linearGradient", 1, function() { //Different for Moz and Webkit ok( /linear-gradient|gradient/i.test( jQuery("#test").css("backgroundImage","linearGradient(grey, blue)").css("backgroundImage") ) , "returns correct value" ); //ok( /^url(.*) 30 27 30 27 round round$/i.test( jQuery("#test")...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
/* * This content is licensed according to the W3C Software License at * https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document */ var ComboboxAutocomplete = function (comboboxNode, buttonNode, listboxNode) { this.comboboxNode = comboboxNode; this.buttonNode = buttonNode; this.listb...
var autoPrefixBrowserList = ['last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4']; var siteUrl = "http://www.example.com"; var optimizeDimensions = [{ height: 600, width: 500 }, { height: 900, width: 1200 }] //load all of our dependencies //add more here if you want to incl...
import React from 'react'; import { Row, Col, Grid, Panel, Button, MenuItem, PanelBody, PanelHeader, ButtonGroup, ButtonToolbar, PanelContainer, DropdownButton, } from '@sketchpixy/rubix'; import colors from './colors'; class ButtonsOutlined extends React.Component { render() { return (...
'use strict'; angular.module('treasuremapApp') .controller('UserCtrl', function ($scope, $stateParams, Auth, User) { $scope.currentUser = Auth.getCurrentUser(); $scope.isFriend = Auth.isFriend; $scope.user = User.get({ id: $stateParams.id }); $scope.locations = User.locations({ id: $stateParams.id }); ...
setTimeout(function() { function getButtonHtml(icon, text) { return '<span class="copy-code-button__text">' + text + '</span><i class="' + icon + '"></i>'; } function resetButton(button) { button.innerHTML = getButtonHtml('far fa-copy', 'Copy code'); button.className = 'btn copy-code-button'; } ...
import * as React from 'react'; import useEnhancedEffect from './useEnhancedEffect'; /** * https://github.com/facebook/react/issues/14099#issuecomment-440013892 * * @param {function} fn */ export default function useEventCallback(fn) { const ref = React.useRef(fn); useEnhancedEffect(() => { ref.current = f...
/** * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule j...
import { run } from '@ember/runloop'; /* globals Element */ import { assign } from '@ember/polyfills'; const DEFAULT_EVENT_OPTIONS = { canBubble: true, cancelable: true }; const KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup']; const MOUSE_EVENT_TYPES = [ 'click', 'mousedown', 'mouseup', 'dblclick', ...
/** * VERSION: beta 1.25 * DATE: 2012-07-01 * JavaScript (ActionScript 3 and 2 also available) * UPDATES AND DOCS AT: http://www.greensock.com * * Copyright (c) 2008-2012, GreenSock. All rights reserved. * This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for * corpora...
var createHeader = require('./') document.body.style.background = '#222' document.body.appendChild(createHeader())
/* * Copyright 2007-2008 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by...
/*globals describe, beforeEach, afterEach, it*/ var testUtils = require('../utils'), should = require('should'), sinon = require('sinon'), when = require('when'), _ = require('lodash'), path = require('path'), rewire = require('rewir...
define(["underscore", "modules/backbone-mozu"], function (_, Backbone) { var ProductPrice = Backbone.MozuModel.extend({ dataTypes: { price: Backbone.MozuModel.DataTypes.Float, salePrice: Backbone.MozuModel.DataTypes.Float, offerPrice: Backbone.MozuModel.DataTypes.Float ...
version https://git-lfs.github.com/spec/v1 oid sha256:1b56d43dd3060bf065ec7b3f42e81a7e7997c571cff99a15ae477ef5ae5bda64 size 2527
'use strict'; describe('dede.version module', function() { beforeEach(module('myApp.version')); describe('version service', function() { it('should return current version', inject(function(version) { expect(version).toEqual('0.1'); })); }); });
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js'; class App extends React.Component { componentDidMount() { this.refs.top.on('checked', () => { ...
// This is a karma config file. For more details see // http://karma-runner.github.io/0.13/config/configuration-file.html // we are also using it with karma-webpack // https://github.com/webpack/karma-webpack var webpackConfig = require('../../build/webpack.test.conf') module.exports = function (config) { confi...
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ window.$ = window.jQuery = require('jquery'); require('boot...
/** * Created by Liyazhou on 16/9/6. */ import React from 'react'; import { View, StyleSheet, Text, ScrollView, NavigatorIOS, Navigator, TabBarIOS, StatusBar } from 'react-native'; import Back from './views/bank'; import Film from './views/film'; import Food from './views/food'; impo...
class MethodLookupA { foo() { return 'A.foo()'; } get bar() { return 'A.get.bar'; } set bar(value) { } } class MethodLookupB extends MethodLookupA { get foo() { return 'B.foo.get'; } set foo(value) { } bar() { return 'B.bar()'; } } class MethodLookupC extends MethodLookupB { x() ...
import Vue from 'vue'; import autoMergeFailedComponent from '~/vue_merge_request_widget/components/states/mr_widget_auto_merge_failed'; const mergeError = 'This is the merge error'; describe('MRWidgetAutoMergeFailed', () => { describe('props', () => { it('should have props', () => { const mrProp = autoMer...
jsBackend.FormBuilder = { /** * Current form */ formId: null, /** * Initialization */ init: function () { // variables $selectMethod = $('select#method'); $formId = $('#formId'); // fields handler jsBackend.FormBuilder.Fields.init(); ...
export default function httpReq(opts) { if (typeof XMLHttpRequest === 'undefined' || typeof FormData === 'undefined') { return; } const xhr = new XMLHttpRequest(); const formData = new FormData(); handleParams(formData, opts); handleProgress(xhr, opts); handleCallBack(xhr, opts); ...
/** * # Backend.js * * Abstract Base class for Backend support * */ 'use strict'; /** * ## Async support * */ require('regenerator/runtime'); /** * ## Imports * * Config for defaults and underscore for a couple of features */ import CONFIG from './config'; import _ from 'underscore'; export default c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chalk_1 = require("chalk"); const glob_1 = require("glob"); const tslint_1 = require("tslint"); const component_data_1 = require("../material/component-data"); const component_walker_1 = require("../tslint/component-walker"); const liter...
// Copyright 2014 Traceur 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 applicable law or agreed ...
var Keyboard = function() { var self = this; window.addEventListener( 'keydown', function(evt) { self.onKeyDown(evt);}, false); window.addEventListener( 'keyup', function(evt) { self.onKeyUp(evt);}, false); this.keyListeners = new Array(); this.keys = new Array(); this.KEY_SPACE = 32; this.KEY_LEFT = 37; ...
/** A Linkified object contains a DOM node (or just plain text) whose inner text is replaced by HTML containing `<a>` links to URLs discovered in that text. Call with new Linkified(text, options) Here are some the available options and their defaults { tagName: 'a', newLine: '\n', target: '_blank', ...
// Zepto.js // (c) 2010-2016 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. ;(function(){ // getComputedStyle shouldn't freak out when called // without a valid element as argument try { getComputedStyle(undefined) } catch(e) { var nativeGetComputedStyle = getComp...
import React, { Component, PropTypes } from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { IndexLink } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; import Nav from 'react-bootstrap/lib/Nav'; impor...
/*global module:false*/ module.exports = function(grunt) { 'use strict'; // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %> ' + '\n' + '<%= pkg....
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import containsNode from 'fbjs/lib/containsNode'; import getActiveElement from 'fbjs/lib/getActiveElement'; import * as ReactDOMSelecti...
import Course from '../model' import co from 'co' export default function search(req, res, next) { co(function* () { try { let docs = yield Course .find({ $text: { $search: req.query.q } }, '-__v -_id -meeting_sections._id -meeting_sections.times._id') .limit(req.query.limit) .skip(...
module.exports = (db, Sequelize) => { const Room = db.define('room', { pathUrl: { type: Sequelize.TEXT, allowNull: false }, topic: Sequelize.TEXT, className: Sequelize.TEXT, lecturer: Sequelize.TEXT, audioUrl: { type: Sequelize.TEXT, defaultValue: 'audio url' }, ...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
/* */ "format global"; (function (tree) { tree.mixin = {}; tree.mixin.Call = function (elements, args, index, currentFileInfo, important) { this.selector = new(tree.Selector)(elements); this.arguments = (args && args.length) ? args : null; this.index = index; this.currentFileInfo = currentFileInfo; ...
YUI.add('gallery-scrollview-touch', function (Y, NAME) { /** * * YUI Module to use CSS scrollviews for supported touch devices. * * Copyright Julien Sanchez 2013. * * Full code on github : https://github.com/julesanchez * * Code licensed under the BSD License: * http://developer.yahoo.net/yui/license.txt * ...
/** * @fileoverview Validates spacing before and after semicolon * @author Mathias Schreck */ "use strict"; const astUtils = require("../ast-utils"); //------------------------------------------------------------------------------ // Rule Definition //--------------------------------------------------------------...
var assert = require("assert"); var _ = require('underscore'); var archinfo = require('./archinfo.js'); var buildmessage = require('./buildmessage.js'); var catalog = require('./catalog.js'); var catalogLocal = require('./catalog-local.js'); var Console = require('./console.js').Console; var files = require('./files.j...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), mongoose = require('mongoose'), User = mongoose.model('User'); /** * User middleware */ exports.userByID = function(spark, message, id, cb) { User.findById(id).exec(function(err, user) { if (err) return cb(err); if (!user) return...
export { default } from 'rsg-components/Wrapper/Wrapper';
"use strict"; var utils = require("../utils"); var log = require("npmlog"); module.exports = function(defaultFuncs, api, ctx) { return function removeUserFromGroup(userID, threadID, callback) { if(!callback && utils.getType(threadID) === 'Function') { throw {error: "please pass a threadID as a second argu...
/*! binarypack.js build:0.0.9, production. Copyright(c) 2012 Eric Zhang <eric@ericzhang.com> MIT Licensed */(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_...
/** * List Items * <ListItem title={'Hello World'} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component, PropTypes } from 'react'; import { ListItem } from 'react-native-elements'; // Consts and Libs import { AppColors, AppStyles } from '@theme/'...
/* Sagas are used to asynchronously execute actions upon events. TODO: Up until now, most of ConnectorDB was built with actions hacked on wherever possible. This led to a tough codebase, and a rather unpleasant difficulty of doing anything interesting. With Saga, this difficulty is gone. Unfortunately, most of the cor...
'use strict'; angular.module('manageApp') .controller('AdminCtrl', function ($rootScope, $scope, LxDialogService, LxNotificationService, Auth, User, ServiceHelper) { $rootScope.pageName = 'admin'; // Use the User $resource to fetch all users User.query().$promise.then(function (data) { $scope.user...
/* * File: Graph.Plot.js */ /* Object: Graph.Plot <Graph> rendering and animation methods. Properties: nodeHelper - <NodeHelper> object. edgeHelper - <EdgeHelper> object. */ Graph.Plot = { //Default initializer initialize: function(viz, klass){ this.viz = viz; this.config...
import { LOGOUT_SUCCESS, LOGOUT_FAILURE } from '../../constants/session'; /** * Logout user by deleting JWT in localstorage */ export default () => { localStorage.removeItem('accessToken'); return !localStorage.getItem('accessToken') ? success() : failure(); }; function success() { return { type: LO...
// @flow type A = number;
Clazz.declarePackage ("J.jvxl.readers"); Clazz.load (["J.jvxl.readers.PmeshReader"], "J.jvxl.readers.ObjReader", ["java.util.Hashtable", "JU.BS", "$.CU", "$.P3", "$.PT"], function () { c$ = Clazz.declareType (J.jvxl.readers, "ObjReader", J.jvxl.readers.PmeshReader); Clazz.makeConstructor (c$, function () { Clazz....
import { assertionsEnabled, isBlank } from 'angular2/src/facade/lang'; import { BaseException } from 'angular2/src/facade/exceptions'; import { ListWrapper } from 'angular2/src/facade/collection'; import { AbstractChangeDetector } from './abstract_change_detector'; import { ChangeDetectionUtil } from './change_dete...
/* Get Programming with JavaScript * Listing 5.06 * A function with two arguments */ var showSum; showSum = function (number1, number2) { var total = number1 + number2; console.log("The sum is " + total); }; showSum(30, 23); showSum(2.8, -5); /* Further Adventures * * 1) Use the showSum function to add 56 ...
module.exports = function(grunt) { require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { less: { files: ['src/less/**/*.less'], tasks: ['less'], o...
/* == malihu jquery custom scrollbars plugin == version: 2.3 author: malihu (http://manos.malihu.gr) plugin home: http://manos.malihu.gr/jquery-custom-content-scroller */ (function($){ var methods={ init:function(options){ var defaults={ set_width:false, /*optional element width: boolean, pixels, percen...