code
stringlengths
2
1.05M
// Copyright (c) 2011+, HL7, Inc & The MITRE Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, this...
//example pather.js //pather.js var patherbuilder = function(){ return {pather:{ graph: require('./graphstruct.js').newRGraph(), getPathCollection: function(routes,stations){ var pathCollection = [] routes.forEach(function(d,i,array){ //for each route var pathElement = {pathID:d.properties.route_id...
import {Texture2D, ProgramManager} from '@luma.gl/core'; import {AmbientLight} from './ambient-light'; import {DirectionalLight} from './directional-light'; import Effect from '../../lib/effect'; import {Matrix4, Vector3} from 'math.gl'; import ShadowPass from '../../passes/shadow-pass'; import {default as shadow} from...
require('./ToggleSwitch.less'); var React = require('react'); var ReactDOM = require('react-dom'); module.exports = React.createClass({ displayName:'ToggleSwitch', getDefaultProps: function (){ return { className: '', disabled: false }; }, __onChange: function (event) { event.stopPropagation(); this....
var knex = require('knex'), config = require('../../config'), knexInstance; function configure(dbConfig) { var client = dbConfig.client; dbConfig.debug = dbConfig.debug || false; if (client==='sqlite3') dbConfig.useNullAsDefault = dbConfig.useNullAsDefault || false; else if (client==='mys...
//Global Initial Parameters: const initialPoint = [1, 1]; const layout = { width: 450, "height": 500, margin: {l:30, r:30, t:30, b:30}, hovermode: "closest", showlegend: false, xaxis: {range: [-7, 7], zeroline: true, title: "x"}, yaxis: {range: [-6, 6], zeroline: true, title: "y"}, aspectrat...
/* * Copyright (c) 2013-2016 by appPlant UG. All rights reserved. * * @APPPLANT_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apache License * Version 2.0 (the 'License'). You may not use this file except in * complia...
!function(){const e="boowa-blog-v1";function t(t,n){return new Promise((a,c)=>{if(n)var s=setTimeout(c,n);fetch(t).then(c=>{if(n&&clearTimeout(s),(200===c.status||0===c.status)&&"error"!==c.type){var i=c.clone();caches.open(e).then(e=>{e.put(t,i)})}a(c)},c)})}self.addEventListener("install",e=>{self.skipWaiting()}),sel...
'use strict'; var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var rename = $.rename; var imagemin = $.imagemin; var del = require('del'); var exec = require('child_process').exec; var gutil = require('gulp-util'); var gmux = require('gulp-mux'); var runSequence = require('run-sequence'); var constan...
"use strict"; //Define the controller module, assign its dependencies, assign the function. var module = angular.module('MainCtrls', []); //The actual function that will act as the controller module.controller('mainCtrl', ['$scope', '$location', '$http', '$cookies', '$mdDialog', 'userSrvc', '$interval', function ...
angular.module('app').factory('AddressService', ['$rootScope', '$q', '$resource', function($rootScope, $q, $resource) { return { getCity: function(name){ var api = $resource('/api/address/city/name/:name', {'name': name}); var deferred = $q.defer(); var r = api.get({}, fu...
/** * @author f.flore * created on 16.08.2016 */ (function () { 'use strict'; angular.module('BlurAdmin.pages.settings', []) .config(routeConfig); /** @ngInject */ function routeConfig($stateProvider) { $stateProvider .state('settings', { url: '/settings', title: 'Sett...
import React from 'react'; import ReactDOM from 'react-dom'; import {connect} from 'react-redux'; import {setName} from '../actions'; const mapStateToProps = state => ({ name: state.chat.name }); const mapDispatchToProps = { setName }; const Settings = ({name, setName}) => ( <div> <label html...
const CasRequestManager = require("./CasRequestManager"); let CookieRequestManager = function(session, Request) { CasRequestManager.call(this, session, Request); this.Requests = new (require("./cookieRequests"))(Request); } // heritage from CasRequestManager CookieRequestManager.prototype = Object.create(CasR...
const { getGitSha } = require('ci-utils'); const fetch = require('node-fetch'); const https = require('https'); const gitSha = getGitSha(true); const gitShaLong = getGitSha(); const { SAUCE_USERNAME, SAUCE_ACCESS_KEY, // for push builds, or builds not triggered by a pull request, this is the name of the branch....
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011 Zynga Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software an...
/* * 1.7 Given an image represented by an NxN matrix * where each pixel in the image is 4 bytes, * write a method to rotate the image by 90 degrees. * Can you do this in place? */ // Layer rotation strategy: // // function rotateMatrix(matrix) { // for (var layer = 0; layer < matrix.length / 2; layer++) { /...
module.exports = function (sequelize, DataTypes) { var configModel = sequelize.define("config", { name: { type: DataTypes.STRING, validate: { notEmpty: true } }, protocol: { type: DataTypes.STRING, defaultValue: 'HTT...
var TelegramBot = require('node-telegram-bot-api'); var TELEGRAM_TOKEN = process.env.TELEGRAM_TOKEN; if (TELEGRAM_TOKEN === undefined) { console.error("Undefined TELEGRAM_TOKEN enviroment variable"); process.exit(); } // Setup polling way var bot = new TelegramBot(TELEGRAM_TOKEN, {polling: true}); /* Commands sp...
'use strict'; define([ 'jquery', 'underscore', 'backbone', 'backbone.radio', 'marionette', 'routers/sketch', 'collections/sketch' ], function ( $, _, Backbone, Radio, Marionette, SketchRouter, SketchCollection ) { var SketchComponent = Backbone.Model.extend({ defaults: { name: 'Sketch', slug...
import { UIKitIncomingInteractionContainerType } from '@rocket.chat/apps-engine/definition/uikit/UIKitIncomingInteractionContainer'; import { Modal, AnimatedVisibility, ButtonGroup, Button, Box } from '@rocket.chat/fuselage'; import { useMutableCallback, useUniqueId } from '@rocket.chat/fuselage-hooks'; import { kitCon...
const gulp = require('gulp'); const babel = require('gulp-babel'); const concat = require('gulp-concat'); gulp.task('babel', () => { return gulp.src('src/t-infinity/app/static/src/js/**/*.js') .pipe(babel({ presets: ['es2015'] })) .pipe(concat('all.js')) .pipe(gulp.dest...
window.onload = function(){ const Items = document.getElementsByClassName('item'); for (var i = 0; i < Items.length; i++) { var newClassName = 'color_' + (i + 1); Items[i].classList.add(newClassName); } } function colorChange(event){ const toChangeColorClassName = event.classList.item(1...
module("jquery/view") test("multipel template types work", function(){ $.each(["micro","ejs","jaml", "tmpl"], function(){ $("#qunit-test-area").html(""); ok($("#qunit-test-area").children().length == 0,this+ ": Empty To Start") $("#qunit-test-area").html("//jquery/view/test/qunit/template."+this,{"message"...
import _ from 'lodash'; // default config const defaultConfig = { defaultValue: true, omitPathsOnly: false }; /** * building default config and overwriting with passed config * * @private * @param {Object} passedConfig Config options to overwrite base config * @returns {Object} Returns config with overwritte...
const assert = require('chai').assert; const World = require('../lib/world'); const Paddle = require('../lib/paddle'); const Ball = require('../lib/ball'); describe('World', function() { it('should be a function', function() { assert.isFunction(World); }); it('should instanitate an object', function() { ...
var player; //created var hp = 5; //created var orihp = hp; var lvl1hearts; var invulnerable = 2; //invulnerable for 2 seconds var isinvul = false; var bullet; //created var bulletdmg = 1; var hombullet; var homdmg = 0.5; var homstart = 90; //original is 30 var laser; //dont forget to add blink before attack launches ...
/*global define*/ define( function () { // http://stackoverflow.com/a/11646945 var MediaStream = window.MediaStream; if ( typeof MediaStream === 'undefined' && typeof webkitMediaStream !== 'undefined' ) { MediaStream = webkitMediaStream; } /*global MediaStream:true */ if ( typeof MediaStream !== 'unde...
var shared = require('./shared.karma.conf'); module.exports = function(config) { shared(config); config.files = config.files.concat([ // test helpers 'src/bower_components/angular-mocks/angular-mocks.js', // unit testing 'test/unit/**/*.js' ]); };
import React, { Component, PropTypes } from 'react' import Colors from '../Theme/Colors' const Styles = { container: { }, row: { display: 'flex', flexDirection: 'row' }, button: { height: 30, width: 75, fontSize: 13, marginRight: 4, backgroundColor: Colors.subtleLine, borderRa...
function readJS (content, funcname) { if (typeof content !== 'string') return []; if (typeof funcname !== 'string') funcname = undefined; funcname = funcname || 'tr'; var start = -1; var end = -1; var exprs = []; while ( (start = content.indexOf(funcname)) > -1 && (end = content.indexOf('(', start...
describe('Plane', function(){ var plane; var airport; beforeEach(function(){ plane = new Plane(); airport = jasmine.createSpyObj('airport',['clearForLanding', 'clearForTakeoff', 'isStormy']); }); it('can land at an airport', function(){ plane.land(airport); expect(airport.clearForLanding).to...
import EventEmitter from 'events' import fetch from 'node-fetch' import { Dropbox } from 'dropbox/lib' import delay from '@zap/utils/delay' import * as api from './dbApi' /** * createConnection - Creates dropbox api connection. * * @param {*} { clientId, authRedirectUrl, tokens } * @returns {object} returns {clien...
(function () { angular.module('servicios').service('maestrosService', maestrosService); function maestrosService($http) { // Retornamos una promesa this.gettingCategorias = $http.get('/maestros'); } }());
const path = require('path'); const webpack = require('webpack'); const ENTRY_POINTS = [ './client/src/index' ]; const DEV_ENTRY_POINTS = ENTRY_POINTS.concat( [ 'webpack-hot-middleware/client' ] ); module.exports = { devtool: 'cheap-module-eval-source-map', entry: process.NODE_ENV === 'production' ? ENTRY_POINTS ...
'use strict' const db = require('APP/db') , {User, Season, Glasses, Order, Review, Promise, GlassesOrders} = db , {mapValues} = require('lodash') function seedEverything() { const seeded = { users: users(), seasons: seasons(), glasses: glasses() } seeded.orders = orders(seeded) seeded.rev...
/// <reference path="../../typings/mocha/mocha.d.ts" /> /// <reference path="../../typings/chai/chai.d.ts" /> var chai = require('chai'); var assert = chai.assert; var IsNumber = require('../../src/validators/isNumber'); describe('isNumber', function () { it('should get a template message', function () { va...
import Ember from 'ember'; import EmberValidations from 'ember-validations'; export default Ember.Controller.extend( EmberValidations.Mixin, { validations: { "model.def": { generic: true, definitionlike: true, }, "model.example": { generic: true, nongendered: true, sentencel...
(function() { const a= document.querySelector("#demo"); const b= document.querySelector("#n"); const c= document.querySelector("#u"); let numbers ={one: 1, two: 2, three: 3}; a.innerText = JSON.stringify(numbers); //underscore js function Stooge(name) { this.name = name; } Stooge.prototype.silly = true; const ...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Sound = mongoose.model('Sound'), _ = require('lodash'); /** * Find sound by id */ exports.sound = function(req, res, next, id) { Sound.load(id, function(err, sound) { if (err) return next(err); if (!sound)...
/* jslint node:true */ /* global Promise: true, indexedDB: true */ 'use strict'; var Schema = require('./schema/schema'); var QueryWrapper = require('./querywrapper'); var TransactionWrapper = require('./transactionwrapper'); var removeListeners = require('./helpers/removelisteners'); /** * Constructor for IDB-wrapp...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var Users = new Schema({ username: { type: String, required: true }, // twitter id created_at: { type: Date, default: Date.now, required: true }, updated_at: { type: Date, default: Date.now, required: true }, last_loggedin_at: { type: Da...
/** * Module dependencies. */ var express = require('express'), routes = require('./routes'), user = require('./routes/user'), http = require('http'), path = require('path'), cons = require('consolidate'), uuid = require('node-uuid'), socketConnection = require('./sockets'), stylus = ...
const HTMLWebackPlugin = require('html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const SkuWebpackPlugin = require('../../../../webpack-plugin'); module.exports = { entry: './main.js', module: { rules: [ { test: /\.js$/, exclude: /node_modules/, ...
'use strict'; var dbgsrc = { properties : { type : 'debugnode', prmname : 'DBUGSRC', description : 'Dummy source node to test infeasibilities', hobbes : { debug: true, id : 'DBUGSRC', type : 'node' } } }; var dbgsinks = { properties : { type : 'debugnode', prmname :...
import React from 'react'; const AboutPage2 = () => { return ( <div className='subpage-about'> <h3>my skills</h3> <p> At the bginning of May 2016 I started learning how to develop for the web. Since then I have focussed my efforts towards learning the following skills: </p> ...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of th...
const EC = protractor.ExpectedConditions; class BasicPage { constructor() { this.colHeaderList = null; } get() { browser.get('/basic.html'); browser.wait(EC.presenceOf($('.dt-body')), 5000); } getColHeaderIcon(index) { if (!this.colHeaderList) { this.loadColHeaderList(); } re...
'use strict'; const jayson = require('jayson'); const server = new jayson.server({ add: function(params, callback) { callback(null, params.a + params.b); } }); server.http().listen(3000);
var searchData= [ ['size',['SIZE',['../dc/dbb/ncd__global_8h.html#a70ed59adcb4159ac551058053e649640',1,'ncd_global.h']]] ];
import React, {PropTypes, Component} from 'react'; export default class ToolTip extends Component { static propTypes = { tooltip: PropTypes.object } render() { let visibility='hidden'; let transform=''; let x=0; let y=0; let width=150,height=70; let transformText='translate('+width...
(function (globals) { var ASM = function (stdlib, ffi, heap) { 'use asm'; function f_ping() { return; } return { f_ping: f_ping }; }; var asm = ASM(globals); var adaptors = { ping: asm.f_ping }; globals.ASM = adaptors; }(this));
'use strict'; const Firebase = require('firebase'); const BaseFirebaseService = require('./baseFirebaseService'); class AuthFirebaseService extends BaseFirebaseService { constructor() { super(); this.authRef = new Firebase(super.getBaseRefURL()); } authUserWithGoogle(user, callback) { console.log('...
/** * express-file-autorouter * Copyright(c) 2017 Perez Yuan <yzmspirit@gmail.com> * version 1.0.1 * MIT Licensed */ 'use strict'; const fs = require('fs'); const path = require('path'); function AutoRouter(options) { this.options = Object.assign({ //routers path routerPath: null, // ...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'liststyle', 'ka', { armenian: 'სომხური გადანომრვა', bulletedTitle: 'ღილებიანი სიის პარამეტრები', circle: 'წრეწირი', decimal: 'რიცხვებით (1, 2, 3,...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import './style/lib/animate.css'; import registerServiceWorker from './registerServiceWorker'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import { createStore, applyMiddleware } from 'redux'; import reducer ...
var Client = require('node-rest-client').Client; var client = new Client(); var async = require('async'); var http = require('http'); var account = "Julie"; var apiKey = "41e8f9cd109d6c7a0ec679df2ccf50318ab2d053"; var publicApiKey = "80e5642726c76dd0390fdfa015c4fd17c0d00a1e"; // We'll use 10 concurrent HTTP clients...
export { default } from 'rsg-components/Argument/ArgumentRenderer';
/* Copyright (c) 2013 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, publish, distribute, sublicense, and...
"use strict"; define( function () { var module = { color:null, scheme:"lightly" }; module.CHANGE = 'onBackgroundChange' return module; });
let emoticons, codesMap = {}, primaryCodesMap = {}, regexp, metachars = /[[\]{}()*+?.\\|^$\-,&#\s]/g, entityMap; entityMap = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;', '/': '&#x2F;' }; let definition = { "smile": {"title": "Smile", "codes": [":)", ":=)", ":-)"]}, ...
/** * Tasks that run during "build" plus WATCH task; */ module.exports = function (grunt) { grunt.registerTask('default', [ 'build' ]); };
'use strict'; var fs = require('fs'); var path = require('path'); var yeoman = require('yeoman-generator'); var yosay = require('yosay'); var chalk = require('chalk'); var readFile = require("html-wiring") module.exports = yeoman.generators.Base.extend({ constructor: function() { yeoman.generators.Base.ap...
/*! * jQuery tinySwitch Plugin v0.2 * Copyright 2013 darkfe(i@darkfe.com) * Released under the MIT license * Date: 2013/7/21 */ (function($){ var FLAG = 'tinySwitch_' +new Date(); /* 解析 data-tinySwitch 属性里的规则 语法: checked ? action1 : action2 next~#container ...
/** * Created by Kamaron on 4/22/2015. */ 'use strict'; var index = require('../general/index'); var comp_dao = require('../../dao/competition_dao'); var RegistrationPageErrorCollection = require('../../models/RegistrationPageErrorCollection'); exports.get = function (req, res) { var params = { title: ...
var selected_nodes = []; var node_selection_frames = []; var node_resize_frame = null; //////////////////////////////////////////////////////////// // // operations for selected nodes // function getSelectedNodes() { return selected_nodes; } function setSelectedNodes(n) { console.log("setNodeSelection()"); clearSe...
'use strict'; var conf = require('./protractor.functional.conf.js'); conf.config.onPrepare = function(){ require('jasmine-reporters'); jasmine.getEnv().addReporter( new jasmine.JUnitXmlReporter('report/ci', true, true) ); } module.exports = conf;
var POINT_COUNT = 40; var TRIG_XMIN = -2*Math.PI; var TRIG_XMAX = 2*Math.PI; var trigx = Array(POINT_COUNT); var sin = Array(POINT_COUNT); var cos = Array(POINT_COUNT); var tan = Array(POINT_COUNT); var atan = Array(POINT_COUNT); var ints = Array(POINT_COUNT); var squares = Array(POINT_COUNT); for (var i=0; i<POINT_C...
angular.module('CareyHinoki'). directive('navigateToSection', function () { return { link: function (scope, element, attrs) { var element = $(element); element.delegate('a', 'click', function (event) { var nav_element = $(this), ...
import React from 'react'; // import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import { TreeNodeManager, SecurityManager } from '../../../redux'; const manager = new TreeNodeManager(); /** * Extended tree node attributes * * @author Radek Tomiška */ exp...
const startWhistle = require('./start'); const util = require('./util'); const getIntercept = require('./intercept'); const loadModule = require; exports.getServerIp = util.getServerIp; exports.getRandomPort = util.getPort; exports.startWhistle = exports.startProxy = startWhistle; exports.isRunning = util.isRunning; ...
var pkgcloud = require('pkgcloud'), logging = require('../../../common/logging'), config = require('../../../common/config'), _ = require('underscore'); var log = logging.getLogger(process.env.PKGCLOUD_LOG_LEVEL || 'debug'); var client = pkgcloud.providers.rackspace.loadbalancer.createClient(config.getConfig('r...
module.exports = { disallowBlockExpansion: true, disallowIdLiterals: true, disallowDuplicateAttributes: true, disallowClassLiterals: true, disallowLegacyMixinCall: true, disallowMultipleLineBreaks: true, validateTemplateString: true, }
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import history from 'utils/history'; import { resetError } from 'actions'; import DevTools from 'containers/DevTools'; import configureStore from './store/configureStore'; import TournamentB...
var test = require('tape'); var path = require('path'); var level = require('level'); var mkdirp = require('mkdirp'); var through = require('through2'); var concat = require('concat-stream'); var tmpdir = path.join( require('osenv').tmpdir(), 'forkdb-test-' + Math.random() ); mkdirp.sync(tmpdir); var db = lev...
/// <reference path="../imports.ts" /> //# sourceMappingURL=imainscope.js.map
import { moduleFor, test } from 'ember-qunit'; /* global expect */ moduleFor('service:dialogs', 'Unit | Service | dialogs', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); test('alert | cordova', function(assert) { var service = this.subject(); expect(4); window....
const icons = { arrowBack: 'M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z', menu: 'M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z', info: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z', code: 'M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l...
'use strict'; const DI = require('@scola/di'); const Connection = require('./lib/connection'); const Connector = require('./lib/connector'); const Helper = require('./lib/helper'); const Message = require('./lib/message'); const Socket = require('./lib/socket'); class Module extends DI.Module { configure() { t...
// spec.js describe('Testing {Resources} CRUD Module', function() {{ var {Resource} = function() {{ {protractor_page_objects} this.get = function() {{ browser.get('http://localhost:5000/'); }}; this.toast = function(mes...
/* global assert, process, setup, suite, test */ var entityFactory = require('../helpers').entityFactory; suite('hand-controls', function () { var component; var el; setup(function (done) { el = entityFactory(); el.addEventListener('componentinitialized', function (evt) { if (evt.detail.name !== '...
"use strict"; /* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. */ Object.defineProperty(exports, "__esModule", { value: true });
'use strict'; let path = require('path'); let port = 8000; let srcPath = path.join(__dirname, '/../src'); let publicPath = '/assets/'; let additionalPaths = []; let webpack = require('webpack'); module.exports = { additionalPaths: additionalPaths, port: port, debug: true, output: { path: path.join(__dirnam...
define({ "viewer": { "loading": { "step1": "LOO LAADIMINE", "step2": "ANDMETE LAADIMINE", "step3": "ALUSTAN TUURI", "loadBuilder": "LÜLITU KOOSTAMISREŽIIMILE", "redirectSignIn": "SUUNAN ÜMBER SISSELOGIMISE LEHELE", "redirectSignIn2": "(Teid suunatakse peale sisselogimis...
function getScores(container){ $.getJSON("/scores", function(result){ scores = result.sort(function(left, right){ return right.scores - left.scores; }); var limit = 10; $.each(scores, function(index, item){ if(index > limit) return; var html = "<tr><td>"+item.name+"</td><td>"+item.scores+"</td></tr>"; c...
'use strict'; /** * Module dependencies */ var fs = require('fs'), util = require('util'), avail = require('./util'); /** * Configuration prototype */ var cfg = { settings: { geographies: [], keywords: [] } }; exports = module.exports = cfg; cfg.set = function(setting, val){ if(1 === arg...
var Shipments = ""; $(function () { var isInstalled = false; var storeId = AspxCommerce.utils.GetStoreID(); var portalId = AspxCommerce.utils.GetPortalID(); var userName = AspxCommerce.utils.GetUserName(); var cultureName = AspxCommerce.utils.GetCultureName(); var customerId = AspxCommerce.util...
const app = getApp(); const util = require('../../utils/util.js'); Page({ data: { id: "#24", text: "", fileName: "", item: null }, onLoad: function (options) { let id = options.id; this.setData({ id: id }); // if (!id) { //...
const webpack = require('webpack'); const path = require('path'); const buildPath = path.resolve(__dirname, 'build'); const nodeModulesPath = path.resolve(__dirname, 'node_modules'); const TransferWebpackPlugin = require('transfer-webpack-plugin'); const config = { // Entry points to the project entry: [ 'webp...
/** * A wrapper-promise which rejects when discarded */ let DiscardablePromise = /** @class */ (() => { class DiscardablePromise { constructor(promise) { this.promise = promise; } then(onfulfilled, onrejected) { return this.promise.then(x => { if (th...
'use strict'; const Message = function () { //constructor } Message.prototype.userId = function (userId) { this.userId = userId; } Message.prototype.text = function (text) { this.text = text; } module.exports = Message;
import { config } from 'rebass' const caps = { textTransform: 'uppercase', letterSpacing: '.2em' } const dark = { name: 'Dark', fontFamily: '"Avenir Next", Helvetica, sans-serif', color: '#eee', backgroundColor: '#111', borderRadius: 5, borderColor: `rgba(255, 255, 255, ${1/16})`, colors: { .....
var gulp = require("gulp"); var ts = require("gulp-typescript"); var uglify_js = require("gulp-uglify"); var sourcemaps = require("gulp-sourcemaps"); var rename = require("gulp-rename"); var header = require("gulp-header"); var replace = require("gulp-replace"); var merge = require("merge2"); var config = require("....
/** * Creatine is a power-up to the CreateJS libraries, providing data structures * and algorithms for game development. You see here: * * - **Scene management** - *with scene stacks based on Cocos2D Director* * - **Scene transitions** - *you can also create new transitions* * - **Input handling** - *keyboard, ...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
/** * Panelify - smooth, vertical sliding panels using Waypoints. * * @param {string} {default: 'bottom-in-view'} offset - where the panel sliding triggers. * @param {number} {default: 1068 } minScreenWidth - minimum screen with (in pixels) where panelify should be applied. * */ var panelify = new Panelify(); //...
// Package metadata for Meteor.js web platform (https://www.meteor.com/) // This file is defined within the Meteor documentation at // // http://docs.meteor.com/#/full/packagejs // // and it is needed to define a Meteor package 'use strict'; var Both = ['client', 'server']; var Client = 'client'; Package.describe...
//AppliedRules.defineSetByTag module.exports = (function( tagId ){ if( this.rules ){ this.ruleIds = Object.keys( this.rules ).filter( ruleId => ( this.rules[ruleId].tags && this.rules[ruleId].tags.includes( tagId ) )) } else this.ruleIds = []; return this.ruleIds; });
/* eslint-env jasmine */ 'use strict' require('../../jsdom.setup.js') var React = require('react') var expect = require('chai').expect var enzyme = require('enzyme') var render = enzyme.render var mount = enzyme.mount var PlotlyComponent = require('../../../../js/components/assessment/plotlyComponent') const mockedD...
$(document).ready(function() { $('.image-link').magnificPopup({type:'image'}); }); $('.images-container').magnificPopup({ delegate: 'a', type: 'image' }); $('.budynek-link').magnificPopup({ type: 'image' });