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
// This file was procedurally generated from the following sources: // - src/dstr-assignment/obj-id-identifier-resolution-last.case // - src/dstr-assignment/default/for-of.template /*--- description: Evaluation of DestructuringAssignmentTarget (last of many) (For..of statement) esid: sec-for-in-and-for-of-statements-ru...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/for-of/dstr-obj-id-identifier-resolution-last.js
JavaScript
bsd-2-clause
1,252
// Copyright (C) 2017 Robin Templeton. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: Octal BigInt literal containing an invalid digit esid: prod-NumericLiteral info: | NumericLiteral :: NumericLiteralBase NumericLiteralSuffix NumericLiteralBase ...
sebastienros/jint
Jint.Tests.Test262/test/language/literals/bigint/octal-invalid-digit.js
JavaScript
bsd-2-clause
578
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-init-null.case // - src/dstr-binding/error/gen-meth.template /*--- description: Value specifed for object binding pattern must be object coercible (null) (generator method) esid: sec-generator-function-definitions-runtime-sema...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/object/dstr-gen-meth-obj-init-null.js
JavaScript
bsd-2-clause
1,850
(function() { var LOAD_TIMEOUT = 60000; var PLAY_BUTTON = [0, 173, 0]; var PAUSE_BUTTON = [0, 172, 1]; // Code taken from BurninRubber-v0.js. function childAtPath(path) { var child = ((window.game || {}).stage) || {}; path.forEach((x) => child = ((child || {}).children || [])[x]); return child |...
unixpickle/muniverse
games/injections/BirdyRush-v0.js
JavaScript
bsd-2-clause
1,488
// This file was procedurally generated from the following sources: // - src/function-forms/dflt-params-arg-val-undefined.case // - src/function-forms/default/async-func-expr-named.template /*--- description: Use of initializer when argument value is `undefined` (async function named expression) esid: sec-async-functio...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/async-function/named-dflt-params-arg-val-undefined.js
JavaScript
bsd-2-clause
1,404
var voxelPainter = require('./../') // Options var options = { container: '#container' } var painter = voxelPainter(options) var loopThrough = function(elements, cb) { [].forEach.call(elements, function(item) { cb(item) }) } // Color selector var colorSelector = document.querySelectorAll('.color-selecto...
romainberger/voxel-painter-core
example/main.js
JavaScript
bsd-2-clause
604
// This file was procedurally generated from the following sources: // - src/spread/obj-mult-spread.case // - src/spread/default/super-call.template /*--- description: Multiple Object Spread operation (SuperCall) esid: sec-super-keyword-runtime-semantics-evaluation es6id: 12.3.5.1 features: [object-spread] flags: [gene...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/super/call-spread-obj-mult-spread.js
JavaScript
bsd-2-clause
1,479
var tap = require('tap'), plan = tap.plan, test = tap.test, parser = require('../index'); var cfg53 = new parser.parser( { String: "got = 1\nhave = '$got'", InterPolateVars: true, AllowSingleQuoteInterpolation: true } ); var hash53 = cfg53.getall(); test("test AllowSingleQuoteInterpolation", function(t) {...
dshadowwolf/config-general
t/29-test-allowsinglequoteinterpolation.js
JavaScript
bsd-2-clause
416
// Generated by CoffeeScript 1.9.3 /** * * @module cnode/view * @author vfasky <vfasky@gmail.com> */ (function() { "use strict"; var api, mcore; mcore = require('mcoreExt'); api = require('./api'); module.exports = mcore.View.subclass({ constructor: mcore.View.prototype.constructor, beforeIn...
vfasky/mcore
example/cnodejs/js/pack/cnode/1.0.0/src/view.js
JavaScript
bsd-2-clause
394
// Sorting the columns /** * @author zhixin wen <wenzhixin2010@gmail.com> * version: 1.10.1 * https://github.com/wenzhixin/bootstrap-table/ */ !function ($) { 'use strict'; // TOOLS DEFINITION // ====================== var cachedWidth = null; // it only does '%s', and return '' when argument...
ZombieHippie/cream
public/script/tablesorting.js
JavaScript
bsd-2-clause
100,297
/** * @module ol/layer/MapboxVector */ import BaseEvent from '../events/Event.js'; import EventType from '../events/EventType.js'; import GeometryType from '../geom/GeometryType.js'; import MVT from '../format/MVT.js'; import RenderFeature from '../render/Feature.js'; import SourceState from '../source/State.js'; imp...
ahocevar/ol3
src/ol/layer/MapboxVector.js
JavaScript
bsd-2-clause
18,944
var mongoose = require('mongoose'); module.exports = function (config) { mongoose.connect(config.db); var db = mongoose.connection; db.on('error', console.error.bind(console, 'connection error...')); db.once('open', function callBack() { console.log('multivision is opened'); }); var u...
dimylik/mean
server/config/mongoose.js
JavaScript
bsd-2-clause
850
/** * Copyright 2015 Fabian Grutschus. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of condition...
fabiang/mink-javascript-errors
src/ErrorHandler.js
JavaScript
bsd-2-clause
3,639
// This file was generated by silverstripe/cow from client/lang/src/el.js. // See https://github.com/tractorcow/cow for details if (typeof(ss) === 'undefined' || typeof(ss.i18n) === 'undefined') { if (typeof(console) !== 'undefined') { // eslint-disable-line no-console console.error('Class ss.i18n not defined'); ...
jonom/silverstripe-cms
client/lang/el.js
JavaScript
bsd-3-clause
1,533
import React from "react"; import Image from "@times-components/image"; import styleFactory from "./styles"; import propTypes from "./proptypes"; const MastHead = ({ publicationName, breakpoint }) => { let uri = "https://www.thetimes.co.uk/d/img/leaders-masthead-d17db00289.png"; let aspectRatio = 1435 / 250; let...
newsuk/times-components
packages/edition-slices/src/slices/leaders/masthead.js
JavaScript
bsd-3-clause
738
(function () { 'use strict'; angular.module('instance-info', ['motech-dashboard', 'instance-info.controllers', 'ngCookies', 'ui.bootstrap']).config( ['$routeProvider', function ($routeProvider) { $routeProvider. when('/instance-info/info', {templateUrl: '../instance-info...
motech/perf
instance-info/src/main/resources/webapp/js/app.js
JavaScript
bsd-3-clause
399
/** * Copyright (c) 2013-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. * * @emails o...
NevilleS/relay
src/traversal/__tests__/writeRelayQueryPayload_defaultNull-test.js
JavaScript
bsd-3-clause
4,160
// menubar.js // top menubar icon const path = require('path'); const db = require('../lib/db'); const switcher = require('../lib/switcher'); const {Tray, Menu} = require('electron').remote; const iconPath = path.join(__dirname, '../../resources/menubar-alt2.png'); let menubar = null; // prevent GC module.exports = ...
mysticflute/blue
src/menu/menubar.js
JavaScript
bsd-3-clause
891
var class_app_store_1_1_models_1_1_category_instance = [ [ "category", "de/d27/class_app_store_1_1_models_1_1_category_instance.html#ac1e8313d7f7d58349cf972f2be0ae365", null ] ];
BuildmLearn/BuildmLearn-Store
WP/doc/DOxygen_HTML/de/d27/class_app_store_1_1_models_1_1_category_instance.js
JavaScript
bsd-3-clause
182
var CoreView = require('backbone/core-view'); var ModalsServiceModel = require('../../../../../javascripts/cartodb3/components/modals/modals-service-model'); var Router = require('../../../../../javascripts/cartodb3/routes/router'); describe('components/modals/modals-service-model', function () { beforeEach(function...
splashblot/dronedb
lib/assets/test/spec/cartodb3/components/modals/modals-service-model.spec.js
JavaScript
bsd-3-clause
3,915
/* * Copyright (c) 2022 Snowplow Analytics Ltd * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list ...
snowplow/snowplow-javascript-tracker
plugins/browser-plugin-youtube-tracking/rollup.config.js
JavaScript
bsd-3-clause
2,950
/** * Shake Table web interface. * * @author Michael Diponio <michael.diponio@uts.edu.au> * @author Jesse Charlton <jesse.charlton@uts.edu.au> * @date 1/6/2013 */ /* ============================================================================ * == Shake Table. ...
jeking3/web-interface
public/uts/shaketable/shaketable.js
JavaScript
bsd-3-clause
37,584
import { select } from '@storybook/addon-knobs'; import readme from '@ovh-ux/ui-kit.button/README.md'; const state = { label: 'State', options: { Normal: '', Disabled: 'disabled', }, default: '', }; export default { title: 'Design System/Components/Buttons/Native/Primary', parameters: { note...
ovh-ux/ovh-ui-kit
packages/apps/workshop/stories/design-system/components/button-native-primary.stories.js
JavaScript
bsd-3-clause
3,190
/// <reference path="../../server.d.ts" /> 'use strict'; module.exports = { ip: process.env.IP || undefined, server: { url: 'http://www.<%= appname %>.com' }<% if (filters.backend === 'mongo') { %>, mongo: { uri: 'mongodb://localhost/<%= slugName %>' }<% } %>, facebook: { ...
NovaeWorkshop/Nova
app/templates/server/config/environment/production.js
JavaScript
bsd-3-clause
465
export const SET_SEARCHED_POKEMONS = "SET_SEARCHED_POKEMONS"; export const SET_SEARCHED_QUERY = "SET_SEARCHED_QUERY"; export const SET_SEARCHED_TYPE = "SET_SEARCHED_TYPE"; export const RESET_SEARCHED_PARAMS = "RESET_SEARCHED_PARAMS"; export const RESET_SEARCHED_POKEMONS = "RESET_SEARCHED_POKEMONS"; export const REMOVE_...
esgiprojetninja/ninjaPokedex
public/js/lib/pokedex/actions/pokeSearchTypes.js
JavaScript
bsd-3-clause
374
describe("go.components.actions", function() { var actions = go.components.actions; var Model = go.components.models.Model; var testHelpers = go.testHelpers, assertRequest = testHelpers.rpc.assertRequest, response = testHelpers.rpc.response, noElExists = testHelpers.noElExists, oneElExis...
praekelt/vumi-go
go/base/static/js/test/components/actions.test.js
JavaScript
bsd-3-clause
6,932
function showMessage(object, message){ if(message == null) message=""; object.text(message); } function getEmptyResultHtml(){ flushEmptyResultHtml(); var html = '<div class="emptyMsg text-center" class="text-center">列表为空</div>'; return html; } function flushEmptyResultHtml(){ $(".emptyMsg").re...
liujiasheng/kuaidishu
public/js/adminCommon.js
JavaScript
bsd-3-clause
1,995
/** * Copyright 2013-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. * * @emails react...
flipactual/react
src/isomorphic/classic/types/__tests__/ReactPropTypes-test.js
JavaScript
bsd-3-clause
37,790
.pragma library var tooltip = null function create(name, value, meta, defaultMargins, x, y, parent) { var component = Qt.createComponent("ToolTip.qml") var properties = {} properties.name = name properties.value = value properties.meta = meta properties.defaultMargins = defaultMargins properties.parentWidth...
e1528532/libelektra
src/tools/qt-gui/qml/TooltipCreator.js
JavaScript
bsd-3-clause
1,067
// @flow import { RNFFmpeg, RNFFprobe, RNFFmpegConfig } from 'react-native-ffmpeg'; import { getHasMultipleFramesProbeCommand } from 'lib/media/video-utils'; import type { Dimensions, FFmpegStatistics, VideoInfo, } from 'lib/types/media-types'; const maxSimultaneousCalls = { process: 1, probe: 1, }; type ...
Ashoat/squadcal
native/media/ffmpeg.js
JavaScript
bsd-3-clause
4,898
/* eslint-env node */ "use strict"; var fluid = require("infusion"); var gpii = fluid.registerNamespace("gpii"); fluid.registerNamespace("gpii.handlebars"); /** * * @typedef PrioritisedPathDef * @property {String} [priority] - The priority for this entry in the final array, relative to other path definitions. ...
the-t-in-rtf/gpii-handlebars
src/js/server/lib/resolver.js
JavaScript
bsd-3-clause
1,883
// usage: log('inside coolFunc', this, arguments); // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function f(){ log.history = log.history || []; log.history.push(arguments); if(this.console) { var args = arguments, newarr; args.callee = args.callee.caller; newarr = [].slice.call(args); if ...
inkasjasonk/rs
research/base/static/js/plugins.js
JavaScript
bsd-3-clause
3,480
/** * Pimcore * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.pimcore.org/license * * @copyright Copyright (c) 2009-2010 elements.at New Media Solutions ...
clime/pimcore-custom
static/js/pimcore/object/tags/checkbox.js
JavaScript
bsd-3-clause
2,339
// Box sizing in JavaScript // Copyright 2011 Google Inc. // see Purple/license.txt for BSD license // johnjbarton@google.com define(['lib/nodelist/nodelist'], function (nodelist){ var Flexor = {}; Flexor.getChildernByClassName = function(parentBox, classname) { var hboxes = []; parentBox.childNodes....
johnjbarton/Purple
ui/flexor.js
JavaScript
bsd-3-clause
2,344
/** * marked - a markdown parser * Copyright (c) 2011-2013, Christopher Jeffrey. (MIT Licensed) * https://github.com/chjj/marked * * @providesModule Marked * @jsx React.DOM */ /* eslint-disable sort-keys */ const React = require('React'); const Prism = require('Prism'); const Header = require('Header'); /** ...
mpontus/jest
website/core/Marked.js
JavaScript
bsd-3-clause
23,888
'use strict'; angular.module('authApp') .controller('LogoutCtrl', function ($scope, $location, djangoAuth) { djangoAuth.logout(); });
LABETE/TestYourProject
staticfiles/js/controllers/logout.js
JavaScript
bsd-3-clause
143
// This file was generated by silverstripe/cow from javascript/lang/src/fi.js. // See https://github.com/tractorcow/cow for details if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') { if(typeof(console) != 'undefined') console.error('Class ss.i18n not defined'); } else { ss.i18n.addDictionary('fi', { ...
icecaster/advancedworkflow
javascript/lang/fi.js
JavaScript
bsd-3-clause
766
"use strict"; const debug = require('debug')('ipc-stream'); const EventEmitter = require('events'); class IPCStream extends EventEmitter { // otherWindowId is the id of the window // channelId is the id of the service you want to communicate wth // running in that other window constructor(closeFn, remote, loc...
greggman/other-window-ipc
lib/ipc-stream.js
JavaScript
bsd-3-clause
1,463
// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. function onCursor() { var cursor = event.target.result; if (cursor === null) { debug('Reached end of object cursor.'); if (!gotObjectThrou...
aYukiSekiguchi/ACCESS-Chromium
chrome/test/data/indexeddb/index_test.js
JavaScript
bsd-3-clause
3,877
webpack = require('webpack') const path = require('path'); var CompressionPlugin = require("compression-webpack-plugin"); module.exports = { context: __dirname + '/source', entry: { javascript: './application.js', html: './index.html' }, loader: { appSettings: { env:...
phorque/ac2-frontend
webpack-prod.config.js
JavaScript
bsd-3-clause
2,933
/** * echarts图表类:仪表盘 * * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。 * @author Kener (@Kener-林峰, linzhifeng@baidu.com) * */ define(function (require) { var ComponentBase = require('../component/base'); var ChartBase = require('./base'); // 图形依赖 var GaugePointerShape = requ...
shaisxx/echarts
src/chart/gauge.js
JavaScript
bsd-3-clause
21,902
'use strict'; const assert = require('assert'); const { Observable } = require('rx-lite'); /** * * @param {Rx.Observable} observable * @param {function} fn * @returns {Rx.IPromise<void>} */ function checkError(observable, fn) { const OK = {}; return observable .catch(err => { fn(err); return...
groupon/shared-store
test/check-error.js
JavaScript
bsd-3-clause
468
/** * Keydown * */ module.exports = function() { /* * this swallows backspace keys on any non-input element. * stops backspace -> back */ var rx = /INPUT|SELECT|TEXTAREA/i; $('body').bind("keydown keypress", function(e) { var key = e.keyCode || e.which; if( key == 8) {...
vulcan-estudios/bsk
src/app/helpers/events/keypress/backspace.js
JavaScript
bsd-3-clause
552
/* @flow */ 'use strict'; import { document } from '../dom/dom'; export default function () : boolean { return Boolean( (document) && (typeof document.querySelector !== 'undefined') ); }
cinecove/defunctr
lib/checks/hasQuerySelectorCheck.js
JavaScript
bsd-3-clause
201
var cdb = require('cartodb.js'); var $ = require('jquery'); var DatasetItem = require('./dataset_item_view'); var Utils = require('cdb.Utils'); var UploadConfig = require('../../../../background_importer/upload_config'); var pluralizeString = require('../../../../view_helpers/pluralize_string'); /** * Remote dataset...
raquel-ucl/cartodb
lib/assets/javascripts/cartodb/common/dialogs/create/listing/datasets/remote_dataset_item_view.js
JavaScript
bsd-3-clause
3,614
var a00494 = [ [ "calculate_nnz", "a00494.html#aca63ccfbd14352eade58fd2a2ec6b5e4", null ], [ "nnz_internal", "a00494.html#a710993cf2d56652448517817943ad10f", null ], [ "optimizeWildfire", "a00494.html#adc947c65dcf861c33a24399614c0791a", null ], [ "optimizeWildfire", "a00494.html#a33509e7a55b46fe677e682d...
devbharat/gtsam
doc/html/a00494.js
JavaScript
bsd-3-clause
523
'use strict'; angular.module('app.controllers', []) .controller('HomeController', ['$scope','CountryFactory', function($scope, CountryFactory){ $scope.paisSeleccionado = []; CountryFactory.getAllCountries(); $scope.mostrarPaises = function(){ CountryFactory.getAllCountries(); var countries = CountryFactory.get...
UsuarioCristian/basic2015
api/assets/js/controllers/controllers.js
JavaScript
bsd-3-clause
450
/* * DisplayObject by Grant Skinner. Dec 5, 2010 * Visit http://easeljs.com/ for documentation, updates and examples. * * * Copyright (c) 2010 Grant Skinner * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal...
PaulWoow/HTML5JUEGOGRAFICACION
Mini Valle PaJou/libs/easeljs/display/DisplayObject.js
JavaScript
bsd-3-clause
21,794
function installthis(id) { var answer = confirm('Are you sure ? '); if (answer){ //delete img... $.post(base_url+'/zfmodules/index/installmod/id/'+id, function(data){ window.location.reload(false); }); } } ...
samsonasik/zf_111_support_php532_with_modulewizard
public/themes/zend_prj/js/modules/modules.js
JavaScript
bsd-3-clause
751
$(function(){ function openPanel(){ require(['panel']); $('#admin_link').hide(); } if($.cookie('grass_panel')){ openPanel(); } $('#admin_link').on('click', function(e){ e.preventDefault(); openPanel(); }); }); require.config({ baseUrl: 'media/scripts'...
grnrbt/grass
web/media/scripts/link.js
JavaScript
bsd-3-clause
781
/** * @decription mock file config * * 该文件实现路由的配置,在没有test准备好的情况下可以直接走这个mock数据 * key: 为要匹配的路由 * value: 为对应的参数配置 * method: get或者post,router的方法 * filename: 对应的mock文件 */ module.exports = { '/api/realtime': { method: "post", filename: "realtime.js" } };
changfuguo/vuejs-boilerplate
server/config/route.js
JavaScript
bsd-3-clause
383
$(document).ready(function(){ // Navigation var body_class = document.body.className; var hover_on_bg = "#c00"; var hover_on_co = "#fff"; var hover_off_bg = "#fff"; var hover_off_co = "#444"; var hover_delay = 200; $("#navigation li a").removeClass("hover"); $("#navigation li").each(function(...
richardcornish/cyndiloza
cyndiloza/static/js/site.js
JavaScript
bsd-3-clause
1,360
$(function() { JQTWEET = { // Set twitter hash/user, number of tweets & id/class to append tweets // You need to clear tweet-date.txt before toggle between hash and user // for multiple hashtags, you can separate the hashtag with OR, eg: search: '', //leave this blank if y...
Amaceika/TowerWall
twitter-oauth/jquery.jstwitter.js
JavaScript
bsd-3-clause
6,798
CodeMirror.ternLint = function(cm, updateLinting, options) { function addAnnotation(error, found) { var startLine = error.startLine; var startChar = error.startChar; var endLine = error.endLine; var endChar = error.endChar; var message = error.message; found.push({ from : error.start, ...
daniel-lundin/tern-snabbt
demos/resources/tern-lint/codemirror/addon/lint/tern-lint.js
JavaScript
mit
952
/** * Fixes an issue with Bootstrap Date Picker * @see https://github.com/angular-ui/bootstrap/issues/2659 * * How does it work? AngularJS allows multiple directives with the same name, * and each is treated independently though they are instantiated based on the * same element/attribute/comment. * * So this di...
manekinekko/ng-admin
src/javascripts/ng-admin/Crud/field/datepickerPopup.js
JavaScript
mit
823
/* YUI 3.7.2 (build 5639) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('editor-base', function (Y, NAME) { /** * Base class for Editor. Handles the business logic of Editor, no GUI involved only utility methods and events. * ...
spadin/coverphoto
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/editor-base/editor-base-debug.js
JavaScript
mit
32,357
/** * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
aggiedefenders/aggiedefenders.github.io
node_modules/@firebase/firestore/dist/esm/src/local/persistence_promise.js
JavaScript
mit
6,111
MainIndexEstablishmentsListView = Backbone.View.extend({ events: { 'click .nav': 'navigate' }, initialize: function () { this.listenTo(this.collection, 'reset', this.render); }, render: function (e) { this.$el.html(''); if (this.collection.length > 0) { this.collection.each(function (establi...
sealocal/yumhacker
app/assets/javascripts/views/main/index_establishments_list_view.js
JavaScript
mit
825
var rules = module.exports = []; function Checker(name, rule) { this.name = name; this.rule = rule; this.check = function(results) { var violations = [], that = this; results.filter(function(result) { return result.shortName !== '[[code]]'; }).forEach(function (result) ...
yubin-huang/jscheckstyle
lib/rules.js
JavaScript
mit
1,979
const fs = require('fs'); const path = require('path'); const yoHelper = require('yeoman-test'); const yoAssert = require('yeoman-assert'); const generatorPath = '../packages/generator-emakinacee-react/generators/compute'; describe('Compute', () => { describe('without module', () => { before(() => { ...
emakina-cee-oss/generator-emakinacee-react
test/compute.test.js
JavaScript
mit
3,309
(function () { var KEY = { ENTER: 13, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40 }; function normalizeTokens(tokens) { return tokens.filter(function (token) { return !!token; }).map(function (token) { return t...
bosonic-labs/b-autocomplete
dist/b-autocomplete.js
JavaScript
mit
12,927
const template = require("../../../layouts/hbs-loader")("base.ftl"); module.exports = template({ body: require("./html/body.ftl") });
chenwenzhang/frontend-scaffolding
src/pages/freemarker/index/html.js
JavaScript
mit
137
Jx().package("T.UI.Controls", function(J){ // 严格模式 'use strict'; var _crrentPluginId = 0; var defaults = { // 选项 // fooOption: true, // 覆写 类方法 // parseData: undefined, // 事件 // onFooSelected: undefined, // onFooChange: function(e, data){} ...
staticmatrix/Triangle
src/framework/controls/dtpicker/dtpicker.js
JavaScript
mit
82,149
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormField = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descript...
RWOverdijk/aurelia-form
dist/commonjs/component/form-field.js
JavaScript
mit
6,802
'use strict'; angular.module('contactServices', []) // Factory responsible for assembling the form data before it's passed over the php .factory('assembleFormDataService', function(){ return { populateFormData: function(fname, lname, address, city, zipcode, mnumber, lnumber, relation, email, photoSubmit){ var f...
andrewwiik/VTHSCompSciClub
admin/contacts/js/contactServices.js
JavaScript
mit
1,741
/* * The MIT License * * Copyright 2017 kuniaki. * * 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...
sugiuraii/WebSocketGaugeClientNeo
src/index/webpack.config.js
JavaScript
mit
3,486
var searchData= [ ['basepath',['BASEPATH',['../index_8php.html#ad39801cabfd338dc5524466fe793fda9',1,'index.php']]] ];
forstermatth/LIIS
refman/search/variables_62.js
JavaScript
mit
120
// 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
current/test/parallel/test-repl-tab-complete.js
JavaScript
mit
19,230
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, Link, browserHistory } from 'react-router'; import App from './App'; import NotFound from './Pages/NotFound/NotFound'; import Users from './Pages/Users/Users'; import Chats from './Pages/Chats/Chats'; import './index.css'; ReactDOM....
ParkDyel/practice
WebDev/FE/JS/Reactjs/PRWF/src/index.js
JavaScript
mit
599
/** * @license * Visual Blocks Editor * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * 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.apach...
NTUTVisualScript/Visual_Script
static/javascript/blockly/core/events.js
JavaScript
mit
11,197
var x = require("x-view"); var Raw = x.createClass({ propTypes: { html: x.type.string }, init: function() { x.event.on(this, "updated", this.updateHTML); }, updateHTML: function() { this.root.innerHTML = this.props.html; } }); x.register("x-raw", Raw);
lixiaoyan/x-view
tags/raw.js
JavaScript
mit
279
type SerializeOptions = { domain?: string, encode?: (stringToDecode: string) => string, expires?: Date, httpOnly?: boolean, maxAge?: number, path?: string, sameSite?: boolean | 'lax' | 'strict', secure?: boolean, ... }; type ParseOptions = { // Library itself does not specify output for decode functi...
flowtype/flow-typed
definitions/npm/cookie_v0.3.x/flow_v0.104.x-/cookie_v0.3.x.js
JavaScript
mit
711
/** * -------------------------------------------------------------------------- * Bootstrap (v4.3.1): dom/selector-engine.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) * -------------------------------------------------------------------------- */ import { find as findFn, findOn...
stanwmusic/bootstrap
js/src/dom/selector-engine.js
JavaScript
mit
2,277
version https://git-lfs.github.com/spec/v1 oid sha256:9e5db06495724b6fedb3e06776242c7ddb55da8532eb678a5a5b88757b8108df size 1211
yogeshsaroya/new-cdnjs
ajax/libs/mathjax/1.1a/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js
JavaScript
mit
129
var spawn = require('child_process').spawn, Promise = require('bluebird'), uuid = require('node-uuid'), path = require('path'), fs = require('fs'), mkdirp = require('mkdirp'), _ = require('underscore'), fs = require('fs'), Sftp = require('sftp-upload'); var rosettaExecutable = path.join(__dirname, '../...
DURAARK/microservice-sipgenerator
bindings/rosetta/app.js
JavaScript
mit
5,477
import elem from "./_elem.js"; import clrPckr from "./_color-picker.js"; var s, x, y, z, colorNum = 0, arrMap = [], c = document.getElementById("canvasGrid"), ctx = c.getContext("2d"); var grid = { //create grid and create boxes createGridIllustrator: () => { //module for creating a g...
CharlieGreenman/pixelatorV2_with_react
app/js/_grid.js
JavaScript
mit
3,948
'use strict'; //https://gist.github.com/yannickcr/6129327b31b27b14efc5 const instrumenter = require('isparta').Instrumenter; module.exports = function (gulp, $, {src, testSrc, requires, coverageDir, disableCoverage}) { const runTest = function runTest() { return gulp.src(testSrc, {read: false}) ...
k-sheth/hapi-getting-started
tasks/test.js
JavaScript
mit
1,713
"use strict"; /* * ooiui/static/js/views/science/HighChartsStreamingDataView.js */ var HighchartsStreamingContainerView = Backbone.View.extend({ subviews : [], showControls: true, initialize: function(options) { if (options && 'showControls' in options){ this.showControls = options.show...
FBRTMaka/ooi-ui
ooiui/static/js/views/science/HighChartsStreamingDataView.js
JavaScript
mit
23,076
/* * homeController.js * Jami Boy Mohammad */ var homeController = angular.module('homeController', []); homeController.controller('homeController', function($scope) { });
jamiboy16/bearded-ninja
public/app/components/home/homeController.js
JavaScript
mit
179
'use strict'; /**@type {{[k: string]: string}} */ let BattleAliases = { // formats "randbats": "[Gen 8] Random Battle", "uber": "[Gen 8] Ubers", "ag": "[Gen 8] Anything Goes", "mono": "[Gen 8] Monotype", "randdubs": "[Gen 8] Random Doubles Battle", "doubles": "[Gen 8] Doubles OU", "dubs": "[Gen 8] Doubles OU",...
QuiteQuiet/Pokemon-Showdown
data/aliases.js
JavaScript
mit
43,883
import { moduleForComponent, test } from 'ember-qunit'; import wait from 'ember-test-helpers/wait'; import hbs from 'htmlbars-inline-precompile'; import startMirage from '../../helpers/setup-mirage'; moduleForComponent('data-table', 'Integration | Component | data table', { integration: true, setup: function() { ...
quantosobra/ember-data-table-light
tests/integration/components/data-table-test.js
JavaScript
mit
602
import {useEntryStateConfig} from "./EntryStateProvider"; /** * Returns an object containing theme asset paths. * * @example * * const theme = useTheme(); * theme // => * { * assets: { * logoDesktop: 'path/to/logoDesktop.svg', * logoMobile: 'path/to/logoMobile.svg' * }, * options:...
tf/pageflow
entry_types/scrolled/package/src/entryState/theme.js
JavaScript
mit
548
// this exports a "masked" version of the WrapUp class. var WrapUp = require("./wrapup") module.exports = function(x){ return new WrapUp(x) }
kentaromiura/sugo
node_modules/wrapup/node_modules/prime/cov/node_modules/wrapup/lib/main.js
JavaScript
mit
145
import * as React from 'react'; import PropTypes from 'prop-types'; import debounce from '../utils/debounce'; import useForkRef from '../utils/useForkRef'; import useEnhancedEffect from '../utils/useEnhancedEffect'; import ownerWindow from '../utils/ownerWindow'; function getStyleValue(computedStyle, property) { ret...
callemall/material-ui
packages/material-ui/src/TextareaAutosize/TextareaAutosize.js
JavaScript
mit
6,538
version https://git-lfs.github.com/spec/v1 oid sha256:ec9603f026a2a1295d751178e7e48bf8b945506e9b05818112c5166e1e950a67 size 9557
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.8.0/calendarnavigator/calendarnavigator.js
JavaScript
mit
129
/** * Converts an RGB color value to HSL. Conversion formula * adapted from http://en.wikipedia.org/wiki/HSL_color_space. * Assumes r, g, and b are contained in the set [0, 255] and * returns h, s, and l in the set [0, 1]. * * @param Number r The red color value * @param Number g The green colo...
ericoporto/Pixel.Tools
color_conversion.js
JavaScript
mit
3,896
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-...
oliviertassinari/material-ui
packages/mui-icons-material/lib/esm/CopyrightRounded.js
JavaScript
mit
915
/** * ELASTICSEARCH CONFIDENTIAL * _____________________________ * * [2014] Elasticsearch Incorporated All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Elasticsearch Incorporated and its suppliers, * if any. The intellectual and technical concepts contained ...
ashnewport/elasticsearch
kibana-5.0.2-linux-x86_64/plugins/x-pack/plugins/monitoring/public/directives/shard_allocation/lib/labels.js
JavaScript
mit
1,250
/** * OnFire * Copyright (c) 2013 - 2015 Itzy Sabo * Licensed under the MIT License: https://github.com/isabo/onfire/blob/master/LICENSE */ var onfire = {}; /** * An analogue of a Firebase reference. * @see https://www.firebase.com/docs/web/api/firebase/constructor.html * * @param {string|!Firebase} urlOrRe...
isabo/onfire
src/externs/outgoing/onfire-externs.js
JavaScript
mit
28,432
// ========================================================================== // Project: SproutCore Metal // Copyright: ©2011 Strobe Inc. and contributors. // License: Licensed under MIT license (see license.js) // ========================================================================== /*globals sc_assert */ re...
crofty/sensor_js_message_parsing
vendor/sproutcore-metal/lib/observer.js
JavaScript
mit
4,614
'use strict'; System.register('flarum/akismet/components/AkismetSettingsModal', ['flarum/components/SettingsModal'], function (_export, _context) { var SettingsModal, AkismetSettingsModal; return { setters: [function (_flarumComponentsSettingsModal) { SettingsModal = _flarumComponentsSettingsModal.defaul...
namjoker/flarumfull
vendor/flarum/flarum-ext-akismet/js/admin/dist/extension.js
JavaScript
mit
2,370
module.exports = function createItemTweet (url, user, callback) { var fs = require("fs"); var https = require('https'); var models = require('../../models'); var itemTypes = require('../../models/item/itemTypes.json'); var tweetUrl = url; var options = { host: 'publish.twitte...
OlivierCoue/invow
server/helpers/item-content/createItemTweet.js
JavaScript
mit
1,490
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","cs",{title:"Instrukce pro přístupnost",contents:"Obsah nápovědy. Pro uzavření tohoto dialogu stiskněte klávesu ESC.",l...
rikzuiderlicht/concrete5
concrete/js/ckeditor4/vendor/plugins/a11yhelp/dialogs/lang/cs.js
JavaScript
mit
4,851
/** * Context Object * * @author Zongmin Lei<leizongmin@gmail.com> */ var utils = require('./utils'); var parser = require('./parser'); var filters = require('./filters'); var vm = require('./vm'); var OPCODE = require('./opcode'); var debug = utils.debug('Context'); var merge = utils.merge; /** * Context * *...
jddeeds/jddeeds.github.io
node_modules/tinyliquid/lib/context.js
JavaScript
mit
16,661
const { assign } = require('lodash') const proxyquire = require('proxyquire') const contact = require('../../../../../test/unit/data/contacts/contact.json') describe('Contact controller', () => { beforeEach(() => { this.getContactStub = sinon.stub().resolves(contact) this.getDitCompanyStub = sinon.stub().re...
uktrade/data-hub-fe-beta2
src/apps/contacts/controllers/__test__/details.test.js
JavaScript
mit
3,180
const inherits = require('util').inherits const async = require('async') const ethUtil = require('ethereumjs-util') const Account = require('ethereumjs-account') const FakeMerklePatriciaTree = require('fake-merkle-patricia-tree') const VM = require('./index.js') const ZERO_BUFFER = new Buffer('0000000000000000000000000...
giulidb/ticket_dapp
node_modules/ethereumjs-vm/lib/hooked.js
JavaScript
mit
5,536
title('Entity-relationship diagram.'); description('Make your database structure visible.'); dimension(800, 250); var erd = Joint.dia.erd; Joint.paper("world", 800, 250); var e1 = erd.Entity.create({ rect: { x: 220, y: 70, width: 100, height: 60 }, label: "Entity" }); var e2 = erd.Entity.create({ rect: { x: 520...
dee-bee/decisionz
decisionz/lib/JointJS/www/demos/erd.js
JavaScript
mit
1,130
"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/AccountCircleOutlined.js
JavaScript
mit
934
/* Ratings and how they work: -2: Extremely detrimental The sort of ability that relegates Pokemon with Uber-level BSTs into NU. ex. Slow Start, Truant -1: Detrimental An ability that does more harm than good. ex. Defeatist, Normalize 0: Useless An ability with no net effect on a Pokemon during a bat...
Raina4uberz/Showdown-light
data/abilities.js
JavaScript
mit
120,010
/* @flow */ import SelectListView from "atom-select-list"; import store from "./store"; import _ from "lodash"; import tildify from "tildify"; import WSKernel from "./ws-kernel"; import { kernelSpecProvidesGrammar } from "./utils"; import type Kernel from "./kernel"; function getName(kernel: Kernel) { const prefi...
rgbkrk/hydrogen
lib/existing-kernel-picker.js
JavaScript
mit
2,362