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 |
|---|---|---|---|---|---|
let f = module.exports = {};
let admin = require('firebase-admin');
let mysql = require('mysql');
let config = require('../config/config.json');
admin.initializeApp({
credential: admin.credential.cert(config.credential),
databaseURL: config.firebaseDB.databaseURL
});
let pool = mysql.createPool({
connec... | RankingIT/RankingIT | server/model/functions.js | JavaScript | gpl-3.0 | 2,348 |
const idCache = {};
export const set = (key, val) => {
idCache[key] = val;
};
export const get = (k) => idCache[k];
export const keys = () => Object.keys(idCache);
export const size = () => keys().length;
export default {
get,
set,
keys,
size,
};
| patschwork/meta_grid | meta_grid/vendor/bower-asset/mermaid/src/diagrams/state/id-cache.js | JavaScript | gpl-3.0 | 260 |
/*
* Copyright (C) 2015-present CloudBeat Limited
*
* 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.
*/
/**
* @su... | oxygenhq/oxygen-node | ox_modules/module-web/commands/findElements.js | JavaScript | gpl-3.0 | 1,136 |
loadlibrary resurrectjava/src/main/resources/library/01_factory.js
loadlibrary resurrectjava/src/main/resources/library/02_util.js
loadlibrary resurrectjava/src/main/resources/library/04_openjdk7.js
loadlibrary resurrectjava/src/main/resources/library/80_activemq.js
loadlibrary resurrectjava/src/main/resources/library/... | smil2k/resurrect-java | start.js | JavaScript | gpl-3.0 | 680 |
(function () {
'use strict';
//creation of namespace
WinJS.Namespace.define('Models', {
//creation of the class to manage a user object
User: WinJS.Class.mix(WinJS.Class.define(
//constructor
function (data) {
if (data) {
th... | sbourgin/MobileDev | Windows8/MessagingApp/MessagingApp/js/models/user.js | JavaScript | gpl-3.0 | 11,019 |
var allTestFiles = [];
var TEST_REGEXP = /(spec|test)\.js$/i;
// Get a list of all the test files to include
Object.keys(window.__karma__.files).forEach(function(file) {
if (TEST_REGEXP.test(file)) {
// Normalize paths to RequireJS module names.
// If you require sub-dependencies of test files to ... | kjkurien/skinnyui | test-main.js | JavaScript | gpl-3.0 | 930 |
/*
* Moonshine - a Lua virtual machine.
*
* Copyright (C) 2013 Gamesys Limited,
* 10 Piccadilly, London W1J 0DD
* Email: moonshine@gamesys.co.uk
* http://moonshinejs.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... | goto-bus-stop/gamesys-moonshine | vm/src/Coroutine.js | JavaScript | gpl-3.0 | 5,006 |
enyo.kind({
name: "FeedFolderPopup",
kind: enyo.Popup,
className: "feedScroller feedIcon",
width: "120px",
published: {
feeds: []
},
events: {
onViewFeed: "",
onViewFeedPopup: ""
},
components: [
{name: "scroller", flex: 1, kind: enyo.BasicScroller, autoHorizontal: false, horizontal: fal... | Tibfib/NomNomNom-for-Google-Reader | main/source/javascript/feedManagement/FeedFolderPopup.js | JavaScript | gpl-3.0 | 1,356 |
function reloadWithQueryStringVars (queryStringVars) {
var existingQueryVars = location.search ? location.search.substring(1).split("&") : [],
currentUrl = location.search ? location.href.replace(location.search,"") : location.href,
newQueryVars = {},
newUrl = currentUrl + "?";
if(existingQueryVars.length > 0... | AndreTGMello/d3SOBr | lib/d3SOBr.js | JavaScript | gpl-3.0 | 27,064 |
/* Copyright 2011 Black House Software
*
* This file is part of 'Find That Robot'.
*
* 'Find That Robot' 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 ... | neoGeneva/findthatrobot | controllers/user.js | JavaScript | gpl-3.0 | 2,699 |
/**
* Created by JetBrains PhpStorm.
* User: Ernesto J. Rodriguez (Certun)
* File:
* Date: 2/18/12
* Time: 11:09 PM
*/
Ext.define('App.store.administration.Medications', {
model: 'App.model.administration.Medications',
extend: 'Ext.data.Store',
autoLoad : false,
autoSync : true,
remoteSort: true
}); | MitosEHR/MitosEHR-Official | app/store/administration/Medications.js | JavaScript | gpl-3.0 | 319 |
//this file should be loaded the first
//I did NOT use the following syntax because the 'window' object does not exist
//in Firefox background script name space
//window.SimpleGmailNotes = window.SimpleGmailNotes || {}
//this script would be put into page script, better use a strong naming
//convention
/*********** ... | walty8/simple-gmail-notes.chrome | common/shared-common.js | JavaScript | gpl-3.0 | 5,665 |
/*
* Copyright (c) 2002-2020 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
* This file is part of Neo4j.
* Neo4j 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... | akollegger/neo4j-browser | src/browser/modules/Sidebar/favorites.js | JavaScript | gpl-3.0 | 4,269 |
import React, { Component, PropTypes } from 'react';
import {observer} from 'mobx-react';
import Modal from 'react-modal';
@observer
class ValidateModal extends Component {
static propTypes = {
isOpen: PropTypes.bool.isRequired,
onRequestClose: PropTypes.func.isRequired,
onRequestSubmit: PropTypes.func.i... | icgc-dcc/dcc-submission | dcc-submission-ui/src/Submission/modals/SignOffSubmissionModal.js | JavaScript | gpl-3.0 | 1,908 |
$(document).ready(function() {
var streamArray = [
"ESL_SC2",
"cretetion",
"freecodecamp",
"storbeck",
"habathcx",
"RobotCaleb",
"noobs2ninjas",
"0gamingSC2"
];
for (var i = 0; i < streamArray.length; i++) {
var apiChans =
"https://api.twitch.tv/kraken/channels/" +
... | f1ux1uxday/gil_ganesh | ACE/twitch.js | JavaScript | gpl-3.0 | 2,622 |
(function() {
'use strict';
angular.module('bmFrontendApp')
.service('BookService', BookService);
function BookService($resource, ConstantURL, $http, Toast, FileSaver) {
var service = {
range: range(),
document: document,
resultToObject: resultToObject,
numberToQuarter: numberToQ... | JuanLSanchez/bm-frontend | app/scripts/services/book.service.js | JavaScript | gpl-3.0 | 3,220 |
"use strict";
let assert = require('chai').assert;
let co = require("co").wrap;
let consts = require("./consts.js");
let Promise = require("bluebird");
let ROSCATest = artifacts.require('ROSCATest.sol'); // eslint-disable-line
let ExampleToken = artifacts.require('test/ExampleToken.sol'); // eslint-disable-line
let ER... | WeTrustPlatform/rosca-contracts | test/utils/utils.js | JavaScript | gpl-3.0 | 5,041 |
import React from 'react';
import { Platform } from 'react-native';
import { createStackNavigator, createBottomTabNavigator } from 'react-navigation';
import TabBarIcon from '../components/TabBarIc... | pip/Octology | dvl/d8/d80k/navigation/MainTabNavigator.js | JavaScript | gpl-3.0 | 1,784 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign2 = require('lodash/assign');
var _assign3 = _interopRequireDefault(_assign2);
var _isObject2 = require('lodash/isObject');
var _isObject3 = _interopRequireDefault(_isObject2);
var _react = require('react');
var _react2 =... | Jorginho211/TFG | web/node_modules/react-css-modules/dist/wrapStatelessFunction.js | JavaScript | gpl-3.0 | 1,976 |
//------------------------------------------------------------------------------
// Face for SPRITE robot (to be run on mobile phone)
// Copyright (C) 2017 Elaine Schaertl Short
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publishe... | interaction-lab/cordial-public | cordial_face/web/js/svgFace.js | JavaScript | gpl-3.0 | 36,818 |
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/m/MessageToast"
], function (Controller, MessageToast, JSONModel, ResourceModel) {
"use strict";
return Controller.extend("ecole.famille.controller.Menu", {
navToMenu : function(evt) {
// Navigue vers le l'écran proposé dans le men... | esperas/suivi | controller/Menu.controller.js | JavaScript | gpl-3.0 | 535 |
require([
'dojo/on',
'dojo/topic',
'dojo/_base/declare',
'dojo/_base/Color',
'dojo/Deferred',
'dojo/dom-construct',
'dijit/layout/ContentPane',
'dijit/Tooltip',
'codecompass/model',
'codecompass/viewHandler',
'codecompass/urlHandler'],
function (on, topic, declare, Color, Deferred, dom, ContentPan... | csordasmarton/CodeCompass | plugins/cpp_reparse/webgui/js/cppReparseFileAST.js | JavaScript | gpl-3.0 | 3,448 |
import * as CommunitySelectors from '@/community/selectors'
import AuthSelectors from '@/account/redux/selectors'
import MobSelectors from '@/mobrender/redux/selectors'
export default (state, ownProps) => {
const mob = MobSelectors(state, ownProps)
const auth = AuthSelectors(state, ownProps)
return {
loading... | ourcities/rebu-client | packages/bonde-admin/src/components/navigation/sidebar/map-state-to-props.js | JavaScript | gpl-3.0 | 477 |
/**
* Create a new bugfix version (x.y.++):
* grunt v:patch
* grunt minify
* grunt bump-commit
*
* Create a new feature version (x.++.0)
* grunt v:minor
* grunt minify
* grunt bump-commit
*
* Create a new major version (++.0.0)
* grunt v:major
* grunt minify
* grunt bump-commit
*
* @pa... | ancasicolica/ferropoly-editor | Gruntfile.js | JavaScript | gpl-3.0 | 3,817 |
Bitrix 16.5 Business Demo = 47e8885a7f9c5a7d8fa56ef32b5bace3
Bitrix 17.0.9 Business Demo = 768ebb937fee513799c425f1fbd577b0
| gohdan/DFC | known_files/hashes/bitrix/modules/lists/install/components/bitrix/lists.live.feed/templates/.default/script.js | JavaScript | gpl-3.0 | 124 |
// Copyright 2016-2021, University of Colorado Boulder
/**
* button used for putting expressions into edit mode
*/
import merge from '../../../../phet-core/js/merge.js';
import Node from '../../../../scenery/js/nodes/Node.js';
import Path from '../../../../scenery/js/nodes/Path.js';
import Color from '../../../../s... | phetsims/expressions | js/common/view/EditExpressionButton.js | JavaScript | gpl-3.0 | 1,568 |
import { sleep } from "./sleep"
let utils = {
sleep
};
export default utils
| thomaseizinger/frontend | src/utils/index.js | JavaScript | gpl-3.0 | 80 |
'use strict';
module.exports = {
metaData: {
fileName: 'ddf--entities--company--foundation.csv',
fileModifier: 'M',
datapackage: null
},
dataDiff: {
from: 'foundation,is--foundation\ngap,TRUE\n',
to: 'foundation,is--foundation\ngap,TRUE\nxsoft,FALSE\n'
},
streams: {
diff: null,
la... | VS-work/git-csv-diff | test/e2e/data/commit-2-8-metadata.js | JavaScript | gpl-3.0 | 335 |
import React from 'react';
import { identity, values } from 'ramda';
import { ImportKakapo } from 'components/import/kakapo';
import { getData, createComponentWithIntl, randomSounds } from '../helper';
function setup(props = {}) {
const propData = {
...getData('search'),
soundActions: {},
dispatch: ident... | bluedaniel/Kakapo-app | __tests__/src/components/kakapo.spec.js | JavaScript | gpl-3.0 | 713 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'vi', {
armenian: 'Số theo kiểu Armenian',
bulletedTitle: 'Thuộc tính danh sách không thứ tự',
circle: 'Khuyên tròn',
decimal: 'Kiể... | tsmaryka/hitc | public/javascripts/ckeditor/plugins/liststyle/lang/vi.js | JavaScript | gpl-3.0 | 1,067 |
var random = require('../utils/random');
var destroyMesh = require('../utils/destroyMesh');
var color = 0xff0000;
var Spiderling = function( poem, manager, x, y, theta ) {
this.poem = poem;
this.manager = manager;
this.scene = poem.scene;
this.polarObj = new THREE.Object3D();
this.object = null;
this.name = "S... | TatumCreative/polar-space | js/entities/Spiderlings.js | JavaScript | gpl-3.0 | 4,552 |
var ZOOM_MIN_SIZE = 200;
var currentPicture = '';
var lastShown = '';
function determineWindowWidth()
{
var windowWidth;
if (document.all)
{
windowWidth = document.body.clientWidth;
}
else
... | LeoFCardoso/webfilesys | src/main/webapp/javascript/popupPicture.js | JavaScript | gpl-3.0 | 6,904 |
import React from 'react'
import { namedPure } from '../util/recomposeHelpers'
import WailCrawls from '../components/wailCrawls'
const enhance = namedPure('WailCrawlView')
function WailCrawlView () {
return (
<div className='widthHeightHundoPercent' id='wViewContainer'>
<WailCrawls />
</div>
)
}
ex... | N0taN3rd/wail | wail-ui/containers/wailCrawlView.js | JavaScript | gpl-3.0 | 356 |
import test from 'ava';
import Card from '../lib/card';
import { getIssue, getConfig } from './_stubs';
import CardContent from '../lib/card-content';
import Formatter from '../lib/formatters/formatter';
import TwitterFormatter from '../lib/formatters/twitter';
import sinon from 'sinon';
test('updateContent', (t) => {... | mozillach/gh-projects-content-queue | test/card.js | JavaScript | mpl-2.0 | 6,050 |
/* -*- 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-31... | mozilla/rhino | testsrc/tests/js1_6/Regress/regress-314887.js | JavaScript | mpl-2.0 | 739 |
/* 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 {
createClass,
createFactory,
DOM,
PropTypes,
} = require("devtools/client/shared/ven... | Yukarumya/Yukarum-Redfoxes | devtools/client/netmonitor/shared/components/response-panel.js | JavaScript | mpl-2.0 | 5,891 |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
/**
* Test that we get the approximate time range for promise creation timestamp.
*/
"use strict";
const { PromisesFront } = require("devtools/shared/fronts/promises");
var events = require("sdk/event/core"... | Yukarumya/Yukarum-Redfoxes | devtools/server/tests/unit/test_promises_object_creationtimestamp.js | JavaScript | mpl-2.0 | 2,098 |
/* Any copyright is dedicated to the public domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
// Bug 1216937 - Test that window.open with null/empty URL should use
// about:blank as default
"use strict";
SimpleTest.waitForExplicitFinish();
browserElementTestHelpers.setEnabledPref(true);
browserElementTe... | Yukarumya/Yukarum-Redfoxes | dom/browser-element/mochitest/browserElement_OpenWindowEmpty.js | JavaScript | mpl-2.0 | 889 |
const config = require('config');
const request = require('request-module');
const debug = require('debug');
const _template = require('lodash/template');
const templatesCache = {};
const partialsCache = {};
function promiseCache(cache) {
return new Promise((resolve, reject ) => {
resolve(cache);
});
}
module.exp... | smile-soft/ctadmin | source/js/templates.js | JavaScript | mpl-2.0 | 936 |
/* 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';
define([
'cocktail',
'lib/xhr',
'views/base',
'stache!templates/pp',
'lib/auth-errors',
... | jpetto/fxa-content-server | app/scripts/views/pp.js | JavaScript | mpl-2.0 | 1,195 |
/* 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/. */
// mock out a DOM event
define(function (require, exports, module) {
'use strict';
function DOMEventMock() ... | shane-tomlinson/fxa-content-server | app/tests/mocks/dom-event.js | JavaScript | mpl-2.0 | 716 |
// To do:
// - Figure out why the spinlock does not work well
// - Worry about worker priority in RuntimeServices.cpp
const workOnMain = false;
const numWorkers = 3 + (workOnMain ? 0 : 1);
var workers = [];
for ( var i=0 ; i < numWorkers ; i++ ) {
var w;
workers.push(w = new Worker("mbrot-slave.js"));
w... | lars-t-hansen/parlib | mbrot/mbrot-master.js | JavaScript | mpl-2.0 | 2,634 |
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=2 et tw=80: */
"use strict";
add_task(function* testWindowCreate() {
let extension = ExtensionTestUtils.loadExtension({
manifest: {
permissions: ["tabs"],
},
background: async function() {
const EXTENSION_URL ... | Yukarumya/Yukarum-Redfoxes | browser/components/extensions/test/browser/browser_ext_windows_create_url.js | JavaScript | mpl-2.0 | 2,878 |
var renderer = null;
var scene = null;
var camera = null;
var clock = new THREE.Clock();
var controls = null;
var projector = null;
var highlight = null;
var targetList = [];
var brickTexture = null;
var woodTexture = null;
var floorTexture = null;
var buildingLocations = [];
function makeTextSprite( message, paramete... | wfwalker/thecount | scripts/vrHelpers.js | JavaScript | mpl-2.0 | 8,407 |
import styled from 'styled-components';
import remcalc from 'remcalc';
export default styled.span`
display: inline-block;
& [data-ui-button='true'] {
margin-left: 0 !important; /* remove when we remove margins */
}
& [data-ui-button='true']:not(:first-child) {
border-top-left-radius: 0;
border-bo... | geek/joyent-portal | packages/ui-toolkit/src/button/group.js | JavaScript | mpl-2.0 | 501 |
/* 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/>. */
// @flow
import { findClosestFunction } from "../ast";
import type { SourceLocation, Source, ASTLocation } fro... | ruturajv/debugger.html | src/utils/breakpoint/astBreakpointLocation.js | JavaScript | mpl-2.0 | 1,276 |
suite('client requests/responses', function() {
var taskcluster = require('../');
var assert = require('assert');
var path = require('path');
var debug = require('debug')('test:client');
var _ = require('lodash');
var nock = require('nock');
var _... | taskcluster/taskcluster-client | test/client_test.js | JavaScript | mpl-2.0 | 20,328 |
var iz = require('../../lib/iz');
//iz.use('Animals.Duck');
module.exports = iz.Package('Animals.BrokenDuck', { extends: 'Animals.Duck' }, function (Class, SUPER) {
// THIS FILE IS INTENTIONALLY BROKEN TO PRODUCE A SYNTAX ERROR!
Class.has( 'quack', { default: 'Quirk'}));
return Class;
});
| ionzero/iz | test/Animals/BrokenDuck.js | JavaScript | mpl-2.0 | 303 |
function marcos_pos_basewidget(instance, module){ //module is instance.point_of_sale
var round_di = instance.web.round_decimals;
var round_pr = instance.web.round_precision
// This is a base class for all Widgets in the POS. It exposes relevant data to the
// templates :
// - widget.currency : {... | MarcosCommunity/odoo | marcos_addons/marcos_pos/static/src/js/widget_base.js | JavaScript | agpl-3.0 | 1,499 |
import {expectSaga} from 'redux-saga-test-plan'
import * as matchers from 'redux-saga-test-plan/matchers'
import rest from '../rest'
import transformInputValues from './transformInputValues'
describe('app-extensions', () => {
describe('form', () => {
describe('transformInputValues', () => {
test('should r... | tocco/tocco-client | packages/core/app-extensions/src/form/transformInputValues.spec.js | JavaScript | agpl-3.0 | 2,577 |
var NO_CLIENTE=4;
$("#_detailblock").hide();
noShowNoCliente();
renderMisteryTabs();
function noShowNoCliente() {
if ($("#tipo_cuenta").val()==NO_CLIENTE){
if ($("#chk_es_proveedor").is(':checked')==false &&
$("#chk_es_cliente_potencial").is(':checked')==false &&
$("#chk_es_competidor").is(':checked')==fals... | ExpandeNegocio/crm | include/javascript/Expan_Franquicia/CambioFranquicia.js | JavaScript | agpl-3.0 | 4,993 |
OC.L10N.register(
"deck",
{
"Personal" : "Peribadi",
"Done" : "Done",
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" : "Saiz fail yang dimuatnaik melebihi MAX_FILE_SIZE yang ditetapkan dalam borang HTML",
"No file was uploaded" : "Tiada fail dimuatnai... | juliushaertl/deck | l10n/ms_MY.js | JavaScript | agpl-3.0 | 736 |
$('#device1_page').on('pageinit', function(event) {
Nodo_State();
getGroups('device1_group');
});
$('#device1_page').on('pageshow', function(event) {
pagetitle = 'Setup: Add KAKU';
$('#header_setup_device1').append('<div id="nodostate">'+pagetitle+'</div>');
});
$('#device1_page').on('pagehide',... | Nodo-Domotica/WebApp | admin/js/setup_predef_devices.js | JavaScript | agpl-3.0 | 8,430 |
'use strict';
var _ = require('lodash');
var r = require('rethinkdb');
var p = require('json-pointer');
var li = require('li');
var qs = require('qs');
var operators = {};
// build simple operators
['eq', 'ne', 'gt', 'lt', 'ge', 'le', 'match'].forEach(function(op) {
operators[op] = function(f, row) {
var path = A... | mike-marcacci/gandhi | lib/api/controller.js | JavaScript | agpl-3.0 | 4,082 |
/**
Copyright (C) 2014 ATOS
This file is part of AEON.
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, or (at your option) any later ... | atos-ari-aeon/fiware-cloud-messaging-api | core/pubsub/log/mongoLog.js | JavaScript | agpl-3.0 | 1,770 |
const { Command, utils } = require('sylphy')
class UpgradePet extends Command {
constructor (...args) {
super(...args, {
name: 'train',
description: 'A place to upgrade your pet\'s stats',
aliases: ['training'],
options: { localeKey: 'shop' },
group: 'games'
})
}
/*
██ ... | pyraxo/haru | src/commands/games/petupgrade.js | JavaScript | agpl-3.0 | 7,541 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Customer", "refresh", function(frm) {
cur_frm.cscript.setup_dashboard(frm.doc);
if(frappe.defaults.get_default("cust_master_name")!="Naming Series") {
frm.toggle_disp... | Tejal011089/huntercamp_erpnext | erpnext/selling/doctype/customer/customer.js | JavaScript | agpl-3.0 | 3,692 |
function i3beforeSubmit(o){
var f = $(o).parents('form').get(0);
return true;
// Abro el Cajon
if( f['cf_cajon'] && f['cf_cajon'].value != '' )
$("#i3hiddenjava1").html('<applet archive="' + ejecuta_jar + '" code="ejecuta.class" width="0" height="0" id="ObjEjecuta" ><param name="comando" value="' + f... | Coolbleiben/gruposmaic | i3_1206/nsk/nsk_form_vfacturas_pagina_articulos.js | JavaScript | agpl-3.0 | 65,427 |
define(['jquery',
'knockout',
'arches',
'bindings/smartresize'],
function($, ko, arches) {
var componentName = 'saved-searches';
return ko.components.register(componentName, {
viewModel: function(params) {
var self = this;
self.items = ko.observableArray([]);
... | archesproject/arches | arches/app/media/js/views/components/search/saved-searches.js | JavaScript | agpl-3.0 | 1,422 |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
cur_frm.cscript['Calculate Testing Of Extract'] = function() {
wn.model.open_mapped_doc({
method: "test.doctype.test_preparation.test_preparation.calculate_testing_of_extract",
... | saurabh6790/tru_app_back | test/doctype/test_preparation/test_preparation.js | JavaScript | agpl-3.0 | 1,751 |
angular.module('cesium.es.message.services', ['ngResource', 'cesium.platform',
'cesium.es.http.services', 'cesium.es.wallet.services', 'cesium.es.notification.services'])
.config(function(PluginServiceProvider, csConfig) {
'ngInject';
var enable = csConfig.plugins && csConfig.plugins.es;
if (enable) {
... | duniter/cesium | www/plugins/es/js/services/message-services.js | JavaScript | agpl-3.0 | 24,803 |
/* global angular */
import 'ionic-sdk/release/js/ionic.bundle';
angular.module('app.directive.valid-address', [])
.directive('validAddress', function ($parse, Destination) {
'use strict';
return {
require: 'ngModel',
scope: {
validAddress: '&'
},
link: link
};
function ... | johansten/stargazer | app/core/directives/valid-address.js | JavaScript | agpl-3.0 | 766 |
/*
* This file is part of huborcid.
*
* huborcid 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, or
* (at your option) any later version.
*
* huborcid is distrib... | Cineca/OrcidHub | src/main/webapp/bower_components/angular-i18n/kw.js | JavaScript | agpl-3.0 | 760 |
(function (mw, $) {
"use strict";
mw.PluginManager.add('chapters', mw.KBaseMediaList.extend({
defaultConfig: {
'parent': 'sideBarContainer',
'containerPosition': null,
'order': 2,
'showTooltip': false,
"displayImportance": 'high',
'templatePath': 'components/chapters/chapters.tmpl.html',
'cue... | bordar/mwEmbed | modules/BorhanSupport/components/chapters/chapters.js | JavaScript | agpl-3.0 | 45,526 |
// # api
// Handle all API requests.
module.exports = function(app, db) {
// ## Get a user
// Does not return strats.
app.get('/api/:userType(u|user)/:user', function(req,res) {
db.findUser(req.params.user, function(err, user) {
if (user) {
// If the user that was passed exists, pass back info.
res.jso... | DuckSyrup/csgo-drawing-board | server/routes/api.js | JavaScript | agpl-3.0 | 1,949 |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'smiley', 'af', {
options: 'Lagbekkie opsies',
title: 'Voeg lagbekkie by',
toolbar: 'Lagbekkie'
} );
| astrobin/astrobin | astrobin/static/astrobin/ckeditor/plugins/smiley/lang/af.js | JavaScript | agpl-3.0 | 293 |
(function () {
"use strict"
angular.module("timesheetModule").controller("timesheetController", ["$http", "$location", "$scope", "$timeout", "halClient", "localStorageService", "resource", function ($http, $location, $scope, $timeout, halClient, localStorageService, initialResource) {
$scope.saveEntryCell = funct... | saulo2/timesheet-java | src/main/webapp/js/timesheetController.js | JavaScript | agpl-3.0 | 6,407 |
import A11y from "./a11y";
import Cookies from "js-cookie";
import rangy from "rangy";
const supportedBrowsers = require ("./supportedBrowsers");
// TODO: Move global functions to eplilon object?
window.skinGoogleTranslatePage = function (fromLang) {
window.open ("http://translate.google.com/translate?hl=en&sl=... | roman-yagodin/R7.Epsilon | R7.Epsilon/Skins/js/skin.js | JavaScript | agpl-3.0 | 15,265 |
/*
http://www.spaceweather.com/
http://www.swpc.noaa.gov/SWN/index.html
https://github.com/vodolaz095/geomagnetic
http://sohowww.nascom.nasa.gov/spaceweather/
http://sdo.gsfc.nasa.gov/
http://www.esa-spaceweather.net/
https://earthdata.nasa.gov/data/data-tools
http://www.solarham.net/
http:/... | automenta/netjs | plugin/spaceweather.js | JavaScript | agpl-3.0 | 1,723 |
Invite = function (obj) {
this.email = obj["email"];
this._accepted = ko.observable(obj["isAccepted"]);
this._declined = ko.observable(obj["isDeclined"]);
this.revokeUrl = ko.observable(obj["revokeUrl"]);
this.isAccepted = ko.computed(function() { return this._accepted(); }, this);
this.isDecli... | bschmeck/two_sixes | app/assets/javascripts/invite.js | JavaScript | agpl-3.0 | 649 |
const misc = {
input: {
username: 'Nome de Usuário',
firstname: 'Primeiro Nome',
lastname: 'Sobrenome',
email: 'Endereço de Email',
telefon: 'Telefone',
congregation: 'Congregação',
languages: 'Linguagens',
gender: 'Sexo',
privilegeOfService: 'Privilégio de Serviço',
privilegeO... | JWDeveloper/JWManagement | imports/i18n/pt/misc.js | JavaScript | agpl-3.0 | 2,019 |
/*
* Time Lane exit portal script
* Used for portal in map 270000100
*
* Take player to Leafre
*/
function enter(pi) {
pi.warp(240000110);
return true;
}
| NoetherEmmy/intransigentms-scripts | portal/outTemple.js | JavaScript | agpl-3.0 | 168 |
/*
* This file is part of FortressJS - Fast, secure, powerful and simple I/O framework
* Copyright (c) 2014-2019 Adrien THIERRY
* https://fortressjs.com - https://seraum.com
*
* sources : https://github.com/seraum/fortressjs
*
* this program is free software: you can redistribute it and/or modify
* it under the... | seraum/fortressjs | base/class/fdb/deletebyid.fdb.js | JavaScript | agpl-3.0 | 1,781 |
'use strict';
angular.module('vassalApp.controllers')
.controller('gameCtrl', [
'$scope',
'$state',
'$stateParams',
'$http',
'$q',
'$window',
'game',
'command',
'factions',
'modes',
function($scope,
$state,
$stateParams,
$http,
... | eauc/clicknfeat_proto | client/js/controllers/gameCtrl.js | JavaScript | agpl-3.0 | 18,417 |
const { GenericImageCommand } = require('../../models/')
module.exports = new GenericImageCommand({
triggers: ['magik', 'squiggle'],
description: 'Make something magik!'
})
| melmsie/Dank-Memer | src/commands/imageManipulation/magik.js | JavaScript | agpl-3.0 | 184 |
/*
Copyright (C) 2014 Kompetenzzentrum fuer wissensbasierte Anwendungen und Systeme
Forschungs- und Entwicklungs GmbH (Know-Center), Graz, Austria
office@know-center.at
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 F... | patrickhoefler/linked-data-wizards | ldva/apps/visbuilder/static/js/d3-multiline-class.js | JavaScript | agpl-3.0 | 15,168 |
// @flow
import reject from 'lodash/reject'
/**
* Throws a ReferenceError if any requested key is missing.
* @private
* @param {Object} obj - the object with keys to check
* @param {...string} listOfKeys - the list of keys to look for
* @throws {ReferenceError} Param 'obj' must include all requested keys
* @retu... | hawkrives/gobbldygook | modules/gob-examine-student/source/assert-keys.js | JavaScript | agpl-3.0 | 638 |
'use strict';
/**
* @ngdoc function
* @name marinaFrontendApp.controller:RepositoryCtrl
* @description
* # RepositoryCtrl
* Controller of the marinaFrontendApp
*/
angular.module('marinaFrontendApp')
.controller('RepositoryCtrl',
[ '$scope', '$stateParams', '$state','repository', 'marinaApi',
function ($s... | cloudfleet/floating-dock-frontend | app/scripts/controllers/repository.js | JavaScript | agpl-3.0 | 2,493 |
/**
* RespuestasPreguntasController
*
* @description :: Server-side logic for managing Respuestaspreguntas
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
};
| f3ar161/EPN-AAL | quizapp/api/controllers/RespuestasPreguntasController.js | JavaScript | agpl-3.0 | 220 |
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | aurimasv/zotero | chrome/content/zotero/xpcom/mime.js | JavaScript | agpl-3.0 | 12,475 |
function choice (choices) {
const index = Math.floor(Math.random() * choices.length)
return choices[index]
}
function capitalizeFirstLetter (string) {
return string.charAt(0).toUpperCase() + string.slice(1)
}
function getRandomInt (min, max) {
min = Math.ceil(min)
max = Math.floor(max)
return... | kkmsc17/smes | frontend/src/utils.js | JavaScript | agpl-3.0 | 932 |
import { expect } from 'chai';
import { describe, it, beforeEach } from 'mocha';
import { setupTest } from 'ember-mocha';
describe('Unit | Component | course list', function() {
setupTest('component:course-list', {});
describe('#filteredCourses', function() {
let component;
const oneCourseArray = [
... | sgmap/pix | live/tests/unit/components/course-list-test.js | JavaScript | agpl-3.0 | 1,762 |
/*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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... | pydio/pydio-core | core/src/plugins/editor.soundmanager/res/js/preview.js | JavaScript | agpl-3.0 | 2,092 |
/* eslint-disable */
sdModal.$inject = ['$document', '$rootScope'];
function sdModal($document, $rootScope) {
return {
template:
`<div class="modal" data-theme="{{theme}}" data-backdrop="static" data-test-id="{{testId}}">
<div class="modal__dialog" ng-if="model">
... | superdesk/superdesk-ui-framework | app/scripts/modals.js | JavaScript | agpl-3.0 | 2,958 |
define(function(require, exports, module) {
var EventEmitter = require("events").EventEmitter;
module.exports = function(stream) {
var emit = this.emit.bind(this);
var buffer = "";
stream.on("data", function(chunk) {
buffer += chunk;
var parts = buffer.split("\n");
wh... | rossonet/IdeNode | plugins/c9.cli.bridge/json-stream.js | JavaScript | agpl-3.0 | 1,097 |
(function($){
// extends jQuery object
$.extend({
Class : function(def) {
function c(){
if (typeof this.$super != 'undefined') this.$super.$this = this;
if ($.isFunction(this.$init)) this.$init.apply(this, arguments);
}
c.prototype = def;
c.constructor = c;
c.extend = Class_extend;
return c;
},
$... | largeden/xpresseditor_axupload5 | js/Xpress_Editor.js | JavaScript | lgpl-2.1 | 172,484 |
/**
* 캔버스 방식의 렌더링
*
* @private
* @class
* @param {collie.Layer} oLayer
*/
collie.LayerCanvas = collie.Class(/** @lends collie.LayerCanvas.prototype */{
$init : function (oLayer) {
this._oLayer = oLayer;
this._oEvent = oLayer.getEvent();
this._htDeviceInfo = collie.util.getD... | davidshimjs/jaguarjs | src/layer/LayerCanvas.js | JavaScript | lgpl-2.1 | 4,317 |
define([
"jquery",
"base1/cockpit",
"base1/angular",
"kubernetes/client"
], function($, cockpit, angular, kubernetes) {
'use strict';
return angular.module('kubernetes', [
'ngRoute',
'ui.bootstrap',
'kubernetes.dashboard',
'kubernetes.graph',
... | firebitsbr/cockpit | pkg/kubernetes/app.js | JavaScript | lgpl-2.1 | 3,048 |
var starpu__top_8h =
[
[ "starpu_top_data_type", "group__API__StarPUTop__Interface.html#ga7b7dfbb9c273503e6e7f5790b39e2d27", [
[ "STARPU_TOP_DATA_BOOLEAN", "group__API__StarPUTop__Interface.html#gga7b7dfbb9c273503e6e7f5790b39e2d27a8ae4c093533aae3d4ece7910d16fa7cf", null ],
[ "STARPU_TOP_DATA_INTEGER", "... | joao-lima/starpu-1.2.0rc2 | doc/doxygen/html/starpu__top_8h.js | JavaScript | lgpl-2.1 | 4,291 |
/*
* Copyright (C)2012 D. Plaindoux.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* This program is distributed i... | d-plaindoux/contrail | contrail-web-client/src/main/js/Actor/component/handler/RemoteActorHandler.js | JavaScript | lgpl-2.1 | 2,431 |
var TodoApp = vs.core.createClass ({
/** parent class */
parent: vs.ui.Application,
initComponent : function ()
{
this._super ();
// GUI component declaration
this.listView = new vs.ui.List (
{id:"todos_list", type:"DefaultList", hasArrow:false, scroll:true});
this.listView.init ();... | vinisketch/VSToolkit | examples/Todos/js/TodoApp.js | JavaScript | lgpl-3.0 | 2,262 |
'use strict';
var fs = require('fs');
// Import the library
var StorjAPI = require('..');
// Create a client authenticated with your key
var client = new StorjAPI.Client('https://api.storj.io', {
keypair: new StorjAPI.KeyPair('<your_private_ecdsa_key>')
});
// Keep track of the bucket ID and file hash
var bucket ... | Storj/metadisk-client | example/store-retrieve.js | JavaScript | lgpl-3.0 | 1,143 |
/**
* __ __ _
* | \/ |___ _ _ __| |_ ___ _ _
* | |\/| / _ \ ' \(_-< _/ -_) '_|
* |_| |_\___/_||_/__/\__\___|_|
* | \/ |_ _ _ _ __| |_ (_)___ ___
* | |\/| | || | ' \/ _| ' \| / -_|_-<
* |_| |_|\_,_|_||_\__|_||_|_\___/__/
*
* -------------------------------------------------------... | ShaPOC/iamlimitless.nl-portfolio | munchy-in-lua/GruntFile.js | JavaScript | lgpl-3.0 | 6,295 |
/**
* This file is part of ComilaJS.
*
* ComilaJS is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ComilaJS is distri... | danitso/comlajs | src/Parser/Header/TablesHeader.js | JavaScript | lgpl-3.0 | 2,348 |
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
// var ExtractTextPlugin = require('extract-text-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
var app = './src/main/webapp/static/app/';
module.exports = {
entry: {
'polyfills': a... | Ortolang/market | config/webpack.common.js | JavaScript | lgpl-3.0 | 7,621 |
UI = null;
UI = {
render: function(firstLoad) {
this.isWebkit = $.browser.webkit;
this.isChrome = $.browser.webkit && !!window.chrome;
this.isFirefox = $.browser.mozilla;
this.isSafari = $.browser.webkit && !window.chrome;
this.body = $('body');
this.firstLoad = fir... | Lyonard/MateCat | public/js/manage.js | JavaScript | lgpl-3.0 | 34,704 |
model.jsonModel = {
services: [
{
name: "alfresco/services/LoggingService",
config: {
loggingPreferences: {
enabled: true,
all: true
}
}
},
"alfresco/services/ErrorReporter"
],
widgets: [
{
name: "... | viqsoft/Aikau | aikau/src/test/resources/testApp/WEB-INF/classes/alfresco/site-webscripts/alfresco/forms/controls/DateTextBox.get.js | JavaScript | lgpl-3.0 | 3,448 |
artoo.$("body").append('<div id="artoo_ui" style="position:absolute;top:50px;right:50px;z-index:9999;background:#EEEEEE;"></div>');
var ui=new artoo.ui({mountNode:artoo.$("#artoo_ui")[0]});
ui.$().append('<textarea id="text_to_scrape" on style="width:500px;height:100px">We(500)|are(500)|the(500)|World(2000)|We(500)|a... | medialab/SE_Word_Imaging | artoo_rebus_image.js | JavaScript | lgpl-3.0 | 1,677 |
/*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... | lbndev/sonarqube | server/sonar-web/src/main/js/apps/projects/filters/Filter.js | JavaScript | lgpl-3.0 | 4,711 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var bodyParser = require('body-parser');
var routeGadgets = require('./routes/gadgets');
var routeDebug = require('./routes/debug');
var app = express();
// view engine setup
app.set(... | jpenalbae/rarop | app.js | JavaScript | lgpl-3.0 | 1,533 |