code stringlengths 2 1.05M |
|---|
'use strict';
$('#school-btn-edit').live('click', function () {
$(this).hide();
$('#school-name').hide();
$('#school-edit-form').show();
});
function hideSchooledit() {
$('#school-edit-form').hide();
$('#school-name').show();
$('#school-btn-edit').show();
}
$('#school-edit-btn-cancel').live('c... |
/* global describe, it, expect */
var Router = require('../lib/router')
, MockApplication = require('./mocks/mockapplication');
describe('Router#draw', function() {
function handler(controller, action) {
return function() {
return { controller: controller, action: action };
};
}
var app... |
// Copyright 2021 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=Lisu`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v14.0.0... |
(function () {
'use strict';
var module = angular.module('SparQs.charts', []);
module.directive('quantHistogram', function () {
var QuantHistogram = function ($element, attrs, onBrushed) {
var $d3_element = d3.select($element[0]);
var yProp = 'value';
var xS... |
import mixin from '../../mixins/videojsMenuItemVueMixin';
import transcriptMenuItem from './TranscriptMenuItem.vue';
class TranscriptMenuItem extends mixin(transcriptMenuItem) {}
export default TranscriptMenuItem;
|
'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Answer = mongoose.model('Answer'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, answer;
/**
* Answer routes tests... |
import React from 'react';
import { shallow } from 'enzyme';
import App from '../../app/components/App';
describe('App Component', () => {
let wrapper;
beforeEach(() => {
wrapper = shallow(<App />);
});
it('should exist', () => {
expect(wrapper).toBeTruthy();
});
it('should have... |
/**
* @author chriskillpack / http://chriskillpack.com/
*
* QuakeCamera has been renamed FirstPersonCamera. This property exists for backwards
* compatibility only.
*/
THREE.QuakeCamera = THREE.FirstPersonCamera;
|
module.exports = function(name, deps) {
var result = { ngModule: 'DashboardApp.Services' };
console.log("Loaded services plugin");
return result;
};
|
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
<% if(testFramework==='jasmine') { -%>
"jasmine": true,
<% } else if(testFramework==='mocha') { -%>
"mocha": true,
<% } -%>
"node": true
}
};
|
Accounts.onCreateUser(function(options, user){
var userProperties = {
profile: options.profile || {},
karma: 0,
isInvited: false,
isAdmin: false,
postCount: 0,
commentCount: 0,
invitedCount: 0
};
user = _.extend(user, userProperties);
if (options.email)
user.profile.email = opti... |
'use strict';
var rewire = require('rewire');
var chai = require('chai');
var sinon = require('sinon');
chai.config.includeStack = true;
chai.use(require('sinon-chai'));
var expect = chai.expect;
var assert = chai.assert;
var eq = assert.equal;
var ok = assert.ok;
describe('nyanCat.js test suite', function() {
va... |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.data.RailsStore"]){
dojo._hasResource["dojox.data.RailsStore"]=true;
dojo.provide("dojox.data.... |
importScripts('../../bridge.min.js');
var myClient = bridge.client('my-service', new BroadcastChannel('my-service-channel'));
var logger = bridge.client('logger', new BroadcastChannel('logger-service-channel'));
myClient.method('ping').then(result => {
logger.method('log', 'Got result: ' + result);
});
|
/*
Plugin Name: Twitter Feed
Written by: Okler Themes - (http://www.okler.net)
Version: 0.1
Based On: http://www.webdevdoor.com/php/authenticating-twitter-feed-timeline-oauth/
*/
var twitterFeed = {
options: {
id: "",
count: 2,
URL: "php/twitter-feed.php",
wrapper: "tweet"
},
initialize: function( o... |
/* eslint-disable react/prop-types */
'use strict';
var _extends = require('babel-runtime/helpers/extends')['default'];
var _Object$keys = require('babel-runtime/core-js/object/keys')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
exports.__esModule = ... |
(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)},l,l.ex... |
Package.describe({
summary: "Serves a Meteor app over HTTP",
version: '1.2.3'
});
Npm.depends({connect: "2.30.2",
parseurl: "1.3.0",
send: "0.13.0",
useragent: "2.0.7"});
Npm.strip({
multiparty: ["test/"],
useragent: ["test/"]
});
Cordova.depends({
'cordova-plugin-dev... |
/** !
*
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
* @private
*/
import {Mercury} from '@webex/internal-plugin-mercury';
const RealtimeChannel = Mercury.extend({
namespace: 'Board',
props: {
channelId: {
type: 'string',
required: true
},
socketUrl: {
type: '... |
define({
"styleText": "Alegeţi un stil pentru instrumentul de preluare",
"vertical": "Bară verticală",
"horizontal": "Bară orizontală",
"scope": "Lupă",
"layerText": "Selectaţi stratul tematic pe care doriţi să îl preluaţi implicit",
"spyglassText": "Selectaţi stratul tematic care va apărea în mod implicit ... |
var test = require("tape");
var a = require("../");
test("findWhere", function(t){
var arr = [
{ result: false, number: 1 },
{ result: false, number: 2 }
];
t.deepEqual(a.findWhere(arr, { result: true }), undefined);
t.deepEqual(a.findWhere(arr, { result: false }), { result: false, numb... |
'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"de.",
"du."
],
"DAY": [
"vas\u00e1rnap",
... |
/* include.js | github.com/CapMousse/include.js */
(function(e){function l(a,c){var b;for(b=0;b<a.length&&(void 0===a[b]||!1!==c(a[b],b,a));b++);}function m(){l(f,function(a,c){var b=a[0],d=a[1],h=a[2],e=[];l(d,function(a,b){b=a.push?a[0]:a;void 0!==g[b]&&e.push(g[b])});if(d.length===e.length||0===d.length)h="function"... |
module.exports={A:{A:{"2":"K D G E A B iB"},B:{"1":"AB","2":"2 C d J M H I"},C:{"2":"0 1 2 3 4 6 7 8 9 fB FB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z IB BB CB DB GB ZB YB"},D:{"1":"4 GB SB OB MB lB NB KB AB PB QB","2":"0 2 6 F N K D G E A B C d J M H I O P Q ... |
#!/usr/bin/env node
var makeJson = require('./index.js')
var concat = require('concat-stream')
process.stdout.on('error', function () {})
var stream = process.stdin
var concatStream = concat({encoding: 'string'}, function (data) {
var output = makeJson(data)
process.exitCode = output.length ? 1 : 0
console.lo... |
module.exports = {
description: 'identifiers in template literals are rendered correctly',
buble: true
};
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
var fs = require('fs');
var path = require('path');
var parseDatabaseUrl = require('parse-database-url');
var dbmUtil = require('./util');
exports.load = function(fileName, currentEnv) {
try {
fs.statSync(fileName);
} catch(e) {
throw new Error("Could not find database config file '" + fileName + "'");
}... |
asynctest(
'browser.tinymce.core.selection.RangeNormalizerTest',
[
'ephox.agar.api.Assertions',
'ephox.agar.api.GeneralSteps',
'ephox.agar.api.Logger',
'ephox.agar.api.Pipeline',
'ephox.agar.api.Step',
'ephox.sugar.api.dom.Hierarchy',
'ephox.sugar.api.node.Element',
'global!document'... |
/**!
*
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
'use strict';
var SparkBase = require('../lib/spark-base');
var BatchedRequestQueue = require('./batched-request-queue');
var BatchedRequestStore = require('./batched-request-store');
var DummyBatchedRequestStore = require('./dummy-batched-r... |
/*globals require */
/**
* @license angular-bootstrap-datetimepicker
* Copyright 2015 Knight Rider Consulting, Inc. http://www.knightrider.com
* License: MIT
*/
/** This file is intentionally named browserify.test.js so that it is not picked up by the karma runner **/
var angular = require('angular');
var tapeTe... |
import DS from 'ember-data';
import Ember from 'ember';
import setupStore from 'dummy/tests/helpers/store';
import { module, test } from 'qunit';
import isEnabled from 'ember-data/-private/features';
if (isEnabled("ds-references")) {
var get = Ember.get;
var run = Ember.run;
var env, Person;
module("integrat... |
const UnsupportedOperationException = Jymfony.Component.Filesystem.Exception.UnsupportedOperationException;
const StreamWrapperInterface = Jymfony.Component.Filesystem.StreamWrapper.StreamWrapperInterface;
const File = Jymfony.Component.Filesystem.File;
/* eslint no-unused-vars: "off" */
/**
* Abstract stream wrappe... |
// Generated by CoffeeScript 1.6.3
var Person, tim;
Person = (function() {
function Person(options) {
this.name = options.name, this.age = options.age, this.height = options.height;
}
return Person;
})();
tim = new Person({
age: 4
});
|
'use strict';
var stub = require('sinon').stub;
var should = require('should');
var Schema = require('../../lib/schema');
describe('SchemaService', function() {
describe('.isValidSchema()', function() {
it('should be typeof `function`', function() {
Schema.isValidSchema.should.be.type('function');
... |
import isMap from './isMap';
export default function ownKeys(object) {
if (isMap(object)) {
// We are using loose transforms in babel. Here we are trying to convert an
// interable to an array. Loose mode expects everything to already be an
// array. The problem is that our eslint rules encourage us to p... |
// Generated by CoffeeScript 1.6.2
(function() {
var $, Ajax, Base, Collection, Extend, Include, Model, Queue, Singleton, Spine,
__slice = [].slice,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { ... |
function VehicleConstructor(a, b){
var vehicle = {};
vehicle.capacity = a;
vehicle.wheels = b;
vehicle.makeNoise = function(){
console.log('vroom');
}
return vehicle;
}
var bike = VehicleConstructor(1, 2);
bike.makeNoise = function(){
console.log('ring ring');
}
console.log(bike);
bike.makeNoise();
v... |
import { StyleSheet, Dimensions } from 'react-native';
import { colors } from '../../config/styles';
const window = Dimensions.get('window');
export default StyleSheet.create({
input: {
height: 40,
borderRadius: 5,
backgroundColor: colors.inputBackground,
marginLeft: 10,
marginVertical: 5,
pa... |
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Sty... |
/*
* @name No Loop
* @description La función noLoop() hace que draw() se ejecuta solo una vez.
* Sin ejecutar noLoop(), el código dentro de draw() es ejecutado continuamente.
*/
let y;
// The statements in the setup() function
// execute once when the program begins
function setup() {
// createCanvas should be t... |
import { useState } from 'react'
export default function Home({ book }) {
const [reviews, setReviews] = useState(null)
const handleGetReviews = () => {
// Client-side request are mocked by `mocks/browser.js`.
fetch('/reviews')
.then((res) => res.json())
.then(setReviews)
}
return (
<d... |
YUI.add('widget-stack', function (Y, NAME) {
/**
* Provides stackable (z-index) support for Widgets through an extension.
*
* @module widget-stack
*/
var L = Y.Lang,
UA = Y.UA,
Node = Y.Node,
Widget = Y.Widget,
ZINDEX = "zIndex",
SHIM = "shim",
VISIBLE = "visibl... |
'use strict';
/**
* Types for managing AWS EC2 SecurityGroup ID/Group Pairings
*
* @module aws/ec2/sg/idGroupPair
*/
module.exports = {
create: SgUserIdGroupPair,
SgUserIdGroupPair
};
/**
* @param {string} groupId
* @constructor
* @throws {TypeError}
*/
function SgUserIdGroupPair(groupId) {
if (!groupId... |
/**
* Copyright (c) 2013 Petka Antonov
*
* 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, pub... |
import s from 'underscore.string';
Meteor.methods({
registerUser(formData) {
const AllowAnonymousRead = RocketChat.settings.get('Accounts_AllowAnonymousRead');
const AllowAnonymousWrite = RocketChat.settings.get('Accounts_AllowAnonymousWrite');
const manuallyApproveNewUsers = RocketChat.settings.get('Accounts_M... |
var annotated =
[
[ "ca", "namespaceca.html", "namespaceca" ]
]; |
//#include inc_admin.js
//#include inc_pols.js inc_pols_write.js inc_acl_keys.js
//#include inc_demo.js
//#include inc_geo.js
//#include inc_locked_doors.js
//#include inc_jobs.js
//#include inc_rook.js
//#include inc_upgrades.js
//#include inc_geo_links.js
//#include inc_geo_edit.js
//#include inc_quarters.j... |
var iframeCount = 0;
function Uploader(options) {
if (!(this instanceof Uploader)) {
return new Uploader(options);
}
if (isString(options)) {
options = {trigger: options};
}
var settings = {
trigger: null,
name: null,
action: null,
data: null,
accept: null,
change: null,
... |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
// for license information please see license.txt
// constructor: parent, label, method, args
frappe.ui.Tree = Class.extend({
init: function(args) {
$.extend(this, args);
this.nodes = {};
this.$w = $('<div ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
If Result(3).type is not normal, then Result(3).type must be throw.
Throw Result(3).value as an exception
es5id: 15.1.2.1_A3.3_T4
description: Throw statement
---*/
... |
/**
* @author mr.doob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*
* parameters = {
* color: <hex>,
* opacity: <float>,
* map: new THREE.Texture( <Image> ),
*
* lightMap: new THREE.Texture( <Image> ),
*
* envMap: new THREE.TextureCube( [posx, negx, posy, negy, posz, negz] ),
* ... |
// 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... |
describe('<md-autocomplete>', function() {
beforeEach(module('material.components.autocomplete'));
function compile(str, scope) {
var container;
inject(function($compile) {
container = $compile(str)(scope);
scope.$apply();
});
return container;
}
function createScope(items, obj, m... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<fadbf18e883a1269f12400a20c281aa6>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disabl... |
const CONNECTION_STATUS = exports.CONNECTION_STATUS = {
CLOSED: Object.freeze({ kind: 'CLOSED' }),
CONNECTED: Object.freeze({ kind: 'CONNECTED' }),
CONNECTING: Object.freeze({ kind: 'CONNECTING' }),
NOT_CONNECTED: Object.freeze({ kind: 'NOT_CONNECTED' }) };
/* A comment */ /**
* A type that can be written to a... |
var fadeOut=function(a,b){a.style.opacity=1;var c=performance.now();requestAnimationFrame(function e(f){var d=(f-c)/b;a.style.opacity=Math.max(1-d,0),d<1?requestAnimationFrame(e):(a.style.opacity='',a.classList.add('hide'))})},fadeIn=function(a,b){if(getComputedStyle(a).display!=='none')return;a.classList.contains('hid... |
import * as React from 'react';
import ApiPage from 'docs/src/modules/components/ApiPage';
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
import jsonPageContent from './grid.json';
export default function Page(props) {
const { descriptions, pageContent } = props;
return <ApiPag... |
var oauthModule = require('./oauth2')
, request = require('request');
var runkeeper = module.exports =
oauthModule.submodule('runkeeper')
.configurable({
scope: 'specify types of access: (no scope), non-expiring'
})
.apiHost('https://api.runkeeper.com')
.oauthHost('https://runkeeper.com')
.authPath('... |
import baseValues from '../internal/baseValues';
import keysIn from './keysIn';
/**
* Creates an array of the own and inherited enumerable property values
* of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
* @memberOf _
* @category Object
* @param {Object} object The object to ... |
(function($){$.fn.tipuesearch=function(options){var set=$.extend({"show":7,"newWindow":false,"showURL":true,"minimumLength":3,"descriptiveWords":25,"highlightTerms":true,"highlightEveryTerm":false,"mode":"static","liveDescription":"*","liveContent":"*","contentLocation":"tipuesearch/tipuesearch_content.json"},options);... |
/**
* @author Titus Wormer
* @copyright 2016 Titus Wormer
* @license MIT
* @module trough
* @fileoverview Middleware. Inspired by `segmentio/ware`,
* but able to change the values from transformer to
* transformer.
*/
'use strict';
/* Expose. */
module.exports = trough;
/* Methods. */
var slice = [].sli... |
import Ember from 'ember';
import layout from '../templates/components/spree-pdp';
/**
The Spree Product Display Page.
**To Override:** You'll need to run the components generator:
```bash
ember g spree-ember-storefront-components
```
This will install all of the Spree Ember Storefront component files in... |
/* */
(function(process) {
'use strict';
var ReactChildren = require('./ReactChildren');
var ReactComponent = require('./ReactComponent');
var ReactClass = require('./ReactClass');
var ReactDOMFactories = require('./ReactDOMFactories');
var ReactElement = require('./ReactElement');
var ReactElementValida... |
OVERRIDE(RGBA, function(origin) {
'use strict';
/**
* get rgba style string. (fix)
*/
global.RGBA = METHOD({
run : function(rgba) {
//REQUIRED: rgba
var
// function
f;
f = function(n) {
var
// hex
hex = n.toString(16);
return hex.length === 1 ? '0' + hex : hex;
};
re... |
YUI.add('aui-datatable-base-cell-editor', function (A, NAME) {
var BaseCellEditor,
REGEX_BR = /<br\s*\/?>/gi,
REGEX_NL = /[\r\n]/g,
TPL_BR = '<br/>';
/**
* Abstract class BaseCellEditor.
*
* @class A.BaseCellEditor
* @extends Overlay
* @param {Object} config Object literal specifying widget configura... |
/*
* grunt-titanium
* https://github.com/tonylukasavage/grunt-titanium
*
* Copyright (c) 2014 Tony Lukasavage
* Licensed under the MIT license.
*/
'use strict';
var _ = require('lodash'),
async = require('async'),
child_process = require('child_process'),
exec = child_process.exec,
fs = require('fs-extra'),... |
/*global define*/
define([
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/VertexFormat',
'../Shaders/Appearances/PolylineMaterialAppearanceVS',
'../Shaders/PolylineCommon',
'../Shaders/PolylineFS',
'./Appearance',
'... |
define({
"_widgetLabel": "Kysely",
"executeQueryTip": "Suorita kysely napsauttamalla jotakin seuraavista tehtäväkohteista.",
"invalidConfig": "Virheellinen konfigurointi. Korjaa konfigurointi kyselyn asetussivulla.",
"queryParams": "Valinnat",
"parameters": "VALINNAT",
"queries": "KYSELYT",
"apply": "KÄYT... |
/*!
* froala_editor v2.9.0 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2018 Froala Labs
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory)... |
import config from './config';
import events from 'events';
// controllers
import list from './controllers/list';
import edit from './controllers/edit';
// models
import article from './models/article'
class App extends events.EventEmitter {
constructor() {
super();
}
}
let app = window.app = new App();
/... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.ReduxSaga = {}));
}(this, function (exports) { 'use strict';
var createSymbol = fu... |
/**
* 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.0.2 (2019-03-05)
*/
(function () {
var link = (function ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Stylis = _interopDefault(require('stylis/stylis.min'));
var _insertRulePlugin = _interopDefault(require('stylis-rule-shee... |
/**
* Module dependencies
*/
var _ = require('lodash'),
async = require('async'),
utils = require('./utils'),
Document = require('./document'),
Query = require('./query'),
ObjectId = require('mongodb').ObjectID,
Errors = require('waterline-errors').adapter;
/**
* Manage A Collection
*
* ... |
IntlMessageFormat.__addLocaleData({"locale":"tl"});
|
/**
* San
* Copyright 2016 Baidu Inc. All rights reserved.
*
* @file 主文件
* @author errorrik(errorrik@gmail.com)
* otakustay(otakustay@gmail.com)
* junmer(junmer@foxmail.com)
*/
(function (root) {
// 人工调整打包代码顺序,通过注释手工写一些依赖
// // require('./util/empty');
// // require('./util/extend')... |
declare module "koa-static" {
import type { Stats } from "fs";
declare type Context = Object;
declare type Response = Object;
declare type Middleware = (
ctx: Context,
next: () => Promise<void>
) => Promise<void> | void;
declare type Options = {|
defer?: boolean,
maxage?: number,
maxA... |
"foo".match(/(?<double>.)\k<double>/); |
/*
Plugin: jQuery Parallax
Version 1.1.3
Author: Ian Lunn
Twitter: @IanLunn
Author URL: http://www.ianlunn.co.uk/
Plugin URL: http://www.ianlunn.co.uk/plugins/jquery-parallax/
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html... |
class A1 implements B {}
class A2 implements B, C {}
declare class A3 implements B {}
declare class A4 mixins B implements C {}
declare class A5 implements B, C {}
|
export class ColumnsFilterValueConverter {
toView(array) {
return array.filter(item => item.column.indexOf('.') === -1 && item.searchable);
}
}
|
import { TAPi18next } from 'meteor/rocketchat:tap-i18n';
import { Apps } from './orchestrator';
import { Utilities } from '../lib/misc/Utilities';
import { AppEvents } from './communication';
export const loadAppI18nResources = (appId, languages) => {
Object.entries(languages).forEach(([language, translations]) => ... |
module.exports = function(config) {
config.set({
files: [
'http://code.jquery.com/jquery-1.11.3.js',
'https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.js',
// For ngMockE2E
'https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular-mocks.js',
'./app.js',
'./tes... |
/*
Copyright (C) 2013 Ziad Saab ziad(dot)saab(at)gmail(dot)com
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... |
const tmp = require('tmp');
const path = require('path');
const copy = require('recursive-copy');
describe('[Regression](GH-637)', function () {
it("Should let test file locate babel-runtime if it's not installed on global or test file node_modules lookup scope", function () {
tmp.setGracefulCleanup();
... |
var title = "Walk Toward the Light";
var desc = "Use different colored lights to reveal the one, true path.";
var offer = "Pssst. You there. How are your eyes? <split butt_txt=\"Huh?\" \/> What I mean to say is, do your eyes work properly? Can you see all the colors of the rainbow? <split butt_txt=\"Um, sure. I believe... |
GS.HitscanHelper = {
unitLength: 64,
steps: 5,
spread: function(weapon, xAngle, yAngle, callback) {
var angleForX = weapon.spread.angleOffset + 20 * (Math.abs(yAngle - 90) / 90) * (Math.abs(yAngle - 90) / 90);
var angleForY = weapon.spread.angleOffset;
for (var i = 0; i < weapon.spread.shots; i++) ... |
/*global defineSuite*/
defineSuite([
'DataSources/ColorMaterialProperty',
'Core/Color',
'Core/JulianDate',
'Core/TimeInterval',
'DataSources/ConstantProperty',
'DataSources/TimeIntervalCollectionProperty'
], function(
ColorMaterialProperty,
C... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.scrollDir=e()}(this,function(){"use strict";var f,u,a="data-scrolldir",d="down",s=document.documentElement,l=window,c=document.body,m=32,p=512,h=64,b=Array(m),v=0;function e(){var t=l... |
$('.details-caret').click(function () {
var parentRow = $(this).parent('tr');
//console.log($(this));
if (parentRow.hasClass('details-open')) {
parentRow.removeClass('details-open');
parentRow.addClass('details-closed');
} else {
parentRow.removeClass('details-closed');
parentRow.addClass('deta... |
/*************************************************************
*
* MathJax/jax/output/HTML-CSS/fonts/Latin-Modern/Size7/Regular/Main.js
*
* Copyright (c) 2013-2016 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... |
/**
* $RCSfile: editor_template_src.js,v $
* $Revision: 1.96 $
* $Date: 2006/04/18 13:32:52 $
*
* @author Moxiecode
* @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved.
*/
/* Import theme specific language pack */
tinyMCE.importThemeLanguagePack('advanced');
var TinyMCE_AdvancedTheme ... |
// The Glyph object
'use strict';
var check = require('./check');
var draw = require('./draw');
var path = require('./path');
function getPathDefinition(glyph, path) {
var _path = path || { commands: [] };
return {
configurable: true,
get: function() {
if (typeof _path === 'funct... |
import React from 'react'
import { render } from 'react-dom'
import { Router, Route, Link, History } from 'react-router'
import { createHistory, useBasename } from 'history'
import auth from './auth'
const history = useBasename(createHistory)({
basename: '/auth-flow'
})
const App = React.createClass({
getInitialS... |
var valueInput = document.getElementById('value-input'),
valueSpan = document.getElementById('value-span');
// When the slider value changes, update the input and span
range.noUiSlider.on('update', function( values, handle ) {
if ( handle ) {
valueInput.value = values[handle];
} else {
valueSpan.innerHTML = val... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'clipboard', 'ca', {
copy: 'Copiar',
copyError: 'La configuració de seguretat del vostre navegador no permet executar automàticament les operacions ... |
(function(factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof module === 'object' && module.exports) {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Browser globals
... |
/**
* Virtual DOM patching algorithm based on Snabbdom by
* Simon Friis Vindum (@paldepind)
* Licensed under the MIT License
* https://github.com/paldepind/snabbdom/blob/master/LICENSE
*
* modified by Evan You (@yyx990803)
*
* Not type-checking this because this file is perf-critical and the cost
* of making f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.