code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
import Ember from 'ember';
import CheckboxComponent from 'ember-idx-forms/checkbox';
export default CheckboxComponent; | Szeliga/ember-forms | app/components/em-checkbox.js | JavaScript | apache-2.0 | 120 |
/*
* Copyright 2016 IBM Corp.
*
* 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 or agreed to i... | EclairJS/eclairjs-node | lib/ml/PipelineModel.js | JavaScript | apache-2.0 | 3,829 |
Input::
//// [/user/username/projects/myproject/a.ts]
export interface Point {
name: string;
c: Coords;
}
export interface Coords {
x2: number;
y: number;
}
//// [/user/username/projects/myproject/b.ts]
import { Point } from "./a";
export interface PointWrapper extends Point {
}
//// [/user/use... | Microsoft/TypeScript | tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/file-not-exporting-a-deep-multilevel-import-that-changes.js | JavaScript | apache-2.0 | 14,994 |
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.4.3.3
description: Throws TypeError if `this` is not Object.
info: >
WeakSet.prototype.delete ( value )
1. Let S be the this value.
2. If Type(S) is not Object... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/WeakSet/prototype/delete/this-not-object-throw-undefined.js | JavaScript | apache-2.0 | 548 |
var assert = require('assert'),
math = require('../index')(),
approx = require('../tools/approx');
describe('constants', function() {
it('should have PI', function() {
approx.equal(math.pi, 3.14159265358979);
approx.equal(math.sin(math.pi / 2), 1);
approx.equal(math.PI, math.pi);
approx.equa... | CraigCav/mathjs | test/contstants.test.js | JavaScript | apache-2.0 | 1,493 |
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --no-harmony-restrictive-declarations
// ES#sec-functiondeclarations-in-ifstatement-statement-clauses
// Annex B 3.4 FunctionDeclarations in ... | runtimejs/runtime | deps/v8/test/mjsunit/harmony/sloppy-implicit-block-function.js | JavaScript | apache-2.0 | 2,179 |
/*! jQuery Validation Plugin - v1.16.0 - 12/2/2016
* http://jqueryvalidation.org/
* Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuer... | xuhuisheng/lemon | webapp/cdn/public/jquery-validation/1.16.0/localization/messages_ja.min.js | JavaScript | apache-2.0 | 1,549 |
let path = require('path');
function useLocal(module) {
return require.resolve(module, {
paths: [
__dirname
]
})
}
module.exports = {
"presets": [
[
useLocal('@babel/preset-env'),
{
"targets": {
"browsers": [
"chrome >= 61",
"safari >=8",
... | tchibirev/Prebid.js | .babelrc.js | JavaScript | apache-2.0 | 590 |
/*
* 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.
*/
'... | amarzavery/azure-sdk-for-node | lib/services/iotspacesManagement/lib/models/resource.js | JavaScript | apache-2.0 | 2,392 |
/* Copyright (C) 2013-2014 Computer Sciences Corporation
*
* 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 ap... | ezbake/ezbake-common-nodejs | security/examples/express/app.js | JavaScript | apache-2.0 | 1,790 |
/*
* Copyright 2016 IBM Corp.
*
* 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 or agreed to i... | EclairJS/eclairjs-node | lib/ml/Estimator.js | JavaScript | apache-2.0 | 2,461 |
define(["knockout", "text!./docs.html"], function (ko, docsTemplate) {
function docsViewModel(params) {
var self = this;
self.title = ko.observable('SilkThread - TreeView component Demo');
self.data = {
title: "Documentation Home",
nodes: [
{
... | mhuckaby/BuildingSpaUsingKO | BuildingSpaUsingKO.Web/App/pages/docs/docs.js | JavaScript | apache-2.0 | 1,590 |
// Copyright 2014 Samsung Electronics Co., Ltd.
//
// 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 la... | tilmannOSG/jerryscript | tests/jerry-test-suite/15/15.06/15.06.01/15.06.01.01/15.06.01.01-009.js | JavaScript | apache-2.0 | 640 |
"use strict";
const util = require("./util");
let jwindow;
const dimensions = {};
let in_stoppable_autoscroll = false;
// Includes both scroll and arrow events. Negative means scroll up,
// positive means scroll down.
exports.last_movement_direction = 1;
exports.set_last_movement_direction = function (value) {
e... | showell/zulip | static/js/message_viewport.js | JavaScript | apache-2.0 | 16,016 |
// For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/
/*@cc_on'abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})@*/
var addEvent = (f... | simonron/SiWriterPro1.5.6 | build/iphone/build/Debug-iphonesimulator/SiWriterPro.app/js/h5utils.js | JavaScript | apache-2.0 | 1,766 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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 or agreed to i... | fbasso/ariatemplates | test/aria/utils/DateTestCase.js | JavaScript | apache-2.0 | 37,464 |
'use strict';
let angular = require('angular');
let $ = require('jquery');
module.exports = angular.module('spinnaker.core.utils.jQuery', [])
.factory('$', function() {
return $;
}).name;
| zanthrash/deck-1 | app/scripts/modules/core/utils/jQuery.js | JavaScript | apache-2.0 | 198 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.4.4.20-2-11
description: >
Array.prototype.filter applied to Array-like object, 'length' is
own accessor property without a get function
---*/
var acce... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/filter/15.4.4.20-2-11.js | JavaScript | apache-2.0 | 805 |
/**
* @overview UI table of local subnet, displaying hostname => address map.
*/
'use strict';
var markup = require('./NetSimDnsTable.html.ejs');
var DnsMode = require('./NetSimConstants').DnsMode;
/**
* Generator and controller for DNS network lookup table component.
* Shows different amounts of information depe... | pickettd/code-dot-org | apps/src/netsim/NetSimDnsTable.js | JavaScript | apache-2.0 | 1,366 |
require('jquery');
module.exports = function() {
var $selectableInputs = $('label[class*=block-label]');
$selectableInputs
.find('input[type=radio], input[type=checkbox]')
.on('focus click', function() {
var current = $(this).closest('label')[0];
$(current).addClass('add-focus');
$selec... | tmikus/assets-frontend | assets/javascripts/modules/registerBlockInputFields.js | JavaScript | apache-2.0 | 634 |
var app = app || {};
(function() {
var colorToNode = {};
var colorIdx = 1;
var recycleStack = [];
function PickingStore() {}
PickingStore.prototype = Object.create(app.Emitter.prototype);
PickingStore.constructor = PickingStore;
PickingStore.prototype.getColor = function(node) {
... | mikedewar/st-core | static/js/store/picking.js | JavaScript | apache-2.0 | 1,366 |
/**
* IT lang variables
*
* Author : Luciano Vernaschi <luciano@virgilio.it>
* Last Updated : Oct. 17th, 2006
* TinyMCE Version : 2.0.7
*/
tinyMCE.addToLang('',{
bold_desc : 'Grassetto (Ctrl+B)',
italic_desc : 'Corsivo (Ctrl+I)',
underline_desc : 'Sottolineato (Ctrl+U)',
striketrough_desc : 'Barrato',
justifyle... | WilliamGoossen/epsos-common-components.gnomonportal | webapps/ROOT/html/js/editor/tiny_mce/langs/it.js | JavaScript | apache-2.0 | 1,883 |
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
let React;
let ReactDOM;
let ReactTestUtils;
let TogglingComponent;
let log;
describe('ReactEm... | syranide/react | packages/react-dom/src/__tests__/ReactEmptyComponent-test.js | JavaScript | apache-2.0 | 7,977 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.7-6-a-90
description: >
Object.defineProperties will not throw TypeError when
P.configurable is false, both properties.[[Get]] and P.[[Get]] are
two obj... | m0ppers/arangodb | 3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Object/defineProperties/15.2.3.7-6-a-90.js | JavaScript | apache-2.0 | 894 |
module.exports = (function() {
/*
* Generated by PEG.js 0.8.0.
*
* http://pegjs.majda.cz/
*/
function peg$subclass(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
}
function SyntaxError(message, expected, f... | zzsoszz/nodejshtttpserver | webapps/rasterizehtml/node_modules/inlineresources/node_modules/css-font-face-src/lib/grammar/index.js | JavaScript | apache-2.0 | 14,732 |
// version: 2015-08-28
/**
* o--------------------------------------------------------------------------------o
* | This file is part of the RGraph package - you can learn more at: |
* | |
* | ... | mabetle/mps | public/libs/RGraph/RGraph.common.annotate.js | JavaScript | apache-2.0 | 12,064 |
a,b,c,d?e:f
| modulexcite/esmangle | test/compare/reduce-sequence-4.expected.js | JavaScript | bsd-2-clause | 12 |
/*******************************************************************************
Copyright (c) 2012, S-Core.
All rights reserved.
Use is subject to license terms.
This distribution may include materials developed by third parties.
**********************************************************************... | darkrsw/safe | tests/typing_tests/semantics/builtin_Math_acos5.js | JavaScript | bsd-3-clause | 397 |
#!/usr/bin/env node
var sys = require('sys'),
yui3 = require("yui3");
var YUI = yui3.YUI;
var YUI3 = yui3.configure({
core: '@2010.12.06',
gallery: '2010.09.22'
});
YUI3({
debug: true
}).use('node', 'gallery-yql', function(Y) {
new Y.yql('select * from github.user.info where (id = "davglass")'... | itsky90/yui3 | examples/gallery.js | JavaScript | bsd-3-clause | 808 |
module.exports = [{
title: 'bicycle,arlington',
description: 'A description....',
tags: [
['bicycle', 'arlington']
]
}, {
title: 'bicycle',
description: 'A description....',
tags: [
['bicycle']
]
}, {
title: 'walk,arlington,loudon',
description: 'A description....',
tags: [
['walk', 'a... | miraculixx/modeify | test/fixtures/route-resources.js | JavaScript | bsd-3-clause | 362 |
// moment.js locale configuration
// locale : norwegian nynorsk (nn)
// author : https://github.com/mechuwind
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('.... | lebeddima/booking2 | web/js/date-time/locale/nn.js | JavaScript | bsd-3-clause | 2,081 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapDataUsingRowHeights = exports.padCellVertically = void 0;
const utils_1 = require("./utils");
const wrapCell_1 = require("./wrapCell");
const createEmptyStrings = (length) => {
return new Array(length).fill('');
};
const padCell... | ChromeDevTools/devtools-frontend | node_modules/table/dist/src/mapDataUsingRowHeights.js | JavaScript | bsd-3-clause | 2,406 |
// ==========================================================================
// Project: SproutCore Costello - Property Observing Library
// Copyright: ©2006-2011 Strobe Inc. and contributors.
// Portions ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
... | darkrsw/safe | tests/clone_detector_tests/sproutcore/frameworks/runtime/ext/string.js | JavaScript | bsd-3-clause | 755 |
//if(frames){if(top.frames.length>0)
//top.location.href=self.location;}
function visi(nr)
{
if (document.getElementById)
{
startVal=document.getElementById(nr).style.visibility
vista = (startVal == 'hidden' || startVal=='') ? 'visible' : 'hidden';
//el=document.getElementById(nr).style
document.getElemen... | arybczak/happstack-server | attic/xslt/script.js | JavaScript | bsd-3-clause | 4,416 |
/*!
* Bootstrap-select v1.13.18 (https://developer.snapappointments.com/bootstrap-select)
*
* Copyright 2012-2020 SnapAppointments, LLC
* Licensed under MIT (https://github.com/snapappointments/bootstrap-select/blob/master/LICENSE)
*/
!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof defin... | MCLD/greatreadingadventure | src/GRA.Web/node_modules/bootstrap-select/docs/docs/dist/js/i18n/defaults-hu_HU.min.js | JavaScript | mit | 855 |
/**
* 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<<e8b636a26472c96224e2eadc9f2d6038>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disabl... | facebook/relay | packages/relay-runtime/store/__tests__/__generated__/RelayModernEnvironmentExecuteSubscriptionWithMatchTestPlainUserNameRenderer_name$normalization.graphql.js | JavaScript | mit | 1,419 |
#pragma strict
private var originalScale: Vector3;
var playSound: boolean = true;
function Start () {
originalScale = this.transform.localScale;
this.transform.localScale *= 0.9;
}
function OnMouseEnter () {
this.transform.localScale = originalScale;
}
function OnMouseExit () {
this.transform.localScale = origin... | gazzdingo/hotfix | Unity/Assets/Scripts/Menu/MenuButton.js | JavaScript | mit | 534 |
import React from 'react';
import { EmojiButton } from './emoji-button';
export default { component: EmojiButton, title: 'Examples / Emoji Button' };
export const WithArgs = (args) => <EmojiButton {...args} />;
WithArgs.args = { label: 'With args' };
export const Basic = () => <EmojiButton label="Click me" />;
| kadirahq/react-storybook | examples/react-ts/src/emoji-button.stories.js | JavaScript | mit | 314 |
/**
* @ngdoc service
* @name umbraco.resources.contentTypeResource
* @description Loads in data for content types
**/
function contentTypeResource($q, $http, umbRequestHelper, umbDataFormatter) {
return {
getCount: function () {
return umbRequestHelper.resourcePromise... | KevinJump/Umbraco-CMS | src/Umbraco.Web.UI.Client/src/common/resources/contenttype.resource.js | JavaScript | mit | 9,903 |
import { useRouter } from 'next/router'
export const getServerSideProps = () => {
return {
props: {
hello: 'world',
random: Math.random(),
},
}
}
export default (props) => (
<>
<h3 id="gssp">getServerSideProps</h3>
<p id="props">{JSON.stringify(props)}</p>
<div id="pathname">{use... | flybayer/next.js | test/integration/basepath/pages/gssp.js | JavaScript | mit | 401 |
// 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... | MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-dgram-address.js | JavaScript | mit | 2,652 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: match returns array as specified in 15.10.6.2
es5id: 15.5.4.10_A2_T12
description: >
Regular expression is variable that have value /([\d]{5})([-\
]?[\d]{4})?$/g
---*/... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/String/prototype/match/S15.5.4.10_A2_T12.js | JavaScript | mit | 1,068 |
module.exports={"zones":{"America/Anguilla":["z",{"wallclock":-1825113600000,"format":"AST","abbrev":"AST","offset":-14400000,"posix":-1825098464000,"save":0},{"wallclock":-1.7976931348623157e+308,"format":"LMT","abbrev":"LMT","offset":-15136000,"posix":-1.7976931348623157e+308,"save":0}]},"rules":{}} | framewr/distance.io | node_modules/tzwhere/node_modules/timezone/America/Anguilla.js | JavaScript | mit | 302 |
var pex = pex || require('../../build/pex');
pex.sys.Window.create({
settings: {
width: 1280,
height: 720,
type: '3d',
vsync: true,
multisample: true,
fullscreen: false,
center: true,
canvas : pex.sys.Platform.isBrowser ? document.getElementById('canvas') : null
},
init: function(... | lancerskimura/pex | examples/renderTarget/renderTarget.js | JavaScript | mit | 1,409 |
import valid from "card-validator";
import { removeNonNumber, removeLeadingSpaces } from "./Utilities";
import pick from "lodash.pick";
const limitLength = (string = "", maxLength) => string.substr(0, maxLength);
const addGaps = (string = "", gaps) => {
const offsets = [0].concat(gaps).concat([string.length]);
re... | sbycrosz/react-native-credit-card-input | src/CCFieldFormatter.js | JavaScript | mit | 1,907 |
exports.title = 'Camera';
exports.run = function(UI, Map) {
var win = UI.createWindow();
var rows = [
{
title: 'Set Camera',
run: function(){
map.camera = Map.createCamera({
centerCoordinate: {
latitude: -33.87365,... | gianina-ingenuity/titanium-branch-deep-linking | testbed/x/modules/iphone/ti.map/2.7.1/example/tests/camera.js | JavaScript | mit | 3,908 |
/*
* 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.
*/
'... | sergey-shandar/autorest | src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/a.js | JavaScript | mit | 963 |
// If no env is set, default to development
// This needs to be above all other require()
// modules to ensure config gets right setting.
// Module dependencies
var config = require('./config'),
express = require('express'),
when = require('when'),
_ = require('underscore'),
... | davebalmer/Ghost | core/server/index.js | JavaScript | mit | 5,998 |
/*!
* jQuery JavaScript Library v2.0.3 -event-alias,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-07T17:13Z
... | michael829/jquery-builder | dist/2.0.3/jquery-dimensions-effects-event-alias-offset.js | JavaScript | mit | 215,852 |
import { requireComponentDependancyByName } from '../dependancies'
export default function ContentZone(props) {
function RenderModules() {
let modules = props.page.zones[props.name]
return modules.map((m, i) => {
const AgilityModule = requireComponentDependancyByName(m.moduleName)
return <Agilit... | azukaru/next.js | examples/cms-agilitycms/lib/components/content-zone.js | JavaScript | mit | 425 |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
var React;
var ReactDOM;
describe('SyntheticWheelEvent', () => {
var container;
beforeEach... | isubham/isubham.github.io | react/react-16.2.0/packages/react-dom/src/events/__tests__/SyntheticWheelEvent-test.js | JavaScript | mit | 3,981 |
/*! @license Firebase v4.3.0
Build: rev-bd8265e
Terms: https://firebase.google.com/terms/
---
typedarray.js
Copyright (c) 2010, Linden Research, 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 Softw... | shikun2014010800/manga | web/console/node_modules/firebase/externs/firebase-database-externs.js | JavaScript | mit | 65,300 |
'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var DeviceBrightnessLow = React.createClass({
displayName: 'DeviceBrightnessLow',
mixins: [PureRenderMixin],
render: function render() {
return React.create... | dominikgar/flask-search-engine | node_modules/material-ui/lib/svg-icons/device/brightness-low.js | JavaScript | mit | 626 |
import { ClientFunction } from 'testcafe';
fixture `Fixture`
.clientScripts({ content: 'window["property1"] = true;' });
const getPropertyValue = ClientFunction(propName => window[propName]);
test('test', async t => {
await t
.expect(getPropertyValue('property1')).ok()
.expect(getPropertyValu... | DevExpress/testcafe | test/functional/fixtures/api/es-next/custom-client-scripts/testcafe-fixtures/i4122.js | JavaScript | mit | 404 |
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var userSchema = new Schema({
// The firstname of the user
firstname: {
type: String,
required: true
},
// The lastname of the user
lastname: {
type: String,
required: true
},
// When the use... | mattburns/mean-stack-starter | models/User.js | JavaScript | mit | 505 |
YUI.add('inputex-serialize', function (Y, NAME) {
/**
* @module inputex-serialize
*/
var inputEx = Y.inputEx;
/**
* SerializeField allows to serialize/deserialize a complex sub-group to a string
* @class inputEx.SerializeField
* @extends inputEx.Field
* @constructor
* @param {Object} options Standard in... | clicrdv/inputex | build/inputex-serialize/inputex-serialize.js | JavaScript | mit | 4,788 |
var UIconfig = require('../vue/UIconfig');
var config = {};
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// GENERAL SETTINGS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
config.silent = false;
config.debug = true;
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | generalectric/gekko | web/routes/baseConfig.js | JavaScript | mit | 2,280 |
tinymce.addI18n('zh_CN.GB2312',{
"Cut": "\u526a\u5207",
"Heading 5": "\u7ae0\u8282\u6807\u98985",
"Header 2": "\u6807\u98982",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u8bbf\u95ee\u526a\u5207... | romanvm/django-tinymce4-lite | tinymce/static/tinymce/js/tinymce/langs/zh_CN.GB2312.js | JavaScript | mit | 9,974 |
(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 + "'");
... | startinggravity/lean-drupal | node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/minimatch/browser.js | JavaScript | mit | 41,059 |
import { Base } from './_Base';
export class OmnichannelQueue extends Base {
constructor() {
super('omnichannel_queue');
}
}
export default new OmnichannelQueue();
| VoiSmart/Rocket.Chat | app/models/server/models/OmnichannelQueue.js | JavaScript | mit | 170 |
/**
* @requires OpenLayers/Lang.js
*/
/**
* Namespace: OpenLayers.Lang["en"]
* Dictionary for English. Keys for entries are used in calls to
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <OpenLayers.String.format> calls.
*/
OpenLayers.Lang... | flavour/ssf | static/scripts/gis/openlayers/lib/OpenLayers/Lang/en.js | JavaScript | mit | 3,668 |
var cookieParser = require('..')
var http = require('http')
var request = require('supertest')
var signature = require('cookie-signature')
describe('connect.cookieParser()', function(){
var server
before(function(){
server = createServer('keyboard cat')
})
describe('when no cookies are sent',... | tokugawa/Appraisal-App | node_modules/grunt-contrib-connect/node_modules/connect/node_modules/cookie-parser/test/cookieParser.js | JavaScript | mit | 2,307 |
/*
Highcharts JS v7.0.3 (2019-02-06)
Indicator series type for Highstock
(c) 2010-2019 Sebastian Bochan
License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define(function(){return a}):a("undefined"... | sufuf3/cdnjs | ajax/libs/highcharts/7.0.3/indicators/momentum.js | JavaScript | mit | 921 |
// validate.js v 1.98
// a generic form validator
// (cc) Brian Lalonde http://webcoder.info/downloads/validate.html
// License: http://creativecommons.org/licenses/by-sa/2.0/
//TODO: figure out why javascript form validation doesnt verify required select-one boxes
function formFocus(frm)
{ // convenient wa... | jorkin/asp-vbscript-cms | public/core/assets/scripts/form_validator.js | JavaScript | mit | 23,964 |
var _idToPagePanelInfo = {};
var _url2link = {};
_getPanels = function ( panelEL ) {
var panels = [];
var panelDOM = Polymer.dom(panelEL);
for ( var i = 0; i < panelDOM.children.length; ++i ) {
var childEL = panelDOM.children[i];
var id = childEL.getAttribute('id');
panels.push(id)... | jarradh/nucliasm | page/editor-panel.js | JavaScript | mit | 13,340 |
/*
Highcharts JS v7.1.1 (2019-04-09)
Item series type for Highcharts
(c) 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/modules/item-series",["highcharts"... | extend1994/cdnjs | ajax/libs/highcharts/7.1.1/modules/item-series.js | JavaScript | mit | 3,851 |
/*!
* froala_editor v3.0.5 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2019 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function... | sufuf3/cdnjs | ajax/libs/froala-editor/3.0.5/js/languages/pt_pt.js | JavaScript | mit | 11,199 |
Clazz.declarePackage ("JSV.common");
Clazz.load (["JSV.common.Annotation", "$.Coordinate"], "JSV.common.Measurement", null, function () {
c$ = Clazz.decorateAsClass (function () {
this.pt2 = null;
this.value = 0;
Clazz.instantialize (this, arguments);
}, JSV.common, "Measurement", JSV.common.Annotation);
Clazz.p... | cheminfo/Visualizer-grunt | src/lib/jsmol/j2s/JSV/common/Measurement.js | JavaScript | mit | 2,138 |
module.exports = {
devtool: 'inline-source-map',
bail: true,
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel',
query: {
compact: false,
cacheDirectory: tr... | diztinct-tim/ESL | node_modules/@bigcommerce/stencil-utils/webpack.conf.js | JavaScript | mit | 433 |
/**
* @output wp-admin/js/user-profile.js
*/
/* global ajaxurl, pwsL10n */
(function($) {
var updateLock = false,
__ = wp.i18n.__,
$pass1Row,
$pass1,
$pass2,
$weakRow,
$weakCheckbox,
$toggleButton,
$submitButtons,
$submitButton,
currentPass;
function generatePassword() {
if ( typeof zxcvbn !... | pjhooker/monferratopaesaggi | trunk/wp-admin/js/user-profile.js | JavaScript | mit | 11,064 |
/*!
* Copyright (c) Metaways Infosystems GmbH, 2011
* LGPLv3, http://opensource.org/licenses/LGPL-3.0
*/
Ext.ns('MShop.panel.attribute');
// hook text picker into the attribute ItemUi
Ext.ux.ItemRegistry.registerItem('MShop.panel.attribute.ItemUi', 'MShop.panel.attribute.TextItemPickerUi', {
xtype : 'MShop.pa... | msonowal/aimeos-laravel | public/client/extjs/src/panel/attribute/TextItemPickerUi.js | JavaScript | mit | 1,033 |
(function ($, win, Modernizr, nav, doc) {
$.fn.headerToFixed = function (options) {
var defaults = {
speed : 300,
windowWidth : $(win).width(),
scrollTop : $(win).scrollTop()
}, o = $.extend({}, defaults, options), $this = $(this), $clone = $('#logo').clone(), heightHeader = $this.height();
if (o.windowWidt... | kenorb-contrib/eid | sites/all/themes/goodnex/js/sticky.js | JavaScript | gpl-2.0 | 934 |
/* The Editor object manages the content of the editable frame. It
* catches events, colours nodes, and indents lines. This file also
* holds some functions for transforming arbitrary DOM structures into
* plain sequences of <span> and <br> elements
*/
var internetExplorer = document.selection && window.ActiveXObj... | vstorm83/propertease | components/com_sobipro/lib/js/codemirror/editor.js | JavaScript | gpl-2.0 | 54,639 |
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of... | tfe/cloud9 | support/apf/core/lib/util/syntax.js | JavaScript | gpl-3.0 | 12,610 |
;
(function($, window, document, undefined) {
'use strict';
Foundation.libs.dropdown = {
name: 'dropdown',
version: '5.0.0',
settings: {
active_class: 'open',
is_hover: false,
opened: function() {},
closed: function() {}
},
init: function(scope, method, options) {
... | lauracarvajal/bunchos | old/lib/foundation/foundation.dropdown.js | JavaScript | gpl-3.0 | 5,798 |
module.exports = function (grunt, options) {
return {
dev: {
options: {
name: 'core/js/app',
baseUrl: '<%= sourcedir %>',
mainConfigFile: './config.js',
out: '<%= outputdir %>adapt/js/adapt.min.js',
//fetch these bow... | chris-steele/adapt_framework | grunt/config/javascript.js | JavaScript | gpl-3.0 | 2,149 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/**
* Allows registering a mock XPCOM component, that temporarily replaces the
* original one when an object im... | vladikoff/fxa-mochitest | tests/mochitest/mochijar/chrome/mochikit/content/tests/SimpleTest/MockObjects.js | JavaScript | mpl-2.0 | 3,030 |
(function(exports) {
'use strict';
var SCREEN_WIDTH = 700;
var SCREEN_HEIGHT = 400;
function Game() {
this.running = false;
this.height = SCREEN_HEIGHT;
this.width = SCREEN_WIDTH;
document.addEventListener('DOMContentLoaded', this.init.bind(this));
}
/**
* Initialize game state
*/
... | Mozilla-NTU/gamedev-2014 | site/demos/performance/flappy/js/Game.js | JavaScript | mpl-2.0 | 3,309 |
/**
* @module digdug/TestingBotTunnel
*/
var fs = require('fs');
var ioQuery = require('dojo/io-query');
var os = require('os');
var pathUtil = require('path');
var request = require('dojo/request');
var Tunnel = require('./Tunnel');
var urlUtil = require('url');
var util = require('./util');
/**
* A TestingBot tu... | ohaz/amos-ss15-proj1 | tests/intern/node_modules/digdug/TestingBotTunnel.js | JavaScript | agpl-3.0 | 5,527 |
window.ReactDOM = require('react-dom');
window.React = require('react');
| danizero/MateCat | public/js/cat_source/es6/react-libs.js | JavaScript | lgpl-3.0 | 75 |
module.exports = require('./lib/marketo');
| usermindinc/node-marketo | index.js | JavaScript | apache-2.0 | 43 |
#!/usr/bin/env node
var size = require('./');
var helpText = [
'Usage',
' $ window-size',
'',
'Example',
' $ window-size',
' height: 40 ',
' width : 145',
''
].join('\n');
function showSize() {
console.log('height: ' + size.height);
console.log('width : ' + size.width);
}
switch (process.argv... | jvshens/AAG | thingspeak/node_modules/window-size/cli.js | JavaScript | apache-2.0 | 456 |
/** Copyright 2013-2020 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see http://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | cbornet/generator-jhipster | jdl/parsing/lexer/lexer.js | JavaScript | apache-2.0 | 5,522 |
/**
* @provides javelin-behavior-dark-console
* @requires javelin-behavior
* javelin-stratcom
* javelin-util
* javelin-dom
* javelin-request
* phabricator-keyboard-shortcut
*/
JX.behavior('dark-console', function(config, statics) {
var root = statics.root || ... | yangming85/phabricator | webroot/rsrc/js/core/behavior-dark-console.js | JavaScript | apache-2.0 | 6,290 |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-weak-refs --expose-gc --noincremental-marking --allow-natives-syntax
let o1 = {};
let o2 = {};
let wr1;
let wr2;
(function() {
wr... | zero-rp/miniblink49 | v8_7_5/test/mjsunit/harmony/weakrefs/two-weakrefs.js | JavaScript | apache-2.0 | 977 |
/*
We hand selected the following emojis a few years
ago to be given extra precedence in our typeahead
algorithms and emoji picker UIs. We call them "popular"
emojis for historical reasons, although we've never
technically measured their popularity (and any
results now would be biased in favor ... | showell/zulip | static/shared/js/typeahead.js | JavaScript | apache-2.0 | 5,718 |
// Author: Sergio Castaño Arteaga
// Email: sergio.castano.arteaga@gmail.com
(function(){
var debug = false;
// ***************************************************************************
// Socket.io events
// ***************************************************************************
var ... | ther12k/chat | static/js/main.js | JavaScript | apache-2.0 | 8,848 |
/* */
"format cjs";
(function(a) {
var b = {
"boolean": !1,
"function": !0,
object: !0,
number: !1,
string: !1,
undefined: !1
},
c = b[typeof window] && window || this,
d = b[typeof exports] && exports && !exports.nodeType && exports,
e = b[typeof module] && module && !mod... | cfraz89/moonrock-js-starter | jspm_packages/npm/rx@2.5.3/dist/rx.async.min.js | JavaScript | apache-2.0 | 8,180 |
//// [typeArgumentInferenceOrdering.ts]
class C {
y: I;
}
interface I {
x(): Goo;
}
interface Goo {
p: string;
}
function foo<T>(f: { y: T }): T { return null }
var x = foo(new C()).x; // was Error that property x does not exist on type {}
//// [typeArgumentInferenceOrdering.js]
var C = (function ()... | mihailik/TypeScript | tests/baselines/reference/typeArgumentInferenceOrdering.js | JavaScript | apache-2.0 | 487 |
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | puneetgkaur/cordova-cli-for-sugar | paste this as .cordova in home directory/lib/sugar/cordova/3.5.0/bin/templates/project/lib/new.js | JavaScript | apache-2.0 | 34,500 |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-iteration-statements
es6id: 13.7
description: >
The token sequence `let [`is interpreted as the beginning of a destructuring
binding pattern
info: |
Syntax
I... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-in/head-let-destructuring.js | JavaScript | bsd-2-clause | 783 |
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 20.1.2.3
description: >
Number.isInteger.length is 1.
info: |
Number.isInteger ( number )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, inc... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Number/isInteger/length.js | JavaScript | bsd-2-clause | 1,111 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule AnExChained
* @flow
*/
'use strict';
var React = require('react');
var ReactNative = require('react-native');
var {
... | hoastoolshop/react-native | RNTester/js/AnimatedGratuitousApp/AnExChained.js | JavaScript | bsd-3-clause | 3,318 |
import {default as geoStream} from "../stream";
import boundsStream from "../path/bounds";
function fit(project, extent, object) {
var w = extent[1][0] - extent[0][0],
h = extent[1][1] - extent[0][1],
clip = project.clipExtent && project.clipExtent();
project
.scale(150)
.translate([0, 0])... | CESNET/etlog | node_modules/d3v4/node_modules/d3-geo/src/projection/fit.js | JavaScript | bsd-3-clause | 1,010 |
'use strict';
var multiplicationOperator = function (a, b) {
return a * b;
};
/**
* Raise value to a positive integer power by repeated squaring.
*
* @param {*} base
* @param {number} power
* @param {function} [mul] - Multiplication function,
* standard multiplication operator by default.
* @param {*} id... | techslides/algorithms.js | src/algorithms/math/fast_power.js | JavaScript | mit | 1,319 |
// Sticky Plugin v1.0.0 for jQuery
// =============
// Author: Anthony Garand
// Improvements by German M. Bravo (Kronuz) and Ruud Kamphuis (ruudk)
// Improvements by Leonardo C. Daronco (daronco)
// Created: 2/14/2011
// Date: 2/12/2012
// Website: http://labs.anthonygarand.com/sticky
// Description: Makes an ... | nicholaspsmith/Bedrock-Sage | web/app/themes/synth/js/jquery.sticky.js | JavaScript | mit | 4,366 |
/*!
* remark (http://getbootstrapadmin.com/remark)
* Copyright 2016 amazingsurge
* Licensed under the Themeforest Standard Licenses
*/
(function(document, window, $) {
'use strict';
var Site = window.Site;
$(document).ready(function($) {
Site.run();
});
// Sparkline Basic
// ---------------
// ... | ClickHandlerIO/remark | src/main/java/remark/theme/base/assets/examples/js/charts/sparkline.js | JavaScript | mit | 7,027 |
require("should");
var dataUtil = require("../../data-util/garment-purchasing/garment-currency-data-util");
var helper = require("../../helper");
// var validate = require("dl-models").validator.garmentPurchasing.garmentPurchaseOrder;
var moment = require('moment');
var Manager = require("../../../src/managers/garment... | danliris/dl-module | test/garment-purchasing/garment-currency/csv.js | JavaScript | mit | 1,977 |
import warning from './warning'
import { loopAsync } from './AsyncUtils'
import { matchPattern } from './PatternUtils'
import { createRoutes } from './RouteUtils'
function getChildRoutes(route, location, callback) {
if (route.childRoutes) {
callback(null, route.childRoutes)
} else if (route.getChildRoutes) {
... | jameswatkins77/React-Blogger-App | node_modules/react-router/modules/matchRoutes.js | JavaScript | mit | 5,119 |
/*
* @flow
* @lint-ignore-every LINEWRAP1
*/
import {suite, test} from 'flow-dev-tools/src/test/Tester';
export default suite(({addFile, addFiles, addCode}) => [
test('Prevent reposition loops', [
addCode(`
declare class Map<K,V> {
get(k:K): ?V;
set(k:K,v:V): void
}
`).noNewE... | claudiopro/flow | newtests/repos-union/test.js | JavaScript | mit | 576 |