code stringlengths 2 1.05M |
|---|
/*
* script-analyze
* https://github.com/makepanic/script-analyze
*
* Copyright (c) 2013 Christian
* Licensed under the MIT license.
*/
'use strict';
var provider = require('./provider/csvProvider'),
analyze = require('./analyze/analyze');
exports.loadList = function(path) {
return provider(path);
};
ex... |
export * from './Button';
export * from './Card';
export * from './CardSection';
export * from './Header';
export * from './Spinner';
export * from './TextInputBox';
|
'use strict';
var createPointCloudRenderer = require('gl-pointcloud2d');
var str2RGBArray = require('../../lib/str2rgbarray');
var findExtremes = require('../../plots/cartesian/autorange').findExtremes;
var getTraceColor = require('../scatter/get_trace_color');
function Pointcloud(scene, uid) {
this.scene = scen... |
version https://git-lfs.github.com/spec/v1
oid sha256:9a2347f894a613431f6e4463d2367747337be183d8e837f8b4dfb9b63465830f
size 80662
|
'use strict';
var gulp = require('gulp'),
install = require('gulp-install'),
conflict = require('gulp-conflict'),
template = require('gulp-template'),
rename = require('gulp-rename'),
inquirer = require('inquirer');
var debug = require('gulp-debug');
var defaultQuestions = require('./questions');
var trans... |
class ColorChangingLine extends Polygon {
constructor(length) {
super([
new Line(new Point(-length, 0), new Point(length, 0), ColorMapper.randomColor())
]);
this.MAX_ITERATIONS = 120;
this.iteration = 0;
}
draw(canvas) {
if (this.iteration > this.MAX_ITE... |
exports.session_path = __home + '/session';
exports.start = function (server, callback) {
if (require('fs').existsSync(exports.session_path) == false)
require('fs').mkdirSync(exports.session_path);
var conf = server.vhost.middleware;
if (!conf.session) conf.session = {};
if (!conf.session.expi... |
function propertySelected(value) {
$('#displayProperty').text(value);
$.ajax({
url : '/dashboard/__breakdown/' + value,
type : 'GET',
success : function(response) {
console.log(JSON.parse(response))
populateTable(JSON.parse(response));
},
failure : function(response) {
consol... |
'use strict';
const ipc = require('ipc');
const renderBadge = require('./render-badge');
let notificationCounter = 0;
module.exports = () => {
//require('electron-notification-shim')();
const OldNotification = Notification;
Notification = function (title, options) {
// Send this to main thread.
// Catch it i... |
/*
* img-stats
* https://github.com/jlembeck/img-stats
*
* Copyright (c) 2013 Jeffrey Lembeck
* Licensed under the MIT license.
*/
/*global require:true, console:true*/
(function(exports) {
"use strict";
var fs = require( 'fs' );
var isPng = function( data ){
var d = data.slice(0, 16);
return d =... |
import React, {Component} from 'react';
import ReactDOMServer from 'react-dom/server'
import counterpart from 'counterpart';
import mapboxgl from 'mapbox-gl';
import PropTypes from 'prop-types';
import SatelliteControl from './map/satellite-control';
import CameraControl from './map/camera-control';
class Map extends ... |
var Definition = require('../definitionBase'),
util = require('util'),
_ = require('lodash'),
dotty = require('dotty'),
debug = require('debug')('denormalizer:eventExtender');
/**
* EventExtender constructor
* @param {Object} meta Meta infos like: { name: 'name', version: 1, payload: 'some.pa... |
$(document).on('keydown', function(e) {
// F1
if (e.which == 112) {
e.preventDefault();
//console.log('F1');
repeat_last();
return false;
}
});
$(document).on('click', '#repeat-button', function() {
//console.log('repeat button clicked');
repeat_last();
});
$(document).on('click', '#junk-but... |
export default class ngbCytoscapeToolbarPanelController {
constructor() {
}
static get UID() {
return 'ngbCytoscapeToolbarPanelController';
}
zoomIn() {
this.actionsManager.zoomIn();
}
zoomOut() {
this.actionsManager.zoomOut();
}
restoreDefault() {
... |
'use strict';
/**
* @ngdoc function
* @name sbAdminApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the sbAdminApp
*/
angular.module('sbAdminApp')
.controller('UsersCtrl', function($scope,$position,$state,$cookies,UsersService) {
console.log("UsersCtrl")
$scope.data = {
... |
import Ember from 'ember';
export default Ember.Controller.extend({
notifications: Ember.inject.service(),
args: Ember.computed.alias('model'),
actions: {
confirmAccept: function () {
var args = this.get('args'),
editorController,
model,
... |
import * as TYPE from '../mutation-types'
const state = {
searchHistory: {
hotData: [],
historyData: [],
timeStamp: ''
}
}
/* api getters can use all */
const getters = {
searchHistory: state => state.searchHistory
}
const mutations = {
[TYPE.SEARCH_HISTORY_INIT] (state, {searchHistory}) {
stat... |
// # Backup Database
// Provides for backing up the database before making potentially destructive changes
var fs = require('fs-extra'),
path = require('path'),
Promise = require('bluebird'),
config = require('../../config'),
common = require('../../lib/common'),
urlUtils = require('../../lib/url-ut... |
/* eslint-disable func-names, prefer-arrow-callback, no-unused-expressions */
// Third party components
const stream = require('stream');
const {expect} = require('chai');
const Promise = require('bluebird');
// Local components
require('../../../app/models/build.js');
require('../../../app/models/testcase.js');
requ... |
Parts = new Meteor.Collection('parts');
|
var utility = {
'articleTitle':'',
'apiUrl':'https://en.wikipedia.org/w/api.php?callback=?',
'revisionUrl' : 'https://en.wikipedia.org/w/index.php?oldid=',
'redirectTitle' : function(title){
var check_redirect_dict = {
'action':'query',
'format':'json',
'titles':title,
'redirects':''
};
var th... |
import {TokenService} from '@/services'
import {mutationTypes} from "./user";
const types = {
CHECK_TOKEN: 'checkToken',
DELETE_TOKEN: 'deleteToken',
CREATE_TOKEN: 'createToken'
};
const token = {
state: {},
mutations: {},
actions: {
[types.CHECK_TOKEN]({commit, getters}){
return new Promise(... |
//Using this filter to render unicode based cards in html form
filters.filter('unsafe', ['$sce', function ($sce) {
return $sce.trustAsHtml;
}]);
|
/**
* Created by Exper1ence on 2017/1/17.
*/
import Component from '../Component';
import gakk1, {V} from '../../gakk1';
import {func,} from '../util';
// export default class Draggable extends Component {
// awake({}) {
// return {
// _dir: -1,
// _last: null,
// }
// ... |
import Phaser from 'phaser'
/**
* Class for handling input interaction with keyboard and touch devices
*/
export default class {
constructor({ game }) {
this.jump = false
this.game = game
// add handling for spacebar
let space = this.game.input.keyboard.addKey(Phaser.KeyCode.SPACEBAR)
space.on... |
Ext.define("Com.GatotKaca.ERP.module.GeneralSetup.view.grids.District",{extend:"Ext.grid.Panel",store:"Com.GatotKaca.ERP.module.GeneralSetup.store.District",alias:"widget.griddistrict",id:"griddistrict",layout:{type:"fit"},bodyStyle:"background : transparent",title:"District List",border:true,columns:[{xtype:"rownumber... |
#!/usr/bin/env node
/**
* Created by zhs007 on 15/10/22.
*/
var fs = require('fs');
var process = require('process');
var iconv = require('iconv-lite');
var Iconv = require('iconv-lite').Iconv;
var glob = require('glob');
var argv = require('yargs')
.option('i', {
alias : 'input',
demand: true,
... |
/**
* Copyright (c) 2016-present ZENOME, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
(function() {
var NodeGit = require("nodegit");
var util_github = new Object();
try {
util_github.... |
var Promise = require('bluebird'),
fs = require('fs'),
semver = require('semver'),
packageInfo = require('../../package.json'),
errors = require('./errors'),
config = require('./config');
function GhostServer(rootApp) {
this.rootApp = rootApp;
this.httpServer = null;
this.conn... |
module.exports = {
'env': {
'es6': true
},
'extends': 'standard',
'globals': {
'Atomics': 'readonly',
'SharedArrayBuffer': 'readonly'
},
'parserOptions': {
'ecmaVersion': 2018,
'sourceType': 'module'
},
'rules': {
}
}
|
import Layer from './components/layer/Layer';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(<Layer />, document.getElementById('content')); |
// Karma configuration
// Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var __chunk_1 = require('./chunk-14c82365.js');
var __chunk_5 = require('./chunk-13e039f5.js');
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var script = {
name: 'NavbarBurger',
props: {
isOpened: {
type: Boolean,
defaul... |
import Icon from '../../components/Icon.vue'
Icon.register({
'brands/wodu': {
width: 640,
height: 512,
paths: [
{
d: 'M178.4 339.7h-37.3l-28.9-116.2h-0.5l-28.5 116.2h-38l-45.2-170.8h37.5l27 116.2h0.5l29.7-116.2h35.2l29.2 117.7h0.5l28-117.7h36.8zM271.4 212.7c39 0 64.1 25.8 64.1 65.3 0 39.2-2... |
// Regular expression that matches all symbols in the `Lao` script as per Unicode v4.1.0:
/[\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC\u0EDD]/; |
'use strict';
describe('Service: mockDataService', function () {
// load the service's module
beforeEach(module('script2Bit'));
// instantiate service
var mockDataService;
beforeEach(inject(function (_mockDataService_) {
mockDataService = _mockDataService_;
}));
it('should do something', function ... |
export { default as Module } from './Module';
export { default as EventsPage } from './EventsPage';
export { default as FormsPage } from './Forms/FormsPage';
|
const Definition = Jymfony.Component.DependencyInjection.Definition;
class CustomDefinition extends Definition {
}
module.exports = CustomDefinition;
|
var JThreadPoolManager = Java.type('net.arnx.rhinode.core.ThreadPoolManager');
var JCompletableFuture = Java.type('java.util.concurrent.CompletableFuture');
var JPromiseException = Java.type('net.arnx.rhinode.core.PromiseException');
var JCompletionException = Java.type('java.util.concurrent.CompletionException');
... |
(function ($, w) {
var dateFormat = function() {
var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
timezoneClip = /[^-+\dA-Z]/g,
pad... |
/**
* AssetController
*
* @description :: Server-side logic for managing assets
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
var _ = require('lodash');
var path = require('path');
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil');
var Promise = require('bluebi... |
import Base from 'simple-auth/authenticators/base';
import Configuration from './../configuration';
/**
Authenticator that conforms to OAuth 2
([RFC 6749](http://tools.ietf.org/html/rfc6749)), specifically the _"Resource
Owner Password Credentials Grant Type"_.
This authenticator supports access token refresh... |
var
path = require('path'),
fs = require('fs-extended');
module.exports = function(dest, options) {
var file = path.join(dest, "composer.json");
if (fs.existsSync(file)) {
var data = fs.readFileSync(file, { encoding: 'utf8' });
if (data) {
var pkg = JSON.parse(data);
pkg.name = typeof optio... |
/*jslint node: true, nomen: true */
module.exports = function (childProcess, gearman) {
'use strict';
var syncUserProfileOnPostsByUserId,
syncedCallback;
syncUserProfileOnPostsByUserId = function (id, syncedCallback, worker) {
var filteredId = parseInt(id, 10),
cmdParams,
... |
import _ from 'lodash';
const ModelResolver = requireF('core/services/resolvers/ModelResolver');
exports.register = async (server, options, next) => {
const modelResolver = new ModelResolver();
const userModel = modelResolver.getModel('user');
server.ext('onRequest', async (request, reply) => {
if (!reques... |
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _fs = require('fs');
var _fs2 = _interopRequireDefault(_fs);
var _utilJs = require('./../util.js');
/** @test {CoverageBuilder} */
describe('Coverage:', function () {
/** @test {CoverageBuilder#ex... |
angular.module('PlayersApp').controller('contactController', ['$http', '$scope', contactController]);
function contactController($http, $scope) {
$(document).ready(function() {
$('#contact_form').bootstrapValidator({
// To use feedback icons, ensure that you use Bootstrap v3.1.0 or later
... |
import triggerBeforeSoftRestore from "./triggerBeforeSoftRestore";
import triggerAfterSoftRestore from "./triggerAfterSoftRestore";
const documentSoftRestore = function(args = {}) {
const { doc, simulation = true, trusted = false } = args;
// Stop execution, if we are not on the server, when the "simulation" flag... |
'use strict';
describe('Service: PodcastFeed', function () {
// load the service's module
beforeEach(module('robitApp'));
// instantiate service
var Podcastfeed;
beforeEach(inject(function (_PodcastFeed_) {
PodcastFeed = _PodcastFeed_;
}));
it('should do something', function () {
expect(!!Podc... |
const assert = require('assert');
const jyson = require('./../../../lib/jyson');
describe('jyson.basic.spec: a basic template', () => {
beforeEach(() => {
this.templateFunction = jyson.buildTemplateFunction({
a: 'a',
b: 'b',
c: 'c',
});
});
it('must convert an object to "json"', () =>... |
var db = require('../db.js');
var Post = db.model('Post', {
username: {type: String, required: true},
body: {type:String, required: true},
date: {type:Date, required:true, default:Date.now}
});
module.exports = Post; |
'use strict';
const chai = require('chai');
const assert = chai.assert;
const fetch = require('node-fetch');
const co = require('co');
const stringify = require('querystring').stringify;
const auth = require('../src/auth');
const crud = require('../src/crud');
describe('authentication', () => {
const port = proce... |
define(['exports', 'aurelia-templating', 'aurelia-pal'], function (exports, _aureliaTemplating, _aureliaPal) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CssAnimator = undefined;
exports.configure = configure;
var CssAnimator = exports.CssAnimator = functi... |
/*global document, window, setTimeout, clearTimeout, module, test, asyncTest, ok, equal, start, Boot*/
(function () {
"use strict";
module("Boot.getCSS");
test("Environment", function () {
ok(window.Boot, 'Boot is defined.');
ok(window.Boot.getCSS, 'Boot.getCSS is defined.');
});
... |
/* jshint node: true */
'use strict';
var autoprefixer = require( 'broccoli-autoprefixer' );
var path = require( 'path' );
var mergeTrees = require( 'broccoli-merge-trees' );
var Funnel = require( 'broccoli-funnel' );
var compileLess = require( 'broccoli-less-single' );
var componentClassPrefix;
var fingerprintDefaul... |
export const PlatformThemesResourceKinds = function () {
'ngInject';
const model = {};
model.all = [
{name: 'Internal route', kind: 'internal_route'},
{name: 'External link', kind: 'external_link'},
{name: 'Support request form', kind: 'support_request'},
{name: 'Plain text', kind: 'plain_text'}... |
let colors = ["red", "blue", "green"]; // Creates an array with three strings
let names = []; // Creates an empty array
let values = [1,2,]; // Creates an array with 2 items
|
var Howl = require('../../bower_components/howler/howler.min').Howl;
var names = ['bell', 'bass', 'snap', 'flutter', 'bitty'];
var extensions = ['mp3', 'ogg', 'wav'];
var sounds = {};
names.forEach(function (name) {
var urls = extensions.map(function (ext) {
return name + '.' + ext;
});
sounds[name] = new Howl({... |
window.payerIds = [
"Ohana Health Plan (WellCare of Hawaii) OHANA HEALTH PLAN (WCOHP)",
"AARP AARP HEALTH PLAN (AARP)",
"AFTRA Health Fund AFTRA HEALTH FUND (258)",
"Administrative Services Inc. ADMINISTRATIVE SERVICES (ASINC)",
"Advantra Freedom ADVANTRA FREEDOM (453)",
"Advantra Savings COVENTRY ADVANTRA SAVINGS ... |
// lonTree.js
// Interface and implementation for the longitude interval tree
// Required:
// - IntervalTree
var it = require('./intervalTree');
// LATLON
// Convert degrees to radians
Number.prototype.toRad = function(){
return (this*Math.PI) / 180;
};
var toRad = function(degree){
return (degree*Math.PI) / 18... |
Type.registerNamespace("Strings");
Strings.OfficeOM = function()
{
};
Strings.OfficeOM.registerClass("Strings.OfficeOM");
Strings.OfficeOM.L_APICallFailed = "Volanie API zlyhalo";
Strings.OfficeOM.L_APINotSupported = "API nie je podporované";
Strings.OfficeOM.L_ActivityLimitReached = "Dosiahol sa limit aktivít.";
Strin... |
"use strict";
var Renderer = require("./renderer");
var Camera = require("./camera");
var Vector = require("./math/vector");
var Action = require("./enums").Action;
function MovingDots(amount, msPerUpdate) {
this.max = amount + 1;
this.current = 0;
this.msPerUpdate = msPerUpdate;
this.timeSinceLastUpd... |
// Saves options to chrome.storage
function save_options() {
var allowed_external_urls = document.getElementById('allowed_external_urls').value;
chrome.storage.sync.set({
allowed_external_urls: allowed_external_urls
}, function() {
// Update status to let user know options were saved.
var status = doc... |
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import configureStore from './store/configureStore';
import AppRouter from './store/router';
require('./components/styles/main.scss');
const store = configureStore({});
render(
<Provider store={store}>
<AppRouter... |
import YHT from "../utils/yht";
export default class UserStore {
constructor() {
YHT.subscribe("user.login", self, "onUserLogin")
}
onUserLogin(params) {
console.log("onUserLogin: "+params)
}
}
|
(function (window, angular) {
'use strict';
angular.module('ea.controllers')
.controller('LoginCtrl', ['$scope', '$state', 'bk.utils', 'ea.authentication', 'ea.toastr', 'externalLogins',
function ($scope, $state, utils, authentication, toastr, externalLogins) {
var ctrl = this;
... |
/**
* This class implements the component event domain. All classes extending from
* {@link Ext.Component} are included in this domain. The matching criteria uses
* {@link Ext.ComponentQuery}.
*
* @protected
*/
Ext.define('Ext.app.domain.Component', {
extend: 'Ext.app.EventDomain',
singleton: true
});
|
import ReactDOM from 'react-dom';
import {
scryRenderedDOMComponentsWithClass,
scryRenderedDOMComponentsWithTag
} from 'react-addons-test-utils';
export function setProps(props) {
this.instance.setState(props);
}
export function extractRootDOMNode() {
this.elements.rootDOMNode = ReactDOM.findDOMNode(t... |
'use strict';
angular.module('alchemy').directive('alchDropdown', function(){
return {
restrict: 'EA',
transclude: true,
replace: true,
scope: {
'dropdown' : '=alchDropdown'
},
templateUrl: 'component/templates/dropdown.html',
controller: ['$scop... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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... |
/**
* OpenFB is a micro-library that lets you integrate your JavaScript application with Facebook.
* OpenFB works for both BROWSER-BASED apps and CORDOVA/PHONEGAP apps.
* This library has no dependency: You don't need (and shouldn't use) the Facebook SDK with this library. Whe running in
* Cordova, you also don't n... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { routerContext } from 'react-router/PropTypes';
import { FormattedMessage } from 'react-intl';
import Match from 'react-router/Match';
import Helmet from 'react-helmet';
import OrderList from '../../components/OrdersList';
import B... |
var _ = require('./util')
var config = require('./config')
var Watcher = require('./watcher')
var textParser = require('./parsers/text')
var expParser = require('./parsers/expression')
/**
* A directive links a DOM element with a piece of data,
* which is the result of evaluating an expression.
* It registers a wat... |
'use strict'
const {Parser: XMLParser} = require('xml2js')
const camelCase = require('camelcase')
// -------------------------------------------------------------
// Constants.
// -------------------------------------------------------------
const OPTIONS = {
explicitArray: false,
async: false,
tagNameProcesso... |
/*! Picturefill - v3.0.0 - 2015-05-14
* http://scottjehl.github.io/picturefill
* Copyright (c) 2015 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT */
!function(a){"use strict";var b,c=0,d=function(){window.picturefill&&a(window.picturefill),(window.picturefill||c>9999)&&clearInterval(b),... |
var searchData=
[
['kaborted_120',['kAborted',['../namespaceargcv_1_1error.html#a6f8b33bed60c971b643c3eac9167298bac322d48ca7a31da858a34182c93d95a2',1,'argcv::error']]],
['kalreadyexists_121',['kAlreadyExists',['../namespaceargcv_1_1error.html#a6f8b33bed60c971b643c3eac9167298baf392f3d98680947e215f3737ffe37577',1,'ar... |
(function() {
"use strict";
var root = this,
Chart = root.Chart,
helpers = Chart.helpers;
Chart.defaults.global.elements.rectangle = {
backgroundColor: Chart.defaults.global.defaultColor,
borderWidth: 0,
borderColor: Chart.defaults.global.defaultColor,
};
Chart.elements.Rectangle = Chart.Element.exte... |
var today = new Date;
var current_year = today.getFullYear();
var current_month = today.getMonth();
function countPeriod(m_start, y_start, m_end, y_end)
{
var months = 12*(y_end - y_start) + m_end - m_start;
var month_num = months % 12;
var year_num = Math.floor(months/12);
return [year_num, month_num];
}
f... |
context ('Show Character', function () {
beforeEach (() => {
cy.open ();
cy.loadTestAssets ();
});
it ('Displays the character correctly', function () {
this.monogatari.setting ('TypeAnimation', false);
this.monogatari.script ({
'Start': [
'show character y happy with fadeIn',
'y Tada!'
]
}... |
'use strict'
/* eslint-disable no-console */
const multaddr = require('multiaddr')
const PeerId = require('peer-id')
const Node = require('./libp2p-bundle.js')
const { stdinToStream, streamToConsole } = require('./stream')
async function run() {
// Create a new libp2p node with the given multi-address
const idLis... |
// Copyright (c) 2015 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
// All symbols in the `Braille` script as per Unicode v4.0.1:
[
'\u2800',
'\u2801',
'\u2802',
'\u2803',
'\u2804',
'\u2805',
'\u2806',
'\u2807',
'\u2808',
'\u2809',
'\u280A',
'\u280B',
'\u280C',
'\u280D',
'\u280E',
'\u280F',
'\u2810',
'\u2811',
'\u2812',
'\u2813',
'\u2814',
'\u2815',
'\u2816',
'\... |
// Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
'use strict';
var memo = function() {
// load requirements
var _sqlite = require('sqlite3').verbose(),
_coordinate = require('./coordinate');
var _db = null;
var _env = null;
var _init = function(env) {
_env = env;
if (!_db) {
_db = new _sqlite.Database(... |
var CNC = require("./CNC");
var arcToBezier = require("svg-arc-to-cubic-bezier").default; // is used
var parseSVG = require('svg-path-parser');
module.exports = function convert(argv, path, creasepath){
function doStuff(svg){
var wd = svg.split("\n").join("");
var rgx = new RegExp(/\<path.+?\ d="(.+?)... |
// Karma configuration
// This is the base spec for running the integration tests, which use the built
// distro of Selleckt instead of browserifying everything on the fly
'use strict';
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclud... |
'use strict';
(function(){
angular.module('juridicaWebApp')
.factory('httpRequestInterceptor', function ($rootScope) {
return {
request: function($config) {
$rootScope.materialPreloader = true;
if( $rootScope.token )
{
$config.headers['Authorization'] = 'UFG ' + ... |
// 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:"Pesquisar",searchButtonTitle:"Pesquisar",clearButtonTitle:"limpar pesquisa",placeholder:"Encontrar um endere\u00e7o ou local",searchIn:"Pesqui... |
/* global angular */
(function () {
'use strict';
angular.module('agreements')
.component('scientillaAgreementVerifiedList', {
templateUrl: 'partials/scientilla-agreement-verified-list.html',
controller,
controllerAs: 'vm',
bindings: {}
});
c... |
/*global define,jasmine,angular,describe,it,expect*/
define(function (require) {
'use strict';
var Field = require('ng-admin/Main/component/service/config/Field'),
ListView = require('ng-admin/Main/component/service/config/view/ListView'),
DashboardView = require('ng-admin/Main/component/servi... |
// All symbols in the `Nl` category as per Unicode v7.0.0:
[
'\u16EE',
'\u16EF',
'\u16F0',
'\u2160',
'\u2161',
'\u2162',
'\u2163',
'\u2164',
'\u2165',
'\u2166',
'\u2167',
'\u2168',
'\u2169',
'\u216A',
'\u216B',
'\u216C',
'\u216D',
'\u216E',
'\u216F',
'\u2170',
'\u2171',
'\u2172',
'\u2173',
'\u21... |
module.exports = {
'/': { to: '/users' },
'get /users': { to: 'controller#index' },
'post|put /users/:id?': { to: 'controller#create' },
'delete /delete': { to: function *() { this.body = 'delete'; }},
'get /secure': { to: 'controller#secure', constraint: 'constraint#basic' }
};
|
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'sl', {
copy: 'Kopiraj',
copyError: 'Varnostne nastavitve brskalnika ne dopuščajo samodejnega kopiranja. Uporabite kombinacijo tipk na ... |
var gulp = require('gulp'),
del = require('del'),
vinylPaths = require('vinyl-paths'),
$ = require('gulp-load-plugins')(),
spritesmith = require('gulp.spritesmith');
var paths = {
scripts: ['src/trumbowyg.js'],
langs: ['src/langs/**.js', '!src/langs/en.js'],
plugins: ['plugins/*/**.js', '!p... |
function loadMainContent( pagename ){
//var pagename = pagehash;//pagehash.substring(1, pagehash.length);
$( ".container" ).load( pagename , errorResponse);
}
function loadBeachContent(content){
var src = "/images/" + content;
$("#weather").attr("src", src);
}
function getLocalize(date){
var hours = date.getHours... |
// import AllImages from '../index';
import expect from 'expect';
// import { shallow } from 'enzyme';
// import React from 'react';
describe('<AllImages />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
|
angular
.module('app.message')
.directive('mumbleMessage', mumbleMessage);
mumbleMessage.$inject = [];
function mumbleMessage() {
var directive = {
templateUrl: 'app/message/mumble-message.html',
link: link,
scope: {
message: '='
}
};
return directive;
function link(scope, element, attrs) {
... |
export default function promise() {
console.group('Promise');
{
console.group('ES-next: Stage-2: Promise.prototype.finally');
{
// NOTICE: This code is not supported to babel-plugin-transform-runtime
console.warn('This code is not supported to babel-plugin-transform-runtime');
console.warn... |
(function(angular, window) {
'use strict';
/**
* Demo modules
* @type {Array}
*/
var modules = [
'ngx.ui.addressInput',
'ngx.ui.checkboxlist',
'ngx.ui.confirm',
'ngx.ui.dateInput',
'ngx.ui.dialog',
'ngx.ui.geomap',
'ngx.ui.hashtagInput'... |
var alert = new Alert({
'class': 'alert fade in',
content: "<strong>Holy guacamole!</strong> Best check yo self, you're not looking too good.",
closable: true
}, 'my-alert');
alert.startup();
alert.on('close', function (ev) {
console.info('Alert about to be closed');
});
alert.on('closed', function (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.