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
define(['exports', 'actions/actions'], function (exports, _actions) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const entityAdderValidatingMiddleware = ({ getState, dispatch }) => next => action => { var state = getState(); switch (action.type) { case _act...
Muzietto/react-playground
combo_boxes/twopages_es6/dist/middleware/entityAdderValidatingMiddleware.js
JavaScript
gpl-3.0
1,028
angular.module("player") .factory("player.Player", [ function () { // eslint-disable-line indent "use strict"; return class Player { constructor(color) { this.human = true; this.color = color; this.score = 0; this.justConsumedSegment = null; } play() { // eslint-disable-line...
sp00m/clozone
public/modules/player/Player.domain.js
JavaScript
gpl-3.0
644
Ext.define('Testprok.view.usermanagement.admin.AdminUserManagement', { extend : 'Ext.tab.Panel', requires : ['Testprok.view.usermanagement.admin.UserPasswordReset', 'Testprok.view.usermanagement.admin.AddUserDetails', 'Testprok.view.usermanagement.admin.ViewUser'], xtype : 'adminUserMainVie...
applifireAlgo/appDemoApps201115
testprok/src/main/webapp/app/view/usermanagement/admin/AdminUserManagement.js
JavaScript
gpl-3.0
817
var assert = require('assert'); var expect = require('chai').expect; var plugin = require('./multipleSubnets'); const createCache = (vcnErr, subnetErr, vcnData, subnetData) => { return { regionSubscription: { "list": { "us-ashburn-1": { "data": [ ...
cloudsploit/scans
plugins/oracle/networking/multipleSubnets.spec.js
JavaScript
gpl-3.0
20,576
const { Resolvable } = require("../base"); class Query extends Resolvable { constructor(def) { super("query", def); } wrap(fn) { return super.wrapQuery(fn); } } module.exports = Query;
anhldbk/graphqly
lib/schema/query.js
JavaScript
gpl-3.0
196
const sql = require('./sql'); const fetch = require('node-fetch'); /** * 管理界面 */ const query = ` myclass:[class_info]! mystudent(clsid:Int!):[student_info]! `; const typeDefs = ` type class_info{ name:String, clsid:Int } type student_info{ name:String, lastcommit:St...
JohnCrash/voxel
server/qgl_mgr.js
JavaScript
gpl-3.0
2,064
const test = require('tape') const { createWindow, connectUser, setupDB, teardownDB, teardownAndError, getTeardownHandlers } = require('../_utils') test('duplicate', t => { const nightmare = createWindow(false) const { onEnd, onError } = getTeardownHandlers(t, ...
goodenough/mosaico
tests/functional/home-user.js
JavaScript
gpl-3.0
7,398
/******************************************************************************* * Copyright (c) 2006, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distributio...
aktion-hip/relations
org.elbe.relations.help.base/resources/js/helptreechildren.js
JavaScript
gpl-3.0
9,311
var o=void 0,t=!0,u=null,y=!1; window.$=window.jquip=function(){function b(a,d,e){if(a===d)return e;for(a=a.nextSibling;a;){if(a===d)return-1;a=a.nextSibling}return 1}function B(a,d){for(var e,i=0,Ba=X.length;i<Ba;i++)if(X[i].apply(this,arguments))return this;if(!a)return this;if(g(a))return ga?a():Y.push(a),this;if(p(...
aptivate/pyquip
pyquip/static/js/jquip/dist/jquip.all.closure-advanced.js
JavaScript
gpl-3.0
31,646
var searchData= [ ['valuedeviationattribute_2ecpp',['valuedeviationattribute.cpp',['../valuedeviationattribute_8cpp.html',1,'']]], ['valuedeviationattribute_2eh',['valuedeviationattribute.h',['../valuedeviationattribute_8h.html',1,'']]] ];
pbosilj/trees-lib
doxygen/html/search/files_9.js
JavaScript
gpl-3.0
244
{"exchanges":[{"info":[{"onclick":null,"link":null,"value":"+81-3 -6262 -0940"},{"onclick":null,"link":"mailto:info@mfeed.ad.jp","value":"info@mfeed.ad.jp"},{"onclick":"window.open(this.href,'ix-new-window');return false;","link":"http://www.jpnap.net/english/jpnap-osaka/index.html","value":"Website"},{"onclick":null,"...
brangerbriz/webroutes
nw-app/telegeography-data/internetexchanges/buildings/19265.js
JavaScript
gpl-3.0
521
/* * File: nyancat.js * Version 0.1.0 * Maintainer: Shintaro Kaneko <kaneshin0120@gmail.com> * Last Change: 22-Aug-2012. */ (function(window, document) { var getCanvasById = function(id) { var elem = document.getElementById(id); return { self: elem , context: elem.getContext('2d') ...
ntouind/ind.ntou.edu.tw
網站根目錄/welcome/assets/javascripts/nyancat.js
JavaScript
gpl-3.0
18,057
export function toRna(DNA) { const map = { A: 'U', C: 'G', G: 'C', T: 'A', }; return DNA.split('') .map(obj => map[obj]) .join(''); }
ffflorian/exercism
javascript/rna-transcription/rna-transcription.js
JavaScript
gpl-3.0
164
var Circulation = {}; Circulation.tabHandler = function(tab, params) { var fromTab = $('div.tab_selected').attr('rel'); var myParams = params || {}; var userId = myParams[0]; var user = myParams[1] // dont change if we are changing to the same tab if (tab == fromTab) { retu...
Biblivre/Biblivre-3
web/scripts/circulation.js
JavaScript
gpl-3.0
16,535
/* * jQuery Nivo Slider v2.6 * http://nivo.dev7studios.com * * Copyright 2011, Gilbert Pellegrom * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * March 2010 */ (function ($) { var NivoSlider = function (element, options) { va...
jotajunior/lyla
media/js/jquery.nivo.slider.pack.js
JavaScript
gpl-3.0
32,838
$(document).ready(function() { init(); }); /** * Set up necessary listeners and stuff for the page */ function init() { navbar_mouseover_setup(); } /** * Set up the mouse-over for the navbar that allows it to function. */ function navbar_mouseover_setup() { $("#navbar > #nav > li").mouseover(function(...
EGSRIT/EGS-Website
web/js/head/nav.js
JavaScript
gpl-3.0
996
import React from "react"; import PropTypes from "prop-types"; import { StaticPropsContext } from "./static-props-context"; const CommentForm = ({ commentFormType, commentId, formId, handleFormSubmit, handleTextAreaChange, textAreaValue }) => { // comment form's title text let formTitle = "Post Comme...
publiclab/plots2
app/javascript/components/CommentForm.js
JavaScript
gpl-3.0
3,598
"use strict"; const isValidPath = require("is-valid-path"); class InitPathWindow extends Window { constructor() { super("init-path"); this.$("choose-path-button").addEventListener("click", () => { this.$("data-path").value = dialogWindow.chooseDataPath( this.$("data...
Phxstick/acnicoy
js/windows/init-path-window.js
JavaScript
gpl-3.0
849
'use strict'; const expect = require('chai').expect; const fs = require('fs'); const Board = require('../src/board'); const Perft = require('../src/perft'); describe('perft', () => { let board; let perft; let epd = fs.readFileSync('suites/epd/perftsuite-fast.epd', 'utf8'); let perftTests = epd.split('...
joeyrobert/ceruleanjs
test/perft.test.js
JavaScript
gpl-3.0
943
/** * @constructor * @param {Object} entity JSON of a WD entity */ WD.Entity = function(entity) { this.entity = entity; } /** * Gets the array of property's values. If not found, returns undefined. * @private * @param {String} prop a property PID (like 'P279') * @return {Array<object>|undefined} Array of JS...
cdrini/wikidata-spiral
js/WD/Entity.js
JavaScript
gpl-3.0
2,429
import CommentsPackage from './CommentsPackage' import {registerPlugin} from 'writer' export default () => { if (registerPlugin) { registerPlugin(CommentsPackage) } else { console.error("Register method not yet available"); } }
FDMediagroep/webwriter-plugins
plugins/nl.fdmg.comments/index.js
JavaScript
gpl-3.0
243
window.mn = window.mn || {}; ( function ( mn, $ ) { 'use strict'; var $containerPolite, $containerAssertive; /** * Update the ARIA live notification area text node. * * @since 4.2.0 * @since 4.3.0 Introduced the 'ariaLive' argument. * * @param {String} message The message to be announced by Assisti...
mtaandao/Framework
res/js/mn-a11y.js
JavaScript
gpl-3.0
2,188
/*///////////////////////////////////////////////////////////////////////////// // // // All Mangas Reader : Follow updates of your favorite mangas sites. // // Copyright (c) Enter here your copyright mention... // ...
AllMangasReader-dev/mirrors
Animexis.js
JavaScript
gpl-3.0
9,761
/* Copyright (C) 2016 PencilBlue, LLC This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is...
v3rt1go/respiro
plugins/pencilblue/controllers/actions/admin/users/edit_user.js
JavaScript
gpl-3.0
2,580
define(['app'], function (app) { app.controller('TemperatureController', [ '$scope', '$rootScope', '$location', '$http', '$interval', 'permissions', function($scope,$rootScope,$location,$http,$interval,permissions) { MakeFavorite = function(id,isfavorite) { if (!permissions.hasPermission("Admin")) { ...
sleveque/domoticz
www/app/TemperatureController.js
JavaScript
gpl-3.0
42,279
function removeActionId (id) { if (id) { return id.replace(/---.*?$/, '') } } export default removeActionId
queryluke/masseffect-5e
plugins/filters/removeActionId.js
JavaScript
gpl-3.0
117
/** * Services in charge of removing/adding records */ ngAppModule.service('appService', function ($http) { // Delete option function var deleteFormOption = function (itemId, callback) { // Here is where you're supposed to // implement your service to delete items from your databa...
juliomolinero/angular-modal-notify
ngAppService.js
JavaScript
gpl-3.0
511
import classic from 'ember-classic-decorator'; import { filterBy } from '@ember/object/computed'; import Service, { inject as service } from '@ember/service'; import RefParser from 'json-schema-ref-parser'; import request from 'ember-ajax/request'; import { task, all, timeout } from 'ember-concurrency'; import { // i...
adiwg/mdEditor
app/services/schemas.js
JavaScript
gpl-3.0
2,525
/* * NAME * * statistics-distributions.js - JavaScript library for calculating * critical values and upper probabilities of common statistical * distributions * * SYNOPSIS * * * // Chi-squared-crit (2 degrees of freedom, 95th percentile = 0.05 level * chisqrdistr(2, .05) * * // u-crit (95t...
slfan2013/mETABOX.Stat
inst/www/js/statistics-distributions.js
JavaScript
gpl-3.0
12,572
'use strict'; const O = require('ose')(module) .class('./index') ; var Consts = O.consts('control'); /** Doc {{{1 * @submodule control.pin */ /** * @caption Digital input pin response socket * * @readme * Setup of digital input pin. * * @class control.lib.pin.din * @type extend */ // Public {{{1 export...
OpenSmartEnvironment/ose-control
lib/pin/ain.js
JavaScript
gpl-3.0
997
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'templates', 'bg', { button: 'Templates', // MISSING emptyListMsg: '(No templates defined)', // MISSING insertOption: 'Replace actual contents', ...
tsmaryka/hitc
public/javascripts/ckeditor/plugins/templates/lang/bg.js
JavaScript
gpl-3.0
498
var CollectionBridge=new function(){function n(n){var t=o.length;for(o[t]={},Count=0;Count<n.length;Count++)o[t][Count]=n[Count]}function t(){n(BridgePaths)}var o=[];t(),this.BridgeExists=function(n){var t="";return 0!=o.length&&(t=o[0][n],void 0==t&&(t="")),t}};
Gyrospring/gyrospring.github.io
script/tpp/collection/bridge.min.js
JavaScript
gpl-3.0
263
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * ...
Lethrir/Neo4JDemo
node_modules/neo4j/node_modules/streamline/lib/callbacks/format.js
JavaScript
gpl-3.0
13,423
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import Loader from 'jsx/Loader'; import FilterableDataTable from 'jsx/FilterableDataTable'; /** * Profiles Component. * * @description Genomic Browser Profiles tab. * * @author Alizée Wickenheiser * @version 1.0.0 * */ class Profiles e...
driusan/Loris
modules/genomic_browser/jsx/tabs_content/profiles.js
JavaScript
gpl-3.0
6,019
Fox.define('views/email/fields/from-address-varchar', 'views/fields/varchar', function (Dep) { return Dep.extend({ detailTemplate: 'email/fields/email-address-varchar/detail', setup: function () { Dep.prototype.setup.call(this); this.on('render', function () { ...
ilovefox8/zhcrm
client/src/views/email/fields/from-address-varchar.js
JavaScript
gpl-3.0
6,352
/** * ownCloud - CRATEit App * * @author Lloyd Harischandra * @copyright 2014 University of Western Sydney www.uws.edu.au * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation;...
digitalbridge/CRATEit
apps/crate_it/js/loader.js
JavaScript
gpl-3.0
4,618
$(function() { var UNITTEST = {}; //create namespace object for temporary unittest properties executeTests([ ["load schema from examples.001/team.001.rng", function(){ UNITTEST.grammar = YOURX.ThingyUtil.url2rule("schema/yourx/examples.001/team.001.rng"); var rule, rulechild0, rulechild1; return (UNITTEST....
cefn/allyourx
allyourx/test/js/yourx.unit.js
JavaScript
gpl-3.0
5,953
var NAVTREE = [ [ "EloniFramework", "index.html", [ [ "Classes", null, [ [ "Class List", "annotated.html", "annotated" ], [ "Class Index", "classes.html", null ], [ "Class Members", "functions.html", [ [ "All", "functions.html", null ], [ "Functions", "functions_func.html", null ...
AviiNL/EloniFramework
doc/html/navtree.js
JavaScript
gpl-3.0
15,366
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'), validator = require('validator'), generatePassword = require('generate-password'), owasp = require('owasp-password-strength-test'); owasp.config({ allowPassphrases ...
quell-traum/vtm
modules/users/server/models/user.server.model.js
JavaScript
gpl-3.0
5,077
//code for (single) slider (http://jqueryui.com/slider/#range) $("#slider-range").slider( { min: $minValue, max: $maxValue, step: $step, slide: function(event, ui) { $("#amount").val(ui.value); } } ); $("#amount").val( $("#slider-range").slider("value") );
arahusky/performance_javadoc
src/java-doclet/cz/cuni/mff/d3s/tools/perfdoc/doclets/internal/toolkit/resources/js/singleslider.js
JavaScript
gpl-3.0
271
/* ZVM - the ifvms.js Z-Machine (versions 5 and 8) =============================================== Built: 2017-12-03 Copyright (c) 2011-2017 The ifvms.js team BSD licenced http://github.com/curiousdannii/ifvms.js */ /* ZVM willfully ignores the standard in these ways: Non-buffered output is not supported Output...
4x4-chris/mdt
app/assets/lib/interactive-fiction/lib/zvm.debug.js
JavaScript
gpl-3.0
86,271
/** Core script to handle the entire theme and core functions **/ var Layout = function () { var layoutImgPath = Metronic.getAssetsPath() + 'admin/layout/img/'; var layoutCssPath = Metronic.getAssetsPath() + 'admin/layout/css/'; //* BEGIN:CORE HANDLERS *// // this function handles responsive layout o...
ZeroOne71/ql
03_SellerPortal/ECommerce.Web/Content/themes/metronic/assets/admin/layout/scripts/layout.js
JavaScript
gpl-3.0
19,064
/** * A module to provide case insensitive access to tag names in a way that the tag name will be the case of the BODY * tagName. * * Instead of using regular expressions to test the name of a tag (using the case insensitive flag i) or calling * toLowerCase() each time, tests can be made directly against this...
Joshua-Barclay/wcomponents
wcomponents-theme/src/main/js/wc/dom/tag.js
JavaScript
gpl-3.0
4,043
Ext.define('Omni.model.RmsInventory', { extend : 'Ext.data.Model', fields : [ { name : 'display_as', type : 'string' }, { name : 'id', type : 'integer' }, { name : 'Store_ID', type : 'string' }, { name...
tunacasserole/omni
app/assets/javascripts/omni/model/RmsInventory.js
JavaScript
gpl-3.0
2,739
/* TimelineJS - ver. 3.5.4 - 2017-12-15 Copyright (c) 2012-2016 Northwestern University a project of the Northwestern University Knight Lab, originally created by Zach Wise https://github.com/NUKnightLab/TimelineJS3 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0....
sfu-fas/coursys
media/timeline3/js/timeline.js
JavaScript
gpl-3.0
403,914
import config from './../config.js'; const { taps } = config.getIn(['url']).toJS(); export const tapHighlight = (pathname) => { for (let x in taps) { if (pathname.indexOf(taps[x]) !== -1) { return taps[x]; } } return taps.article; };
Nelayah/blog
client/src/lib/tapHighlight.js
JavaScript
gpl-3.0
259
/* * Copyright (C) 2020 Graylog, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; withou...
Graylog2/graylog2-server
graylog2-web-interface/src/theme/variants/noir.js
JavaScript
gpl-3.0
3,325
import { STATUS_PENDING, STATUS_OK, STATUS_ERROR } from 'app-constants'; import alt from 'instances/altInstance'; import ItemPreferenceActions from '../actions/ItemPreferenceActions'; const updateItem = (state, itemState, itemId) => ({ preferences: { ...state.preferences, [itemId]: itemState, }, }); class...
BramscoChill/BlendleParser
information/blendle-frontend-react-source/app/stores/ItemPreferenceStore.js
JavaScript
gpl-3.0
2,505
var searchData= [ ['s2m_5fbgstyle_5fcenter',['S2M_BGSTYLE_CENTER',['../defines_8h.html#a09dfc479e6b054d085c1303654b93a84',1,'defines.h']]], ['s2m_5fbgstyle_5ffill',['S2M_BGSTYLE_FILL',['../defines_8h.html#a5c1e3dc195ebfcb2f734e4774682dfe3',1,'defines.h']]], ['s2m_5fbgstyle_5fmosaic',['S2M_BGSTYLE_MOSAIC',['../def...
MikiLoz92/SDL2Me
doc/html/search/defines_73.js
JavaScript
gpl-3.0
1,950
/** * */ Ext.define('RODAdmin.view.cms.news.EditNewsWindow', { extend : 'RODAdmin.view.common.WindowForm', alias : 'widget.newsedit', height : '60%', width : '60%', requires : ['RODAdmin.util.Util'], layout : { type : 'fit', // align : 'stretch' }, config: { cnode: {} }, initComponent : functio...
cosminrentea/roda
src/main/webapp/RODAdmin/app/view/cms/news/EditNewsWindow.js
JavaScript
gpl-3.0
2,495
"use strict"; parserFactory.register("jpmtl.com", () => new JpmtlParser()); class JpmtlParser extends Parser{ constructor() { super(); } async getChapterUrls(dom) { let chapters = [...dom.querySelectorAll("a.book-ccontent__content")] return chapters.map(this.linkToChapter); } ...
dteviot/WebToEpub
plugin/js/parsers/JpmtlParser.js
JavaScript
gpl-3.0
2,447
/* * Generic utils. */ // Language-Level var Level = { success: 2, info: 1, debug: 0, warning: -1, error: -2, fatal: -3 }; function Result(level, msg, data) { if (_.isNumber(level)) this.level = level; else if (_.isString(level)) { var parsedLevel = Number(level); if (_.isNumber(parsedL...
thiru/sub-trans
js/utils.js
JavaScript
gpl-3.0
2,988
var Flickity = require("flickity"); var Tela = window.Tela || {}; Tela.blocks = Tela.blocks || {}; Tela.blocks.listProjects = (function(){ function block(selector){ var $el = $(selector), $items; function init(){ // On mobile only if (!matchMedia('only screen and (max-width: 767.9px)').m...
telabotanica/wp-theme-telabotanica
blocks/list-projects/script.js
JavaScript
gpl-3.0
713
/* * pollute the global namespace with some useful utils */ import React from 'react' window.elem = React.createElement window.log = console.log
leapcode/bitmask-dev
ui/app/lib/common.js
JavaScript
gpl-3.0
149
/** * @name packages task * @desc */ module.exports = function(grunt){ grunt.registerTask('packages',function(){ var tasks = [ //'clean:bower', //'bower:install', 'bowercopy' ]; grunt.task.run(tasks); }); };
EnzoMartin/Media-Servers-4U
tasks/packages.js
JavaScript
gpl-3.0
280
/** * Created by gooma on 4/16/2016. * * Generate font of same style, with different scale **/ Dr.Declare('Graphic.FontImageDataGenerator', 'class'); Dr.Require('Graphic.FontImageDataGenerator', 'Graphic.ImageDataExt'); Dr.Require('Graphic.FontImageDataGenerator', 'Graphic.ImageOperation'); Dr.Implement('Graphic.Fo...
ThatBean/Dr.js
source/browser/graphic/font_image_data_generator.js
JavaScript
gpl-3.0
4,189
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
jesuscript/parity
js/src/views/Address/address.js
JavaScript
gpl-3.0
5,381
module.exports = function(config, mongoose, nodemailer) { var crypto = require('crypto'); var Status = new mongoose.Schema({ name: { first: { type: String }, last: { type: String } }, status: { type: String } }); var Contact = new mongoose.Schema(...
prometheansacrifice/InterestedIn
models/Account.js
JavaScript
gpl-3.0
7,029
// Handles related-objects functionality: lookup link for raw_id_fields // and Add Another links. function html_unescape(text) { // Unescape a string that was escaped using django.utils.html.escape. text = text.replace(/&lt;/g, '<'); text = text.replace(/&gt;/g, '>'); text = text.replace(/&quot;/g, '"'...
izhaohui/gardener
controller/home/static/admin/js/admin/RelatedObjectLookups.js
JavaScript
gpl-3.0
4,460
import Ember from 'ember'; import { storageFor } from 'ember-local-storage'; export default Ember.Controller.extend({ layout: true, queryParams: ['layout'], notificador: Ember.inject.service(), settings: storageFor('settings'), actions: { getContador() { var contador = this.set('settings.desafio'); ...
bit0Ar/pilas-bloques
app/controllers/application.js
JavaScript
gpl-3.0
377
/** * Created by liuyc14 on 2016/9/23. */ import React from 'react'; import TodoAction from '../../flux/actions/TodoAction'; import TodoTextInput from './TodoTextInput.react'; export default class TodoItem extends React.Component{ constructor(props){ super(props); this.state = { isEd...
lyc-chengzi/reactProject
src/component/ToDoListWithFlux/TodoItem.react.js
JavaScript
gpl-3.0
2,095
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { Card, CardText } from 'material-ui/Card'; import Divider from 'material-ui/Divider'; import Shortcuts from './Shortcuts'; import GeneralSettings from './GeneralSettings'; im...
mauron85/keepassxc-browser
src/options/Settings/index.js
JavaScript
gpl-3.0
3,147
// var HtmlWebpackPlugin = require('html-webpack-plugin'); // var HTMLWebpackPluginConfig = new HtmlWebpackPlugin({ // template: __dirname + '/app/index.html', // filename: 'index.html', // inject: 'body' // }); // module.exports = { // entry: [ // './app/index.js' // ], // module: { // loaders: []...
milopiccolo/milo.fyi
webpack.config.js
JavaScript
gpl-3.0
467
{ if(typeof BrowserNameSpace === "undefined"){ BrowserNameSpace; if(typeof browser !== 'undefined' ) BrowserNameSpace = browser ; else if(typeof chrome !== 'undefined' ) BrowserNameSpace = chrome; } function injectModal() { const html = ` <div id="p...
persepolisdm/persepolis-chrome-wrapper
WebExtension/scripts/getselected.js
JavaScript
gpl-3.0
5,690
import { Choice } from './choice'; export var GameAction = { CHOICE: Choice.CHOICE, SPIN: Choice.SPIN, PRIZE_WHEEL: 'prize_wheel', GAME_OVER: 'game_over', values: function () { return [this.CHOICE, this.SPIN, this.PRIZE_WHEEL, this.GAME_OVER]; } };
cberes/spin-the-choice
src/js/game-action.js
JavaScript
gpl-3.0
283
// views populated from models/collections by Marionette var PodcastListItemView = Backbone.Marionette.ItemView.extend({ template: '#podcast-item-view', tagName: 'li' }); var PodcastListView = Backbone.Marionette.CompositeView.extend({ itemViewContainer: '#podcast-list', itemView: PodcastListItemView,...
wikiotics/ductus2
ductus2/static/js/podcasts.views.js
JavaScript
gpl-3.0
360
'use strict'; var async = require('async'); var db = require('../database'); var user = require('../user'); var posts = require('../posts'); var plugins = require('../plugins'); var batch = require('../batch'); module.exports = function (Topics) { Topics.delete = function (tid, uid, callback) { Topics.getTopicF...
hgGeorg/NodeBB
src/topics/delete.js
JavaScript
gpl-3.0
5,938
console.log("stdout is writable? " + process.stdout.writable); process.stdout.write("Hello"); process.stdout.write("World");
phiratio/Pluralsight-materials
Paths/Node.js/04.Introduction to Node.js/materials/4-writable-stream.js
JavaScript
gpl-3.0
125
describe("DataSourceDefinition", function() { var DATA_SOURCE_NAME = "Lista de Medicamentos"; var ITEM_ID_1 = "item_ID_1"; var ITEM_ID_2 = "item_ID_2"; var dataSourceDefinition; beforeEach(function() { angular.mock.module('otusjs.survey'); inject(function(_$injector_) { dataSourceDefinition =...
ccem-dev/otus-model-js
tests/unit/survey/model/data-source/data-source-definition-spec.js
JavaScript
gpl-3.0
2,366
/** * All the special characters. * * @constant */ var Characters = { /** * The character used to escape meta-characters in a string. */ ESCAPE : "\\", /** * The character used to delimit strings. */ STRING_QUOTE : "\"", /** * The character used to quote expressions. ...
TikhonJelvis/js-scheme
schemeValues.js
JavaScript
gpl-3.0
1,445
angular.module('app.common.components', []); require('./icgc-checkbox'); require('./collapsible-text'); require('./collapsible-wrapper'); require('./togglable-term'); require('./paginated-table');
icgc-dcc/dcc-portal
dcc-portal-ui/app/scripts/common/components/index.js
JavaScript
gpl-3.0
198
var sharing = { index: function() { var slide = false; //if(turtl.controllers.pages.is(NotesIndexController)) slide = 'right'; turtl.back.clear(); turtl.controllers.pages.load(SharingController, {}, { slide: slide }); } };
cibersheep/turtl-ut
www/app/handlers/sharing.js
JavaScript
gpl-3.0
240
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var control_pregunta_list = function(path) { //contexto privado var prefijo_div = "#pregunta_list "; function cargaBoto...
jpgodesart/ajaxyieldjuan
src/main/webapp/js/control/pregunta.js
JavaScript
gpl-3.0
14,951
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matze@odinms.de> Jan Christian Meyer <vimes@odinms.de> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero Genera...
NovaStory/AeroStory
scripts/portal/enterDisguise3.js
JavaScript
gpl-3.0
1,146
/*! jQuery UI - v1.10.4 - 2015-10-04 * http://jqueryui.com * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ (function(e){e.effects.effect.bounce=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(o,t.mode||"effect"),l="hide"===h...
avitheque/amc-builder
public/jquery/jquery-ui-1.11.4/ui/minified/jquery.ui.effect-bounce.min.js
JavaScript
gpl-3.0
1,058
/** * Created by kapale on 08.05.17. */ $( document ).ready(function () { var fonts = {}, savedValues = [], _$formSelects = $('.cm-neos-thememodule-custom-font-family-selector'), htmlCheckboxOpen = '<div class="checkbox"><label>', htmlCheckboxClose = '</label></div>'; function...
coders-market/CM.Neos.ThemeModule
Resources/Public/JavaScript/fontSelector.js
JavaScript
gpl-3.0
5,486
import React from 'react' import { Link } from 'react-router'; import { PageHeader, Form, FormGroup, FormControl, ControlLabel, Col, Button } from 'react-bootstrap'; const Contact = ({ contact, added, setField, addContact }) => { return ( <div> <PageHeader>Be one of the first to know our service</PageHeade...
guigonc/client_app
app/components/Contact.js
JavaScript
gpl-3.0
1,358
angular.module("customServices", []) .provider("logService", function () { var counter = true; var debug = true; return { messageCounterEnabled: function (setting) { if (angular.isDefined(setting)) { counter = setting; ...
madebyrogal/angular
doc/examples/Rozdzial19/Listing 09.js
JavaScript
gpl-3.0
1,164
"use strict"; var init = require("../bs.init"); describe("Scrolling around", function () { var ptor = protractor.getInstance(); var instance; var urls; beforeEach(function () { browser.ignoreSynchronization = true; if (instance) { return; } var config = ...
xuboso/browser-sync
test/protractor/tests/actions.clicks.js
JavaScript
gpl-3.0
1,278
/*jslint browser */ /*globals window, settings, searchTerm, locales, pageLanguage, getQueryVariable */ // display a 'Searching' progress placeholder function ebSearchShowSearchingNotice() { 'use strict'; var searchProgressPlaceholder = document.querySelector('.search-progress-placeholder'); if (searchProg...
electricbookworks/electric-book
assets/js/search-notifications.js
JavaScript
gpl-3.0
2,575
cortes.service('searchService', function ($q, $filter, client, esFactory) { var searchQ = $q.defer(); var searchData = []; this.getDefer = function (searchQuery) { if (searchQuery.match(/[a-z]/i)) { var fields = [ "vout.scriptPubKey.addresses.keyword", ...
cryptodevorg/Cortes-Explorer
src/app/services/search.service.js
JavaScript
gpl-3.0
3,096
var _ = require('lodash'); var Promise = require('bluebird'); var debug = require('debug')('lib:cmdspawn'); var spawn = require('child_process').spawn; function commandWithoutTimeout(command) { return new Promise(function(resolve, reject) { var M = spawn(command.binary, command.args...
vecna/invi.sible.link
lib/cmdspawn.js
JavaScript
gpl-3.0
1,536
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
anantdgoel/DontFowl.me
chrome-extension/bundle.js
JavaScript
gpl-3.0
5,710
'use strict' var copy = require('../util/copy') var genericRecorder = require('../metrics/recorders/generic') var logger = require('../logger').child({component: 'MessageShim'}) var messageTransactionRecorder = require('../metrics/recorders/message-transaction') var props = require('../util/properties') var Transactio...
jlangdon90/YelpCamp
node_modules/newrelic/lib/shim/message-shim.js
JavaScript
gpl-3.0
25,398
var a00604 = [ [ "ble_hrs_evt_t", "a00199.html", [ [ "evt_type", "a00199.html#aa66cdb9dcfb0d14b84933eed8ef6d369", null ] ] ], [ "ble_hrs_init_t", "a00200.html", [ [ "evt_handler", "a00200.html#aa86b9c7d2205607e9e77fa9c3affabbe", null ], [ "hrs_bsl_attr_md", "a00200.html#a12b40292268a248ca7...
DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware
nrf51_sdk/Documentation/s310/html/a00604.js
JavaScript
gpl-3.0
3,007
/* * Copyright (c) 2011-2013 Lp digital system * * This file is part of BackBee. * * BackBee is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any l...
ndufreche/bb-core-js-dist
src/tb/component/formbuilder/form/Form.js
JavaScript
gpl-3.0
8,237
/* 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/. */ ;(function($, Mozilla) { 'use strict'; window.dataLayer = window.dataLayer || []; setTimeout(Mozilla.s...
jpetto/bedrock
media/js/firefox/sync.js
JavaScript
mpl-2.0
4,409
initSidebarItems({"struct":[["RGB","One would think that the RGB 'type' we use here is divorced from the actual tcod library, however this construct serves more as a wrapper or converter for tcod colors, because they are pretty ass."]]});
surrsurus/edgequest
doc/edgequest/core/renderer/rgb/sidebar-items.js
JavaScript
mpl-2.0
238
/* * The contents of this file are subject to the OpenMRS Public 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://license.openmrs.org * * Software distributed under the License is distributed on an "AS IS" *...
k-joseph/openmrs-module-openhmis.backboneforms
omod/src/main/webapp/resources/js/openhmis.js
JavaScript
mpl-2.0
9,980
/* 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/. */ 'use strict'; exports.getRoute = function (routes, path, method) { let route = null; routes.some((r) => { ...
mozilla/fxa-auth-server
test/routes_helpers.js
JavaScript
mpl-2.0
533
/* Copyright (c) 2001-2005 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. This program is distributed under the W3C's Software Intellectual Property License. This program is distributed in the ho...
tmhorne/celtx
dom/tests/mochitest/dom-level2-core/DOMTestCase.js
JavaScript
mpl-2.0
18,611
// const Positioner = require('electron-positioner') export const windowSizes = { mini: { width: 100, height: 30 }, list: { width: 200, height: 400 }, normal: { width: 900, height: 600 } } // const positioner = new Positioner(windows.main) // const getWinPosition = size => { // i...
okonet/codestage
src/shared/effects/window.js
JavaScript
mpl-2.0
820
/* Python new-style string formatting. * > "Hello, {0}.".format('Mike'); * Hello, Mike. * > "How is the weather in {citi}?".format({city: 'Mountain View'}) * How is the weather in Mountain View? */ String.prototype.format = function(obj) { var args = arguments; var str = this; // Support either an object, or...
mythmon/crimsontwins
static/js/utils.js
JavaScript
mpl-2.0
752
/** * 条件细分节点 * * @author 刘溪滨 (13720880048@163.com) * @version 1.0 @Date: 2015-11-18 上午9:10 */ define(["types/Class", "utils/Log", "jquery", "base/BaseRouter", "base/BaseView", "grid/simplelist", "grid/SimpleListUtil", "js/app/ruledesign/routers/PlatformConditionPartitionSelDialog", ...
gillion/RDACP
Trunk/00.Coding/cartan/cartan-center/src/main/web/js/app/ruledesign/routers/PlatformConditionPartitionNodeManageRouter.js
JavaScript
mpl-2.0
25,698
// DO NOT EDIT! This test has been generated by tools/gentest.py. // OffscreenCanvas test in a worker:2d.composite.clip.source-over // Description:fill() does not affect pixels outside the clip region. // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = ...
DominoTree/servo
tests/wpt/web-platform-tests/offscreen-canvas/compositing/2d.composite.clip.source-over.worker.js
JavaScript
mpl-2.0
968
/* 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/. */ "use strict"; /* import-globals-from ../includes.js */ const MIN_INSPECTOR_WIDTH = 300; // Strings for rendering...
Yukarumya/Yukarum-Redfoxes
devtools/client/webaudioeditor/views/inspector.js
JavaScript
mpl-2.0
5,544
/* * 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/. * * Copyright (c) 2015, Joyent, Inc. */ var test = require('./test-namer')('UpdateStream'); var sinon = require...
joyent/triton-cns
test/unit/update-stream.test.js
JavaScript
mpl-2.0
17,574
/* * 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/. */ /* * Copyright (c) 2014, Joyent, Inc. */ var assert = require('assert-plus'); var bunyan = require('bunyan'...
joyent/vera
test/repl/memory_raft.js
JavaScript
mpl-2.0
13,910
/* * 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/. */ /* * Copyright 2020 Joyent, Inc. */ var util = require('util'); var crypto = require('crypto'); var Keyapi ...
joyent/sdc-cloudapi
test/auth.test.js
JavaScript
mpl-2.0
24,215
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { render } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; const REPLICATION_DETAILS = { clusterId: 'b829d963-6835-33eb-a903-57376024b97a', merkleRoot: 'c21c8428a0a06135cef6ae25bf8e0267ff1592a6'...
hashicorp/vault
ui/tests/integration/components/replication-table-rows-test.js
JavaScript
mpl-2.0
2,050