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 { Directive, TemplateRef, ContentChild } from '@angular/core';
let nextId = 0;
export class tabpanelDirective {
static get annotations() {
return [
new Directive({
selector: 'atlui-tab-panel',
inputs : ['title', 'disabled', 'id', 'active'],
queries: {
headerTemplat... | korosakikun/atlantis-ui | src/tab-panel.component.js | JavaScript | mit | 1,133 |
L.MapboxGL = L.Class.extend({
initialize: function (options) {
L.setOptions(this, options);
if (options.accessToken) {
mapboxgl.accessToken = options.accessToken;
} else {
throw new Error('You should provide a Mapbox GL access token as a token option.');
}
... | redheli/ionic_map | www/lib/leaflet-mapbox-gl.js | JavaScript | mit | 3,004 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let RemoveRedEye = props =>
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 ... | AndriusBil/material-ui | packages/material-ui-icons/src/RemoveRedEye.js | JavaScript | mit | 498 |
var events = require('events');
var debug = module.exports = new events.EventEmitter();
| Lemmings/lemmings-commander | lib/crawler/debug.js | JavaScript | mit | 88 |
'use strict';
module.exports = function (gulp, plugins, config) {
return {
task: function (cb) {
config.isRelease = true;
plugins.runSequence(
'csstime-publish-tmp',
'csstime-remove-tmp',
function (error) {
var logger = require('../lib/logger')(plugins, config);
logger.write('release mod... | trth/csstime-gulp-tasks | gulp-tasks/csstime-mode-release.js | JavaScript | mit | 373 |
module.exports = function (grunt) {
require('jit-grunt')(grunt, {
'instrument': 'grunt-istanbul',
'storeCoverage': 'grunt-istanbul',
'makeReport': 'grunt-istanbul',
'coverage': 'grunt-istanbul-coverage'
});
require('time-grunt')(grunt);
grunt.initConfig({
env: {
test: { NODE_ENV: 'TES... | devfd/ios-builder | Gruntfile.js | JavaScript | mit | 1,944 |
document.getElementById("output").innerHTML = "Hello World";
| ralic/screencasts | introToChiasm/examples/code/snapshot01/main.js | JavaScript | mit | 61 |
(function () {
'use strict';
angular
.module('event-managing-security')
.controller('SecurityController', SecurityController);
SecurityController.$inject = ['$rootScope', 'AUTH_EVENTS', 'SecurityService', 'Logger'];
/* @ngInject */
function SecurityController($rootScope, AUTH_EVEN... | mhylle/event-managing | src/client/app/security/security.controller.js | JavaScript | mit | 1,635 |
var gulp = require('gulp');
// var ngAnnotate = require('gulp-ng-annotate');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var minifyCss = require('gulp-minify-css');
var templateCache = require('gulp-angular-templatecache');
var mergeStream = require('merge-stream');
var request = require(... | kdoran/demoemulator | gulpfile.js | JavaScript | mit | 2,751 |
({
valueOf: 'Avoids methods',
watch: 'in Object.prototype'
});
| phillipj/mustache.js | test/_files/avoids_obj_prototype_in_view_cache.js | JavaScript | mit | 67 |
/*!
* StringBuilder.utils.args
* Copyright(c) 2013 Delmo Carrozzo <dcardev@gmail.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var XRegExp = require('xregexp').XRegExp
, formatter = require('./formatter');
/**
* XRegExp for formats
*
*/
var regexLib = {
format: '{(?<arg>\\d+)(:(?<f... | svstanev/stringbuilder | lib/utils/args.js | JavaScript | mit | 2,364 |
/*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... | kreta/kreta | CompositeUi/src/views/form/RequestResetPassword.js | JavaScript | mit | 2,192 |
define({
"_widgetLabel": "Zusammenfassung",
"filter": "Filter",
"all": "Alle",
"missingLayerInWebMap": "Keine operationalen Layer in Webkarte.",
"missingSummaryLayerInConfig": "Zusammenfassungs-Layer fehlt."
}); | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/Summary/nls/de/strings.js | JavaScript | mit | 221 |
const _ = require('lodash');
const expect = require('expect');
const sinon = require('sinon');
const Graph = require('../graph.js');
/**
* Test libraries.
*/
require('should');
require('should-sinon');
/**
* Node insertion test plan.
*/
describe('Insertion of nodes in the graph', function () {
const ... | HQarroum/Graph | tests/graph-spec.js | JavaScript | mit | 7,823 |
import {
attribute,
clickable,
isVisible,
text
} from 'ember-cli-page-object';
import newConversationModal from 'code-corps-ember/tests/pages/components/conversations/new-conversation-modal';
import projectUserRoleModal from 'code-corps-ember/tests/pages/components/project-user-role-modal';
export default {
... | code-corps/code-corps-ember | tests/pages/components/user-list-item.js | JavaScript | mit | 790 |
var files__4_8js =
[
[ "searchData", "files__4_8js.html#ad01a7523f103d6242ef9b0451861231e", null ]
]; | nr-parikh/acme_robotics_perception_module | documentation/html/files__4_8js.js | JavaScript | mit | 105 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var http = require('http');
var routes = require('./routes/index');
var app = express();
// view e... | thebravoman/software_engineering_2016 | h17_nodejs_express_bodyparser/app_b_24/app.js | JavaScript | mit | 1,500 |
/*!
* qwebs
* Copyright(c) 2015 Benoît Claveau <benoit.claveau@gmail.com>
* MIT Licensed
*/
"use strict";
const url = require("url");
const DataError = require("../dataerror");
class Get {
constructor($qwebs, route) {
this.$qwebs = $qwebs;
this.route = route;
this.contentType = null;
... | BenoitClaveau/qwebs | lib/routes/get.js | JavaScript | mit | 1,702 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/MicOffTwoTone.js | JavaScript | mit | 1,029 |
import { module, test } from 'qunit';
import { Projection, Offline, Adapter, Serializer, Query, Utils, Security, Audit } from 'ember-flexberry-data';
module('index tests');
test('index exports', function (assert) {
assert.ok(Projection.StoreMixin);
assert.ok(Projection.AdapterMixin);
assert.ok(Projection.Model)... | Flexberry/ember-flexberry-projections | tests/unit/index-test.js | JavaScript | mit | 1,474 |
class NcgAssets extends Polymer.MutableData(Polymer.Element) {
static get is() {
return 'ncg-assets';
}
}
customElements.define('ncg-assets', NcgAssets);
| IgorCandido/igrcnddStreamNotifications | src/dashboard/elements/assets/ncg-assets.js | JavaScript | mit | 159 |
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
var WebpackIsomorphicTools = require('webpack-isomorphic-tools');
var assetsPath = path.resolve(__dirname, '../static/dist');
var host = 'localhost';
var port = parseInt(process.env.PORT) + 1 || 3001;
// https://github.com/halt-hamme... | aallfredo/clicker | webpack/dev.config.js | JavaScript | mit | 3,200 |
/**
* Gulp Packages
*/
// General
var gulp = require('gulp');
var fs = require('fs');
var del = require('del');
var lazypipe = require('lazypipe');
var plumber = require('gulp-plumber');
var flatten = require('gulp-flatten');
var tap = require('gulp-tap');
var rename = require('gulp-rename');
var header = require('g... | supercast-tv/chomecast-receiver-gulp | gulp/index.js | JavaScript | mit | 6,941 |
;(function () { // closure for web browsers
if (module) {
module.exports = LRUCache
} else {
// just set the global for non-node platforms.
this.LRUCache = LRUCache
}
function hOP (obj, key) {
return Object.prototype.hasOwnProperty.call(obj, key)
}
function naiveLength () { return 1 }
function LRUCache (opt... | alexoldenburg/subzero | node_modules/grunt-requirejs/node_modules/grunt-jquerybuilder/node_modules/jquery-builder/jquery/node_modules/grunt/node_modules/jshint/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js | JavaScript | mit | 4,295 |
import { TempNode } from '../core/TempNode.js';
function SubSlotNode( slots ) {
TempNode.call( this );
this.slots = slots || {};
}
SubSlotNode.prototype = Object.create( TempNode.prototype );
SubSlotNode.prototype.constructor = SubSlotNode;
SubSlotNode.prototype.nodeType = 'SubSlot';
SubSlotNode.prototype.getTy... | 06wj/three.js | examples/jsm/nodes/utils/SubSlotNode.js | JavaScript | mit | 1,172 |
import Ember from 'ember';
import Base from 'simple-auth/authorizers/base';
export default Base.extend({
authorize(jqXHR) {
var bearerKey = this.get("bearerKey");
if (bearerKey) {
jqXHR.setRequestHeader('Authorization', bearerKey);
}
},
bearerKey: Ember.computed(
"session.username",
"se... | BryanCode/wordset-ui | app/authorizers/api.js | JavaScript | mit | 766 |
export { togglePostLayoutView, selectArticle, selectTag, clearTag } from './actions';
export { default } from './reducer';
| boldr/boldr | project/src/scenes/Blog/state/index.js | JavaScript | mit | 124 |
import {
SHOW_FINISHED_MODAL,
HIDE_FINISHED_MODAL
} from "../actions";
const finishedModalReducer = ( state = { visible: false }, action ) => {
if ( action.type === SHOW_FINISHED_MODAL ) {
return { visible: true };
}
if ( action.type === HIDE_FINISHED_MODAL ) {
return { visible: false };
}
return... | pleary/inaturalist | app/webpack/observations/identify/reducers/finished_modal_reducer.js | JavaScript | mit | 369 |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
'use strict';
const RelayMetaRoute = require('../route/RelayMetaRoute');
const RelayQuery = r... | dbslone/relay | packages/react-relay/classic/query/createRelayQuery.js | JavaScript | mit | 901 |
import Cookies from 'cookies'
import moment from 'moment'
import Strategy from 'passport-local'
import passport from 'passport'
import jwt from 'jwt-simple'
import {config, Manager, User} from '../../../../cli'
/**
* Strategy
*/
passport.use(
new Strategy(function(username, password, done) {
User.utils.findBy... | wonknu/abecms | src/server/routes/users/post/login.js | JavaScript | mit | 2,271 |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://github.com/firebase/superstatic/blob/master/LICENSE
*/
const crypto = require("crypto");
const Readable = require("stream").Readable;
module.e... | divshot/superstatic | src/providers/memory.js | JavaScript | mit | 920 |
'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... | Irfankhan18/WebApps | karma.conf.js | JavaScript | mit | 2,408 |
'use strict';
// Load modules
const Path = require('path');
const Boom = require('boom');
const Code = require('code');
const Handlebars = require('handlebars');
const Hapi = require('..');
const Hoek = require('hoek');
const Lab = require('lab');
const Vision = require('vision');
// Declare internals
const intern... | adityayuga/shortener | node_modules/hapi/test/auth.js | JavaScript | mit | 71,413 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M21 6h-3.17L16 4h-6v2h5.12l1.83 2H21v12H5v-9H3v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM8 14c0 2.76 2.24 5 5 5s5-2.24 5-5-2.24-5-5-5-5 2.24-5 5zm... | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/AddAPhotoOutlined.js | JavaScript | mit | 430 |
import styled, {ThemeProvider, withTheme, keyframes} from 'styled-components'
import type {Theme} from 'styled-components'
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes
} from 'styled-components/native'
import type {Theme as NativeTheme} fr... | flowtype/flow-typed | definitions/npm/styled-components_v1.4.x/test_styled-components_v1.4.x.js | JavaScript | mit | 2,695 |
"use strict";
const marked = require("marked");
const utf8 = require("utf-8");
class Markdown extends HTMLElement {
constructor() {
super();
}
update(text) {
try {
const md = marked(text);
this.innerHTML = md;
} catch (e) {
console.error(e);
}
}
}
customElements.define("lem... | cxxxr/lem | frontends/electron/markdown-preview/markdown-preview.js | JavaScript | mit | 343 |
module.exports = {
libraries: ['index']
}
| saguijs/sagui | spec/fixtures/project-with-css-modules/sagui.config.js | JavaScript | mit | 44 |
/*
* Starts up the JQuery validate JavaScript.
*/
$('.to-be-validated').validate({
errorElement: "div",
errorClass: "error small",
wrapper: 'p'
});
| nehiljain/athletigen-styleguide | source/js/lib/initializeValidation.js | JavaScript | mit | 168 |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
import {isArray} from 'lodash';
/**
* Proxies the event binding methods of emitter onto proxy
* @param {EventEmitter|EventEmitterProxy} emitter
* @param {mixed} proxy (probably a promise)
* @returns {EventEmitter} Returns the source emitter ... | ciscospark/spark-js-sdk | packages/node_modules/@ciscospark/common/src/events.js | JavaScript | mit | 1,364 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Angle = require('./Angle');
var NormalAngle = require('./NormalAngle');
/**
* Calculate the reflected angle between two lines.
*
* This ... | TukekeSoft/phaser | src/geom/line/ReflectAngle.js | JavaScript | mit | 782 |
var extend = require('xtend')
var fixtures = require('webtorrent-fixtures')
var test = require('tape')
var WebTorrent = require('../')
test('client.add: magnet uri, utf-8 string', function (t) {
t.plan(6)
var client = new WebTorrent({ dht: false, tracker: false })
client.on('error', function (err) { t.fail(err... | rom1504/webtorrent | test/client-add.js | JavaScript | mit | 7,043 |
import { windUnitMap, windUnitInverseMap, windDirectionMap, windDirectionInverseMap } from './TafWindMaps';
import { visibilityUnitMap, visibilityUnitInverseMap } from './TafVisibilityMaps';
import { qualifierMap, qualifierInverseMap, descriptorMap, descriptorInverseMap, phenomenaMap, phenomenaInverseMap } from './TafW... | maartenplieger/GeoWeb-FrontEnd | src/components/Taf/TafFieldsConverter.js | JavaScript | mit | 31,973 |
// The myKeys object will be in the global scope - it makes this script
// really easy to reuse between projects
"use strict";
var myKeys = {};
myKeys.KEYBOARD = Object.freeze
({
"KEY_LEFT": 37,
"KEY_UP": 38,
"KEY_RIGHT": 39,
"KEY_DOWN": 40,
"KEY_Z": 90,
"KEY_X": 88,
"KEY_C": 67,
});
// myKeys.keydown ar... | Alcom1/Undertale.js | js/keys.js | JavaScript | mit | 806 |
// This file is part of Indico.
// Copyright (C) 2002 - 2019 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import favoriteUsersURL from 'indico-url:users.favorites_api';
import principalsURL from 'indico-url... | mvidalgarcia/indico | indico/web/client/js/react/hooks.js | JavaScript | mit | 3,292 |
import get from 'lodash/get';
const generateOptions = (appLocales, currentLocale, localizations, permissions) => {
return appLocales
.filter(({ code }) => {
return (
code !== currentLocale &&
(localizations || []).findIndex(({ locale }) => locale === code) !== -1
);
})
.filter... | wistityhq/strapi | packages/plugins/i18n/admin/src/components/CMEditViewInjectedComponents/CMEditViewCopyLocale/utils/generateOptions.js | JavaScript | mit | 632 |
import { mount, createLocalVue, RouterLinkStub } from '@vue/test-utils';
import VueRouter from 'vue-router';
import { STATUSES } from '../../../src/modules/classSummary/constants';
import makeStore from '../../makeStore';
import ReportsLessonExerciseLearnerListPage from '../../../src/views/reports/ReportsLessonExercis... | indirectlylit/kolibri | kolibri/plugins/coach/assets/test/views/reports/ReportsLessonExerciseLearnerListPage.spec.js | JavaScript | mit | 9,245 |
(function( YustSdk, window, undefined ){
var serverIP = 'http://54.247.168.152:3000'
, socket = window.io.connect( serverIP ) // TODO: get script automatically
;
function init( appType, appName, slots )
{
var appId = createId();
getQrCode( appId );
// Connect with the... | madgeeklabs/Yust | sdk/pong/app/scripts/yustSdk.js | JavaScript | mit | 1,513 |
/* jshint trailing:true jquery:true browser:true curly:false */
/**
* jQuery Flex v0.2
* A fluid asymmetrical animated grid plugin for jQuery
* http://jsonenglish.com
*
* Licensed under the MIT license.
* Copyright 2012 Jason English
*/
;(function ( $, undefined ) {
"use strict";
// Create the defaults once... | philipbankier/Personal-Website | public/js/jquery.flex.js | JavaScript | mit | 7,704 |
//>>built
define("require dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/mouse dojo/on dojo/touch ./_WidgetBase".split(" "),function(n,d,f,p,g,l,q,r,t){var u=g.delegate(r,{mouseenter:l.enter,mouseleave:l.leave,keypress:f._keypress}),m;f=p("dijit._AttachMixin",null,{constructor:function(){th... | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/dijit/_AttachMixin.js | JavaScript | mit | 1,807 |
Transaction = Astro.Class({
name: "transaction",
collection: new Mongo.Collection("transaction"),
fields: {
transactionType: {
type: "string",
},
volume: {
type: "number"
},
price: {
type: "number"
},
stock: {
... | aarongoh/02 | lib/models/transaction.js | JavaScript | mit | 536 |
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
pscMake: {
options: {
},
main: {
files: {
src: ["src/**/*.purs", "bower_components/**/src/**/*.purs"]
}
},
},
pscDocs: {
readme: {
src: "src/**/*.purs",
dest: "RE... | zudov/purescript-websocket | Gruntfile.js | JavaScript | mit | 464 |
import {Parser as HTMLParser} from 'htmlparser2';
export default function HTMLParser2(tags, attributes){
return new HTMLParser({
onopentag: function(tagname, attributes){
},
onclosetag: function(tagname){
}
});
} | thomasfoster96/kupu | src/plugins/postxml.js | JavaScript | mit | 225 |
const unicodeSupportTestMap = {
// man, student (emojione does not have any of these yet), http://emojipedia.org/emoji-zwj-sequences/
// occupationZwj: '\u{1F468}\u{200D}\u{1F393}',
// woman, biking (emojione does not have any of these yet), http://emojipedia.org/emoji-zwj-sequences/
// sexZwj: '\u{1F6B4}\u{200... | darkrasid/gitlabhq | app/assets/javascripts/behaviors/gl_emoji/unicode_support_map.js | JavaScript | mit | 5,806 |
module.exports = function (wallaby) {
return {
files: ["src/**/*.ts"],
tests: ["__tests__/**/*.ts"],
compilers: {
"**/*.ts": wallaby.compilers.typeScript({
module: "commonjs",
files: ["src/index.ts"]
})
},
env: {
... | mobxjs/mobx-state-tree | packages/mobx-state-tree/wallaby.js | JavaScript | mit | 412 |
/* @flow */
import React from 'react';
import { EditorState, convertFromHTML, ContentState } from 'draft-js';
import { spy } from 'sinon';
import { mount } from 'enzyme';
import ModalHandler from '../../../core/eventHandlers/modals';
import defaultToolbar from '../../../core/config';
import List from './List';
descri... | strues/boldr | packages/editor/src/components/Controls/List/List.test.js | JavaScript | mit | 1,590 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _es_ES = require('rc-calendar/lib/locale/es_ES');
var _es_ES2 = _interopRequireDefault(_es_ES);
var _es_ES3 = require('../../time-picker/locale/es_ES');
var _es_ES4 = _interopRequireDefault(_es_ES3);
var _objectAssign = require('... | prodigalyijun/demo-by-antd | node_modules/antd/lib/date-picker/locale/es_ES.js | JavaScript | mit | 979 |
Kadira.connect('8SpXNiBt4FdSmj9rC', 'a96368f9-3798-4647-abba-821a967ae246'); | yala/eatsy | server/kadira.js | JavaScript | mit | 76 |
console.log("=================")
console.log("======BEGIN======")
console.log(" ")
var x = 30;
var result = 0;
if ((x % 5 === 0) && (x % 3 === 0)) {
result = "fizzbuzz"
console.log(result);
} else if (x % 5 === 0) {
result = "buzz";
console.log(result)
} else if (x % 3 === 0){
result = "fizz"... | toymechqm/wdi-fundamentals-rps | New Attempt/app/js/nodetestfile.js | JavaScript | mit | 371 |
import _ from 'underscore';
import Vue from 'vue';
import SidebarAssignees from '~/sidebar/components/assignees/sidebar_assignees.vue';
import SidebarMediator from '~/sidebar/sidebar_mediator';
import SidebarService from '~/sidebar/services/sidebar_service';
import SidebarStore from '~/sidebar/stores/sidebar_store';
im... | dreampet/gitlab | spec/javascripts/sidebar/sidebar_assignees_spec.js | JavaScript | mit | 2,092 |
var Paginator = {
jumpToPage: function(pages) {
var page = prompt('Enter a number between 1 and ' + pages + ' to jump to that page', '')
if (page != undefined) {
page = parseInt(page, 10)
if (!isNaN(page) && page > 0 && page <= pages) {
window.location.href = '?page=' + page
}
}
... | insin/forum | forum/static/forum/js/Paginator.js | JavaScript | mit | 326 |
/**
* @fileoverview Tests for configInitializer.
* @author Ilya Volodin
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var assert = require("chai").assert,
init =... | borislavjivkov/eslint | tests/lib/config/config-initializer.js | JavaScript | mit | 4,138 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/StackedLineChart.js | JavaScript | mit | 610 |
var util = require( "../util" );
function getAffectedServices( storage, image ) {
var info = util.getImageInfo( image );
return storage.service.findUpgradableServices( info );
}
function init( storage, rancher ) {
return {
upgrade: upgrade.bind( null, storage, rancher )
};
}
function upgrade( storage, rancher,... | EvanSnapp/cowpoke | src/model/image.js | JavaScript | mit | 740 |
define([ "jquery" ], function($) {
"use strict";
$(".typography .styleguide-block [class^=copy--]").not(".js-typography-icons *").each(function(index, el) {
el.innerHTML += " (" + window.getComputedStyle(el, null).getPropertyValue("font-size") + ")";
});
});
| lonelyplanet/rizzo | app/assets/javascripts/lib/styleguide/typography.js | JavaScript | mit | 272 |
define({
"name": "FPGA Web Service API",
"version": "0.1",
"description": "Web Service to manage a traffic player/recorder FPGA",
"title": "FPGA Web Service API documentation",
"template": {
"withCompare": false,
"withGenerator": false
},
"url": "proxy.php?csurl=",
"generator": {
... | JSidrach/NetWatcher | docs/back-end/api_project.js | JavaScript | mit | 389 |
/* jshint node: true, esnext: true, strict: true, undef: true */
/* globals FS */
exports.is_file = is_file;
function is_file(v) {
"use strict";
try {
return FS.lstatSync(v).isFile();
} catch (e) {
return false;
}
}
| da99/dum_dum_boom_boom | lib/node/node/is_file.js | JavaScript | mit | 233 |
'use strict';
module.exports = {
boxmode: {
valType: 'enumerated',
values: ['group', 'overlay'],
dflt: 'overlay',
editType: 'calc',
description: [
'Determines how boxes at the same location coordinate',
'are displayed on the graph.',
'If ... | etpinard/plotly.js | src/traces/box/layout_attributes.js | JavaScript | mit | 1,341 |
"use strict";
var anim = [
{clip: 'rect(300px, 400px, 300px, 400px)'},
{clip: 'rect(0px, 800px, 600px, 0px)'},
];
document.timeline.play(
new Animation(document.querySelector('#test'), anim, {duration: 1 * 1000, fill: 'forwards'}));
| sunglim/csp_fixer | test_resource/core_elements_expected/src/web-animations-js/test/testcases/auto-test-rectangle.html.1.js | JavaScript | mit | 244 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"
}), 'EqualizerSharp'); | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/EqualizerSharp.js | JavaScript | mit | 236 |
'use strict';
exports.__esModule = true;
exports.routerMiddleware = exports.routerActions = exports.goForward = exports.goBack = exports.go = exports.replace = exports.push = exports.CALL_HISTORY_METHOD = exports.routerReducer = exports.LOCATION_CHANGE = exports.ConnectedRouter = undefined;
var _reducer = require('./... | kishigo/recipes-react-redux | node_modules/react-router-redux/index.js | JavaScript | mit | 1,969 |
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat:{
options:{
separator: ';'
},
dist:{
src:[
'./js/tip.js',
'./lib/main.js',
'./lib/services/**/*.js',
'./lib... | vczero/OurTimes | client-web/Gruntfile.js | JavaScript | mit | 867 |
// 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... | enclose-io/compiler | lts/lib/_http_client.js | JavaScript | mit | 24,035 |
'use strict';
//like circle.js but uses new attribute passing instead of property calls
const path = require('path');
const amino = require('../main.js');
const gfx = new amino.AminoGfx();
gfx.start(function (err) {
if (err) {
console.log('Start failed: ' + err.message);
return;
}
//gree... | joshmarinacci/aminogfx-gl | demos/circle2.js | JavaScript | mit | 1,769 |
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
// Radian
var project_oid = '/project/37192747640';
this.add({
xtype: 'rallycombobox',
width: 600,
fieldLabel: 'Select Initiative:',
// Default to I46
value: '/portfolioitem/initiative/36106803... | jpateleigenx/Unscheduled-OAF-User-Stories | App.js | JavaScript | mit | 2,682 |
define('app/views/clear_button', [
'text!app/templates/clear_button.html',
'ember'
],
/**
* View to clear completed tasks
*
* @param String button_html, the html for view
* @returns Class
*/
function( button_html ) {
return Ember.View.extend({
entriesBinding: 'controller.namespace.entriesControlle... | jsoverson/todomvc | dependency-examples/emberjs_require/js/app/views/clear_button.js | JavaScript | mit | 563 |
import Vue from 'vue'
import injectStyles from './inject-styles'
import { isIE9 } from 'core/util/env'
import { nextFrame } from 'web/runtime/transition-util'
if (!isIE9) {
describe('Transition basic', () => {
const { duration, buffer } = injectStyles()
const explicitDuration = duration * 2
let el
b... | vuejs/vue | test/unit/features/transition/transition.spec.js | JavaScript | mit | 48,247 |
// const EventEmitter = require('events').EventEmitter;
const Promise = require('bluebird');
// add items to queue
// start queue
class JobQueue {
constructor(opts) {
this._concurrency = opts.concurrency || Infinity;
this._running = false;
this._jobs = [];
}
add(job) {
const queueJob = () => {
... | ashnewport/elasticsearch | kibana-5.0.2-linux-x86_64/plugins/x-pack/plugins/reporting/server/lib/job_queue.js | JavaScript | mit | 615 |
import {compose} from 'recompose';
import {constructWebexEnhancer, withIntl} from '@webex/webex-widget-base';
import {enhancer as mercuryEnhancer} from '@webex/redux-module-mercury';
import {enhancer as mediaEnhancer} from '@webex/redux-module-media';
import {reducers} from './reducer';
import ConnectedMeet from './co... | adamweeks/react-ciscospark-1 | packages/node_modules/@webex/widget-meet/src/index.js | JavaScript | mit | 700 |
(function () {
/* Imports */
var _ = Package.underscore._;
/* Package-scope variables */
var Meteor;
(function () {
//////////////////////////////////////////////////////////////////////////////////////////////////////
// ... | vlipco/startupcol-telescope | build/programs/server/packages/meteor.js | JavaScript | mit | 104,093 |
define(["./edi856O.js"], function (edi856O) {
function OnStartup(bezl) {
//Reset Bezl variables.
bezl.vars.filterEdiStatus = "H";
bezl.vars.filter = "";
bezl.vars.search = "";
bezl.vars.sort = "";
bezl.vars.sortCol = "";
bezl.vars.DASH_HEADER_ID = 0;
b... | bezlio/bezlio-apps | roles/edi/edi856O/versions/4.0.3/js/onStartup.js | JavaScript | mit | 910 |
angular.module('Demo', ['ngfileexplorer']).controller('exploreCtrl',['$scope','$explorer', function($scope,explorer) {
$scope.dirs =[];
$scope.files =[];
$scope.exploreReady = false;
$scope.currentDirPath="";
var callBack = function(dirs,files,file)
{
try{
if(dirs && files){
$scope.$apply(function(){
... | hrhrprasath/NgFileExplorer | www/js/Demo.js | JavaScript | mit | 1,063 |
/*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'us... | bss/dotfiles | atom/atom.symlink/packages/nuclide-format-js/node_modules/jscodeshift/src/Runner.js | JavaScript | mit | 8,580 |
#!/usr/bin/env node
'use strict';
const {exec} = require('child-process-promise');
const {readJsonSync} = require('fs-extra');
const {getArtifactsList, logPromise} = require('../utils');
const theme = require('../theme');
const run = async ({cwd, tags}) => {
if (!tags.includes('latest')) {
// Don't update erro... | VioletLife/react | scripts/release/publish-commands/download-error-codes-from-ci.js | JavaScript | mit | 1,507 |
window.mip = window.mip || {};
var mip = window.mip;
// Card, project card actions
(function($) {
"use strict";
var cards = document.querySelectorAll('.card');
var projects = document.querySelectorAll('.project-card, .project-card-featured');
// On card click, find child anchor and open link
if (cards.len... | metroideas/beta.metroideas.org | _assets/_js/mip/card-events.js | JavaScript | mit | 1,155 |
/*! jQuery UI - v1.10.3 - 2013-11-21
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.effect-highlight.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function( $, undefined ) {
var uuid =... | cnlpete/candybox | vendor/candycms/core/assets/javascripts/core/jquery.ui.js | JavaScript | mit | 102,190 |
module.exports={title:"Letterboxd",hex:"00D735",source:"https://letterboxd.com/about/logos/",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Letterboxd icon</title><path d="M8.29 16.752V7.2H6.546V4.8h6.328v2.4h-1.746v9.574h3.925v-2.618h2.839V19.2H6.545v-2.448h1.746zM0 12c0 6.628 5.372... | cdnjs/cdnjs | ajax/libs/simple-icons/1.11.0/letterboxd.min.js | JavaScript | mit | 556 |
module.exports = {
'*.{es,js}': ['eslint --fix', 'stylelint --config .stylelintrc.js', 'git add'],
'*.css': ['stylelint --config .stylelintrc.css.js'],
'*.md': ['prettier --write', 'git add'],
}
| PHELiOX/poi | lint-staged.config.js | JavaScript | mit | 201 |
angular.module('eee-c.angularBindPolymer', []).
directive('bindPolymer', ['$parse', function($parse) {
'use strict';
return {
restrict: 'A',
scope : false,
compile: function bindPolymerCompile($element, $attr) {
var attrMap = {};
for (var prop in $attr) {
if (angular.isString($attr[prop])) {
var... | eriser/viktor | non-npm/angular-bind-polymer.js | JavaScript | mit | 1,662 |
'use strict';
/* global tabex, $, window */
$(function () {
var live = tabex.client();
function log(msg) {
$('#log').prepend($('<p class="message">').text(msg));
}
//////////////////////////////////////////////////////////////////////////////
$('#createwin').click(function () {
window.open(wind... | nodeca/tabex | support/demo_template/index.js | JavaScript | mit | 1,069 |
/* @flow */
import React from 'react'
export class HomeView extends React.Component {
render () {
return (
<div>
<h1>Your New Project</h1>
</div>
)
}
}
export default HomeView
| Rkiouak/react-redux-python-stocks | src/views/HomeView/HomeView.js | JavaScript | mit | 210 |
/**
* @file test for rule ie-edge
* @author nighca<nighca@live.cn>
*/
var path = require('path');
var htmlcs = require('../../../../');
var parse = require('../../../../lib/parse');
var rule = path.basename(__dirname);
describe('rule ' + rule, function () {
var result1 = htmlcs.hintFile(path.join(__dirname, '... | ecomfe/htmlcs | test/lib/rules/ie-edge/test.spec.js | JavaScript | mit | 2,215 |
var views = {
} | jpbaena13/Skeleton | webroot/js/views.js | JavaScript | mit | 20 |
import {advanceBy, advanceTo} from 'jest-date-mock';
import omit from 'lodash-es/omit';
import {testSaga} from 'redux-saga-test-plan';
import {
applicationLoaded as applicationLoadedSaga,
archiveProject as archiveProjectSaga,
changeCurrentProject as changeCurrentProjectSaga,
createProject as createProjectSaga,
... | popcodeorg/popcode | src/sagas/__tests__/projects.test.js | JavaScript | mit | 9,465 |
var list = $('.markdown-body').children();
list.splice(0, 5);
var d3api = { name: 'd3api', children: [], href: 'https://github.com/mbostock/d3/wiki/API-Reference' };
list.each(function () {
switch (this.tagName) {
case 'H2':
h2 = { name: this.children[1].innerText, href: this.children[1].href... | hueidou/d3js-slides | practice/d3api-tree/getdate.js | JavaScript | mit | 854 |
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var <%= modelNameUCase %>Schema = new Schema({
name: String,
active: { type: Boolean, default: true },
deleted: { type: Boolean, select: false, default: false }
});
module.exports = mongoose.model("<%= modelNameUCase %>", <%= modelNameUCase %>... | amplitudesolutions/slush-nodeapi | templates/model/model.js | JavaScript | mit | 328 |
/*! jQuery requestAnimationFrame - 0.2.3-pre - 2016-10-26
* https://github.com/gnarf37/jquery-requestAnimationFrame
* Copyright (c) 2016 Corey Frang; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(){c&&(window.requestAnimationFrame(b),a.fx.tick... | gnarf/jquery-requestAnimationFrame | dist/jquery.requestanimationframe.min.js | JavaScript | mit | 730 |
//>>built
define("dojox/mobile/SpinWheelSlot",["dojo/_base/kernel","dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase","./scrollable"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){
return _3("dojox.mobile.SpinWheelSlot",[_... | inpq/ec2m | web/bundles/ec2m/js/dojox/mobile/SpinWheelSlot.js | JavaScript | mit | 6,133 |
// -------------------------------------------------------------------------- \\
// File: GlobalKeyboardShortcuts.js \\
// Module: Application \\
// Requires: Core, Foundation, UA ... | linagora/overture | source/Overture/application/GlobalKeyboardShortcuts.js | JavaScript | mit | 7,193 |
exports.names = ['lottery', 'roulette'];
exports.hidden = true;
exports.enabled = true;
exports.cdAll = 60;
exports.cdUser = 60;
exports.cdStaff = 60;
exports.minRole = PERMISSIONS.BOUNCER;
exports.handler = function (data) {
var input = data.message.split(' ');
var mins = 1;
if (input.length >= 2) {
... | avatarkava/BeavisBot | commands/disabled/lottery.js | JavaScript | mit | 3,224 |
angular.module('starter').factory('InstructionsService', [ function() {
var instructionsObj = {};
// instructionsObj.instructions = {
// newLocations : {
// text : 'To add a new location, tap and hold on the map',
// seen : false
// }
// };
return instructionsObj;
}]); | MikeLockz/exit-now-mobile | www/js/services/instructionsService.js | JavaScript | mit | 301 |