code
stringlengths
2
1.05M
module.exports.problem = function(req,res,next){ // login credentials authentication var Problem = require('../models/problem'); var id = req.params.id; Problem.findOne({_id: id},function ( err,problem){ if (err) throw err; res.setHeader('Access-Control-Allow-Origin', '*'); res...
import_module('Athena.Math'); m1 = new Athena.Math.Matrix4(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); m2 = new Athena.Math.Matrix4(100, 200, 300, 400, 500, 600, 700, 800, ...
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by CodeZu. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //-----------------------------------...
/* globals module */ /** * @module baasicCompanyService * @description Baasic Company Service provides Baasic route templates which can be expanded to Baasic REST URIs. Various services can use Baasic Company Route Service to obtain needed routes while other routes will be obtained through HAL. By convention, all rou...
/** * main created on 7/4/16 11:29 PM. * * @description [To be completed] * @author Florian Popa <florian@webgenerals.com> */ // import specific import { square, diag } from './lib'; console.log(square(11)); // 121 console.log(diag(4, 3)); // 5 // You can import everything // import * as lib from './lib'; //...
var indexSectionsWithContent = { 0: "mnt", 1: "t", 2: "mn", 3: "n" }; var indexSectionNames = { 0: "all", 1: "files", 2: "functions", 3: "defines" }; var indexSectionLabels = { 0: "All", 1: "Files", 2: "Functions", 3: "Macros" };
ScalaJS.impls.scala_collection_GenTraversable$class__companion__Lscala_collection_GenTraversable__Lscala_collection_generic_GenericCompanion = (function($$this) { return ScalaJS.modules.scala_collection_GenTraversable() }); ScalaJS.impls.scala_collection_GenTraversable$class__$init$__Lscala_collection_GenTraversable_...
import BaseMixin from '../_mixin/baseMixin' import Bs3Row from '/components/bootstrap3/row' import Bs3Col from '/components/bootstrap3/col' export default { template: __inline('main.html'), mixins: [BaseMixin], components: { Bs3Row, Bs3Col } };
(function() { $(function() { return $('.example').each(function() { var $emberscript, $javascript, editor, output, updateJS; $emberscript = $(this).find('.emberscript'); $javascript = $(this).find('.javascript'); updateJS = function() { var e, js; try { js = Emb...
(function () { 'use strict'; var TiExtendTab = require('net.imthinker.modules.tiextendtab'); Ti.API.info('module is => ' + TiExtendTab); var tabGroup = Ti.UI.createTabGroup({ customBackgroundColor: '#151515', customBackgroundImage: 'pw_maze_black.png', customActiveIndicator: 'ac...
(function() { "use strict"; angular.module("fpm").filter("fpcurrencty", function(originalValue) {}); });
(function() { var $, _, __slice = [].slice; if (typeof require === 'function') { $ = require('../vendor/jquery'); _ = require('underscore-plus'); } else { $ = window.$, _ = window._; } $.fn.scrollBottom = function(newValue) { if (newValue != null) { return this.scrollTop(newValue -...
function fDOMDemo() { var htmlElem = document.documentElement; var headElem = htmlElem.firstChild; var bodyElem; // 如果 </head> 和 <body> 标签是紧挨着的(没有空格, 没有换行), 那么此时弹出的是1; 如果没有紧挨着(例如: // </head> 和 <body>之间有空格或者有换行), 那么此时弹出的就是3(表示空白文本) alert("headElem.nextSibling.nodeType = " + headElem.nextSibling.n...
module.exports = { "key": "carnivine", "moves": [ { "learn_type": "level up", "level": 31, "name": "leaf-tornado" }, { "learn_type": "machine", "name": "round" }, { "learn_type": "egg move", ...
version https://git-lfs.github.com/spec/v1 oid sha256:3aa47dd21517d95a3414bf01a320c52408b31937e91c87fef520112845c18cfc size 63168
import React from 'react' import { Button } from 'stardust' const ButtonCircularExample = () => ( <div> <Button circular color='facebook' icon='facebook' /> <Button circular color='twitter' icon='twitter' /> <Button circular color='linkedin' icon='linkedin' /> <Button circular color='google plus' ico...
import {BaseHtmlCompiler} from "./base"; import * as $ from 'cheerio'; export class TemplateHtmlCompiler extends BaseHtmlCompiler { constructor() { super('template-static-html-compiler'); } compileResultSize(result) { return result.length; } compileOneFile(file) { return minify(file.getContent...
// Generated by CoffeeScript 1.3.1 (function() { var Icon, Layer; Icon = L.Icon.extend({ options: { popupAnchor: new L.Point(0, -25) }, initialize: function(options) { return L.Util.setOptions(this, options); }, createIcon: function() { var div, span; div = document.crea...
// artDialog - 默认配置 module.exports = { /* -----已注释的配置继承自 popup.js,仍可以再这里重新定义它----- */ // 对齐方式 //align: 'bottom left', // 是否固定定位 //fixed: false, // 对话框叠加高度值(重要:此值不能超过浏览器最大限制) //zIndex: 1024, // 设置遮罩背景颜色 backdropBackground: '#000', // 设置遮罩透明度 backdropOpacity: 0.7, //...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.command = command; /** * Set a select2 value using select2("data", object) * * h3 Examples: * * browser.setSelect2Data("input[type=hidden].has-select2", {id:1, text: "hello"}) * * @author maxgalbu * @param {String} select...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.a = void 0; var _react = _interopRequireDefault(require("react")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _classCallCheck(instance, Constructor) { if (!(instance...
Ext.define('UMA.view.account.priv.FormTabPanel', { extend : 'Ext.TabPanel', alias : 'widget.accountPrivFormTabPanel', resizeTabs : false, minTabwidth : 100, tabwidth : 100, enableTabScroll : true, defaults : { autoHeight : true, autoScroll : true }, items : [] });
import { Actions } from 'flummox'; class MessageActions extends Actions { createMessage(msg) { return { text: msg, date: Date.now() }; } editMessage(id, text) { return { id, text, date: Date.now() }; } deleteMessage(id) { return id; } } export default Me...
global.fsaConf = { ACCESS_TOKEN: 'xxxxx', // Valid FS App Access Token FORM_DETAILS_ID: '0000', // Valid form id FORM_DETAILS_NAME: 'xxxx', // Form name for FORM_DETAILS_ID form FORM_SUBMIT_ID: '0000', // Valid form id submitFormFieldIds: [ // Valid form fields ids 0000, // Name 0000, // Email 00...
/** * Created by praneeth on 9/3/2016. */ define(['./homeMod'], function (homeMod) { 'use strict'; // console.log(homeMod); var login = homeMod; // return ng.module('app.controllers', []); login.controller('loginCtrl',['$scope', function($scope) { $scope.name='Boo'; console.log(...
(function() { 'use strict'; angular .module('app.widgets') .directive('vgNumArgsInputWidget', vgNumArgsInput); function vgNumArgsInput() { var directive = { restrict: 'E', scope: { keyValuePairs: "=" }, tem...
document.addEventListener('DOMContentLoaded', function(){ ajaxCall(); }); function ajaxCall(callback){ //retrieves data file via AJAX and then calls output function var xmlhttp; xmlhttp = new XMLHttpRequest(); xmlhttp.onload = function() { VIratings = JSON.parse(xmlhttp.responseText); //gb ...
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
/* --------------------------------------------- Contact form --------------------------------------------- */ $(document).ready(function(){ $("#submit_btn").click(function(){ //get input field values var user_name = $('input[name=name]').val(); var user_email = $('input[n...
// @flow import corejs3Polyfills from "core-js-compat/data"; import invariant from "invariant"; import { coerce, SemVer } from "semver"; import corejs2Polyfills from "../data/corejs2-built-ins.json"; import pluginsList from "../data/plugins.json"; import moduleTransformations from "./module-transformations"; import { T...
/* * grunt-geo * https://github.com/chelm/grunt-geo * * Copyright (c) 2013 chelm * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var mq = require('mapquest'), arc = require('arc'), request = require('request'); grunt.registerMultiTask('geo', 'Creates a geojso...
'use strict'; angular.module('toastio') .controller('BlocksCtrl', function($scope, $state, $stateParams, Restangular, PopupSvc) { var _loadBlock = angular.noop; function onBlockLoaded(blocks) { $scope.blocks = blocks; } function onBlockNotLoaded() {} functi...
/* The MIT License (MIT) Copyright (c) 2015, 2019 Vibrant Media Ltd */ var gulp = require('gulp'); var eslint = require('gulp-eslint'); var mocha = require('gulp-mocha'); gulp.task('eslint', function () { return gulp.src(['lookup.js', 'main.js', 'src/**/*.js', 'test/**/*.js']) .pipe(eslint({ ...
// only for reference export const reduxStoreDataShape = { account: { editMode: true }, app: { status: 'FETCHING' || 'LOADING' || 'SAVING' || 'READY', messages: [ 'The story you were looking for is lost. Are you sure it exists?', 'Something bad happened in our backend. Glad it\'s not happe...
import React from 'react'; import Checkbox from '@material-ui/core/Checkbox'; import FormGroup from '@material-ui/core/FormGroup'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import FormControl from '@material-ui/core/FormControl'; import FormLabel from '@material-ui/core/FormLabel'; function Fo...
function prettyDate(now, time){ var date = new Date(time || ""), diff = (((new Date(now)).getTime() - date.getTime()) / 1000), day_diff = Math.floor(diff / 86400); if ( isNaN(day_diff) || day_diff < 0 || day_diff >= 31 ) return; return day_diff == 0 && ( diff < 60 && "just now" || diff <...
module('lively.morphic.Serialization').requires('lively.Network', 'lively.persistence.Serializer', 'lively.morphic.Core', 'lively.morphic.TextCore', 'lively.DOMAbstraction').toRun(function() { lively.morphic.Shapes.Shape.addMethods( 'copying', { doNotSerialize: ['_renderContext'] }); lively.morphic.Morph.addMetho...
var express = require('express'), passport = require('passport'), router = express.Router(); // Our Auth routes (Section 3) // GET /auth/openid // Use passport.authenticate() as route middleware to authenticate the // request. The first step in OpenID authentication will involve redirecting // the user...
/** * @author Bill Riehl <wjriehl@lbl.gov> * @public */ define([ 'kbwidget', 'jquery', 'narrativeConfig', 'kbaseNarrativeParameterInput', 'common/runtime', 'base/js/namespace', 'util/timeFormat', 'util/string', 'select2', 'bootstrap', ], ( KBWidget, $, Config, ...
/* * Copyright (c) 2013, Samuel Colbran <contact@samuco.net> * 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 ...
import DataTypes from 'sequelize'; import sequelize from '../config/sequelize'; import paginate from '../helpers/paginate'; import sorting from '../helpers/sorting'; import Officer from './officer'; export default sequelize.define('committees', { name: { type: DataTypes.STRING, allowNull: false, primaryK...
import * as R from 'ramda'; import * as P from '@react-pdf/primitives'; const isPolygon = R.propEq('type', P.Polygon); export default isPolygon;
/** * Created with JetBrains PhpStorm. * User: acomitevski * Date: 4/29/12 * Time: 1:54 PM * To change this template use File | Settings | File Templates. */ define(['backbone', 'underscore', 'jquery', 'text!templates/status.html'], function(Backbone, _, $,statusTemplate) { var StatusView = Backbone.View.ext...
import jolie from "refractor/lang/jolie.js";; export default jolie;
'use strict'; /** * @ngdoc overview * @name publicApp * @description * # publicApp * * Main module of the application. */ angular .module('publicApp', [ 'ngRoute','classy','uiGmapgoogle-maps' ]) .config(function ($routeProvider) { $routeProvider .when('/room/:roomId', { templateUrl:...
export { default as TemplateRenderer } from './TemplateRenderer'; export { default as UnknownField } from './dev/UnknownField';
'use strict'; /** * @ngdoc function * @name tinkApp.controller:StartCtrl * @description * # StartCtrl * Controller of the tinkApp */ angular.module('tinkApp') .controller('StartCtrl', function ($scope) { $scope.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
/** -- WISchnorrServer.js -- Author : Christof Torres <christof.ferreira.001@student.uni.lu> Date : June 2016 **/ var BigInteger = require('node-jsbn'); /* Initializes the WISchnorServer */ function WISchnorrServer() { /* Discrete Logarithm Generator (DLG) */ this.q = new BigInteger("2"); var w = new Bi...
'use strict'; /** @module ember-cli */ const RSVP = require('rsvp'); const path = require('path'); const findup = require('find-up'); const resolve = RSVP.denodeify(require('resolve')); const fs = require('fs-extra'); const existsSync = require('exists-sync'); const _ = require('ember-cli-lodash-subset'); const logger...
'use strict'; const { promisify } = require('util'); const fs = require('fs'); // TODO: replace by `fs.promises` after dropping NodeJS < 10 support const readFile = promisify(fs.readFile); const unlink = promisify(fs.unlink); const writeFile = promisify(fs.writeFile); const { dirname, join } = require('path'); const tm...
var _get = require('lodash/get'); var _set = require('lodash/set'); var _unset = require('lodash/unset'); module.exports = function (config, data, item) { // TODO check if (!config || !Array.isArray(config)) { var error = new Error('invalid config for combine step "remove"'); error.config = co...
'use strict'; module.exports = function(grunt) { // Load all tasks require('load-grunt-tasks')(grunt); // Show elapsed time require('time-grunt')(grunt); var jsFileList = [ 'assets/vendor/bootstrap/js/transition.js', 'assets/vendor/bootstrap/js/alert.js', 'assets/vendor/bootstrap/js/button.js', ...
(function () { 'use strict'; /** * @ngdoc overview * @name ui.grid.cellNav * * @description #ui.grid.cellNav <div class="alert alert-success" role="alert"><strong>Stable</strong> This feature is stable. There should no longer be breaking api changes without a deprecation warning.</div>...
version https://git-lfs.github.com/spec/v1 oid sha256:a8d5e944cb5a228604169e88ef51f6dd3027caf2aedf1c26c82bf9e4c319908b size 42633
"use strict"; window.onload = function() { document.getElementById("hello").onclick = sayHi; document.getElementById("funfact").onclick = funfact; }; function sayHi() { alert("Hi! I am Borui Li!"); } function funfact() { document.getElementById("myFact").innerHTML = "I Like to"; }
console.error('Currently unsupported:' + __filename); /* var test = require('tape'); var browserify = require('browserify'); var path = require('path'); test('dynamically loaded file gets skipped', function (t) { t.plan(1); var b = browserify(); b.add(__dirname + '/files/dynamic_read_concat'); b.transform(pat...
define(['libs/backbone'], function(Backbone) { 'use strict'; // TODO: make a general class to handle all this service boilerplate. // ServiceCollection does most of it. function StorageProvidersWrapper(registry) { this.registry = registry; this.registry.on('registered:tantaman.web.StorageProvider', this._pr...
import Flight from 'flight'; // you can separate the events to a ${component-name}.events.js file export const FilterRequestEvent = Flight.eventType( function(state) { this.state = state; } ).alias('TodoToolbarComponent:FilterRequest'); class TodoToolbarComponent extends Flight.Component { listen...
var gulp = require("gulp"); gulp.task( "watch", function(){ var _ = require("../config.js"); var $ = require('gulp-load-plugins')(); gulp.watch(_.compass.src, ["compass"]); gulp.watch(_.jade.src, ["jade"]); } );
/** *= require_self */ // create a new instance of Application class Ext.application({ // the global namespace name: 'AM', appFolder: '/assets/app', controllers: ['Users'], autoCreateViewport: true });
import Struct from 'ref-struct'; import ffi from 'ffi'; import ref from 'ref'; const { bool, int32, uint32 } = ref.types; const string = ref.types.CString; const voidPtr = ref.refType(ref.types.void); const FixedString = function(length) { return { size: length, alignment: length, indirection: 1, n...
"use strict"; let datafire = require('datafire'); let openapi = require('./openapi.json'); module.exports = datafire.Integration.fromOpenAPI(openapi, "azure_apimanagement_apimtags");
import * as React from 'react'; import Container from '@mui/material/Container'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; import Link from '@mui/material/Link'; import ProTip from './ProTip'; function Copyright() { return ( <Typography variant="body2" color="text.se...
/*! andrey-dias-portfolio by Andrey Dias 2015-10-13 */ !function(a,b){"use strict";var c=a.module("portfolio.routes");c.controller("Services",["$scope","dataServices","$injector",function(a,c,d){a.show=!0,a.services=c.services,a.skills=c.skills,a.nextSession="Skills",a.animations=[{display:"flex",duration:1e3,delay:0}...
/** * @fileOverView Input class definition. * @author Yuzo Hirakawa * @version b1.0 */ /** * <pre> * Provides Input class as widget. * * constructor arguments. * id * type : string * specification : optional * descriptoin : Instance identifier. * inputClass * type : string * specification : op...
/// <reference path="S:\Delivery\Aspectize.core\AspectizeIntellisenseLibrary.js" /> function Main() { Aspectize.App.Initialize(function () { var currentUser = Aspectize.GetCurrentUser(); if (currentUser.IsAuthenticated) { Aspectize.ExecuteCommand('UIService.ShowView', 'MyBoards'); ...
var app = {}
import { test, moduleForModel } from 'ember-qunit'; moduleForModel('refund', 'Refund', { // Specify the other units that are required for this test. needs: [] }); test('it exists', function() { var model = this.subject(); // var store = this.store(); ok(model); });
m.ModelView.extend({ events:{ "click #save_model":"saveModel", "click #save_asnew_model":"saveNewModel", "click #remove_model":"removeModel", "click .model_data_show_subattr":"showSubattr" }, postTemplateRender: function(){ // console.log("rerender"); var atrs = this.model.attributes; window.view = thi...
import Ember from 'ember'; import ENV from '../config/environment'; export default Ember.Route.extend({ ajax: Ember.inject.service(), query: Ember.inject.service(), model() { return Ember.RSVP.hash({ nodes: this.get('query').allNodeMetadata(), curation: this.get('query').getCurationFor(ENV.netwo...
/* * author: carson * version: 0.1 * description: utilities */ var _ = require('underscore')._; var path = require('path'); var fs = require('fs'); var cached = {}; var util = {}; var map = { 'compressed': ['zip', 'rar', 'gz', '7z'], 'text': ['txt', 'md', ''], 'image': ['jpg', 'jpeg', 'png', 'gif', 'bmp'], 'pdf'...
import replaceCardNumber from './cardnumber/replace'; import replaceAccountNumber from './accountnumber/replace'; import createCardNumberFilterStream from './cardnumber/createCardNumberFilterStream'; import createIBANFilterStream from './accountnumber/createIBANFilterStream'; import pipe from 'multipipe'; const saniti...
import Component from '@ember/component'; import layout from '../../templates/components/core/nav-item'; export default Component.extend({ layout, tagName: 'li', classNames: 'nav-item', destination: null, label: '' });
// Source Code From: https://github.com/vayser/react-js-pagination import Pagination from './Pagination' export default Pagination
'use strict'; module.exports = function(app) { app.controller('AuthController', ['$rootScope', 'AuthService', function($rs, authService) { const ctrl = this; ctrl.signup = function(userData) { authService.signup(userData) .catch(() => { console.log('Error signing up.'); }); ...
// test suite for the top level gerber parser class 'use strict' var Transform = require('readable-stream').Transform var expect = require('chai').expect var repeat = require('lodash/repeat') var parser = require('..') describe('gerber parser', function() { describe('factory and options', function() { it('shou...
// <div> // <input type="text" name="time1" id="time1" onclick="MyCalendar.SetDate(this)" value="2006-8-1" /> // <input type="text" name="time2" id="time2" value="2006-8-1" /><input name="" type="button" // onclick="MyCalendar.SetDate(this,document.getElementById('time2'))" ...
angular.module('class.attendance').filter('userName', [ '$rootScope', function( $rootScope ){ return function(id){ if(!id) return undefined; var user = $rootScope.$meteorObject(Meteor.users, {_id:id}, false); var name = user.profile.firstName ? user.profile.firstName +...
import 'rxjs/add/operator/map'; import 'rxjs/add/operator/do'; import 'rxjs/add/operator/catch'; import 'rxjs/add/observable/of'; import 'rxjs/add/observable/throw'; import { Injectable } from '@angular/core'; import { Store } from '@ngrx/store'; import { Observable } from 'rxjs/Observable'; import { Http } from '@angu...
const express = require('express') const path = require('path') const router = express.Router() const parsePackets = require(path.join(__dirname,'/../middleware/parsepackets.js')) const sortPackets = require(path.join(__dirname,'/../middleware/sortpackets.js')) const emitPackets = require(path.join...
'use strict'; const baAsn1 = require('../asn1'); const baEnum = require('../enum'); module.exports.encode = (buffer, subscriberProcessId, initiatingDeviceId, monitoredObjectId, timeRemaining, values) => { baAsn1.encodeContextUnsigned(buffer, 0, subscriberProcessId); baAsn1.encodeContextObjectId(buffer, 1, baEnum....
import React, { Component } from 'react' import { connect } from 'react-redux' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' import Navigation from './Navigation' import { logout, refreshToken } from '../../authorization/actions/AuthorizationActions' class UserContainer extends Component { ...
var applicationID = "6F1E40A5"; var LEARN_NAMESPACE = "urn:x-cast:com.kg.learn"; console.log("Create app module"); var learnPlayerApp = angular.module('LearnPlayerApp', ['ngMaterial', 'pascalprecht.translate', 'ngAnimate']); learnPlayerApp.config(['$translateProvider', function($translateProvider) { $translateP...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isSameMinute; var _index = require('../startOfMinute/index.js'); var _index2 = _interopRequireDefault(_index); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * @nam...
import React, { Component, PropTypes } from 'react'; import Dimensions from 'Dimensions'; import { StyleSheet, KeyboardAvoidingView, View, ActivityIndicator, TouchableOpacity, Image, } from 'react-native'; import UserInput from './UserInput'; import usernameImg from '../images/username.png'; import passwordImg ...
/* Meteor-Cordova, by RaiX Credit goes to @awatson1978 and @zeroasterisk MIT License This file extends the cordova with notification plugin api */ /* beep - does what is says beep(duration, type, callback); callback when beep is done */ if (typeof Cordova === 'undefined') { alert('wrong load order?'); }...
import { join } from 'path' import test from 'ava' import request from 'supertest' import _require from 'native-require' import fs from 'fs-extra' process.on('unhandledRejection', err => { throw err }) async function run (promise) { await promise await new Promise(resolve => setTimeout(resolve, 400)) } const s...
/** * @ignore * single tab panel. * @author yiminghe@gmail.com */ KISSY.add(function (S, require) { var Container = require('component/container'); var PanelRender = require('./panel-render'); /** * KISSY.Tabs.Panel.xclass: 'tabs-panel'. * @class KISSY.Tabs.Panel * @extends KISSY.Compone...
import { repeatN } from "reiter"; import * as matchers from "./matchers.js"; expect.extend(matchers); describe("repeatN(n, value)", () => { test("yields the value n times", () => { expect(repeatN(2, 42)).toIterEqual([42, 42]); }); });
import {UserEvents} from "../UserEvents/UserEvents.js"; import {View} from "../View/View.js"; let _lineGraphWidgetFactory = null; let _widgetFactory = null; let _userEvents = null; /** * Responsible for setting up new LineWidgets * **/ export class LineGraphWidgetFactory { //Implements singleton constructor...
// Split.js module.exports = input => { const items = []; input.split(' ').forEach(item => { item = item.trim(); if (item.length) { items.push(item); } }); return items; };
// Dependencies var test = require("prova"), PtBible = require("../index"); var validVerse = { reference: "Mateus 1:1", verses: [{ book_id: "MAT", book_name: "Mateus", chapter: 1, verse: 1, text: "Livro da genealogia de Jesus Cristo, filho de Davi, filho de Abraão.  ...
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'showblocks', 'ar', { toolbar: 'مخطط تفصيلي' } );
import path from 'path'; import chokidar from 'chokidar'; import compareVersions from 'compare-versions'; import ignore from 'ignore'; import cache from './cache'; import util from './util'; import cWpy from './compile-wpy'; import cStyle from './compile-style'; import cScript from './compile-script'; import loader f...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin...
module.exports = { root: true, env: { node: true }, extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'], parserOptions: { parser: 'babel-eslint' }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV ===...
ScreenWidth = window.innerWidth; ScreenHeight = window.innerHeight; if (ScreenWidth < 980) { //window.location.href = "http://devwebs.ddns.net/err/403.html" //alert($("html").html()); $("html").html("<head><meta http-equiv=Content-Type content=text/html; charset=UTF-8><meta name=viewport content=wi...
"use strict"; // Register `phoneList` component, along with its associated controller and template angular.module("playerList").component("playerListComponent", { templateUrl: "static/app/player-list/player-list.template.html", controller: [ "PlayerResource", function playerListController(PlayerResource) {...
// copied from https://github.com/atom/autocomplete-css // Copyright (c) 2015 GitHub Inc. const CSS_COMPLETIONS = require('../completions-css.json') const RN_COMPLETIONS = require('../completions-rn.json') const firstInlinePropertyNameWithColonPattern = /(?:{{|{)\s*(\S+)\s*:/ // example { display: } const inlineProper...
var extend = require("../util/extend"); var util = require("../util/util"); var DEFAULT = { url:{ "beta": ["t.51ping.com"], "ppe": ["ppe.t.dianping.com"], "product": ["t.dianping.com"] } } var runEnv = function(option){ return new RunEnv(option); } var RunEnv = function(option){ this.option = extend(DEF...