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 |
|---|---|---|---|---|---|
"use strict";
const remote = require('@electron/remote');
const ipcRenderer = require('electron').ipcRenderer;
const {Menu, MenuItem} = remote;
const EventEmitter = require('events');
let store = null;
const aboutModal = require('./about_modal');
const AppAlerts = require('./app_alerts');
class ContextMenu extends ... | angrykoala/gaucho | src/app/api/context_menu.js | JavaScript | gpl-3.0 | 4,032 |
/*
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( 'docprops', 'mn', {
bgColor: 'Фоно өнгө',
bgFixed: 'Гүйдэггүй фоно',
bgImage: 'Фоно зурагны URL',
charset: 'Encoding тэмдэгт',
... | ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/docprops/lang/mn.js | JavaScript | gpl-3.0 | 1,837 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | ricardo7227/DAW | Cliente/Codigo fuente/my-app-apk/node_modules/ionic-angular/umd/components/spinner/spinner.js | JavaScript | gpl-3.0 | 11,623 |
/*eslint-disable strict */
var $ = require("$"),
inherits = require("util/inherits"),
expander = require("util/expander"),
Ctrl = require("swts/controller"),
Nipple = require("ui/nipple"),
Gutenberg = require("ui/gutenberg"),
Overlay = require("ui/overlay"),
Upload = require("ui/upload"),
// Input = require(... | swts/choco.swts.me | app/resources/post/controller.js | JavaScript | gpl-3.0 | 6,941 |
var a00094 =
[
[ "battery_level_char_attr_md", "a00094.html#aba436d52b264fb93a74de510a9e7ef07", null ],
[ "battery_level_report_read_perm", "a00094.html#a07135d9b12640710f520ef87d7a4f1be", null ],
[ "evt_handler", "a00094.html#a84932ecefd721efa23840b01ca3ce7eb", null ],
[ "initial_batt_level", "a00094.h... | DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware | nrf51_sdk/Documentation/s310/html/a00094.js | JavaScript | gpl-3.0 | 535 |
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('pages/login');
});
module.exports = router;
| chengts95/GIS | routes/login.js | JavaScript | gpl-3.0 | 190 |
/**
* T'SoundSystem for JavaScript
*/
/**
* SmfPlayer prototype
*
* Play Standard MIDI Files.
* @author Takashi Toyoshima <toyoshim@gmail.com>
*/
function SmfPlayer () {
this.masterChannel = null;
this.defaultDevice = new MidiChannel();
this.devices = [];
this.tracks = [];
this.numberOfTrack... | n2liquid/NoteOn | 3rdparty/tss/tss/SmfPlayer.js | JavaScript | gpl-3.0 | 14,409 |
/// <reference path="Service.js" />
Sigma.service("UserService", function ($http) {
//CreateUser
this.CreateUser = function (name, lastname, email, password, status, phone, roles) {
var response = $http({
method: "post",
url: "/User/CreateUser",
params: {
... | StratosAgein/Sigma.Website | Sigma.Website/Angular/User/Service.js | JavaScript | gpl-3.0 | 1,769 |
import Screen from './Screen';
import Circle from './Circle';
export default class Visualization {
constructor(cb) {
console.log("aaa");
this.margin = {top: 10, right: 10, bottom: 0, left: 0};
this.width = window.innerWidth - this.margin.left - this.margin.right,
this.height = window.innerHeight - ... | naoyashiga/dataViz-playground | sketch/tutorial/timeline/test/src/js/components/Visualization.js | JavaScript | gpl-3.0 | 975 |
var Nestable = function () {
var updateOutput = function (e) {
var list = e.length ? e : $(e.target),
output = list.data('output');
if (window.JSON) {
output.val(window.JSON.stringify(list.nestable('serialize'))); //, null, 2));
} else {
output.va... | ilanfreoua/pluginbaby | template/fixweb/assets/js/nestable-init.js | JavaScript | gpl-3.0 | 902 |
var denScop = (function dScope() {
'use strict';
var a, f, ua, uw, uc, i, j, k, m, po, lpo, t, tw, w, phrase, result, freq, objFreq, countList, wordList, wordObjectSchema, limit, limitedWordObjectSchema,
//Defaults
defaultTargetWords = ['The', 'in', 'that', 'is', 'he', 'his', 'she', 'her',... | nbuechler/javascript-density-scope | js/densityScope.js | JavaScript | gpl-3.0 | 9,870 |
// This code is injected into the programatically generated
// add-ons/lib/standards.js file by the gulp build process. It creates
// getter and setters around the standards definition.
(function () {
const {standardsDefinitions} = window.WEB_API_MANAGER.standardsLib;
delete window.WEB_API_MANAGER.standardsLib... | snyderp/web-api-manager | sources/js/standards.part.js | JavaScript | gpl-3.0 | 8,274 |
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it and... | lucasmattos/crm | client/src/language.js | JavaScript | gpl-3.0 | 3,012 |
(function(){var h=[].slice;!function(d,f){var g;return g=function(){function c(a,b){null==b&&(b={});this.$element=d(a);this.options=d.extend({},d.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),r... | Dangetsu/vnr | Frameworks/AJAX/github/bootstrap-switch.min.js | JavaScript | gpl-3.0 | 13,891 |
CKEDITOR.plugins.setLang("sourcearea","ug",{toolbar:"مەنبە"}); | babbling-brook/streambed | js/resources/ckeditor/release/plugins/sourcearea/lang/ug.js | JavaScript | gpl-3.0 | 70 |
var config = require('../../config');
var mysql = require('mysql');
var Q = require('q');
var pool = mysql.createPool(config.memberDb);
var selectLibrary = 'SELECT m.institution_name, m.member_id, m.library_type, m.membership_lvl, m.current, p.product_id as is_ishare ' +
'FROM members AS m LEFT JO... | CARLI/select | middleware/components/crmQueries.js | JavaScript | gpl-3.0 | 8,115 |
/*******************************************************************************
µBlock - a Chromium browser extension to block requests.
Copyright (C) 2014 Raymond Hill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publish... | Mikey1993/uBlock | js/storage.js | JavaScript | gpl-3.0 | 16,965 |
'use strict';
/* global Blockly, RoboBlocks */
/**
* text_char code generation
* @return {String} Code generated with block parameters
*/
Blockly.Arduino.text_char = function() {
var code = '\'' + this.getFieldValue('CHAR') + '\'';
return [code, Blockly.Arduino.ORDER_ATOMIC];
};
/**
* text_char block de... | pacomus/roboblocks | src/blocks/text_char/text_char.js | JavaScript | gpl-3.0 | 1,116 |
(function () {
'use strict';
angular.module('bmFrontendApp')
.config(function ($stateProvider) {
$stateProvider
.state('operation', {
parent: 'site',
url: '/operation',
data: {
pageTitle: 'Operaciones'
},
views: {
... | JuanLSanchez/bm-frontend | app/scripts/states/opeartion.state.js | JavaScript | gpl-3.0 | 559 |
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const resolve = require('resolve');
const PnpWebpackPlugin = require('pnp-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-... | funkBuild/machinist | config/webpack.config.js | JavaScript | gpl-3.0 | 27,074 |
var Multi1;
(function (Multi1) {
function main() {
return "hello multi1";
}
Multi1.main = main;
})(Multi1 || (Multi1 = {}));
Multi1.main();
| jr0jas/grunt-example-1 | node_modules/grunt-typescript/test/expected/multi/multi1.js | JavaScript | gpl-3.0 | 168 |
// This file is part of InfiniteSky.
// Copyright (c) InfiniteSky Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
vms('SkillInfo', [], function() {
var skillSchema = mongoose.Schema({
ID: { type: Number, unique: true, index: true, default: 0 },
Name: String... | LiamKarlMitchell/InfiniteSky | FruitSalad/Database/skill.js | JavaScript | gpl-3.0 | 12,262 |
//#include "Kob/iPlayer.js"
//#include "Canvas.js"
//#include "Panel.js"
/**
* class MockPlayer
*
*/
MockPlayer = function ()
{
this._init ();
}
MockPlayer.prototype = new iPlayer ();
/**
* _init sets all MockPlayer attributes to their default value. Make sure to call
* this method within your class con... | rfilipo/telll | player/js/MockPlayer.js | JavaScript | gpl-3.0 | 512 |
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
gTestfile = 'object-001.js'... | mozilla/rhino | testsrc/tests/lc3/CallStatic/object-001.js | JavaScript | mpl-2.0 | 3,719 |
/* 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/. */
const { registerSuite } = intern.getInterface('object');
const assert = intern.getPlugin('chai').assert;
const rout... | mozilla/fxa-content-server | tests/server/routes/get-well-known-change-password.js | JavaScript | mpl-2.0 | 1,795 |
/**
* Created by meathill on 2017/6/21.
*/
import router from './router';
import eventBus from './event/bus';
new Vue({
el: '#app',
router,
mounted() {
document.body.addEventListener('click', (event) => {
eventBus.$emit('click', event);
}, false);
},
});
| meathill-freelance/cs-diy-mobile-shell | app/main.js | JavaScript | mpl-2.0 | 281 |
import { env } from 'consul-ui/env';
export function initialize(container) {
if (env('CONSUL_UI_DISABLE_REALTIME')) {
return;
}
['node', 'coordinate', 'session', 'service', 'proxy', 'discovery-chain']
.concat(env('CONSUL_NSPACES_ENABLED') ? ['nspace/enabled'] : [])
.map(function(item) {
// crea... | scalp42/consul | ui-v2/app/instance-initializers/event-source.js | JavaScript | mpl-2.0 | 3,810 |
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
var gTestfile = 'regress-43... | mozilla/rhino | testsrc/tests/js1_5/extensions/regress-437288-01.js | JavaScript | mpl-2.0 | 923 |
/* 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";
const {reflowSpec} = require("devtools/shared/specs/reflow");
const protocol = require("devtools/sh... | Yukarumya/Yukarum-Redfoxes | devtools/shared/fronts/reflow.js | JavaScript | mpl-2.0 | 893 |
var _ = require('underscore');
function glue() {
'use strict';
var args = _.toArray(arguments);
var event = args.pop();
var wrap = args.pop();
if (event.prefix.indexOf('!') == -1)
return;
event = _.clone(event);
if (_.isFunction(wrap))
event = wrap(event);
if (/#/.test(event.params[0]))
event.netw... | rummik/clearwing | lib/events/channel.js | JavaScript | mpl-2.0 | 2,470 |
/* 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";
const {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components;
Cu.import("resource://gr... | Yukarumya/Yukarum-Redfoxes | toolkit/components/places/PageIconProtocolHandler.js | JavaScript | mpl-2.0 | 4,164 |
var { Hotkey } = require("sdk/hotkeys");
var { ActionButton } = require("sdk/ui/button/action");
var Request = require("sdk/request").Request;
var tabs = require("sdk/tabs");
var selection = require("sdk/selection");
var notifications = require("sdk/notifications");
var notifyImg = "./icon-32-white.png";
var apiKey = ... | RealFatCat/hot-translate | lib/main.js | JavaScript | mpl-2.0 | 1,904 |
$(function() {
$(document).ready( function() {
Raven.config($('body').attr('data-sentry-public-dsn')).install();
});
});
| mozilla/telemetry-analysis-service | atmo/static/js/raven.js | JavaScript | mpl-2.0 | 129 |
/* 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";
const {watchWindows, unloadWindow} = require("sdk/windows");
function appendNotification(message, t... | nmaier/NoPluginBar | main.js | JavaScript | mpl-2.0 | 1,295 |
/* jshint node:true, undef:true, unused:true */
var assert = require('assert');
var utils = require('./utils');
var memo = utils.memo;
var sourcePosition = utils.sourcePosition;
/**
* Represents a list of bindings for the given module. This corresponds to the
* shared functionality from `ExportsList` and `ImportsL... | HDAT/hdat-statstest | node_modules/gulp-es6-module-transpiler/node_modules/es6-module-transpiler/lib/module_binding_list.js | JavaScript | mpl-2.0 | 6,162 |
555646261cc4f274816d645a01147e1e
/*
This file is part of the Game Closure SDK.
The Game Closure SDK is free software: you can redistribute it and/or modify
it under the terms of the Mozilla Public License v. 2.0 as published by Mozilla.
The Game Closure SDK is distributed in the hope that it will be useful,
but... | wangqin4377/BubbleShooter | build/cache/release-native-android-js/A----Users---tsunami---projects---devkitPoj---helloworld---modules---devkit-core---modules---timestep---src---ui---View.js | JavaScript | mpl-2.0 | 10,227 |
/*
* Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.
*
* Copyright (C) 2015 Clinton Health Access Initiative (CHAI). This program was produced for the U.S. Agency for International Development (USAID). It was prepa... | kelvinmbwilo/open_elmis | modules/openlmis-web/src/main/webapp/public/js/vaccine/inventory/controller/save-pod-controller.js | JavaScript | agpl-3.0 | 4,746 |
'use strict';
var chai = require('chai');
var spies = require('chai-spies');
var openVeoApi = require('@openveo/api');
var RoleController = process.require('app/server/controllers/RoleController.js');
var errors = process.require('app/server/httpErrors.js');
var ResourceFilter = openVeoApi.storages.ResourceFilter;
va... | veo-labs/openveo-core | tests/server/controllers/RoleController.js | JavaScript | agpl-3.0 | 7,273 |
// Copyright (c) 2015 Walter Bender
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the The GNU Affero General Public
// License as published by the Free Software Foundation; either
// version 3 of the License, or (at your option) any later version.
//
// You should h... | sachi-d/musicblocks | js/analytics.js | JavaScript | agpl-3.0 | 12,674 |
/*global define*/
define("model/event", ["backbone", "database"], function (Backbone, database) {
"use strict";
var EventModel = Backbone.Model.extend({
database: database,
storeName: "events"
});
return EventModel;
}); | TEA-ebook/teabook-reader-ffox-app | app/js/model/event.js | JavaScript | agpl-3.0 | 253 |
import { expect } from 'chai';
import { describe, it } from 'mocha';
import {
runTest,
separateResults,
tokenTypeDef,
} from '../../../__tests__/setup';
import { NameInCamelCase as rule } from '../NameInCamelCase';
describe('Schema Validation: InterfaceField / NameInCamelCase: ', () => {
it('Rule throws if ap... | meldio/meldio | src/schema/validator/rules/InterfaceField/__tests__/NameInCamelCase.js | JavaScript | agpl-3.0 | 1,647 |
(function( $ ) {
// ----------------------------------
// Bulk Awards/Revokes Tool
// ----------------------------------
// Register points movement
$('#bulk-awards, #bulk-revokes').on('change', '#bulk_award_points_register_movement, #bulk_revoke_points_register_movement', function() {
va... | rubengc/GamiPress | assets/js/gamipress-admin-tools.js | JavaScript | agpl-3.0 | 43,824 |
var dog, cat, animal;
/* all animals can speak */
animal = {
speak: function () {
console.log("I spoke");
}
}
/* Object.create creates a new object and sets the new object's prototype
* chain "[[prototype]]" to start with animal.
* Which is why both cat and dog have all the behaviour of animal.
*/
dog = O... | themystic/front-end-web-demos | javascript-oop/inheritance-constrcutor-vs-object-create.js | JavaScript | agpl-3.0 | 2,570 |
ImportCSVWizardController = BaseWizardController.extend( {
el: '.wizard',
api_import: null,
parse_hint_source: null,
field_source: null,
select_grid_last_row: null,
last_id: 0, // Last grid id
saved_layout_array: null,
column_map_data: null, //Used to build grid data
initialize: function() {
this._s... | wakuki14/hrm | interface/html5/views/wizard/import_csv/ImportCSVWizardController.js | JavaScript | agpl-3.0 | 34,369 |
/*
* list.js
* Copyright (c) 2022 james@firefly-iii.org
*
* This file is part of Firefly III (https://github.com/firefly-iii).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, ei... | firefly-iii/firefly-iii | frontend/src/api/categories/list.js | JavaScript | agpl-3.0 | 1,001 |
describe("css bindings", function(){
beforeEach(function(){
this.model = new AModel({
number: 45,
color: "white",
});
this.view = new CssBindingView({model: this.model});
this.view.render();
});
describe("Width bound", function(){
it("binds ... | timprepscius/mv | client/web/Ext/Backbone.ModelBinder-1.0.5/spec/javascripts/cssBindingSpec.js | JavaScript | agpl-3.0 | 558 |
angular.module('PhmWebApp').controller('NewScheduleDialogController', function($mdDialog, $scope, timezone) {
'use strict';
var vm = this;
var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
vm.datetime = new Date();
vm.datetime.setSeconds(0, 0);
vm.weekdays = [];
... | tabman83/phm-webapp | app/scripts/controllers/new-schedule-dialog.js | JavaScript | agpl-3.0 | 1,194 |
import React from 'react';
import SPELLS from 'common/SPELLS/index';
import { formatNumber, formatDuration, formatNth } from 'common/format';
import { calculatePrimaryStat } from 'common/stats';
import SpellLink from 'common/SpellLink';
import StatIcon from 'interface/icons/PrimaryStat';
import ItemHealingDone from '... | ronaldpereira/WoWAnalyzer | src/parser/shared/modules/spells/bfa/essences/TheEverRisingTide.js | JavaScript | agpl-3.0 | 9,232 |
define(function(require) {
'use strict';
var _ = require('underscore');
var Backbone = require('backbone');
var PIXI = require('pixi');
var viewOptions = ['model', 'id', 'displayObject', 'events'];
var delegateEventSplitter = /^(\S+)\s*\.(\S*)$/;
/**
* A View class that ... | Connexions/simulations | common/pixi/view.js | JavaScript | agpl-3.0 | 4,934 |
import SPELLS from 'common/SPELLS';
import { EventType } from 'parser/core/Events';
import EventsNormalizer from 'parser/core/EventsNormalizer';
// the max delay between the heal and cast events never looks to be more than this.
const MAX_DELAY = 100; // XdVPajNB8vpJkyCF/16-Mythic+Antoran+High+Command+-+Kill+(7:17)/17... | anom0ly/WoWAnalyzer | analysis/paladinholy/src/normalizers/LightOfDawn.js | JavaScript | agpl-3.0 | 1,960 |
$(function() {
$(".language").on("click", function(e){
e.preventDefault()
var lang = '/'+$(this).attr('id')+'/'
$( "#field-lang-select option:selected" ).prop("selected", false)
$('#field-lang-select option[value^="'+lang+'"]').prop("selected", true)
$('#language_form').submit()
})
})
| monmaks/ckanext-ceon | ckanext/ceon/fanstatic/language-selector.js | JavaScript | agpl-3.0 | 301 |
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine'],
//... | riski-io/grc | karma.conf.js | JavaScript | agpl-3.0 | 6,048 |
var editor;
KindEditor.ready(function(K) {
editor = K.create('#topic_content', {
width : '100%',
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'source', '|', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', '... | YellowDi/Sandbox | plugins/kindeditor/keset.js | JavaScript | agpl-3.0 | 1,846 |
// Pioneers - web game based on the Settlers of Catan board game.
// Copyright (C) 2009 Jakub Kuźma <qoobaa@gmail.com>
// This program is free software: you can redistribute it and/or
// modify it under the terms of the GNU Affero General Public License
// as published by the Free Software Foundation, either version ... | qoobaa/pioneers | app/javascripts/widgets/join.js | JavaScript | agpl-3.0 | 4,890 |
define([ 'jquery', 'gizmo' ], function( $, Gizmo)
{
var syncReset = function() // reset specific data and headers for superdesk
{
try
{
delete this.options.headers['X-Filter'];
this.options.data = {};
}
catch(e){}
},
newSync = $.extend({}, Gizmo.... | vladnicoara/SDLive-Blog | plugins/livedesk-embed/gui-resources/scripts/js/core/gizmo/superdesk.js | JavaScript | agpl-3.0 | 4,954 |
app.controller('ListQuestionsCtrl', function($rootScope, $scope, $routeParams, $location, $timeout, $q, data, taggedFilter) {
'use strict';
var model = $scope.model = {};
var storage = window.localStorage;
var tags = [];
model.category = $routeParams.cat;
model.questions = data.model.questions;
model.... | sebikovacs/auto | app/scripts/controllers/list-questions.js | JavaScript | agpl-3.0 | 1,270 |
import SPECS from 'game/SPECS';
import RACES from 'game/RACES';
import traitIdMap from 'common/TraitIdMap';
import Entity from './Entity';
export const TALENT_ROWS = {
LV15: 0,
LV30: 1,
LV45: 2,
LV60: 3,
LV75: 4,
LV90: 5,
LV100: 6,
};
export const GEAR_SLOTS = {
HEAD: 0,
NECK: 1,
SHOULDER: 2,
SH... | FaideWW/WoWAnalyzer | src/parser/core/Combatant.js | JavaScript | agpl-3.0 | 6,190 |
var glob = require('glob');
var path = require('path');
var expect = require('chai').expect;
var files = glob.sync(path.resolve(__dirname, '**', '*.test.js'));
global.expect = expect;
files.forEach(require);
| amireh/PCREck | lib/test.js | JavaScript | agpl-3.0 | 210 |
/**
* ownCloud - Tasks
*
* @author Raimund Schlüßler
* @copyright 2016 Raimund Schlüßler <raimund.schluessler@googlemail.com>
*
* 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 Foundat... | owncloud/tasks | js/app/filters/startDetails.js | JavaScript | agpl-3.0 | 1,084 |
fast.modules.group.i18n = fast.modules.group.i18n || {
en:{
Grouping: "Grouping",
Project: "Project",
Context: "Context",
Box: "Box",
WithoutContext: "Without context",
WithoutProject: "Without project",
New: "New",
Done: "Done",
Waiting: "Waiting",
Date: "Date",
Today: "To... | flosse/FAST | modules/group/group.i18n.js | JavaScript | agpl-3.0 | 1,144 |
define(["jquery","objUtil","tab"], function($,objUtil,_tab) {
// var tabs = objUtil.create({
// block:$('#work-area')
// });
/*tabs.children('div#mode1').tabs({
tab_titles:['a_1','b_2','c-3'],
active_position:1,
justified:true
});
tabs.children('div#mode2').tabs({
tab_titles:['d_4','e... | yekg880809/TDM-demo | js/ctrl/tabCtrl.js | JavaScript | agpl-3.0 | 397 |
export default Object.freeze({
VERTICAL_BOX: 'vertical-box',
HORIZONTAL_BOX: 'horizontal-box'
})
| tocco/tocco-client | packages/core/app-extensions/src/form/enums/layoutTypes.js | JavaScript | agpl-3.0 | 101 |
function pago() {
$('#intro_caixa_botoes').children().remove();
$('#titulo_caixa').children().remove();
var titulo = '<h1>Tipo de Contratação</h1>';
var url = '/filtro?operacao=1';
var botao1 = '<button type="button" onClick="contratacoes_pago(1, \''+ url+'\');" id="contratacao_normal" class="btn bt... | jaodsilv/Hades | app/assets/javascripts/filtro.js | JavaScript | agpl-3.0 | 6,826 |
/*
This file is a part of libertysoil.org website
Copyright (C) 2017 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... | Lokiedu/libertysoil-site | src/components/select-locale.js | JavaScript | agpl-3.0 | 3,790 |
OC.L10N.register(
"mood",
{
"New mood" : "Nuevo estado de ánimo",
"Share with ..." : "Compartir con ...",
"Share your mood" : "Comparte tu estado de ánimo",
"{author} shared a mood with you" : "{author} te compartió un estado de ánimo",
"{author} shared a mood with {circles}" : "{author} com... | daita/mood | l10n/es_MX.js | JavaScript | agpl-3.0 | 704 |
/* global */
function parse(tx, current) {
const res = [];
tx.operations.forEach((op) => {
const func = {
'accountMerge': accountMergeOp,
'allowTrust': allowTrustOp,
'changeTrust': changeTrustOp,
'createAccount': createAccountOp,
'createPassiveOffer': createPassiveOfferOp,
'inflation': ... | johansten/stargazer | app/core/components/tx-reviewer/humanizer.js | JavaScript | agpl-3.0 | 9,928 |
import { Creature } from "../creature";
/* findPos(arr, obj)
* Find an object in the current Array based on its pos attribute
*
* arr: Array: The array to look for obj in.
* obj: Object: Anything with pos attribute. Could be Hex of Creature.
*
* return: Object: Object found in the array. False if nothing.
*/
ex... | ShaneWalsh/AncientBeast | src/utility/arrayUtils.js | JavaScript | agpl-3.0 | 2,983 |
export class PayPeriodScheduleViewController extends BaseViewController {
constructor( options = {} ) {
_.defaults( options, {
el: '#pay_period_schedule_view_container', //Must set el here and can only set string, so events can work
user_preference_api: null,
type_array: null,
pay_period_starts_on_array... | aydancoskun/timetrex-community-edition | interface/html5/views/payperiod/PayPeriodScheduleViewController.js | JavaScript | agpl-3.0 | 22,166 |
/*
* Copyright (c) 2014 Kagilum SAS.
*
* This file is part of iceScrum.
*
* iceScrum is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* iceScrum is distributed... | icescrum/iceScrum | grails-app/assets/javascripts/application/team/team.controllers.js | JavaScript | agpl-3.0 | 10,824 |
odoo.define('point_of_sale.chrome', function (require) {
"use strict";
var PosBaseWidget = require('point_of_sale.BaseWidget');
var gui = require('point_of_sale.gui');
var keyboard = require('point_of_sale.keyboard');
var models = require('point_of_sale.models');
var core = require('web.core');
var ajax = require('web... | Aravinthu/odoo | addons/point_of_sale/static/src/js/chrome.js | JavaScript | agpl-3.0 | 31,950 |
const gql = require('graphql')
module.exports = {
Date: new gql.GraphQLScalarType({
name: 'Date',
description: 'ISO date-time string at UTC',
parseValue(value) {
return new Date(value)
},
serialize(value) {
return value.toISOString()
},
parseLiteral(ast) {
if (ast.kind ... | Requarks/wiki | server/graph/scalars/date.js | JavaScript | agpl-3.0 | 458 |
define( [
'dojo/_base/declare',
'dojo/_base/array',
'dojo/aspect',
'dojo/on',
'dijit/focus',
'dijit/form/Button',
'dijit/form/RadioButton',
'dojo/dom-construct',
'dijit/Dialog',
'dojox/form/Uploader',... | nathandunn/jbrowse | src/JBrowse/View/FileDialog.js | JavaScript | lgpl-2.1 | 10,642 |
/**
* Provides enhanced tooltips.
*
* @author Alexander Ebert
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Ui/Tooltip
*/
define(['Environment', 'Dom/ChangeListener', 'Ui/Alignment'], function(Enviro... | 0xLeon/WCF | wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js | JavaScript | lgpl-2.1 | 3,365 |
/*
Timer by Algorithm
http://www.codingforums.com/archive/index.php/t-10531.html
*/
function Timer(){
this.obj = (arguments.length)?arguments[0]:window;
return this;
}
// The set functions should be called with:
// - The name of the object method (as a string) (required)
// - The millisecond delay (requi... | JojoCMS/Jojo-CMS | plugins/jojo_core/js/timer.js | JavaScript | lgpl-2.1 | 1,908 |
repository.getLogger('com.orientechnologies.orient.server.distributed').level = Level.INFO
repository.getLogger('com.orientechnologies.orient.server.network').level = Level.INFO
repository.getLogger('com.orientechnologies.orient.server').level = Level.INFO
repository.getLogger('com.orientechnologies.orient.graph').lev... | tliron/sincerity | components/skeletons/orientdb/configuration/logging/loggers/orientdb.js | JavaScript | lgpl-3.0 | 336 |
var dir_f528488e051be7f241cb5c5f2fcbea48 =
[
[ "OfflineSaver.h", "_offline_saver_8h.html", "_offline_saver_8h" ]
]; | HZDR-FWDF/RISA | docs/dir_f528488e051be7f241cb5c5f2fcbea48.js | JavaScript | lgpl-3.0 | 119 |
/* global module require */
var path = require("path");
var fs = require("fs-extra");
var TreeModel = require("tree-model");
var rimraf = require("rimraf");
var when = require("when");
var shared = require("../../shared");
module.exports = (options) => {
return {
tree(params) {
function internalTree(baseP... | programming086/hexlet-ide | src/backend/rpc/fs.js | JavaScript | lgpl-3.0 | 2,831 |
/*
* This class is responsible for reading messages encoded in an html
* document.
*/
Ext.define('MontessoriCompass.controller.HtmlPhotoAlbumReader', {
extend: 'Ext.data.reader.Json',
alias: 'reader.htmlphotoalbum',
getResponseData: function (response) {
try {
var retVal = {
... | mkelly1495/montessoricompass | app/controller/HtmlPhotoAlbumReader.js | JavaScript | lgpl-3.0 | 1,381 |
/**
* @constructor
*/
greppy.Validator = function()
{
};
/**
* Initializes greppy validators.
*/
greppy.Validator.prototype.init = function ()
{
var self = this;
this.allValidators = $('input, select, textarea').filter('.greppy-validator');
this.events = [];
this.bindEvent('invali... | Jack12816/greppy-frontend | js/validator.js | JavaScript | lgpl-3.0 | 5,529 |
var Widgets = vs.core.createClass ({
parent: vs.ui.Application,
applicationStarted : function (event) {
initNavBar (this);
initInput (this);
initSwitch (this);
initSelector (this);
initSliderProgress (this);
}
});
var app;
function loadApplication () {
app = new Widgets ({id:"theme"}).... | vinisketch/VSToolkit | examples/Themes/js/Theme.js | JavaScript | lgpl-3.0 | 2,863 |
import React, { Component } from 'react'
import ChangePasswordModal from './ChangePasswordModal.js'
import Studio from 'jsreport-studio'
class UserEditor extends Component {
componentDidMount () {
if (this.props.entity.__isNew && !this.props.entity.password) {
Studio.openModal(ChangePasswordModal, {... | jsreport/jsreport-authentication | studio/UserEditor.js | JavaScript | lgpl-3.0 | 719 |
require(["hooves/hooves"], (function (module47c9484436) {
return (function (arguments) {
// ("hooves/hooves" :all)
;
var windowAlias100040 = window;
var setModuleObject = (function (valueG100118) {
windowAlias100040 = valueG100118;
});
return (function (arguments) {
... | VincentToups/gazelle | scripts/main.js | JavaScript | lgpl-3.0 | 1,048 |
require=(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)... | matthieu/go-ethereum | internal/jsre/deps/web3.js | JavaScript | lgpl-3.0 | 401,233 |
model.jsonModel = {
services: [
{
name: "alfresco/services/LoggingService",
config: {
loggingPreferences: {
enabled: true,
all: true
}
}
}
],
widgets: [
{
name: "aikauTesting/widgets/ObjectProcessingMixi... | jphuynh/Aikau | aikau/src/test/resources/testApp/WEB-INF/classes/alfresco/site-webscripts/alfresco/core/ObjectProcessingMixin.get.js | JavaScript | lgpl-3.0 | 438 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2007-2010 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/d... | sebastienhupin/qxrad | qooxdoo/framework/source/class/qx/test/dev/StackTrace.js | JavaScript | lgpl-3.0 | 3,425 |
var classmemoryoracle_1_1test__models_1_1ObjectFileTestData =
[
[ "set_up_class", "classmemoryoracle_1_1test__models_1_1ObjectFileTestData.html#adf4fa9da652e3a9b4370825ca725231f", null ],
[ "_depends", "classmemoryoracle_1_1test__models_1_1ObjectFileTestData.html#a58e83b2bf3943fecaeba312eb2219144", null ],
... | daniel-noland/MemoryOracle | doc/html/classmemoryoracle_1_1test__models_1_1ObjectFileTestData.js | JavaScript | lgpl-3.0 | 438 |
(function($) {
var cultures = $.global.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["iu"] = $.extend(true, {}, en, {
name: "iu",
englishName: "Inuktitut",
nativeName: "Inuktitut",
language: "iu",
numberFormat: {
... | Kapinko/CJAF | lib/jquery/global/globinfo/jquery.glob.iu.js | JavaScript | lgpl-3.0 | 1,445 |
export default from './steps'
| fabienjuif/KeyBoard | app/redux/reducers/steps/index.js | JavaScript | lgpl-3.0 | 30 |
function BuscarGruposAuditorCiudadano()
{
$.ajax({
type: "POST",
url: '../../Views/GestionGAC/RetiroGac_ajax', data: { BuscarTotalGac: $("#txtPalabraClaveGac").val() },
traditional: true,
cache: false,
dataType: "json",
beforeSend: function () {
waitblock... | avillamizar880/transparencia | AuditoriasCiudadanas/AuditoriasCiudadanas/Scripts/GrupoAuditorCiudadano.js | JavaScript | lgpl-3.0 | 8,018 |
'use strict';
var expect = require('chai').expect;
var rpc_client = require('./rpc_client/rpc_client.js');
var Wallet = require("nebulas");
var protocol_version = '/neb/1.0.0'
var node_version = '0.7.0'
var server_address = 'localhost:8684';
var coinbase = "eb31ad2d8a89a0ca6935c308d5425730430bc2d63f2573b8";
var chain_... | nebulasio/go-nebulas | nebtestkit/cases/rpc/admin.NodeInfo.test.js | JavaScript | lgpl-3.0 | 3,192 |
/*
Name: opencorporates.js
Description: Unofficial Node.js module for the OpenCorporates.com API
Author: Franklin van de Meent <https://frankl.in/>
Source: https://github.com/fvdm/nodejs-opencorporates
Feedback: https://github.com/fvdm/nodejs-opencorporates/issues
License: Public Domain (U... | fvdm/nodejs-opencorporates | opencorporates.js | JavaScript | unlicense | 6,303 |
$(document).ready(function () {
/* make tables sortable */
$('article table').each(function (idx, e) {
$(e).tablesorter({sortInitialOrder: "desc"});
});
/* set content min height */
$('#main').css("min-height", $(window).innerHeight() - ($('header').outerHeight() + $('footer').outerHeight()));
$(window).resiz... | opendatacity/nebeneinkuenfte | dist/assets/js/nebeneinkuenfte.js | JavaScript | unlicense | 6,203 |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.VueForm = factory());
}(this, (function () { 'use strict';
var emailRegExp = /^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z... | NxtChg/vuepack | components/vue-form.js | JavaScript | unlicense | 28,487 |
module.exports = function(app){
var cors = require('cors');
app.get('/testamentos', function(req, res){
console.log('Recebida requisicao de teste na porta 3000.')
res.send('OK.');
});
app.get('/testamentos/getAll', cors(), function(req, res){
var connection = req.connection;//app.persistenci... | mhjmhj2002/Biblia | controllers/testamentos.js | JavaScript | unlicense | 745 |
import test from 'tape'
import mk from './test-utils/mk'
test('modify properties', function (t) {
var el = mk()
.attr('width', 100)
.attr('height', 200)
.node()
t.plan(2)
t.equal(el.getAttribute('width'), 100)
t.equal(el.getAttribute('height'), 200)
})
test('append children', function (t) {
var... | Olical/react-faux-dom | test/d3.js | JavaScript | unlicense | 4,392 |
/**
* Created by daniel.irwin on 3/4/17.
*/
/**
* Created by daniel.irwin on 3/5/17.
*/
describe('TimeSeries', () => {
var TimeSeries = require('../mathforeach').Timeseries;
let expect = require('assert').deepEqual;
it('gapFill', () => {
expect(new TimeSeries([
{ts: 0, v: -5},
... | arupex/math-foreach | test/timeseries.js | JavaScript | unlicense | 2,910 |
import _isElement from "./internal/helpers/_isElement.js";
import _throwErrorIf from "./internal/validation/_throwErrorIf.js";
/**
* Verifies if a DOM element has a CSS class.
*
* @category ClassName
*
* @param {HTMLElement} domEl The DOM element.
* @param {string} className The CSS class name.
* @return {boo... | leofavre/canivete | dist/hasClass.js | JavaScript | unlicense | 782 |
// Userモデルを外のモジュールから使うテスト
var user = require.main.exports.models('user');
console.log('now searching..');
models('user').find({
where: {user_id: 1}
}).success(function(user){
console.log(user);
});
| syamn/note | 130929/another.js | JavaScript | unlicense | 244 |
// Link to the problem: https://www.hackerrank.com/challenges/js10-class/problem
/*
* Implement a Polygon class with the following properties:
* 1. A constructor that takes an array of integer side lengths.
* 2. A 'perimeter' method that returns the sum of the Polygon's side lengths.
*/
class Polygon {
constr... | Kvaibhav01/HackerRank-in-Java | 10 Days of JavaScript/Day 4/Classes.js | JavaScript | unlicense | 574 |
const fetch = require('node-fetch')
const url = 'https://api.tumblr.com/v2/tagged?tag=pitbull&api_key=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4'
module.exports = (pluginContext) => {
return {
respondsTo: (query) => {
return query === 'pibble'
},
search: (query, env = {}) => {
return ... | blainesch/zazu-pibble | pibble.js | JavaScript | unlicense | 933 |