code
stringlengths
2
1.05M
var mongoose = require('mongoose'); var AppPropsMO = mongoose.model("AppProps"); function commonCB(cb) { return function(err, result) { if(err || !result) { cb(null); } else { cb(result.value); } }; } module.exports = { getCFG: function(name, cb) { AppPropsMO.findOne({ name: name }).select("value...
var path = require('path') var webpack = require('webpack') var dotenv = require('dotenv') var VueLoaderPlugin = require('vue-loader/lib/plugin') dotenv.config() module.exports = { entry: './src/main.js', output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', filename: 'build.js' }...
module.exports = { list: require('./list') }
var _ = require("lodash"); module.exports = function(app, sailfishCollector) { app.get('/settings/repositories', function (req, res) { sailfishCollector.collectInformation(function(err, viewParameters) { app.get("model.Project").find({}, function(err, projects) { return res.re...
(function () { 'use strict'; angular .module('apollonApp') .constant('gatekeeper', { USE_TEST_FEATURE: true }); })();
import React, { Component } from 'react' import { Link } from 'react-router-dom' import Icon from 'utils/icons' import t from 'utils/types' import Page from 'containers/Page' import TitleBar from 'components/TitleBar' import getUserPermissions from 'utils/getUserPermissions' import './Settings.scss' export default cla...
/* global afterEach:true, before:true, beforeEach:true, describe:true, expect:true, it:true, Promise:true, require:true */ var DRIVERS = [ localforage.INDEXEDDB, localforage.LOCALSTORAGE, localforage.WEBSQL ]; var driverApiMethods = [ 'getItem', 'setItem', 'clear', 'length', 'removeItem...
import React from "react"; import {observer} from "mobx-react"; import {getCategories} from "../../calls/category"; import {categoryStore} from "../../mobx/stores"; @observer export default class CmbCategoria extends React.Component{ componentDidUpdate(){ const { category } = this.refs; $(category).material...
'use strict' const date = new Date() module.exports = { // Utility Functions for Bot.js /** * normalizes input from chat for grimoire card searches * - converts all characters to lowercase * - removes any colons found in chat input * - removes any spaces and replaces with slug "-" */ normalizeCardInput: f...
{ firebase.initializeApp({ apiKey: "AIzaSyDSdVC2imDDwkIWqz6dZeE-QXjIrgO_BVI", authDomain: "movie-trivia-c65e7.firebaseapp.com", databaseURL: "https://movie-trivia-c65e7.firebaseio.com", storageBucket: "movie-trivia-c65e7.appspot.com", messagingSenderId: "887080651432" });...
(google_async_config = window.google_async_config || {})['ca-pub-7688470879129516'] = {"sra_enabled":false}; try{window.localStorage.setItem('google_sra_enabled', '0');}catch(e){}
import { routerStateReducer as router } from "redux-router"; import { combineReducers } from "redux"; import * as ActionTypes from "../actions"; //import { normalize, Schema, arrayOf } from "normalizr"; import _ from "lodash"; // const Moment = new Schema("moments"); //const Transcript = new Schema("transcripts"); // ...
'use strict'; var assert = require('chai').assert; var proxyquire = require('proxyquire'); var mockUtils = require('./mock_utils.js'); suite('webapp-manifest.js', function() { var app; var fileExists; var writingContent = null; var isExternalApp = false; var mockConfig; var mockWebapp; setup(function(...
import PropTypes from 'prop-types' import React, { PureComponent } from 'react' import { authRequired } from '../utils/auth' import BaseLayout from './layouts/BaseLayout' import { Route } from 'react-router-dom' import CostDetail from './CostDetail' import moment from 'moment' import { Redirect } from 'react-router' c...
var helpers = {} // Returns a random number between min (inclusive) and max (exclusive), from microsoft helpers.getRandomArbitrary = function(min, max){ return Math.random() * (max - min) + min; } // sort the population helpers.sortPopulation = function (population) { population.sort(function(a, b) { if(a.fitnes...
/** * Store accountBank * * Copyright (C) 2013 Emay Komarudin * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. *...
(function() { var localMode; // Keep the template variables private, to prevent external access var VARS = {}; $.tmpl = { DATA_ENSURE_LOOPS: 0, // Processors that act based on element attributes attr: { "data-ensure": function(elem, ensure) { // Returns a function in order to run aft...
var $ = require("jquery"); $(function() { alert("it works"); }) console.log(require("html!./test.html"))
import React from 'react' import InlineEdit from '../src/components/InlineEdit/InlineEdit' import Icon from '../src/components/Icon/Icon' describe('InlineEdit', () => { // TODO: May need to refactor the component for this test to work // currently the component compares local state to and private value to determi...
#!/usr/bin/env node // Remove all Node warnings before doing anything else process.removeAllListeners('warning'); const prettyCLI = require('@tryghost/pretty-cli'); const ui = require('@tryghost/pretty-cli').ui; const _ = require('lodash'); const chalk = require('chalk'); const gscan = require('../lib'); const ghostV...
import React from 'react'; import {Path} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class IconMarker extends React.Component { constructor(props){ super(props); } render(){ const color = this.props.color || AppStyle...
(function() { 'use strict'; angular .module('bibalDenisApp') .factory('authExpiredInterceptor', authExpiredInterceptor); authExpiredInterceptor.$inject = ['$rootScope', '$q', '$injector', '$document']; function authExpiredInterceptor($rootScope, $q, $injector, $document) { ...
import React from 'react'; import { expect } from 'chai'; import { mount } from 'enzyme'; import HeaderAmount from 'molecules/HeaderAmount'; describe('<HeaderAmount />', () => { it('renders', () => { const wrapper = mount(<HeaderAmount />); expect(wrapper.type()).to.equal(HeaderAmount); }); });
import styled from 'styled-components' import { mixin as text } from 'v2/components/UI/Text' export default styled.pre.attrs({ font: 'mono', })` all: initial; ${text} white-space: pre; `
GAME.LEVEL = (function () { 'use strict'; /* * Global variables and constants */ var ROWS = 11; var COLS_PER_SCREEN = 20; // buffers and their contexts var screenBuffers, screenContexts, renderedSlices; // images var image; // tile properties (these should be set for ea...
import { EventEmitter } from "events"; const SERVO_INTERVAL = 100; let debug = require("debug")("gps"); export default class GPS extends EventEmitter { constructor({ arduino, bounds = { minX: 0, minY: 0, maxX: 1000, maxY: 1000 }}) { super(); this.ino = arduino; this.ino.on("serial data", data => this.ha...
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import GalleryByReactApp from './components/Main'; // Render the main component into the dom ReactDOM.render(<GalleryByReactApp />, document.getElementById('app'));
import as from '../awesome-string'; import { expect } from 'chai'; import { PRINTABLE_ASCII } from '../const'; describe('replaceAll', function() { it('should return the replace result with a string pattern', function() { expect(as.replaceAll('duck', 'duck', 'swan')).to.be.equal('swan'); expect(as.replaceAll...
//////////////////// // Event resource // //////////////////// 'use strict'; pay.factory('Event', ['$Resource', function ($resource) { return $resource('api/events/:id'); }]);
/* istanbul ignore next */ import mkdirp from 'mkdirp' import {dirname} from '../utils/path' /** * Asynchronously create directories along a given file path. Delegates to [mkdirp](http://npmjs.org/package/mkdirp) module. If the last element in your file path is also a folder, it must end in `/` or else it will be int...
import {waterfall} from 'async' import debugThe from 'debug' import partial from 'lodash/partial' import transform from 'lodash/transform' import assign from 'lodash/assign' import geohashMap from './geohashMap' import fillOptions from './fillOptions' import getCoordinates from './getCoordinates' const debug = debugT...
document.querySelector(".pesquisa").classList.add("translate"); document.querySelector(".result").classList.add("show");
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14...
export default { key: 'Bb', suffix: 'add9', positions: [ { frets: 'x10311', fingers: '010423' }, { frets: 'xx8768', fingers: '003214' }, { frets: 'xx87x8', fingers: '002103' }, { frets: 'xdcada', fingers: '032141', barres: 10, ...
// DataStore is mostly recommended for use in the browser import { DataStore, Schema, utils } from 'js-data' import HttpAdapter from 'js-data-http' const schemas = require('../../../_shared/schemas')(Schema) import * as relations from '../../../_shared/relations' const convertToDate = function (record) { if (t...
// establish string variables var fizz = "fizz"; /* 3 */ var buzz = "buzz"; /* 5 */ var fizzBuzz = "Fizzbuzz"; /* 3 & 5 */ var sixer = "sixer"; /* 6 */ var nixer = "nixer"; /* 9 */ var sixerNixer = "sixerNixer"; /* 6 & 9 */ // function creates a random integer function g...
$(function() { $('form').submit(function (e) { e.preventDefault(); e.returnValue = false; // Get the serial number value and trim it var sn = $('#ach_pomanagerbundle_rmatype_serialNumF').val(); // Check if polite or not if (sn === 'merde') { alert('Pas de gros mots!'); return fal...
"use strict"; var createDirectmail = require("directmail"); // Expose to the world module.exports = DirectTransport; /** * <p>Generates a Transport object for DirectMail</p> * * <p>Possible options can be the following:</p> * * <ul> * <li><b>debug</b> - If true, logs output to console</li> *...
var functionWithTimeout = require('../') var test = require('tape') test('function never gets called manually', function (t) { t.plan(1) var d = Date.now() function myFn () { var elapsed = Date.now() - d t.ok(elapsed >= 1000) } functionWithTimeout(myFn) }) test('function gets called before timeout',...
import styled from 'styled-components'; const Wrapper = styled.header` margin: 0 auto; max-width: 650px; padding: 0 50px 50px; text-align: center; `; export default Wrapper;
$('#login').click(function(){ var g = G$('John', 'Doe', $('#lang').val()); $('#logindiv').hide(); g.HTMLGreeting($('#greeting'), true).log(); })
const buttonActions = { M: () => { const toolbar = document.getElementById('ccm-toolbar'); if (toolbar && (toolbar.style.display === 'block' || !toolbar.style.display)) { toolbar.style.display = 'none'; return; } toolbar.style.display = 'block'; return; }, }; /** * Let hitting 'm' ...
'use strict'; module.exports = function (app) { // User Routes var users = require('../controllers/users.server.controller'); // Setting up the users profile api app.route('/api/users/me').get(users.me); app.route('/api/users').put(users.update); app.route('/api/users/accounts').delete(users.removeOAuthPr...
'use strict'; angular.module('riplive') /** * Load all application's songs. * Songs data are divided by alphabetical letters. * * @param {Object} $scope * @param {Object} $routeParams * @param {Object} songsService * @param {Object} genresService * @param {Object} generalService */ .controller('SongsCtrl', f...
jest.autoMockOff(); var cx = require('../cx'); describe('cx', () => { it('should construct the string accordingly', () => { var str = cx({ciro: true, costa: false}); expect(str).toEqual('ciro'); }); it('return empty string if only falsy fields', () => { var str = cx({ciro: false, costa: false}); ...
var MultiPart = require("./../src/JSss.js")("ohByBucket","MyAccessKey","mySecret","folde/theFileName.zip",{ endPoint:"secondary.s3.com",useSSL:false,dataIntegrityEnabled:false,rrsEnabled:false }); MultiPart.on("jsss-end",function () { console.log("end"); }); MultiPart.on("jsss-error",function (err) { console.log(err...
var staticModule = require('static-module') var path = require('path') var through = require('through2') var bulk = require('bulk-require') var concat = require('concat-stream') global.BrowserifyRequiredBulks = [] module.exports = function (file, opts) { if (/\.json$/.test(file)) return through() if...
/* * ninit - node module bootstrapper * * Copyright(c) 2014 André König <andre.koenig@posteo.de> * MIT Licensed * */ /** * @author André König <andre.koenig@posteo.de> * */ 'use strict'; exports.Generator = require('./generator'); exports.Utilities = require('./utilities');
'use strict'; module.exports = function(grunt) { grunt.initConfig({ plum: { test: { options: { src: 'test/fixtures', dest: 'test/tmp', stylesheets: ['compiled.css'] } } } }); grunt.loadTasks('tasks'); grunt.registerTask('default', ['plum']); };...
(function() { var Adapter, Q, _; Q = require('q'); _ = require('lodash'); module.exports = Adapter = (function() { function Adapter(api) { this.api = api; } Adapter.prototype.config = function(options) { return this.api.config(Adapter.adapt(options)); }; Adapter.prototype.ge...
/* A set of validators for common color formats such as {r, g, b}, {h, s, v}, {h, s, l} and [ r, g, b ] */ import { rgbObject, hslObject, rgbArray } from './validators' import Colr from 'colr' let withAlpha = (color, a) => a !== undefined ? { a, ...color } : color let normalizeRGB = c => ({ r: c.r * 255, g: ...
'use strict' const Ioc = require('adonis-fold').Ioc const ServiceProvider = require('adonis-fold').ServiceProvider class ParseProvider extends ServiceProvider { * register () { this._bindParse() this._bindAuth() this._bindMiddleware() } _bindParse () { this.app.singleton('Codedigest/Src/Pars...
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 103650053, "Date": "12\/31\/2010", "Time": "09:39 AM", "Police District": 5.0, "Offense 1": "MOTOR VEHICLE THEFT", "...
import concat from './concat' import empty from './empty' import foldRight from './uncurried/foldRight' import head from './head' import mempty from './internal/mempty' import prepend from './prepend' import pure from './internal/pure' import tail from './tail' /** * Calculates the subsequences of a list. * * @para...
'use strict';var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var globalScope; if (typeof window === 'und...
'use strict'; var _vue = require('vue'); var _vue2 = _interopRequireDefault(_vue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } //import App from './components/App.vue' //import Home from './components/Home.vue' //import Users from './components/Users.vue' //import...
app.service('SortingService', function () { var registerSorted = false; var registerSwapped = false; var comparing = { block1: null, block2: null } var swapping = { block1: null, block2: null } var innerComplete = false; // takes in a ...
(function () { 'use strict'; angular.module('socialbook') .controller('friendsListController', ['friendsListService', controller]) .directive('friendsList', directive); function directive() { return { restrict: 'EA', templateUrl: 'app/friends-list/friends-list.tmpl.html', scope: {}, controller: '...
var test = require('tape'); var util = require('../lib/util.js'); var fs = require('fs'); var _ = require('lodash'); test('it should test runCommands', (tape) => { test('it should create temp file', (assert) => { util.runCommands('touch /tmp/test', function(err) { if (err) { tape.fail(err...
'use strict'; var path = require('path'); var fs = require('fs'); var join = require('path').join; var format = require('util').format; var Package = require('father').SpmPackage; var glob = require('glob'); var semver = require('semver'); var util = module.exports = {}; util.template = function(format, data) { if...
angular.module('myModule').controller('_LoginController', ['$scope', '$location', '_appUser', LoginController]); function LoginController($scope, $location, _appUser) { $scope.username = null; $scope.password = null; $scope.error = null; $scope.user = null; // Load user _appUser.get().then(fu...
app.directive('TwoColumn', function () { return { restrict: "C", template: '<h3>Test Directive</h3>', replace: true, link: function (scope, element, attrs) {} }; })
'use strict'; recipesApp.controller('AllRecipesController', function AllRecipesController($scope, dataFetcher) { dataFetcher.getRecipes.all().then(function(data){ $scope.$apply(function () { $scope.recipes = data; $scope.information = data.length + " recipes"; }); }); ...
require('../setup') const rabbit = require('../../src/index.js') const config = require('./configuration') describe.skip('Direct Reply Queue (replyQueue: \'rabbit\')', function () { let messagesToSend let harness const replies = [] before(function (done) { this.timeout(10000) harness = harnessFactory(...
import React from 'react'; import { ScatterChart, Scatter, XAxis, YAxis, ZAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; const data01 = [ { x: 100, y: 200, z: 200 }, { x: 120, y: 100, z: 260 }, { x: 170, y: 300, z: 400 }, { x: 140, y: 250, z: 280 }, { x: 150, y: 400, z: 500 }, { x: 110, y: 280, z:...
import validator from './validator'; import * as constraint from '../constraint'; const emailValidator = ({ message }) => validator({ validate: constraint.emailConstraint, message }); const requiredValidator = ({ message }) => validator({ validate: constraint.requiredConstraint, message }); const passwordValidat...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.deactivate = exports.activate = void 0; const gemfile = require("gemfile"); const vscode = require("vscode"); var cache = new Map(); class GemfileProvider { provideHover(document, position, token) { let gemRange = document....
import React,{Component} from 'react' import {Scene} from 'react-native-router-flux'; import Login from './src/Page/Login' import InitialRoot from './src/Page/InitialRoot' module.exports = ( <Scene key="root" hideNavBar={true}> <Scene key='initialRoot' component={InitialRoot}/> <Scene key='loginIn' type='...
import Title from './Title'; import provideChart from '../ChartProvider'; export default provideChart(Title);
// Get all of our friend data var data = require('../clinicalgradsdata.json'); exports.view = function(req, res){ console.log(data); res.render('computationgrads', data); };
import * as util from "./util"; import LocalStrategy from "passport-local"; import { Strategy as BearerStrategy } from "passport-http-bearer-sl"; import ms from "ms"; export default function(config, passport, user) { // API token strategy passport.use(new BearerStrategy( async function(tokenPass, done) { ...
const BaseController = require('ascesis').BaseController; class PostsController extends BaseController { connectedCallback(){ super.connectedCallback(); console.log('posts ctrl'); } render(posts, append){ append || (this.innerHTML = ""); var fragment = document.createDocumentFragment(); posts...
module.exports = { output: { filename: '[name].[hash].js', chunkFilename: '[hash].js' } };
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built (function(m){m=function(){var k="undefined"===typeof global?window:global,q=k.isFinite,n;if(n=!!Object.defineProperty)try{Object.defineProperty({},"x",{}),n=!0}catc...
// npm packages import {Observable} from 'rxjs/Observable'; // our packages import * as ActionTypes from '../actionTypes'; import {signRequest} from '../../util/signRequest'; import * as Actions from '../actions'; export const getAllClassroom = action$ => action$ .ofType(ActionTypes.GET_ALL_CLASSROOM) .map(signRe...
'use strict'; const assert = require('assert'); var winston = require('winston'); var contactsEndpoints = require('../endpoints/contacts-v1.js'); /** * @class User * @description User is the parent class of all Curse users we'll find here * @property {Client} client [Client]{@link Client} object used t...
'use strict'; //Metrics service used to communicate Metrics REST endpoints angular.module('metrics').factory('Metrics', ['$http', function($http) { var Metrics = { // items : [], 'get' : getFn, update : update, delete : deleteFn, create: create, ...
export const LOAD_COURSE_SUCCESS = 'LOAD_COURSE_SUCCESS'; export const ADD_NUMBERS = 'ADD_NUMBERS'; export const BEGIN_AJAX_CALL = 'BEGIN_AJAX_CALL'; export const LOAD_AUTHORS_SUCCESS = 'LOAD_AUTHORS_SUCCESS'; export const AJAX_CALL_ERROR = 'AJAX_CALL_ERROR'; export const CREATE_COURSE_SUCCESS = 'CREATE_COURSE_SUCCESS'...
/**Upcoming matches table**/ function getUpcomingMatchesTable(){ log("making upcoming matches table...") UMTableCount +=1 try{ my_upcomingMatchesTable.destroy() } catch (err){ } my_OffsetTop = $("#upcomingMatchesTable").offset().top UnlistedMatchCount += 0 my_UMRows = [] //allUMdata = [] inTotCount...
#!/usr/bin/env node // // # Default Entry // // Our default entry point via package.json. *(Once compiled, that is.)* // // **Note:** that this file is in JavaScript because CoffeeScript is // currently unable to properly add hashbangs as this file has. // require('./node/bin').exec()
// https://stephensugden.com/middleware_guide private_urls = { '^/attention': ['coworker', 'girlfriend'], '^/bank_balance':['me'], } roles = { stephen: ['me'], erin: ['girlfriend'], judd: ['coworker'], bob: ['coworker'], } passwords = { me: 'doofus', erin: 'greatest', judd: ...
result = {}; thegrid = {}; var grid_selector = "#grid-table"; var pager_selector = "#grid-pager"; var TempDeviceType = []; var TempSendType = []; jQuery(function ($) { var data = {}; data.obj = {}; data.obj.PageIndex = 0; data.obj.PageSize = 1000; jQuery.ajax({ type: "Post", method...
import JobV2FallbackSerializer from 'travis/serializers/job_v2_fallback'; export default JobV2FallbackSerializer.extend({ attrs: { _finishedAt: { key: 'finished_at' }, _startedAt: { key: 'started_at' }, _config: { key: 'config' } } });
var snooze = require('snooze'); require('snooze-stdlib'); snooze.module('HelloServer', ['snooze-stdlib']) .libs(['controllers', 'services', 'validators', 'dtos', 'routes']) .setPort(8000); snooze.module('HelloServer').wakeup();
module.exports = (app, mydata, socketIO) => { socketIO .on('connection', function(socket) { socket.on('msg', function(msg) { chat.emit('msg', msg); }); }); }
'use strict' var test = require('tape') var telLink = require('./') test(function (t) { t.equal(telLink('411'), 'tel:411') t.throws(telLink) t.end() })
var dotnet = require('electron-dotnet'); //var hello = dotnet.func("./src/Capture/bin/Debug/Capture.dll"); var hello = dotnet.func("./src/Capture/Capture.cs"); //Make method externaly visible this will be referenced in the renderer.js file exports.sayHello = arg => { hello('Capture', function (error, result) { if ...
define(['marionette','config','i18n'], function(Marionette, config) { var Translater = Marionette.Object.extend({ initialize: function(options) { this.url = 'app/locales/__lng__/__ns__.json'; this.initi18n(); }, testInit: function() { this.initi18n(); }, initi18n: function() {...
// ==UserScript== // @name pageSpeak // @name:zh-CN 中英文语音合成选读 // @namespace tts@reverland.org // @description text to speech Service from responsivevoice.org to read aloud the page // @description:zh-CN 调用responsivevoice.org的语音合成服务朗读选中文本 // @include * // @version 1.1 // @grant GM_xmlhttpReque...
/* INVOLT CONNECTION SETTINGS Ernest Warzocha 2016 involt.github.io */ //---------------------------------------------------------------------------------------------- /* CONNECTION TYPE Select connection type, only ONE can be defined at once. */ var isSerial = true; //Desktop var isBluetooth = false...
// localstorage helper class export default class Storage { // define the key to be used here for the data constructor(key, init) { this._key = key /** * [if the storage object is not already present then create it with the default value] * @param {type} !this.dataExists [description] ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
$(document).ready(function() { /* Datatables*/ $('#product_categories').DataTable({ 'responsive': true, 'ajax': '/catalogue/datatable_product_categories_data' }); /* to init events and plugins when datatable updates */ $(this).on( 'draw.dt', function () { events(); } ); }); /* save new product category...
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. (function() { 'use strict'; /** * T-Rex runner. * @param {string} outerContainerId Outer containing element id. * @param {Object} opt_config * @con...
function baz() { function bar() { if (a) console.log(a); } let a = 1; return bar; }
import {buildSyntax} from '../../parser/syntax' export class Porps { constructor(props, scope, element) { var attributes = [] var propAttributes = [] var events = [] var preMethods = [] var methods = scope.methods // var $data = scope.$data props.forEach((pr...
(function(global){ global.StorageType = { // // Implementation of set, using the keys of a hash // set: function() { var set = {}; return { add: function(k, v) { v = v ? v : true; set[k] = v }, get: function(k) { return set[k] }, remove: function(k) { d...
/** Smoothly scroll element to the given target (element.scrollTop) for the given duration Returns a promise that's fulfilled when done, or rejected if interrupted */ export default (element, target, duration, scrollEmmiter)=>{ if (element.scrollTop === target) { return Promise.resolve(); ...
module.exports = function(grunt) { 'use strict'; require('time-grunt')(grunt); grunt.loadNpmTasks('grunt-browserstacktunnel-wrapper'); var path = require('path'); require('load-grunt-config')(grunt, { configPath: path.join(process.cwd(), 'grunt', 'tasks'), init: true, data: { options: {...
//custom (function(webim) { var path = _IMC.path; webim.extend(webim.setting.defaults.data, _IMC.setting); var cookie_key = "_webim_cookie_"; if( _IMC.is_visitor ) { cookie_key = "_webim_v_cookie_"; } if( _IMC.user != "" ) { cookie_key = cookie_key + _IMC.user.id; } webim.status.defaults.key = cookie_key...