code
stringlengths
2
1.05M
define([ "dojo/_base/declare", // declare "dojo/_base/Deferred", "dojo/dom", // dom.isDescendant "dojo/dom-attr", // domAttr.set "dojo/dom-class", // domClass.add domClass.contains domClass.remove "dojo/dom-geometry", // domGeometry.marginBox domGeometry.position "dojo/dom-style", // domStyle.set "dojo/has", //...
/** * @author Mark H Winkler * @class App.ux.window.UpdateWindow * @extends Ext.Window * <p>Ext.Window modal window used for updating all list detail.</p> */ Ext.define('<%= app_name %>.ux.window.UpdateWindow', { extend: 'Ext.Window', /** * Config defaults */ width: 600, modal: true, constrainHeader: tru...
var fs = require('fs-extra'), path = require('path'), waitFor = require('wait-for'); function template(map, currentPath, after){ map && Object.keys(map).forEach(function(key){ var dirPath = path.join(currentPath, key); fs.mkdirs(dirPath, after(function(){ template(map[key], dir...
/* *pager v1.0 | (c) 2013 MIT license *by lmh2072005 *last update 2013.11.10 */ (function(){ window.pager = window.pager || {}; window.pager.init = function(opts){ var option = { start : 0, limit : 10, listTemp : null, //data-list temp...
import THREE from './Three'; // Skybox image imports // import xpos from '../resources/images/church/posx.jpg'; import xneg from '../resources/images/church/negx.jpg'; import ypos from '../resources/images/church/posy.jpg'; import yneg from '../resources/images/church/negy.jpg'; import zpos from '../resources/images/c...
/** @license Material-UI v4.9.10 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable import/export */ import * as colors from './colors'; export { colors }; export * from './styles'; export * from './utils'; export { defa...
'use babel' import Syntax from './syntax' class VarsSyntax extends Syntax { constructor (table) { super (table) this.varBlocks = [] } add (syntax) { this.varBlocks.push(syntax) } getInstanceName () { return 'vars' } interpret ({row, column, value}, c) { if (c.matrix.hasScenarioVa...
'use strict'; /** * Module dependencies. */ var should = require('should'), mongoose = require('mongoose'), User = mongoose.model('User'), Group = mongoose.model('Group'); /** * Globals */ var user, group; /** * Unit tests */ /*describe('Group Model Unit Tests:', function() { beforeEach(function(done) { ...
'use strict' var fs = require('fs') var path = require('path') var PassThrough = require('stream').PassThrough var test = require('tape') var noop = require('./util/noop-processor') var spy = require('./util/spy') var engine = require('..') var join = path.join var read = fs.readFileSync var unlink = fs.unlinkSync v...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.ColorHash=e()}}(function(){var define,module,exports;...
import React from "react" import { graphql, useStaticQuery } from "gatsby" import { QueryDataCachesView } from "../../../components/query-data-caches/view" export default function StaticQueryWithTrailingSlashAtoBtoAHistoryPageB({ path, }) { const data = useStaticQuery(graphql` { queryDataCachesJson( ...
const express = require('express') const router = express() const taskController = require('./controllers/taskController') router.post('/add', taskController.add) router.put('/complete/:id', taskController.markAsComplete) router.put('/incomplete/:id', taskController.markAsIncomplete) router.put('/edit/:id', taskContr...
var router = require('koa-router')(); var authorizeConfig = require('../authorize/authorizeConfig'); var dubboUserPointClient = require('../lib/dubboUserPointClient'); var dubboUserPostInfoClient = require('../lib/dubboUserPostInfoClient'); router.get('/', authorizeConfig.force, async function (ctx, next) { //取个人资...
/**************************************************************************** Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of t...
var CONST = require('../const'); /** * @namespace PIXI.utils */ var utils = module.exports = { _uid: 0, _saidHello: false, EventEmitter: require('eventemitter3'), pluginTarget: require('./pluginTarget'), async: require('async'), /** * Gets the next unique identifier *...
// File Name: MKWebAPI.js // Description: // Created: February 24, 2016 // Author: Mihir Kadam, CloudFronts Technologies LLP // Revisions: // Date Format : dd/mm/yyyy // =====================================================================================================================================================...
var fs = require('fs'), path = require('path'); fs.readdir(process.argv[2], function (err, list) { var filteredList = list.filter(function (file) { return path.extname(file) === '.' + process.argv[3]; }); console.log(filteredList.join('\n')); });
function addImage(caller) { console.log(" - addImage()"); var fileSize = 0; var sizeLimit = 5242880; var previousImage = 0; var nextImage = 0; var ul = caller.parentNode.parentNode.parentNode; previousImage = Number(ul.getAttribute('li_count')); nextImage = previousImage + 1; ...
import { MESSAGE_TYPE } from './protocol.js'; const isNode = typeof process !== 'undefined'; export const flatDiagnostic = ({ pass, description, ...rest }) => rest; const createReplacer = () => { const visited = new Set(); return (key, value) => { if (isObject(value)) { if (visited.has(value)) { ...
/*! * Bootstrap-select v1.13.13 (https://developer.snapappointments.com/bootstrap-select) * * Copyright 2012-2020 SnapAppointments, LLC * Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE) */ (function (root, factory) { if (root === undefined && window !== unde...
'use strict'; angular.module('users').controller('AuthenticationController', ['$scope', '$http', '$location', 'Authentication', '$rootScope', function($scope, $http, $location, Authentication, $rootScope) { $scope.authentication = Authentication; var init = function () { if ($scope.authentication.user){ ...
var bl= require('bl') var http = require('http') /* http.get(process.argv[2], function(res){ res.on('data',function(data){ bl.append(data) }) res.on('end',function(){ console.log(bl.length) console.log(bl.toString()) }) }) */ //response.pipe(bl(function (err, data) { /* ... */ })) // or //response....
/** * Checks if the content of the title element is of an expected value. * * @example * this.demoTest = function (browser) { * browser.expect.cookie('cookie-name').to.contain('cookie-value'); * browser.expect.cookie('cookie-name').to.match(/regex/); * browser.expect.cookie('loginCookie', 'example.org').to...
(function(window, $, undefined) { "use strict"; var KeySet = function(format, font) { if (format !== 'svg') { throw 'Unsupported rendering output format'; } this.font = font; }; KeySet.prototype = { render: function(text, height) { var glyphIds = this.font.getTextAsGlyphIds(text), xOffset = 0, ...
/*! * inputmask.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2018 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.3-beta.7 */ (function(factory) { if (typeof define === "function" && define.amd) { define([ "./depend...
// Created by: Jason Dudash // https://github.com/dudash // // (C) 2016 Red Hat // // Released under the terms of MIT License // https://opensource.org/licenses/MIT // This file defines the routes exposed for the website user management // var express = require('express'); var router = express.Router(); /* GET login ...
if(typeof exports === 'object') { var assert = require("assert"); var alasql = require('../alasql.js'); }; describe('Test 124 - column AS alias syntax', function() { it('1. Prepare database and select', function(done){ alasql('create database test124'); alasql('use test124'); alasql('create table o...
var fs = require('fs'); var buffer = fs.readFileSync(process.argv[2]); var str = buffer.toString(); var arr = str.split('\n'); console.log(--arr.length);
module.exports = { dist: { files: [ { expand: true, cwd: "<%= yeoman.app %>/images", src: "{,*/}*.{png,jpeg,gif}", dest: "<%= yeoman.dist %>/images" } ] } };
/* * */ 'use strict'; moduloPlaza.controller('PlazaEditController', ['$scope', '$routeParams', '$location', 'plazaService', 'serverService', 'sharedSpaceService', '$filter', '$uibModal', function ($scope, $routeParams, $location, plazaService, serverService, sharedSpaceService, $filter, $uibModal) { $scope.fie...
describe('nLobby Server Message Test', function () { it('should send the OnStart message', function () { assert.ok(true, 'it really happened, no lie'); }); // End it }); // End describe 'nLobby Toast Test'
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.9.1 (2021-08-27) */ (function () { 'use strict'; ...
/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("devtools","de",{title:"Elementinformation",dialogName:"Dialogfenstername",tabName:"Reitername",elementId:"Elementkennung",elementT...
/*! otpauth v6.0.1 | (c) Héctor Molinero Fernández <hector@molinero.dev> | MIT | https://github.com/hectorm/otpauth */ /*! sjcl v1.0.8 | (c) bitwiseshiftleft | (BSD-2-Clause OR GPL-2.0-only) | https://github.com/bitwiseshiftleft/sjcl */ (function (global, factory) { typeof exports === 'object' && typeof module !== '...
function createBrowserLocalStorageCache(options) { const namespaceKey = `algoliasearch-client-js-${options.key}`; // eslint-disable-next-line functional/no-let let storage; const getStorage = () => { if (storage === undefined) { storage = options.localStorage || window.localSto...
/*! * lamejs plugin for videojs-record * @version 4.4.0 * @see https://github.com/collab-project/videojs-record * @copyright 2014-2021 Collab * @license MIT */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(requ...
/* Highcharts JS v8.0.2 (2020-03-03) (c) 2009-2019 Torstein Honsi License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/themes/gray",["highcharts"],function(b){a(b);a.Highcharts=b;retu...
import{B as e,m as t,k as n}from"./index-5013a1cd.js";let s=0;export default class extends e{constructor(e,t){super(e,t),this.debuggerId=t}connected(){this.connect(),this.log("connected")}changed(e,t){this.log("changed",{name:e,value:t})}disconnected(){this.log("disconnected")}connect(){const e=this.getDebugger();e&&e....
/* Human homepage: <https://github.com/vladmandic/human> author: <https://github.com/vladmandic>' */ var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getProtot...
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; let _ = t => t, _t, _t2, _t3, _t4; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { chain...
/** * Swiper 7.0.0-alpha.12 * Most modern mobile touch slider and framework with hardware accelerated transitions * https://swiperjs.com * * Copyright 2014-2021 Vladimir Kharlampidi * * Released under the MIT License * * Released on: August 6, 2021 */ (function (global, factory) { typeof exports === 'obj...
var os = require('os'), fs = require('fs'), stream = require('stream'), Redis = require('redis-stream'), uuid = require('uuid'), lorem = require('lorem-ipsum'), type = { 'string': 'SET', 'list': 'LPUSH', 'set': 'SADD', 'sorted': 'ZADD', 'hash': 'HMSET', 'lpush': 'LPUSH', 'sadd'...
var lodash = require('lodash'); console.log(lodash([1, 2]).last());
const test = require('tape') const isFunction = require('../core/isFunction') const isObject = require('./isObject') test('isObject predicate', t => { t.ok(isFunction(isObject), 'is a function') t.end() })
"use strict"; // core modules var stream = require('stream') var util = require('util') var net = require('net') // third party modules var es = require('event-stream') var keypress = require('keypress') process.stdin.setRawMode(true) process.stdin.resume() keypress(process.stdin) var keypresser...
var options = { // enableHighAccuracy can slower response times or increase power consumption enableHighAccuracy: false, // Maximum length of time (in milliseconds) the device is allowed to return a position timeout: 5000, // Maximum age in milliseconds of a possible cached position that is acceptable maxi...
// ========================================================================== // Project: Ember Runtime // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== /*globals raises */ require(...
var validator = require('validator'); /** * Local Authentication Protocol * * The most widely used way for websites to authenticate users is via a username * and/or email as well as a password. This module provides functions both for * registering entirely new users, assigning passwords to already registered * u...
const AbstractHandler = require('./AbstractHandler'); const Constants = require('../../../../util/Constants'); class TypingStartHandler extends AbstractHandler { handle(packet) { const client = this.packetManager.client; const data = packet.d; const channel = client.channels.get(data.channel_id); ...
version https://git-lfs.github.com/spec/v1 oid sha256:7700f2a3bef62214d1ec33d146d5c5dc16444ade2b472c93162d3a4368a9165d size 12363
const { meteorPath } = require('./config.js'); const rimraf = require('rimraf'); function uninstall() { console.log(`Uninstalling Meteor from ${meteorPath}`); try { rimraf.sync(meteorPath) } catch (err) { console.log('Encountered error while uninstalling:'); console.error(err); process.exit(1); ...
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; } __.prototype = b.prototype; d.prototype = new __(); }; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc)...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l2.29 2.29c.63.63 1.71.18 1.71-.71V8.91c0-.89-1.08-1.34-1.71-.71L17 10.5z" /></React.Fragment> , ...
<<<<<<< HEAD const Discord = require("discord.js"); exports.run = (client, message, args) => { let count = parseInt(args[0]) || 1; message.delete(); message.channel.fetchMessages({ limit: Math.min(count, 100), before: message.id }) .then(messages => { Promise.all(messages.map(m => m.delete())) .c...
module.exports = require("./webpack.config")({ env: 'prod' });
// ----------------------------------- // Slidebars // Version 0.10 Development // http://plugins.adchsm.me/slidebars/ // // Written by Adam Smith // http://www.adchsm.me/ // // Released under MIT License // http://plugins.adchsm.me/slidebars/license.txt // // --------------------- // Index of Slidebars.js // // 001 -...
{ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); }
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var DeviceScreenLockRotation = React.createClass({ displayName: 'DeviceScreenLockRotation', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M23...
/*! * Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file. */ import {assert} from '@ciscospark/test-helper-chai'; import {make} from '@ciscospark/common'; describe('common', () => { describe('TemplateContainer', () => { describe('make()', () => { // _.memoize breaks most of the tests; since `...
/*globals define, _, $*/ /*jshint browser: true, camelcase: false*/ /** * @author brollb / https://github.com/brollb */ define([ 'decorators/LayerDecorator/EasyDAG/LayerDecorator.EasyDAGWidget', 'css!./PoolDecorator.EasyDAGWidget.css', 'd3' ], function ( LayerDecorator ) { 'use strict'; va...
import { Meteor } from 'meteor/meteor'; import { Match, check } from 'meteor/check'; import { Accounts } from 'meteor/accounts-base'; import s from 'underscore.string'; import * as Mailer from '../../app/mailer'; import { Users } from '../../app/models'; import { settings } from '../../app/settings'; import { saveCust...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2015 Lukas Mayerhofer <lukas.mayerhofer@guh.guru> * * ...
// 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...
/** * swipe-event.js 0.0.0 * author: Yoshiya Hinosawa (@kt3k) * license: MIT lisence */ window.SwipeEvent = (function (window, $) { 'use strict'; var EVENT = { SWIPE: { CANCEL: 'swipecancel', END: 'swipeend' } }; var SwipeEvent = function (options) { ...
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it. import fn from '../../closestTo/index.js' import convertToFP from '../_lib/convertToFP/index.js' var closestTo = convertToFP(fn, 2) export default closestTo
define({ "_widgetLabel": "Business Analyst", "addPoint": "Agregar un punto haciendo clic en el mapa", "addRingsDtWt": "Agregar anillos, tiempo de recorrido por vehículo o tiempo de recorrido a pie.", "apply": "Solicitar participación", "back": "Atrás", "colon": ":", "creditInformation": "Información de cr...
import BoardService from '~/boards/services/board_service'; export const boardObj = { id: 1, name: 'test', milestone_id: null, }; export const listObj = { id: 300, position: 0, title: 'Test', list_type: 'label', label: { id: 5000, title: 'Testing', color: 'red', description: 'testing;'...
'use strict'; var preAuth = require('./service/pre-auth'); var security = require('./service/security'); var account = require('./service/account'); var admin = require('./service/admin/admin'); var adminUser = require('./service/admin/user'); var adminAccount = require('./service/admin/account'); var adminAdministrat...
export { default } from 'ember-ambitious-forms/services/ember-ambitious-forms'
/** * Demonstrates how the echo behavior can be abstracted into a decorator, * working equally well on clients, components or S2S. */ var xmpp = require('../lib/node-xmpp'); var argv = process.argv; if (argv.length < 5 && argv) { console.error('Usage: node echo_mixin.js client <my-jid> <my-password>'); conso...
"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")...
import Model from "../models/simulations.model" import * as types from "../actions/types" export default (state, action) => { state = new Model(state) switch (action.type) { case types.RESET: state = new Model() break case types.UPDATE_SIMULATION: state = state.merge(action.payload) ...
var ArrayIndex = require('./') var inherits = require('util').inherits var assert = require('assert') /** * Create a "subclass". */ function Arrayish (length) { ArrayIndex.call(this, length) this.sets = Object.create(null) } // inherit from `ArrayIndex` inherits(Arrayish, ArrayIndex) // ...
function(page) { var regex = /<div id="comic">\n<img[^>]*src="([^"]*\/wp-content\/uploads\/[^"]*)"/; var match = regex.exec(page); return match[1]; }
'use strict'; /*global describe, it*/ require('../../core-upgrade.js'); var should = require("chai").should(); var DU = require('../../lib/utils/DOMUtils.js').DOMUtils; var ParsoidConfig = require('../../lib/config/ParsoidConfig.js').ParsoidConfig; var helpers = require('./test.helpers.js'); // FIXME: MWParserEnviro...
// rotor.js code by Dan McKeown http://danmckeown.info // copyright 2016 Licensed under MIT License // requires jQuery // v0.1.0-beta5 // http://rotor.pacificio.com 'use strict'; var flipPic = function flipPic(next, current, parentSelector, childSelector) { var call1 = arguments.length <= 4 || arguments[4] =...
/*global angular */ /** * The main controller for the app. The controller: * - retrieves and persists the model via the todoStorage service * - exposes the model to the template and provides event handlers */ angular.module('todomvc') .controller('TodoCtrl', function TodoCtrl($scope, $routeParams, todoStorage, fi...
$(document).ready(function() { module("Functions"); test("bind", function() { var context = {name : 'moe'}; var func = function(arg) { return "name: " + (this.name || arg); }; var bound = _.bind(func, context); equal(bound(), 'name: moe', 'can bind a function to a context'); bound = _(func).b...
const SelectCheckbox = FocusComponents.common.select.checkbox.component; const {pull} = _; const possibleValues = [{value: "A", label: "Value A"},{value: "B", label: "Value B"}, {value: "C", label: "Value C"}, {value: "D", label: "Value D"}]; const SelectCheckboxSample = React.createClass({ /** * Handle clic...
export function toFixed(number, precision) { var power = Math.pow(10, precision) return (Math.round(number * power) / power).toFixed(precision) } export function format(number, pattern) { var precision = String(pattern).split('.')[1] return toFixed(number, precision ? precision.length : 0) } export function c...
/** * * ToggleOption * */ import React from 'react' import { injectIntl, intlShape } from 'react-intl' const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ) ToggleOption.propTypes = { value: React.PropTypes.string.isRequired,...
var fs = require('fs'); var path = require('path'); var tsFolder = path.dirname(require.resolve('typescript')); var tscUnlockedPath = path.join(tsFolder, 'tsc-unlocked.js'); try { module.exports = require(tscUnlockedPath); } catch (err) { unlockTsc(); module.exports = require(tscUnlockedPath); } function unlockT...
'use strict'; var charCode = function (c) { return c.charCodeAt(0); }; // a safe fast alternative to decodeURIComponent module.exports = function (s) { var out = new Array(s.length); var state = 'CHAR'; // states: CHAR, HEX0, HEX1 var n, m, hexchar, inIndex, outIndex, c; for (inIndex = 0, outIndex = 0; inInde...
import React from 'react'; import { StyleSheet, View, Text, Dimensions } from 'react-native'; import MapView, { MAP_TYPES, PROVIDER_DEFAULT, LocalTile, ProviderPropType, } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78...
import { assign, symbol, getOwner } from 'ember-utils'; import { assert, info, isTesting, Error as EmberError, get, set, getProperties, isNone, computed, run, isEmpty } from 'ember-metal'; import { typeOf, copy, String as StringUtils, Object as EmberObject, A as emberA, Evented, Acti...
var PageName = 'purchasing'; var PageId = 'paf2bbcc64a0244b997f08dff236357ab' var PageUrl = 'purchasing.html' document.title = 'purchasing'; if (top.location != self.location) { if (parent.HandleMainFrameChanged) { parent.HandleMainFrameChanged(); } } var $OnLoadVariable = ''; var $CSUM; var h...
/** * Copyright (c) Ajay Sreedhar. All rights reserved. * * Licensed under the MIT License. * Please see LICENSE file located in the project root for more information. */ 'use strict';
/// <reference path="angular-resource-1.2.d.ts" /> ; ; /////////////////////////////////////// // IActionDescriptor /////////////////////////////////////// var actionDescriptor; actionDescriptor.headers = { header: 'value' }; actionDescriptor.isArray = true; actionDescriptor.method = 'method action'; actionDescriptor.p...
if (!RedactorPlugins) var RedactorPlugins = {}; RedactorPlugins.fontsize = { init: function() { var fonts = [10, 12, 14, 18, 22, 28, 36, 42, 60]; var that = this; var dropdown = {}; $.each(fonts, function(i, s) { dropdown['s' + i] = { title: s + 'px', callback: function() { that.setFontsize(s); } }; ...
// Copyright 2009 the V8 project authors. 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 list of ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S15.10.2.8_A3_T21; * @section: 15.10.2.8; * @assertion: Parentheses of the form ( Disjunction ) serve both to group the components of the Disjunction pattern together a...
var PeerManager = require('../lib/PeerManager'); var peerman = new PeerManager(); peerman.discover({ limit: 12 }).start();
export default class Ajax { static send(options) { var promise = {}; promise.promise = new Promise((resolve, reject) => { promise.resolve = resolve; promise.reject = reject; }); var xhr = new XMLHttpRequest(); xhr.open(options.method, options.url, tr...
import React, { Component } from 'react'; import './styles/common.css'; import './styles/font.css'; export default class App extends Component { render() { return ( <div className="container"> <h1>Start Your Project</h1> <i className="material-icons md-36">face</i> </div> ) } }...
function setup() { // NUMBER 1 thing to do createCanvas(500,500); background(0,253,242); push(); // main ellipse // AKA. the head translate(250, 100); fill(0, 255, 0); ellipse(0,0,300,120); // The eyes push(); translate(0, -30); fill(0); ellipse(-50,0,30,20); ...
import { messages, ruleName, } from ".." import rules from "../../../rules" import { testRule } from "../../../testUtils" const rule = rules[ruleName] testRule(rule, { ruleName, config: ["always"], skipBasicChecks: true, accept: [ { code: "@charset\n\"UTF-8\";", }, { code: "@charset\r\n\"UTF-8\...
const ipcPlus = require('electron-ipc-plus'); module.exports = { ipcPlus };
// Generated by CoffeeScript 2.6.1 // {is_object, is_object_literal} = require 'mixme' var exec, fs, os, process, utils; utils = require('../../utils'); os = require('os'); process = require('process'); fs = require('ssh2-fs'); exec = require('ssh2-exec'); module.exports = { name: '@nikitajs/core/lib/plugins/me...
'use babel' const forRN = function(name) { return `import {StyleSheet} from 'react-native' export default StyleSheet.create({ container: { } }) ` } export default function(name, isRN) { if (isRN) return forRN(name) return `:local(.container) { } ` }
define([ 'app', 'backbone', 'views/base-view', 'partial-views' ], function (app, Backbone, BaseView, Partials) { /* * The main-collection for fetching all the wordpress * content and assigning it to the corresonding view. **/ return Backbone.Collection.extend({ /* * Object holding infos about the fram...