code
stringlengths
2
1.05M
frappe.provide('frappe.ui.misc'); frappe.ui.misc.about = function() { if(!frappe.ui.misc.about_dialog) { var d = new frappe.ui.Dialog({title: __('Frappe Framework')}); $(d.body).html(repl("<div>\ <p>"+__("Open Source Applications for the Web")+"</p> \ <p><i class='fa fa-globe fa-fw'></i>\ Website: <a href...
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M18 3H6C3.79 3 2 4.79 2 7c0 1.48.81 2.75 2 3.45V19c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8.55c1.19-.69 2-1.97 2-3.45 0-2.21-1.79-4-4-4zm-2.29 10.7-3 3c-.39.39-1....
import { assign } from '@ember/polyfills'; import { moduleFor, RenderingTest, ApplicationTest } from '../../utils/test-case'; import { strip } from '../../utils/abstract-test-case'; import { set, Mixin } from '@ember/-internals/metal'; import { Component } from '../../utils/helpers'; import Controller from '@ember/cont...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M14 10L2 22h12V10z" /></g></React.Fragment> , 'SignalCellular2BarTwoTone');
{ "name": "fn6.js", "url": "https://github.com/stefanwimmer128/fn6.js.git" }
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'source-map', entry: [ 'webpack-hot-middleware/client', './index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.js', publicPath: '/static/' }, plugins: [ new webpack.optimi...
/*! TieJS - http://develman.github.io/tiejs Licensed under the MIT license Copyright (c) 2018 Georg Henkel <g.henkel@cg-solutions.de>, Christoph Huppertz <c.huppertz@cg-solutions.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
import assert from './assert' import { isFunction } from './TestUtils' function noop() {} let spies = [] export function createSpy(fn, restore=noop) { if (fn == null) fn = noop assert( isFunction(fn), 'createSpy needs a function' ) let targetFn, thrownValue, returnValue const spy = function ...
// @require core/widget/helpers.js (function ( $, _, Svelto ) { /* PLUGIN */ let Plugin = { call ( Widget, $ele, args ) { let options = args[0], isMethodCall = ( _.isString ( options ) && options.charAt ( 0 ) !== '_' ); // Methods starting with '_' are private for ( let i = 0, l = $...
'use strict'; angular.module(ApplicationConfiguration.applicationModuleName).controller('LeftNavController', function(Authentication, $mdSidenav, Menus, $log) { this.authentication = Authentication; this.isCollapsed = false; this.menu = Menus.getMenu('sidenav'); this.selected = ''; this.isSelected = functi...
/* coerces a value into a boolean */ 'use strict'; var value = require('useful-value'); module.exports = function boolean(val) { val = value.coerce(val); return !!val; };
'use strict'; const common = require('../common'); const assert = require('assert'); const URLSearchParams = require('url').URLSearchParams; const { test, assert_equals, assert_true } = require('../common/wpt'); /* The following tests are copied from WPT. Modifications to them should be upstreamed first. Refs: ...
module.exports={A:{A:{"1":"B","16":"mB","129":"F A","130":"M D H"},B:{"1":"C E q L O I J K"},C:{"1":"0 1 2 3 4 5 6 8 9 jB AB G M D H F A B C E q L O I J P Q R S T U V W X Y Z a b c d f g h i j k l m n o p N r s t u v w x y z LB BB CB DB EB FB HB IB JB eB cB"},D:{"1":"0 1 2 3 4 5 6 8 9 G M D H F A B C E q L O I J P Q R ...
version https://git-lfs.github.com/spec/v1 oid sha256:ba70bb48cb8b3fa4039462224a789adb71a3ff64f8c3c3da603a633299e783af size 2528
const replaceSpritePlaceholder = require('./replace-sprite-placeholder'); /** * @param {NormalModule|ExtractedModule} module * @param {Object<string, string>} replacements * @return {NormalModule|ExtractedModule} */ function replaceInModuleSource(module, replacements) { const source = module._source; if (type...
'use strict'; // eslint-disable-line semi const request = require('supertest'); const {expect} = require('chai'); const db = require('APP/db'); const app = require('./start'); describe('/api/users', () => { before('Await database sync', () => db.didSync); afterEach('Clear the tables', () => db.truncate({ cascade...
'use strict'; var babelHelpers = require('./util/babelHelpers.js'); var React = require('react'), _ = require('./util/_'), cx = require('classnames'), dates = require('./util/dates'), localizers = require('./util/configuration').locale, CustomPropTypes = require('./util/propTypes'), Btn = requ...
import React from 'react'; import ActionButton from './ActionButton'; import renderer from 'react-test-renderer'; describe('floating action button', () => { it('renders initial view', () => { const component = renderer.create( <ActionButton />, ); let tree = component.toJSON(); expect(tree).t...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2022 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * Returns the nearest power of 2 to the given `value`. * * @function Phaser.Math.Pow2.GetNext * @since 3.0.0 * * @param {number} value...
var map, layer, districtLayer; var projectAPIKey = 'AIzaSyDdCELFax8-q-dUCHt9hn5Fbf_7ywY6yvA';// Personal Account // var citiesTableID = '1CU4KNOJYGWoCkUZWrxgvleGq-k6PFFUO6qfqTCid'; var citiesTableID = '1cKfYbbWs6JJujJPk-lJfdBLWVaRRSMxfXNx6K6_y'; var districtsTableID = '1BYUolX-kQGfeEckoXM...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Tfile Schema */ var TfileSchema = new Schema({ name: { type: String, default: '', required: 'Please add a TestFile name', trim: true }, created: { type: Date, default: Date.now }, user...
'use strict'; // event // eventType - 'dragStart', 'drag', 'dragStop' // pos - absolute pos, // returnCallback var app = angular.module('utilsDrag', []); app.directive('utilsDrag', function ( ) { return { restrict: 'A', scope: { dragCallback: '&utilsDrag' }...
/* jshint node: true */ 'use strict'; var assign = require('object-assign'); module.exports = { name: 'ember-cli-cloudinary-images', config: function(environment, appConfig) { var CLOUDINARY = appConfig.CLOUDINARY || {}; return { CLOUDINARY: assign({ /** For future support */ API_K...
/* Magic Mirror Test config default weather * * By rejas * MIT Licensed. */ let config = { units: "imperial", modules: [ { module: "weather", position: "bottom_bar", config: { type: "forecast", location: "Munich", mockData: '"#####WEATHERDATA#####"', weatherEndpoint: "/forecast/daily",...
/** * Produces optimized XTemplates for chunks of tables to be * used in grids, trees and other table based widgets. */ Ext.define('Ext.view.TableChunker', { singleton: true, requires: ['Ext.XTemplate'], metaTableTpl: [ '{%if (this.openTableWrap)out.push(this.openTableWrap())%}', '<table ...
/////////////// /// main.js // ///////////// jQuery(function () { var $ = jQuery; // happy coding! });
import { collection } from 'ember-cli-page-object'; export default { scope: '.user__skills-list', emptyState: { scope: '[data-test-user-skills-list-empty-state]' }, skills: collection('[data-test-user-skills-list-item]') };
/** @module utils/nodes */ /** * The default testnet node * * @type {string} */ let defaultTestnetNode = 'http://bob.nem.ninja:7778'; /** * The default mainnet node * * @type {string} */ let defaultMainnetNode = 'http://alice6.nem.ninja:7778'; /** * The default mijin node * * @type {string} */ let defaul...
/* Copyright (c) 2011 Cimaron Shanahan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute...
/** @license MIT License (c) copyright B Cavalier & J Hann */ /** * wire/on plugin * wire plugin that provides an "on" facet to connect to dom events, * and includes support for delegation * * wire is part of the cujo.js family of libraries (http://cujojs.com/) * * Licensed under the MIT License at: * http://w...
import { extend, colorRgbToHex, colorRgbToHsl, colorHslToHsb, colorHslToRgb, colorHsbToHsl, colorHexToRgb, nextTick, deleteProps, } from '../../shared/utils'; import Framework7Class from '../../shared/class'; import $ from '../../shared/dom7'; import { getDevice } from '../../shared/get-device'; impo...
/* * * * (c) 2010-2019 Torstein Honsi * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; /* globals Image, window */ /** * Reference to the global SVGElement class as a workaround for a name conflict * in the Highcharts ...
/*!----------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.5.3(793ede49d53dba79d39e52205f16321278f5183c) * Released under the MIT license * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt *-------------------------------------...
/** * Spacelet Manager, 2013 Spaceify Inc. * SpaceletManager is a class for managing Spacelets and their processes. It launches spacelet processes, manages their quotas and access rights and terminates them when needed. * * @class SpaceletManager */ var fs = require("fs"); var fibrous = require("fibrous"); var Co...
import React, { Component } from 'react'; import {DataTable} from 'datatables.net-responsive-bs'; const settingsMock = { header: 'Test Header' }; describe('DataTables component', () => { class mock extends Component {} var comp = new mock(settingsMock); it('Should have props', () => { expect(comp....
var util = require('util'); var async = require('async'); var path = require('path'); var Router = require('../utils/router.js'); var sandboxHelper = require('../utils/sandbox.js'); // Private fields var modules, library, self, private = {}, shared = {}; private.loaded = false // Constructor function Server(cb, scop...
(function(global) { // simplified version of Object.assign for es3 function assign() { var result = {}; for (var i = 0, len = arguments.length; i < len; i++) { var arg = arguments[i]; for (var prop in arg) { result[prop] = arg[prop]; } ...
module.exports={title:'Discover',slug:'discover',svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Discover icon</title><path d="M12 0A12 12 0 1 0 12 24A12 12 0 1 0 12 0Z"/></svg>',get path(){return this.svg.match(/<path\s+d="([^"]*)/)[1];},source:'https://www.discovernetwork.com/en-us/...
import Coordinator from '../models/coordinator'; export default { name: "setup coordinator", initialize: function() { let app = arguments[1] || arguments[0]; app.register("drag:coordinator",Coordinator); app.inject("component","coordinator","drag:coordinator"); } };
import { EventEmitter, Input, Output, Component, ViewContainerRef, ContentChildren, ElementRef, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TooltipModule } from 'primeng/tooltip'; import { PrimeTemplate, SharedModule } from 'primeng/api'; var __decorate = (this && this.__d...
var MemoryBlogStore = require('./MemoryBlogStore'); var blogStore = new MemoryBlogStore(); blogStore.addPost({ text: 'Hello' }, function(err, post) { console.log(err, post); }); blogStore.addPost({ text: 'Hello' }, function(err, post) { console.log(err, post); }); blogStore.addPost({ text: 'Hello' }, function(...
var mysql = require('mysql'); function mysqlConn(config,logger) { this.connectionPool = mysql.createPool(config); this.initialized = true; this.logger = logger; } mysqlConn.prototype = { /// if the raw connection is needed getConnection: function (callback) { if (!this.initialized) { ...
'use strict'; define([ 'three', 'explorer', 'underscore' ], function( THREE, Explorer, _ ) { var mp3names = ['crystalCenter', 'cellCollision', 'atomCollision', 'popOutOfAtom', 'dollHolder', 'atomUnderDoll', 'navCube', 'dollArrived', 'leapGrab', 'leapNoGrab']; function Sound(animationMachine) { ...
YUI.add("lang/gallery-message-format_lv",function(e){e.Intl.add("gallery-message-format","lv",{pluralRule:"set6"})},"gallery-2013.04.10-22-48");
'use strict'; /* jshint -W030 */ var chai = require('chai') , expect = chai.expect , Support = require(__dirname + '/../support') , DataTypes = require(__dirname + '/../../../lib/data-types') , Sequelize = Support.Sequelize , dialect = Support.getTestDialect() , sinon = require('sinon'); describe(Support....
// // tselect01.js // Test for select // if(typeof exports === 'object') { var assert = require("assert"); var alasql = require('..'); }; describe('Create database', function(){ it('Create new database', function(done) { var db = new alasql.Database(); assert.deepEqual(db.tables, {}); done()...
/** * Returns the string, with after processing the following backslash escape sequences. * * attacklab: The polite way to do this is with the new escapeCharacters() function: * * text = escapeCharacters(text,"\\",true); * text = escapeCharacters(text,"`*_{}[]()>#+-.!",true); * * ...but we're sidestepping...
const ts = require('typescript'); const utils = require('tsutils'); const Lint = require('tslint'); const ERROR_MESSAGE = 'A TODO may only appear in inline (//) style comments. ' + 'This is meant to prevent a TODO from being accidentally included in any public API docs.'; /** * Rule that walks through all co...
// this is just a demo. To run it execute from the root of repository: // // > npm start // // Then open ./example/index.html // module.exports.main = function () { var graph = require('ngraph.generators').balancedBinTree(6); var createPixiGraphics = require('../'); var pixiGraphics = createPixiGraphics(graph); ...
describe( 'AppCtrl', function() { describe( 'isCurrentUrl', function() { var AppCtrl, $location, $scope; beforeEach( module( 'app' ) ); beforeEach( inject( function( $controller, _$location_, $rootScope ) { $location = _$location_; $scope = $rootScope.$new(); AppCtrl = $controller( 'Ap...
<p> Añadir nuevo comentario: </p> <p> <form method="POST" action="/quizzes/<%=quiz.id%>/comments/"> <input type="text" id="comment" name="comment[text]" value="" placeholder="Comentario" /> <p> <button type="submit">Enviar</button> </form> </p>
YUI.add("y3d-texture",function(e,t){var n=e.Lang;e.Texture=e.Base.create("texture",e.Base,[],{},{ATTRS:{image:{value:null},imageUrl:{value:"",validator:n.isString},webglTexture:{value:null}}}),e.TextureLoader=e.Base.create("texture-loader",e.Base,[],{initializer:function(){var t=this,n=t.get("textures"),r=t.get("unload...
module.exports = { entry: ["react", "react-dom", "lodash"] }
/* This utility processes the argument passed with the `lang` option in ember-cli, i.e. `ember (new||init||addon) app-name --lang=langArg` Execution Context (usage, input, output, error handling, etc.): - called directly by `init` IFF `--lang` flag is used in (new||init||addon) - receives single input: the argume...
(function(b){var a=b.cultures,d=a.en,e=d.calendars.standard,c=a.no=b.extend(true,{},d,{name:"no",englishName:"Norwegian",nativeName:"norsk",language:"no",numberFormat:{",":" ",".":",",percent:{",":" ",".":","},currency:{pattern:["$ -n","$ n"],",":" ",".":",",symbol:"kr"}},calendars:{standard:b.extend(true,{},e,{"/":"."...
var EPOCH = 1900; var PATTERN = /(\d+)[^\/|-]/g; function iskabisat(year) { if(year % 4 === 0){ if(year % 100 === 0 && year % 400 !== 0) return false; else return true; } return false; } /* * kabisats: * Calculating how many kabisats' years in time span between * given year and primor...
var _elm_lang$window$Native_Window = function() { var size = _elm_lang$core$Native_Scheduler.nativeBinding(function(callback) { callback(_elm_lang$core$Native_Scheduler.succeed({ width: window.innerWidth, height: window.innerHeight })); }); return { size: size }; }();
/* ShipManager.js KC3改 Ship Manager Managesship roster and does indexing for data access. Saves and loads list to and from localStorage */ (function(){ "use strict"; window.KC3ShipManager = { list: {}, max: 100, pendingShipNum: 0, // Get a specific ship by ID get :function( rosterId ){ ...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
describe("About Expects", function() { // We shall contemplate truth by testing reality, via spec expectations. it("should expect true", function() { expect(true).toBeTruthy(); //This should be true }); // To understand reality, we must compare our expectations against reality. it("should expect equalit...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
'use strict'; const common = require('../common'); const assert = require('assert'); const tick = require('./tick'); const initHooks = require('./init-hooks'); const { checkInvocations } = require('./hook-checks'); const fs = require('fs'); const hooks = initHooks(); hooks.enable(); fs.readFile(__filename, common.mu...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import SettingsWrapper from '../SettingsWrapper'; test('renders if isEnabled', (t) => { const wrapper = shallow(<SettingsWrapper isEnabled />); t.true(wrapper.matchesElement(<div />)); }); test('renders with settings toggle whe...
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"0 2 3 4 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r PB OB"},D:{"1":"0 2 4 8 m n o p q v w x y z s r DB AB SB BB","2":"F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h...
/* globals: sinon */ var expect = require("chai").expect; var Keen = require("../../../../src/core"), keenHelper = require("../../helpers/test-config"); describe("Keen.Dataviz", function(){ beforeEach(function(){ this.project = new Keen({ projectId: keenHelper.projectId, readKey: keenHelper.rea...
var fs = require('fs'); var daff = require('daff'); var assert = require('assert'); var Fiber = null; var sqlite3 = null; try { Fiber = require('fibers'); sqlite3 = require('sqlite3'); } catch (err) { // We don't have what we need for accessing the sqlite database. // Not an error. console.log("No ...
/** * @fileoverview transition parser/implementation - still WIP * * @author Tony Parisi */ goog.provide('glam.TransitionElement'); goog.require('glam.AnimationElement'); glam.TransitionElement.DEFAULT_DURATION = glam.AnimationElement.DEFAULT_DURATION; glam.TransitionElement.DEFAULT_TIMING_FUNCTION = glam.Anima...
var assert = require('assert'); var common = require('../../common'); var path = common.fixtures + '/data.csv'; var table = 'multi_load_data_test'; var newline = common.detectNewline(path); common.getTestConnection({multipleStatements: true}, function (err, connection) { assert.ifError(err); common.useTestD...
/*** * Contains core SlickGrid classes. * @module Core * @namespace Slick */ (function ($) { // register namespace $.extend(true, window, { "Slick": { "Event": Event, "EventData": EventData, "EventHandler": EventHandler, "Range": Range, "NonDataRow": NonDataItem, "Group"...
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Incident number": 71820028, "Date": "7\/1\/2007", "Time": "02:18 AM", "Police District": 4, "Offense 1": "SIMPLE ASSAULT", "Address": "7001 N 43RD ST #...
'use strict'; // Declare app level module which depends on views, and components angular.module('sidecar', [ 'ngRoute', 'sidecar.services', // 'sidecar.version' ]). config(['$locationProvider', '$routeProvider', function($locationProvider, $routeProvider) { $locationProvider.hashPrefix('!'); $routeProvider.o...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _assetloader = require('./assetloader'); var _assetloader2 = _interopRequireDefault(_assetloader); var _input = require('./input'); v...
'use strict'; //Contacts service used to communicate Contacts REST endpoints angular.module('contacts').factory('Contacts', ['$resource', function ($resource) { return $resource('api/v1/contacts/:contactId', { contactId: '@_id' }, { update: { method: 'PUT' } }); } ]);
module.exports = { bundle_id: 'app', webpack_config: { entry: './assets/src/app.js', }, };
var debugpp = require('..'); var debugSystem = debugpp.debug('system', true); var debugSystemTest = debugpp.debug('system.test', true); debugSystem.log("Hello system!"); debugSystemTest.log("Hello system test!"); debugSystemTest.log("World"); debugSystemTest.warn("Hm?!"); debugSystemTest.error("Huston!!!");
{ "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "Incident number": 80300014, "Date": "1\/30\/2008", "Time": "02:56 AM", "Police District": 7, "Offense 1": "ROBBERY", "Address": "3927 W VILLARD AV", "L...
'use strict'; module.exports = function(grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, all: [ 'Gruntfile.js', 'assets/js/*.js', 'assets/js/plugins/*.js', '!assets/js/scripts.min.js' ] }, uglify: { dist: { ...
import Button from './Button'; /** * The `LinkButton` component defines a `Button` which links to a route. * * ### Props * * All of the props accepted by `Button`, plus: * * - `active` Whether or not the page that this button links to is currently * active. * - `href` The URL to link to. If the current URL ...
module.exports = function throwIfNonUnexpectedError(err) { if (err && err.message === 'aggregate error') { for (var i = 0 ; i < err.length ; i += 1) { throwIfNonUnexpectedError(err[i]); } } else if (!err || !err._isUnexpected) { throw err; } };
'use strict'; exports.__esModule = true; exports.configure = configure; var _aureliaViewManager = require('aurelia-view-manager'); var _datatable = require('./datatable'); var _columnsFilter = require('./columns-filter'); var _convertManager = require('./convert-manager'); function configure(aurelia) { aurelia....
file:/home/charlike/dev/glob-fs/fixtures/a/d9.js
const DrawCard = require('../../drawcard.js'); class Alayaya extends DrawCard { setupCardAbilities() { this.reaction({ when: { afterChallenge: event => ( event.challenge.winner === this.controller && this.isParticipating() && ...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const HTMLElement = require("./HTMLElement.js"); const impl = utils.implSymbol; function HTMLTextAreaElement() { throw new TypeError("Illegal constructor"); } Object.setPrototypeOf(HTMLTextAreaElement.prototype, HT...
$.fn.observationFieldsForm = function(options) { $(this).each(function() { var that = this $('.observation_field_chooser', this).chooser({ collectionUrl: '/observation_fields.json', resourceUrl: '/observation_fields/{{id}}.json', afterSelect: function(item) { $('.observation_field_ch...
exports.createSession = function(req, res, newUser) { return req.session.regenerate(function() { req.session.user = newUser; // res.redirect('/'); }); }; exports.isLoggedIn = function(req, res) { // return req.session ? !!req.session.user : false; console.log(!!req.user); return req.user ? !!re...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
const gulp = require('gulp'); const util = require('gulp-util'); const zip = require('gulp-zip'); const release = require('gulp-github-release'); const folders = require('gulp-folders'); const nwBuilder = require('gulp-nw-builder'); const fs = require('fs'); const changelog = require('conventional-changelog'); const ...
(function () { 'use strict'; angular .module('app.layout') .controller('SidebarController', SidebarController); SidebarController.$inject = ['routerHelper', '$scope', '$rootScope']; /* @ngInject */ function SidebarController (routerHelper, $scope, $rootScope) { var vm = thi...
// ==UserScript== // @name Sticky vote buttons // @namespace http://stackexchange.com/users/4337810/ // @version 1.0 // @description Makes the vote buttons next to posts sticky whilst scrolling on that post // @author ᔕᖺᘎᕊ (http://stackexchange.com/users/4337810/) // @match *://*.stackexch...
/** * @author mrdoob / http://mrdoob.com/ * @author alteredq / http://alteredqualia.com/ * @author paulirish / http://paulirish.com/ */ THREE.FirstPersonControls = function ( object, domElement ) { if ( domElement === undefined ) { console.warn( 'THREE.FirstPersonControls: The second parameter "domElement" is...
"use strict"; /** * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
import modules from 'ui/modules'; import angular from 'angular'; function Storage(store) { let self = this; self.store = store; self.get = function (key) { try { return JSON.parse(self.store.getItem(key)); } catch (e) { return null; } }; self.set = function (key, value) { try { ...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
// Copyright (c) 2020 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
import "ember"; import EmberHandlebars from "ember-handlebars"; var compile = EmberHandlebars.compile; var Router, App, AppView, router, container; var set = Ember.set; function bootApplication() { router = container.lookup('router:main'); Ember.run(App, 'advanceReadiness'); } // IE includes the host name func...
/* * Copyright (c) 2014 - present Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * ...
import Model from 'flarum/Model'; import Discussion from 'flarum/models/Discussion'; import IndexPage from 'flarum/components/IndexPage'; import Tag from 'tags/models/Tag'; import TagsPage from 'tags/components/TagsPage'; import DiscussionTaggedPost from 'tags/components/DiscussionTaggedPost'; import addTagList from ...
var $content, $deferred; $(document).ready(function() { // Bind ASAP events $(window).on("request.asap", pageRequested) .on("progress.asap", pageLoadProgress) .on("load.asap", pageLoaded) .on("render.asap", pageRendered) .on("error.asap", pageLoadError); $content = $("#content...
import { Class, clone, isArray } from './lib/objects'; import { diffs } from './lib/diffs'; import { eq } from './lib/eq'; import { PathNotFoundException } from './lib/exceptions'; /** `Document` is a complete implementation of the JSON PATCH spec detailed in [RFC 6902](http://tools.ietf.org/html/rfc6902). A docum...