code
stringlengths
2
1.05M
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
appBooking.filter('newlines', function() { return function(text) { return text.replace(/\n/g, '<br/>'); } }) .filter('noHTML', function() { return function(text) { return text .replace(/&/g, '&amp;') .replace(/>/g, '&gt;') .replace(/</g, '&lt;'); } }) ...
/** * Check the status of an SMS message. */ var util = require('util'); var smsified = require('../lib/smsified'); var sms = new SMSified('username', 'password'); sms.checkStatus('4075541234', '43d2f75b2bda27006200003e9b7dcf3b', function(result) { util.puts(util.inspect(result.deliveryInfoList.deliveryInfo)); });
import {fetchPosts} from "components/common/fetch" export default { namespace: 'ShopActivity', state: { loading: true, loadingInit: false, swiperActive: 0, tabActive: 0, tabs:[], swipers: [], productList: [] }, effects: { *getShopInitData(act...
define(['../internal/arrayMin', '../internal/createExtremum'], function(arrayMin, createExtremum) { /** * Gets the minimum value of `collection`. If `collection` is empty or falsey * `Infinity` is returned. If an iteratee function is provided it is invoked * for each value in `collection` to generate the cr...
var Item = require('../../lib/item'); var Directory = require('../../lib/directory'); var File = require('../../lib/file'); var assert = require('../helper').assert; describe('Directory', function() { describe('constructor', function() { it('creates a named directory', function() { var dir = new Director...
import React from 'react'; import { mount } from 'enzyme'; import expect from 'expect'; import { StaticFiles } from '../StaticFiles'; import { staticfile } from './fixtures'; function setup(files=[staticfile]) { const actions = { fetchStaticFiles: expect.createSpy(), uploadStaticFiles: expect.createSpy(), ...
/** * lecture.model.js * * Created on: 2015-11-29 * * Author: Eléonore d'Agostino (paranoodle) * Author: Karim Ghozlani (gweezer7) * Author: Yassin Kammoun (yibnl) * Author: Paul Ntawuruhunga (paulnta) */ 'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema, slug = require('slug'); ...
chrome.app.runtime.onLaunched.addListener(function(){ var main_window = chrome.app.window.get('main'); if(main_window){ main_window.show(); }else{ chrome.app.window.create('main.html',{ 'id': 'main', 'frame':'none' }); } }); chrome.app.window.onFullscreened.addListener(function(){ // ...
(function() { 'use strict'; angular .module('app.services') .factory('LocationStationsFactory', LocationStationsFactory); LocationStationsFactory.$inject = ['$resource']; function LocationStationsFactory($resource) { var customInterceptor = { response:...
module.exports={A:{A:{"1":"B A","2":"K C G E WB"},B:{"1":"D u Y I M H"},C:{"2":"UB z F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b SB RB","194":"0 1 2 3 5 6 7 c d e f L h i j k l m n o p q r s t y v g"},D:{"2":"0 1 2 3 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o...
const fs = require('fs'); const express = require('express'); const router = express.Router(); router.get("/:id", function (req, res) { let donutID = req.params.id; fs.readFile('./donut.json', "utf-8", (error, data) => { console.log(data); if (error) throw error; obj = JSON.parse(data); for (i...
// HOTELDRUID // Copyright (C) 2001-2011 by Marco Maria Francesco De Santis (marco@digitaldruid.net) // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 ...
pow: { input: { var a = 2 ** 7; var b = 3; b **= 2; } expect: { var a = 2 ** 7; var b = 3; b **= 2; } } pow_with_number_constants: { input: { var a = 5 ** NaN; var b = 42 ** +0; var c = 42 ** -0; var d = NaN ** 1; ...
var test = require('tap-only'); global.Promise = require('promise'); // expose var root = __dirname + '/../../../..'; var event = require(root + '/test/fixtures/customer.subscription.created.json').data.object; var user = require(root + '/test/fixtures/customer.json'); test('customer.subscription.created', function (t...
/* jshint strict: true, undef: true */ /* globals exports */ exports.is_true = is_true; function is_true(v) { return v === true; }
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const impl = utils.implSymbol; const Element = require("./Element.js"); const ElementCSSInlineStyle = require("./ElementCSSInlineStyle.js"); const GlobalEventHandlers = require("./GlobalEventHandlers.js"); function ...
$A.bind(window, 'load', function(){ // Set the ARIA Tree control var treeId = $A.setTree( { // Set the XML file to parse path: 'files/tree.xml', // Set the label that will be announced to screen reader users title: 'Informative Field Name', // Specify the container element where the...
define(['jquery', 'underscore', 'jquery-ui'], function($, _) { 'use strict'; /** * Converts buttons sequence from container to group with main buttons * and rest buttons in dropdown */ $.widget('oroui.dropdownButtonProcessor', { options: { separator: '.separator-btn', ...
"use strict"; module.exports = Box; function Box(start, end) { this.start = start; this.end = end; } Box.prototype.become = function (that) { this.start.become(that.start); this.end.become(that.end); return this; }; Box.prototype.copyFromRegion = function (that) { this.start.become(that.posit...
// ==UserScript== // @name TryJasmine-widescreen // @namespace http://jason.karns.name // @match http://tryjasmine.com/* // @version 1 // ==/UserScript== function contentEval(source) { if ('function' == typeof source) { source = '(' + source + ')();'; } var script = document.createElement('scrip...
/* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */ import Ember from 'ember'; import Mirage from 'ember-cli-mirage'; const { $, isBlank, String: {dasherize} } = Ember; /* jshint unused:false */ function maintenanceResponse() { return new Mirage.Response(503, {}, { errors: [{ ...
/*global mocha, __karma__, window*/ Error.stackTraceLimit = Infinity; jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; __karma__.loaded = function () { }; window.expect = chai.expect; var basePath = '/base/'; function isJsFile(path) { return endsWith(path, '.js'); } function isSpecFile(path) { return endsWith(path, '.tes...
'use strict'; var path = require('path'); var Project = require('../../../lib/models/project'); var Addon = require('../../../lib/models/addon'); var stub = require('../../helpers/stub'); var tmp = require('../../helpers/tmp'); var touch = require('../../he...
/** * Data storage layer for working with app data. * * The data stored by the app (backed by session cookies) is: * a. CanonicalAddress * b. Legislators * c. SelectedLegislators * d. FormElements (TBD) */ var filter = require('lodash.filter'); var forEach = require('lodash.foreach'); var isArray = req...
import debounce from 'lodash/debounce' import jss from '../jss' import * as utils from '../utils' import Canvas from '../canvas' import Timeline from '../timeline' import EventsManager from '../events-manager' import style from './style' const sheet = jss.createStyleSheet(style) export default class Calendar { /** ...
/** @jsx h */ import h from '../../../helpers/h' export default function (change) { change.blur() } export const input = ( <state> <document> <paragraph> <cursor />one </paragraph> </document> </state> ) export const output = ( <state> <document> <paragraph> one...
module.exports = function(nettings){ var INREC = {}; INREC.cache = {}; //INREC.cache.logsAnalysis = []; INREC.cache.users = []; INREC.cache.cards = []; INREC.receiver = {eventMap:{}}; INREC.receiver.on = function(eventKey, action){ INREC.receiver.eventMap[eventKey] = action; }; ...
if (typeof define!=="function") { define=require("requirejs").define; } define(["IndentBuffer"], function(IndentBuffer) { // オブジェクトの内容を表示する. デバッグ用 return disp=function (a) { var p=IndentBuffer(); function disp2(a) { if (a==null) return p("null%n"); if (typeof a == "string" ) return p("'%s'%n",a); if (type...
import React from 'react'; import { _ } from 'meteor/underscore'; export function renderErrorsFor(errors, ref) { if (!errors) return false; return _.map(errors, (error, key) => { if (key == ref && error) { return ( <div key={key} className="error"> {error} </div> ); }...
import Ember from 'ember'; import { describe, beforeEach, afterEach, it } from 'mocha'; import { expect } from 'chai'; import sinon from 'sinon'; import Adaptive from 'ember-simple-auth/session-stores/adaptive'; import itBehavesLikeAStore from './shared/store-behavior'; import itBehavesLikeACookieStore from './shared/c...
var test = require('tap').test; var tokenize = require('../../lib/tokenize'); test('spec', function (t) { t.type(tokenize, 'function'); t.type(tokenize('foo'), 'object'); t.equal(tokenize('foo bar').length, 2); t.throws(function () { tokenize(123); }); t.throws(function () { to...
(function () { 'use strict'; angular .module('echarliApp') .factory('User', User); User.$inject = ['$resource']; function User ($resource) { var service = $resource('api/users/:login', {}, { 'query': {method: 'GET', isArray: true}, 'get': { ...
/* MAPSTRACTION v2.0.17 http://www.mapstraction.com Copyright (c) 2011 Tom Carden, Steve Coast, Mikel Maron, Andrew Turner, Henri Bergius, Rob Moran, Derek Fowler, Gary Gale All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ...
import element from 'virtual-element'; const InboxItem = { propTypes: { router: {source: 'router'}, }, render({ props }) { const { mailTitle, mailMessage, router, id } = props; return element('li', { onClick: () => router.navigate('inbox.message', { id }) }, [ element(...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var marked = require('marked'); var moment = require('moment'); var async = require('async'); var parseLabels = require('../utils/parseLabels.js'); var linkMoves = require('../utils/linkMoves.js'); var linkUsers = require('../utils/linkUsers.js'); marke...
// FLOT GRAPHS - FOR ALL HELP AND SUPPORT VISIT: - http://people.iola.dk/olau/flot/examples/ // STYLING CAN BE CHANGED BY AMENDEDING THE OPTIONS AS COMMENTED BELOW - CHECK LINES 46, 61 AND 63 FOR THE DIFFERENT THEMES. $(function () { // DATA STORED IN AN ARRAY. THE FIRST VALUE IS THE DATE IN MILLISECONDS, THE SEC...
// The following is needed for Mocha < 1.9.0 when using PhantomJS: // // /*global confirm, mocha */ // mocha.globals(["confirm"]); // describe("App.Views.Note", function () { before(function () { // Regions for different views. $("#fixtures").append($( "<div class='region-note' style='display: none;...
require('style-loader!css-loader!jasmine-core/lib/jasmine-core/jasmine.css'); global.jasmineRequire = require('jasmine-core/lib/jasmine-core/jasmine'); require('jasmine-core/lib/jasmine-core/jasmine-html'); require('jasmine-core/lib/jasmine-core/boot'); require('./root_component_spec');
export const SET_ERROR = `presence/SET_ERROR`; export const SET_USER_PRESENCE_STATUS = `presence/SET_USER_PRESENCE_STATUS`; export const UPDATE_MODULE_STATUS = `presence/UPDATE_MODULE_STATUS`; export const UPDATE_USER_STATUS_ERROR = `presence/UPDATE_USER_STATUS_ERROR`; function updateStatus(status) { return { ty...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
/* Version: 16.0.9106.1000 */ Type.registerNamespace("_u"); _u.ExtensibilityStrings = function() { }; _u.ExtensibilityStrings.registerClass("_u.ExtensibilityStrings"); _u.ExtensibilityStrings.l_APICallFailedDueToItemChange_Text = "選取的項目已變更。"; _u.ExtensibilityStrings.l_ActionsDefinitionMultipleActionsError_Text = "Only...
// Serviceproviders service used to communicate Serviceproviders REST endpoints (function () { 'use strict'; angular .module('serviceproviders') .factory('ServiceprovidersService', ServiceprovidersService); ServiceprovidersService.$inject = ['$resource']; function ServiceprovidersService($resource) {...
// Augment import FogAugment from './augment/fog' import LambertAugment from './augment/lambert' import NormalColorAugment from './augment/normal-color' // Engine import Engine from './engine' // Cameras import PerspectiveCamera from './camera/perspective' // Controls import OrbitControls from './controls/orbit' //...
//>>built define(["dojo/_base/declare","dojo/_base/lang","./Default","./commonStacked"],function(e,l,n,f){return e("dojox.charting.plot2d.Stacked",n,{getSeriesStats:function(){return f.collectStats(this.series,l.hitch(this,"isNullValue"))},buildSegments:function(g,b){for(var d=this.series[g],a=b?Math.max(0,Math.floor(t...
/** * Column * * @module :: Model * @description :: A column is a set of cards under a board * @docs :: http://sailsjs.org/#!documentation/models */ var _ = require('underscore'); var titleRegex = /^.{1,25}$/; module.exports = { schema: true, titleRegex: titleRegex, attributes: { title:...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
{ "name": "yass.js", "url": "https://github.com/EightMedia/yass.js.git" }
var LoginController = function($routeParams, $location, $http) { var errorMessages = { usernameUndefined: "Username is required", passwordUndefined: "Password is Undefined", invalidUser: "Either the username or the password is wrong", }; this.login = function() { this.errorMessages = { usern...
import React from 'react' import Icon from 'react-icon-base' const MdWarning = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.6 23.4v-6.8h-3.2v6.8h3.2z m0 6.6v-3.4h-3.2v3.4h3.2z m-20 5l18.4-31.6 18.4 31.6h-36.8z"/></g> </Icon> ) export default MdWarning
var api = global.api, parseString = require('xml2js').parseString, request = require('request'); api.mal.news = function(req, res, next) { res.type('application/json'); News.fetch(function(err, news) { res.send(news); }); }; var News = (function() { function News() {} News.fetch ...
// @flow declare export opaque type ComponentType<X>; declare export function bar(): ComponentType<any>;
Namespace=new Object(); Namespace.register=function(NS) { var currentObject=window;//the root var nsArray=NS.split("."); for(var i=0;i<nsArray.length;i++){ if(typeof(currentObject[nsArray[i]])=='undefined'){ currentObject[nsArray[i]]=new Object(); } currentObject=currentObject[nsArray[i]]; } return curren...
/* FrontFactory */ app.factory('IndexedFact', ['$http', function ($http) { return { getIndexedloan : function (request) { return $http.post('/indexed/indexloan',request); }, getIndexedLoanDate : function (request) { return $http.post('/indexed/indexlo...
var searchData= [ ['pll_5fclock_5fctrl',['pll_clock_ctrl',['../a00031.html',1,'']]], ['position',['position',['../a00032.html',1,'']]] ];
/** * @author kile / http://kile.stravaganza.org/ */ var Cylinder = function ( numSegs, topRad, botRad, height, topOffset, botOffset ) { THREE.Geometry.call( this ); var scope = this, pi = Math.PI, i; // VERTICES // Top circle vertices for ( i = 0; i < numSegs; i ++ ) { v( Math.sin( 2 * pi * i / numSeg...
/*! Picturefill - Author: Scott Jehl, 2012 | License: MIT/GPLv2 */ /* Picturefill: A polyfill for proposed behavior of the picture element, which does not yet exist, but should. :) * Notes: * For active discussion of the picture element, see http://www.w3.org/community/respimg/ * While this code does work, it is...
import React from 'react'; import { usePermission } from '../../contexts/AuthorizationContext'; import NotAuthorizedPage from '../../components/NotAuthorizedPage'; import InvitesPage from './InvitesPage'; function InvitesRoute() { const canCreateInviteLinks = usePermission('create-invite-links'); if (!canCreateInv...
import testRule from "../../../testUtils/testRule" import rule, { ruleName, messages } from ".." testRule(rule, { ruleName, config: ["always"], accept: [ { code: "@media ( max-width: 300px ) {}", }, { code: "@media screen and ( color ), projection and ( color ) {}", }, { code: "@media ( grid ) ...
import styles from './MultipleSections.less'; import theme from './theme.less'; import React, { Component } from 'react'; import isMobile from 'ismobilejs'; import Link from 'Link/Link'; import Autosuggest from 'Autosuggest'; import languages from './languages'; import { escapeRegexCharacters } from 'utils/utils'; co...
(function () { 'use strict'; angular .module('dataGrid', []) .filter('startFrom', function () { return function (input, start) { if (input) { start = +start; return input.slice(start); } return [...
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft ...
import BackboneElementSerializer from 'ember-fhir/serializers/backbone-element'; export default BackboneElementSerializer.extend({ attrs: {details: { embedded: 'always' } } });
'use strict' let mandrill = require('mandrill-api/mandrill') let logger = require('@arve.knudsen/js-logger').get('emailer') let {getEnvParam,} = require('./environment') module.exports = { sendEmail: ({subject, html, emailAddress, name,}) => { let mandrillClient = new mandrill.Mandrill(getEnvParam('MANDRILL_SEC...
import React from 'react'; import { render, screen } from '@testing-library/react'; import { useSelector } from 'react-redux'; import { IntlProvider } from 'react-intl'; import { ThemeProvider, lightTheme } from '@strapi/design-system'; import LocaleListCell from '../LocaleListCell'; jest.mock('react-redux', () => ({ ...
/* global it, expect, describe, jasmine */ var SubscriptionRegistry = require( '../../src/utils/subscription-registry' ), SocketMock = require( '../mocks/socket-mock' ), SocketWrapper = require( '../../src/message/socket-wrapper' ), lastLogEvent = null, socketWrapperOptions = {logger:{ log: function(){}}}, _msg = ...
goo.V.attachToGlobal(); var gooRunner = V.initGoo(); var shapeMeshData = new Sphere(); // shape and boundingBox material var material1 = new Material(ShaderLib.simpleColored, ''); material1.uniforms.color = [0.3, 0.6, 0.9]; var material2 = new Material(ShaderLib.simpleColored, ''); material2.uniforms.color ...
import Parser from '../api/parser'; import { UPLOAD_THEME, SAVE_THEME, SET_RANGE, BLOCK_COLOR, REMOVE_BLOCK_COLOR } from '../constants/ActionTypes'; let initialState = { filePath: null, fileName: null, saturatePercentage: 50, brightnessPercentage: 50, showOptions: false, themeContentDefault: null, /* def...
;(function() { /** Used as a safe reference for `undefined` in pre ES5 environments */ var undefined; /** Used as a reference to the global object */ var root = (typeof global == 'object' && global) || this; /** Method and object shortcuts */ var phantom = root.phantom, amd = root.define && define....
describe("m.postgrest.requestWithToken", function(){ var apiPrefix = "http://api.foo.com/v1/"; var token = "authentication token"; var authentication_endpoint = "/authentication_endpoint" var xhr = { setRequestHeader: function(){} }; beforeEach(function(){ m.postgrest.reset(); localStorage.setI...
//>>built define({clearFilterDialogTitle:"\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u0456\u043b\u044c\u0442\u0440",filterDefDialogTitle:"\u0424\u0456\u043b\u044c\u0442\u0440",ruleTitleTemplate:"\u041f\u0440\u0430\u0432\u0438\u043b\u043e ${0}",conditionEqual:"\u0434\u043e\u0440\u0456\u0432\u043d\u044e\u045...
/*! Select for DataTables 1.3.3 2015-2021 SpryMedia Ltd - datatables.net/license/mit */ (function(e){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(i){return e(i,window,document)}):"object"===typeof exports?module.exports=function(i,m){i||(i=window);if(!m||!m.fn.dataTable)m=require...
var http = require('http'); // Variable para la logica y resolución a las url var logic = require('./logic'); var server = http.createServer(function(req, res){ logic.loadParameters(req, res, undefined); if(req.requrl.pathname === '/'){ require('./home').get(req, res); } else if(req.requrl.pathname === '/squ...
// BEGIN-SNIPPET selected-team-component import Component from '@ember/component'; export default Component.extend({ }); // END-SNIPPET
import Ember from 'ember'; export function initialize() { [ 'later', 'once', 'next', 'debounce', 'throttle' ].forEach((runner) => { Ember.run[runner].cancelOnDestroy = function () { var args = Array.prototype.slice.call(arguments); var [ target, method ] = args; Ember.assert('`cancelOnDestroy...
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011 Zynga Inc. Copyright (c) 2012 Scott Lembcke and Howling Moon Software http://www.cocos2d-x.org Permission is hereby granted, free of...
/// <reference path="../Src/knockout.validation.js" /> /************************************************ * This is an example localization page. All of these * messages are the default messages for ko.validation * * Currently ko.validation only does a single parameter repl...
import { moduleFor, test } from 'ember-qunit'; moduleFor('controller:model', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { var controller = this.subject(); assert.ok(controller); });...
require('colors'); var browserify = require('browserify'); var EventEmitter = require('events').EventEmitter; var fs = require('fs'); var httpServer = require('http-server'); var nodeunit = require('nodeunit'); var optimist = require('./runner-options'); var Q = require('q'); var querystring = require('querystring'); v...
/* @flow */ const dir = require('require-dir') dir('./gulp/tasks', { 'recurse': true })
/** * Created by Zhongyi on 2/23/16. */ 'use strict'; const Common = require('../common'); class CSSInjector { } CSSInjector.commonCSS = ` div.header, div.title_wrap { -webkit-app-region: drag; } div.title.poi { -webkit-app-region: no-drag; } div.header .avatar, div.header .info ...
(function() { "use strict"; var ENTITY_TABLE = { 34: "quot", 38: "amp", 39: "apos", 60: "lt", 62: "gt", 160: "nbsp", 161: "iexcl", 162: "cent", 163: "pound", 164: "curren", 165: "yen", 166: "brvbar", ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" /></g></React.Fragment> , 'KeyboardArrowRightTwoTone');
/* * File: TableTools.js * Version: 2.0.0 * Description: Tools and buttons for DataTables * Author: Allan Jardine (www.sprymedia.co.uk) * Language: Javascript * License: LGPL / 3 point BSD * Project: DataTables * * Copyright 2009-2010 Allan Jardine, all rights reserved. *...
(function(d3, fc) { 'use strict'; fc.series.cycle = function() { var decorate = fc.util.fn.noop, xScale = d3.scale.linear(), yScale = d3.scale.linear(), xValue = function(d, i) { return d.date.getDay(); }, subScale = d3.scale.linear(), subSer...
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function () { // Init module configuration options var applicationModuleName = 'mean'; var applicationModuleVendorDependencies = ['ngResource', 'ngAnimate', 'ui.router', 'ui.bootstrap', 'ui.utils'...
function background() { var ctxbgd = document.getElementById("background").getContext("2d"); ctxbgd.imageSmoothingEnabled = false; ctxbgd.webkitImageSmoothingEnabled = false; ctxbgd.mozImageSmoothingEnabled = false; function bDraw(image) { $("#background").drawImage({ la...
/** * @namespace PIXI */ export * from './const'; export * from './math'; import * as utils from './utils'; import * as ticker from './ticker'; import settings from './settings'; import CanvasRenderer from './renderers/canvas/CanvasRenderer'; import WebGLRenderer from './renderers/webgl/WebGLRenderer'; export { set...
var mongoose = require('mongoose'); Video = mongoose.model('Video'); Setlist = mongoose.model('Setlist'); exports.view = function(req, res) { var data = {}; data["helpers"] = { add_one: function(index) { return parseInt(index) + 1; } }; data.setlistId = req.params.setlistId; Setlist.findOne({'_id':...
import React from 'react' import { DropOption } from 'components' import { Table, Row, Col, Card, message } from 'antd' const DropOptionPage = () => <div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <DropOption menuOptions={[{ key: '1', name: '编辑' }, { key: '2...
var core = module.exports = {version: '2.0.0'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
var config = require('config'); var partnerApi = require('../lib/partners.js'); var json2csv = require('json2csv'); var fs = require('fs'); // Get all the accounts and apikeys for a partner account, output as CSV // Write the output file function outputFile(configId,outputdata){ var fname= configId+ '_accounts.cs...
module.exports = { createAlbumsOptions: function(tag, page) { var options = { method: "POST", uri: "https://bandcamp.com/api/discover/2/get", headers: { "Content-Type": "application/json;charset=UTF-8" }, json: { "s": "top", "p": page, "t": tag } }; return options; }, createTagsOptions...
'use strict'; var parent = document.querySelector('#parent'); var child = document.querySelector('#parent'); document.timeline.play(new Animation( new PseudoElementReference(child, ':before'), [{width: '0px'}, {width: '100px'}], 1)); timing_test(function() { at(0.5, function() { assert_styles(parent, {heigh...
/** * @module inputex-type */ var lang = Y.Lang, inputEx = Y.inputEx; /** * TypeField is a field to create fields. The user can create any value he wants by switching fields. * @class inputEx.TypeField * @extends inputEx.Field * @constructor * @param {Object} options Standard inputEx options definition */...
'use strict'; const mongoose = require('mongoose'); // Review questions are explained in detail in "1 Page Design" in Grok files. 'Missing' stands for "What one thing are they missing?" const reviewSchema = new mongoose.Schema({ author: String, // reviewerid: Number, reviewDate: {type: Date, 'default': Date.now},...
export * from '@twind/core'; export { tw } from '@twind/runtime'; export { setup } from './cdn.esnext.js'; //# sourceMappingURL=twind.esnext.js.map
var _isInteger = require('./_isInteger'); var _isDefined = require('./_isDefined'); module.exports = function(value) { if (value == null) { return false; } if (!_isInteger(value.length) || value.length < 0) { return false; } if (value.length === 0) { return true; } ...
/* global require, module */ ;(function() { 'use strict'; var noop = require('noopaam'); var state = { value: null, // Used for equality checks. entryAction: noop, exitAction: noop, }; state._path_ = './state'; module.exports = state; }());
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...