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 |
|---|---|---|---|---|---|
(function() {
if (!this.Meeko) this.Meeko = {};
if (!this.vendorPrefix) this.vendorPrefix = 'meeko';
}).call(this);
/*!
JS and Promise utils
(c) Sean Hogan, 2008,2012,2013,2014,2015
Mozilla Public License v2.0 (http://mozilla.org/MPL/2.0/)
*/
(function() {
/*
### Utility functions
These might (or might not) ... | meekostuff/HyperFrameset | HyperFrameset.js | JavaScript | mpl-2.0 | 225,362 |
/* 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/. */
import PairingChannelClientErrors from '../../lib/pairing-channel-client-errors';
import { State } from './state';... | mozilla/fxa-content-server | app/scripts/models/pairing/supplicant-state-machine.js | JavaScript | mpl-2.0 | 4,422 |
'use strict';
var mongoose = require('mongoose');
var config = require('./config/config');
var Joke = require('./models/Joke');
var User = require('./models/User');
var jokesController = require('./controllers/jokesController');
mongoose.connect(config.development.db);
User.seedInitialUsers();
var joke = {
body:... | susankelvin/JokeBook | Server/server-test.js | JavaScript | mpl-2.0 | 624 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
let { classes: Cc, interfaces: Ci } = Components;
const USER_CONTEXTS = ["default", "personal", "work"];
const COOKIE_NAMES = ["cookie0", "cookie1", "cookie2"];
const TEST_URL =
"http://example.com/browser/... | Yukarumya/Yukarum-Redfoxes | netwerk/cookie/test/browser/browser_originattributes.js | JavaScript | mpl-2.0 | 3,644 |
/* -*- Mode: js; js-indent-level: 2; indent-tabs-mode: nil; tab-width: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/*
* Copyright 2013 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | cure53/Flashbang | shumway/src/swf/font.js | JavaScript | mpl-2.0 | 14,286 |
/*
* 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 bunyan = require('bunyan');
var lib = require('../../lib/memor... | joyent/vera | test/memory/memory_properties.test.js | JavaScript | mpl-2.0 | 1,990 |
/**
* foreman run fetch_historic
* or
* heroku run fetch_historic
*/
var repo = {
org: 'mozilla-b2g',
name: 'gonk-misc'
};
var fetchData = require('./lib/fetch_data');
fetchData.workOnRepoPullRequests(repo, function fetched (err, res) {
process.exit(0);
});
| adamlofting/gitribution-2 | test.js | JavaScript | mpl-2.0 | 272 |
/* vim: set ts=2 et sw=2 tw=80: */
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
// Tests that the table widget api works fine
"use strict";
const TEST_URI = "data:text/xml;charset=UTF-8,<?xml version='1.0'?>" +
"<?xml-stylesheet href='chrome://global/s... | Yukarumya/Yukarum-Redfoxes | devtools/client/shared/test/browser_tableWidget_basic.js | JavaScript | mpl-2.0 | 11,628 |
import test from 'ava';
import { Neutrino, build } from '../src';
import { join } from 'path';
test('initializes with no arguments', t => {
t.notThrows(() => Neutrino());
});
test('initializes with options', t => {
t.notThrows(() => Neutrino({ testing: true }));
});
test('initialization stores options', t => {
... | eliperelman/neutrino-dev | packages/neutrino/test/api_test.js | JavaScript | mpl-2.0 | 7,425 |
(function() {
'use strict';
VersioningController.$inject = ['$scope', 'authoring', 'api', 'notify', 'lock', 'desks', 'archiveService'];
function VersioningController($scope, authoring, api, notify, lock, desks, archiveService) {
$scope.last = null;
$scope.versions = null;
$scope.selected = null;
$sco... | vladnicoara/superdesk-client-core | scripts/superdesk-authoring/versioning/versions/versions.js | JavaScript | agpl-3.0 | 2,922 |
import React from 'react';
import SPELLS from 'common/SPELLS';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import HIT_TYPES from 'game/HIT_TYPES';
import { f... | FaideWW/WoWAnalyzer | src/parser/paladin/protection/modules/spells/Judgment.js | JavaScript | agpl-3.0 | 3,177 |
/* 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/. */
// helper functions for views with passwords. Meant to be mixed into views.
'use strict';
define([
], function (... | ogasser/firefoxsync | js/scripts/views/mixins/resend-mixin.js | JavaScript | agpl-3.0 | 1,741 |
OC.L10N.register(
"updatenotification",
{
"Update notifications" : "Tilkynningar um uppfærslu",
"{version} is available. Get more information on how to update." : "{version} er í boði. Fáðu frekari upplýsingar um hvernig á að uppfæra.",
"Updated channel" : "Uppfærði rás",
"ownCloud core" : "ownC... | IljaN/core | apps/updatenotification/l10n/is.js | JavaScript | agpl-3.0 | 1,219 |
(function(Two, _, Backbone, requestAnimationFrame) {
var Shape = Two.Shape = function() {
// Private object for renderer specific variables.
this._renderer = {};
this.id = Two.Identifier + Two.uniqueId();
this.classList = [];
// Define matrix properties which all inherited
// objects of Sh... | CloudbrainLabs/htm-challenge | brainsquared/frontend/bower_components/two.js/src/shape.js | JavaScript | agpl-3.0 | 2,838 |
/*
* 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/sq-mk.js | JavaScript | agpl-3.0 | 763 |
export const lewisAcids = {
"(±)-10-Camphorsulfonic Acid": "O=C(CC(C(C)1C)CC2)C21CS(=O)(O)=O",
"1,2-Benzenedisulfonic Imide": "O=S(C1=CC=CC=C1S2(=O)=O)(N2)=O",
"2-Hydroxybenzoic Acid": "O=C(O)C1=CC=CC=C1O",
"5-Sulfosalicylic Acid Dihydrate": "OC1=CC=C(S(=O)(O)=O)C=C1C(O)=O.[H]O[H].[H]O[H]",
"Acetic Acid": "CC... | ComPlat/chemotion_ELN | app/packs/src/components/staticDropdownOptions/reagents/lewis_acids.js | JavaScript | agpl-3.0 | 4,263 |
$(document).ready(function() {
$(function () { $("[data-toggle='tooltip']").tooltip(); });
$('#registerForm').bootstrapValidator({
message: 'This value is not valid',
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
... | TinyHouse/webapp | public/javascripts/tiny.house.js | JavaScript | agpl-3.0 | 8,205 |
/******************************************************************************
* Copyright 2013 Lasse Liehu *
* *
* This file is part of SLURP. *
... | Vincit/slurp | services/user-service.js | JavaScript | agpl-3.0 | 1,893 |
var http = require('http'),
async = require('async'),
PassThrough = require('stream').PassThrough,
Unblocker = require('../lib/unblocker.js');
var unblocker = new Unblocker({
prefix: null,
domainPrefixing: true,
domain: 'u.fabicutv.com'
});
function app(req, res) {
// first let unblocker ... | emilhem/node-unblocker | test/test_utils_domain_prefix.js | JavaScript | agpl-3.0 | 3,035 |
(function($, l) {
// add the qrcode to the document once dom is loaded
$(function() {
$('.license_box').prepend('<img class="qrcode printonly" ' +
'src="//chart.googleapis.com/chart?chs=70x70&cht=qr&choe=UTF-8&chl=' +
encodeURIComponent(l.protocol + '//' + l.host + '/' + /\d+/.exec(... | c2corg/camptocamp.org | web/static/js/qrcode.js | JavaScript | agpl-3.0 | 378 |
/*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... | venturehive/canvas-lms | app/jsx/gradebook/EffectiveDueDates.js | JavaScript | agpl-3.0 | 2,122 |
'use strict';
angular.module('malariaplantdbApp')
.factory('LogsService', function ($resource) {
return $resource('api/logs', {}, {
'findAll': { method: 'GET', isArray: true},
'changeLevel': { method: 'PUT'}
});
});
| acheype/malaria-plant-db | src/main/webapp/scripts/components/admin/logs.service.js | JavaScript | agpl-3.0 | 265 |
{
"properties": [
{
"title":""
,
"subtitle":"Invoice size in €1K"
,
"type":"stacked group by chart"
,
"legend":"on"
,
"labels":"value"
,
"thousands":""
}
],
"label": [
"clases"
,
"base"
,
"otros"
,
"particulares"
,
"informatica"
],
"color": [
"#FF0000"
,
"#00FF00"
,
"#9FBCFF... | witxo/bonos | cache/xml/cd73cf62-27e8-0db7-2f99-549188524c91_f343ae70-e6f5-1302-f9cb-5463a12a953c.js | JavaScript | agpl-3.0 | 6,055 |
X.i18nStrings =
{
"ui": {
"dialog": {
"confirmation": {
"Accept": "Accepter",
"Cancel": "Annuler",
"save": "Sauvegarder"
},
"messages": {
"you_are_going_to_delete_this_association,_do_you_want_to_continue?": "Vous êtes sur le point de supprimer cette association, voulez-vous continuer?",
... | XIMDEX/ximdex | src/I18n/locale/fr_FR/LC_MESSAGES/strings.js | JavaScript | agpl-3.0 | 5,396 |
var DataRelation = require('../js/data_relation.js');
function createColumns(length) {
return (new Array(length)).map(function(x) { return Math.random()*100;});
}
function createData(rows,columns) {
return (new Array(rows)).map(function() { return createColumns(columns); });
}
describe('DataRelation', function()... | mathiasquintero/ira | __tests__/datarelation-test.js | JavaScript | agpl-3.0 | 885 |
// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file.
// Implements the 16K "E7" M-Network format
jt.Cartridge16K_E7 = function(rom, format) {
"use strict";
function init(self) {
self.rom = rom;
self.format = format;
bytes = rom.content; // uses the... | ppeccin/javatari.js | src/main/atari/cartridge/formats/Cartridge16K_E7.js | JavaScript | agpl-3.0 | 3,963 |
/******
* !! WARNING: This is a generated file !!
*
* PLEASE DO NOT MODIFY DIRECTLY
*
* => Changes should be done on file 'app/config.json'.
******/
angular.module("cesium.config", [])
.constant("csConfig", {
"cacheTimeMs": 300000,
"demo": false,
"readonly": false,
"fallbackLanguage": "en",
"rememberMe": true,
... | duniter/cesium | www/js/config.js | JavaScript | agpl-3.0 | 2,318 |
// 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: ... | ivanmarques/idealista-arcgis | karma.conf.js | JavaScript | agpl-3.0 | 1,946 |
import {FILTER_FIELDS} from '../constants';
import {gettext} from 'core/utils';
/**
* @ngdoc controller
* @module superdesk.apps.contacts
* @name ContactsController
* @requires https://docs.angularjs.org/api/ng/type/$rootScope.Scope $scope
* @requires https://docs.angularjs.org/api/ng/service/$location $location
... | ioanpocol/superdesk-client-core | scripts/apps/contacts/controllers/ContactsController.js | JavaScript | agpl-3.0 | 4,144 |
import { browserHistory } from 'react-router';
import * as types from '../actions/actionTypes';
import initialState from './initialState';
export default function questionReducer(state = initialState.questions, action) {
switch (action.type) {
case types.LOAD_QUESTIONS_SUCCESS:
return action.questions;
... | GHImplementationTeam/FrontEnd | src/reducers/questionReducer.js | JavaScript | agpl-3.0 | 1,099 |
/**
* Nome del file: player.client.service.js
* Percorso: /public/modules/player/services/player.client.service.js
* Autore: InfiniTech
* Data creazione: 2015-08-20
* E-mail: info.infinitech@gmail.com
*
* Questo file è proprietà del gruppo InfiniTech e viene rilasciato sotto
* licenza GNU AGPLv3.
*
* Diario d... | infinitech-unipd/Premi | public/modules/player/services/player.client.service.js | JavaScript | agpl-3.0 | 739 |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ReactTooltip from 'react-tooltip';
import { push as pushAction } from 'react-router-redux';
import { Link } from 'react-router-dom';
import { ApiDownError, LogNotFoundError, CorruptResponseError,... | enragednuke/WoWAnalyzer | src/Main/App.js | JavaScript | agpl-3.0 | 20,815 |
OC.L10N.register(
"core",
{
"Please select a file." : "Παρακαλώ επιλέξτε αρχείο.",
"File is too big" : "Το αρχείο είναι πολύ μεγάλο",
"The selected file is not an image." : "Το επιλεγμένο αρχείο δεν είναι εικόνα.",
"The selected file cannot be read." : "Το επιλεγμένο αρχείο δεν μπορεί να αναγνωσ... | pixelipo/server | core/l10n/el.js | JavaScript | agpl-3.0 | 52,064 |
/*
* (c) Copyright Ascensio System SIA 2010-2014
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL i... | devsarr/ONLYOFFICE-OnlineEditors | OfficeWeb/sdk/Excel/model/DrawingObjects/Format/Format.js | JavaScript | agpl-3.0 | 210,079 |
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its S... | ONLYOFFICE/sdkjs | word/Editor/PresentationField.js | JavaScript | agpl-3.0 | 14,153 |
var hamburger = function () {
var trigger = $('.hamburger'),
overlay = $('.overlay'),
isClosed = true;
trigger.click(function () {
hamburger_cross();
});
function hamburger_cross() {
if (isClosed === true) {
overlay.hide();
trigger.removeClass('is-open');
trigger... | FilotasSiskos/hopsworks | hopsworks-web/yo/app/scripts/js/hamburger.js | JavaScript | agpl-3.0 | 700 |
/*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2013 VillageReach
*
* 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... | OpenLMIS/open-lmis | modules/openlmis-web/src/main/webapp/public/js/distribution/model/adult-coverage.js | JavaScript | agpl-3.0 | 6,523 |
const account = {
name: 'account',
plural: 'accounts',
fields: [
{
key: 'id',
type: 'id',
model: 'account',
required: true,
editable: false,
},
{
key: 'type',
type: 'radio',
required: true,
choices: [
{ label: 'Facebook', value: 'facebook' ... | DasyLabs/speakerbox | src/admin/client/models.js | JavaScript | agpl-3.0 | 5,154 |
/* @flow */
/* eslint no-fallthrough: ["error", { "commentPattern": "break omitted" }] */
const crypto = require('crypto')
const fs = require('fs')
const fse = require('fs-extra')
const EventEmitter = require('events')
const Promise = require('bluebird')
const { Ignore } = require('../../core/ignore')
const { Merge }... | cozy-labs/cozy-desktop | test/property/runner.js | JavaScript | agpl-3.0 | 5,286 |
const {Component, PropTypes} = require('react')
const {TextField, FlatButton} = require('material-ui')
const {PydioContextConsumer} = require('pydio').requireLib('boot')
/**
* Simple form for creating a team
*/
class TeamCreationForm extends Component{
static updateTeamUsers(team, operation, users, callback){
... | ChuckDaniels87/pydio-core | core/src/plugins/gui.ajax/res/js/ui/Components/users/TeamCreationForm.js | JavaScript | agpl-3.0 | 2,732 |
var rememberPlaylist = {};
var correctPlaylist = {};
var waitForNext = false;
var nextPlay = 0;
var keepCurrent = 0;
var keepState = "opening";
// detect if playlist item is a youtube link
function isYoutube(plItem) {
if (wjs().plugin.playlist.items[plItem].mrl.indexOf("googlevideo.com") > -1 || wjs().plugin.playlist... | EdZava/PowderPlayer | src/lib/handlers/player.js | JavaScript | lgpl-2.1 | 14,028 |
const Gtk = imports.gi.Gtk;
const Utils = imports.tests.utils;
Utils.register_gresource();
const Compliance = imports.tests.compliance;
const HistoryStore = imports.framework.historyStore;
const Suggested = imports.framework.modules.selection.suggested;
Gtk.init(null);
function setup (store) {
// Selection.Sugg... | endlessm/eos-knowledge-lib | tests/js/framework/modules/selection/testSuggested.js | JavaScript | lgpl-2.1 | 642 |
function fontsize (object, value)
{
switch (value.length) {
case 1:
object.style.fontSize = "30px";
break;
case 2:
object.style.fontSize = "26px";
break;
case 3:
object.s... | msoftware/phpsudoku | sudoku.js | JavaScript | lgpl-2.1 | 6,360 |
/**
* @module Rendering
* @submodule Rendering
* @for p5
*/
define(function(require) {
var p5 = require('core/core');
var constants = require('core/constants');
require('core/p5.Graphics');
require('core/p5.Renderer2D');
require('3d/p5.Renderer3D');
/**
* Creates a canvas element in the document, a... | workergnome/p5.js | src/core/rendering.js | JavaScript | lgpl-2.1 | 8,055 |
/**
* @docauthor Christopher Rhodes <clrhodes@gmail.com>
*
* @class NFLCIME.cvt.bengali.bengali.bangla2000
* @extends NFLCIME.CVT
*
*/
NFLCIME.dispatchEvent({
type: 'ModuleAdd',
module: {
id: 'cvt.bengali.bengali.bangla2000',
type: 'encoding converter',
inheritance: ['cvt'],
lang: 'bn',
... | NFLC-UMD/NFLCIME | nflcime/packages/cvt/cvt.bengali.bengali.bangla2000.js | JavaScript | lgpl-2.1 | 7,720 |
/*
* File: browser.js
* Author: Li XianJing <xianjimli@hotmail.com>
* Brief: detect browser
*
* Copyright (c) 2011 - 2015 Li XianJing <xianjimli@hotmail.com>
* Copyright (c) 2015 - 2016 Holaverse Inc.
*
*/
function browser() {
}
browser.init = function() {
var u = navigator.userAgent, app = navigat... | drawapp8/cantk | base/js/base-debug.js | JavaScript | lgpl-2.1 | 244,462 |
/* 내용 추가/수정 후 */
function completeContentInsert(ret_obj) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var page = ret_obj['page'];
console.log(ret_obj);
alert(message);
//var url = current_url.setQuery('act','dispAchievementContentList').setQuery('achievement_srl','');
//lo... | qkrcjfgus33/heakang | modules/achievement/tpl/js/achievement.js | JavaScript | lgpl-2.1 | 755 |
import { Template } from 'meteor/templating';
import { News } from '../api/news/news.js';
import { Agencies } from '../api/agencies/agencies.js';
import { Items } from '../api/items/items.js';
import { Suppliers } from '../api/suppliers/suppliers.js';
import './admin.html'
import './private/private-const.js'
import { O... | loving-spoonful/carrot-top | imports/ui/admin.js | JavaScript | lgpl-3.0 | 17,292 |
function getImages() {
//This function uses AJAX to send GET request to server's DriverConnector API and receive XML response
jQuery.ajax({
type: "GET",
url: "/portal/rest/wcmDriver/getFoldersAndFiles?driverName=Collaboration¤tFolder=Users/r___/ro___/roo___/root/Public¤tPortal=intranet&repositoryName=... | exo-samples/docs-samples | gadget/ajax/src/main/webapp/gadgets/AutoSlideshowGadget/myscript.js | JavaScript | lgpl-3.0 | 1,608 |
/**********************************************************************************
*
* Copyright (c) 2017-2019 MuK IT GmbH.
*
* This file is part of MuK Documents
* (see https://mukit.at).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser Ge... | muk-it/muk_dms | muk_dms/static/src/js/views/file/kanban/file_kanban_view.js | JavaScript | lgpl-3.0 | 1,779 |
/**
Copyright (C) 2009-2011. ViniSketch SARL (c) All rights reserved
THIS SOURCE CODE, ALL THE INTELLECTUAL PROPERTY RIGHTS THAT IT
CONTAINS, AND ALL COPYRIGHTS PERTAINING THERETO ARE THE EXCLUSIVE
PROPERTY OF VINISKETCH SARL.
THIS SOURCE CODE SHALL NOT BE COPIED OR REPRODUCED IN
FULL OR IN PART.
... | vinisketch/VSToolkit | examples/BookReader/js/PageFlipController.js | JavaScript | lgpl-3.0 | 14,921 |
/**
* book
*/
var TEI_SELECTOR;
var PAGE_SELECTOR_INDEX = 0;
var LINE_SELECTOR_INDEX = 1;
var SECTION_SELECTOR_INDEX = 2;
var CURRENT_SELECTOR_INDEX = PAGE_SELECTOR_INDEX;
var ALIGN_SELECTORS;
var PB_TEMOIN_SELECTOR;
var viewers = {};
window.$quote = {
add : function(data) {
var type = data.zord_type;
$d... | DrozNumerique/Zord | webapp/js/book.js | JavaScript | lgpl-3.0 | 25,125 |
/*!
* Add to Homescreen v1.0.8 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
(function(){
var nav = navigator,
isIDevice = (/iphone|ipod|ipad/gi).test(nav.platform),
isIPad = (/ipad/gi).test(nav.platform),
isRetina = 'devicePixelRatio' in window &... | PHPBenelux/App | lib/add2home.js | JavaScript | lgpl-3.0 | 11,330 |
var Class = require('pseudoclass');
/**
* Bootstrapper API
* @type {Bootstrapper}
*/
var Bootstrapper = Class({
toString: 'Bootstrapper',
/**
*
* @param nodeName
* @param model
* @param callback
*/
bootstrapNodeType: function (nodeName, model, callback) {
callback = cal... | barais/kevoree-js | library/kevoree-commons/lib/Bootstrapper.js | JavaScript | lgpl-3.0 | 1,327 |
/*
* 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/custom-measures/layout.js | JavaScript | lgpl-3.0 | 1,182 |
///import editor.js
///import core/utils.js
///import core/browser.js
///import core/dom/dom.js
///import core/dom/dtd.js
/*
* @class baidu.editor.dom.domUtils dom工具类
*/
//for getNextDomNode getPreviousDomNode
function getDomNode(node, start, ltr, startFromChild, fn, guard) {
var tmpNode = startFr... | yonghuang/fastui | src/component/thirdparty/ueditor/_src/core/dom/domUtils.js | JavaScript | lgpl-3.0 | 43,277 |
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Toast from 'vue-easy-toast'
Vue.use(Toast)
Vue.config.productionTip = false
/* eslint-disable ... | arddor/advse17 | ase_web/src/main.js | JavaScript | lgpl-3.0 | 411 |
/*
* jIceTabSet for jQuery, version 1.0b
* (c) 2011 Ice Apps
*
* jIceTabset is a tabset jQuery plugin.
* For details, see the web site: http://jicetabset.sourceforge.net/
*
* Last Review: 2011-10-03
*/
(function($)
{
$.fn.jIceTabSet = function(options)
{
return this.each(function()
{
var t... | icebob/ICEdit | libraries/jIceTabSet/jIceTabSet.js | JavaScript | lgpl-3.0 | 8,620 |
var observationTypes=[];
var firsttime=[];
function getStationData(stationId, starttime, endtime, stationOnly){ //also pass the yScale
var station = new Array();
station.push(stationId); //stationid;
var start = new Date(starttime);
var end = new Date(endtime);
var parameters = {
startTime: format(start),
... | awalin/rwis | individualstation.js | JavaScript | lgpl-3.0 | 8,427 |
angular
.module('kevoreeRegistryApp')
.controller('NamespaceDeleteController', NamespaceDeleteController);
NamespaceDeleteController.$inject = ['$state', '$stateParams', '$uibModalInstance', 'Namespaces', 'AlertService'];
function NamespaceDeleteController($state, $stateParams, $uibModalInstance, Namespaces, Aler... | kevoree/kevoree-registry | src/main/webapp/app/namespace/namespace-delete.controller.js | JavaScript | lgpl-3.0 | 1,020 |
{"filter":false,"title":"module.js","tooltip":"module.js","undoManager":{"mark":0,"position":-1,"stack":[]},"ace":{"folds":[],"customSyntax":"javascript","scrolltop":5379.331008911133,"scrollleft":0,"selection":{"start":{"row":456,"column":0},"end":{"row":456,"column":0},"isBackwards":false},"options":{"tabSize":4,"use... | cachong/beaglebone | .c9/metadata/workspace/module.js | JavaScript | lgpl-3.0 | 499 |
export function BladeEditExtendedDirective() {
'ngInject';
let directive = {
restrict: 'E',
templateUrl: 'app/components/bladeEditExtended/bladeEditExtended.html',
scope: {
sdrMeta: '=',
sdrData: '='
},
controller: BladeEditExtendedController,
... | swiss-sdr/SwissSdr.Client | src/app/components/bladeEditExtended/bladeEditExtended.directive.js | JavaScript | lgpl-3.0 | 8,576 |
var fs = require('fs'),
version = process.argv[process.argv.length - 1],
regex = /^\d+\.\d+.\d+$/,
npmPackage = require('../package.json'),
bowerPackage = require('../bower.json');
function exec(cmd, args, cb_end) {
var spawn = require('child_process').spawn,
child = spawn(cmd, args),
me = this;
... | bedita/beapi.js | scripts/release.js | JavaScript | lgpl-3.0 | 1,138 |
var LamassuConfig = require('lamassu-config');
var config = module.exports = new LamassuConfig();
setInterval(function() {
config.cleanExpiredPairingTokens(function(err) {
if (err) console.error('Cleaning expired pairing tokens failed: ' + err.message);
});
}, 60 * 1000); // Our default TTL is 1 hour so let's ... | lamassu/lamassu-admin | server/config.js | JavaScript | unlicense | 340 |
angular
.module('app')
.controller('homeCtrl', ['$scope', function($scope) {
$scope.title = "Home";
angular.element(document.querySelector('.current')).removeClass('current');
angular.element(document.querySelector('#home')).addClass('current');
}]);
| kigiri/chupato-web | public/javascripts/controllers/homeCtrl.js | JavaScript | unlicense | 269 |
$(document).ready(
function () {
// Make dates human readable.
$('.display-datetime').humaneDates({'lowercase': true});
// Auto-resize videos to fit responsive column width.
$('.main-content').fitVids();
// Handle the tag navigation.
$('.listing').each(
function () {
var $contain... | opendesk/openmaking.is | script.js | JavaScript | unlicense | 9,060 |
var PLUGIN_INFO = xml`
<VimperatorPlugin>
<name>{NAME}</name>
<description>Tiny Menu for Vimperator</description>
<minVersion>2.0pre</minVersion>
<maxVersion>2.0</maxVersion>
<updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/tinymenu.js</updateURL>
<author mail="hotchpotch@gmail.com" homepage="http://d.... | alejandrogallo/dotfiles | link/vimperator/plugin/tinymenu.js | JavaScript | unlicense | 1,590 |
(function() {
define('a', ['b'], function(b) {
return 'a';
});
}).call(this);
| freezedev/molo | examples/circular/a.js | JavaScript | unlicense | 88 |
"use strict";
var CONFIG = require('./../global/config.js').CONFIG;
var API_SCHEMA = require('./../global/api-schema.js').API_SCHEMA;
var Api = require('./Api.js').Api;
var RouterChache = require('./RouterChache.js').RouterChache;
/**
* Konstruktor für Router
*
* @module server
* @namespace server
* @class Route... | djengis/mp-tetris | Development/public/server/Router.js | JavaScript | unlicense | 6,907 |
var chai = require('chai');
var expect = chai.expect;
var parsers = require('../lib/parsers');
var parserFactories = require('../lib/parser-factories');
var win32 = parsers.win32;
var linux = parsers.linux;
var darwin = parsers.darwin;
var line = null;
describe('Parsers', function () {
describe('linux', function ... | danielkrainas/node-netstat | test/parsers.js | JavaScript | unlicense | 4,763 |
elm = require('elm');
var EXPAND_BOTH = { x: 1.0, y: 1.0 };
var FILL_BOTH = { x: -1.0, y: -1.0 };
var logo_icon = elm.Icon({
image: elm.datadir + "data/images/logo_small.png"
});
elm.realise(elm.Window({
title: "Panes Demo",
width: 320,
height: 480,
align: FILL_BOTH,
elements: {
backg... | maikodaraine/EnlightenmentUbuntu | bindings/elev8/data/javascript/panes.js | JavaScript | unlicense | 2,521 |
import Promise from 'bluebird';
import PairElement from './PairElement';
import RotateElement from '../single/RotateElement';
/**
* Парная анимация для продвижения с вращением
* @param {Object} animation Объект анимации
* @param {String} pathStrings Строковое описание траекторий в формате [позиция: траектория, ..... | Kreozot/adentro | src/js/animations/commons/elements/double/RotatePairElement.js | JavaScript | apache-2.0 | 1,270 |
import { SUPPORTED_REGIONS } from '../constants';
const supported = new Map(SUPPORTED_REGIONS);
// allow us-east-1 for signer util
supported.set('us-east-1', true);
export default function getSignerHostname() {
const { AWS_REGION } = process.env;
return `https://signer.${
supported.has(AWS_REGION) ? AWS_REGIO... | iopipe/iopipe-agent-node | src/fileUploadMeta/getSigner.js | JavaScript | apache-2.0 | 356 |
// 回复策略
let tip = `hellow weixin`;
// import { getWechat } from "../controllers/wechat";
import menu from "./menu";
export default async (ctx, next) => {
const message = ctx.weixin;
if (message.MsgType === "event") {
if (message.Event === "subscribe") {
ctx.body = tip;
} else if (message.Event === "... | csq121605366/weixin | server/wechat-lib/reply.js | JavaScript | apache-2.0 | 2,288 |
function initializeCM(){
editor = CodeMirror.fromTextArea($("#codeData").get(0), {
value: "function myScript(){return 100;}\n",
mode: "javascript",
indentWithTabs: true,
smartIndent: true,
lineNumbers: true,
matchBrackets : true,
autofocus: true,
theme:"neat"
// extraKeys: {"C... | qadahtm/lpsteda | ui/public/js/lpsteda-cm.js | JavaScript | apache-2.0 | 1,787 |
var errorCode;
var currents ;
var current;
var host = 'http://data.nba.com/'
var gamesUrl = 'jsonp/5s/json/cms/noseason/scoreboard/';
var dataUrl = 'data/10s/html/nbacom/2015/gameinfo/';
var newUrl = 'http://tw.global.nba.com/stats2/game/snapshotlive.json?countryCode=TW&locale=zh_TW&gameId=';
var reqeustInterval = 1000... | steny138/ImmediateNBA | background.js | JavaScript | apache-2.0 | 3,175 |
/**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | osric-the-knight/foam | js/foam/ui/DAOListView.js | JavaScript | apache-2.0 | 6,973 |
/** @license
* RequireJS plugin for loading JSON files
* - depends on Text plugin and it was HEAVILY "inspired" by it as well.
* Author: Miller Medeiros
* Version: 0.4.0 (2014/04/10)
* Released under the MIT license
*/
define(['../lib/requirejs/text'], function(text) {
var CACHE_BUST_QUERY_PARAM = 'bust',
... | nroutasuo/level13 | lib/requirejs/json.js | JavaScript | apache-2.0 | 2,660 |
var validator = require('../validator')
, format = require('util').format
, contextify = require('contextify')
, assert = require('assert')
, path = require('path')
, fs = require('fs');
var validator_js = fs.readFileSync(path.join(__dirname, '../validator.js')).toString();
function test(options) {
var ... | warnero/node-todo-api | node_modules/validator/test/validators.js | JavaScript | apache-2.0 | 27,689 |
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default messages for the jQuery validation plugin.
* Locale: FI (Finnish; suomi, suomen kieli)
*/
$.extend($.validat... | ltm0203/YoYoCms | src/YoYo.Cms.Web/libs/jquery-validation/js/localization/messages_fi.js | JavaScript | apache-2.0 | 1,439 |
var SESSION_STORAGE="session";var LOCAL_STORAGE="local";function saveToStorage(storage_type,key,content,exp){if(storage_type===SESSION_STORAGE)sessionStorage.setItem(key,content);else{if(!(typeof exp==="number"&&exp%1==0))exp=false;var storage_object={"timestamp":(new Date).getTime(),"ttl":exp,"content":content};localS... | weedenwright/simple-storage | js/simple-storage.min.js | JavaScript | apache-2.0 | 1,816 |
window.METADATA = window.METADATA || {};
METADATA['en'] = {};
METADATA['en'].about = [];
METADATA['en'].design = [];
METADATA['en'].develop = [];
METADATA['en'].distribute = [];
METADATA['en'].extras = [];
METADATA['en'].about = [
{
"title":"Android KitKat",
"summary":"Welcome to Android 4.4 Kit... | joetang1989/Android-Universal-Image-Loader-Study | note/05.View/Fragment/片段 _ Android Developers_files/jd_lists_unified_en.js | JavaScript | apache-2.0 | 695,541 |
module.exports = {
"rules": {
// doesn't work in node v4 :(
"strict": "off",
"prefer-rest-params": "off",
"react/require-extension": "off",
"import/no-extraneous-dependencies": "off",
"consistent-return": "off",
"object-shorthand": "off"
},
"env": {
"node": true
}
};
| bennybauer/serverless-auth-sample | functions/.eslintrc.js | JavaScript | apache-2.0 | 308 |
/**
* Copyright 2017 OSBI Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | OSBI/saiku-report-viewer-ui | src/components/WaitModal/index.js | JavaScript | apache-2.0 | 656 |
'use strict';
const _ = require('lodash');
const Promise = require('bluebird');
const utils = require('./utils');
const follow = require('./follow');
const database = require('../database');
/*
* Determines Content Types and Content Type Keys
*
* @param {object} app - An Express app
*
* @returns {object} types ... | Snugug/punchcard | lib/api/apis.js | JavaScript | apache-2.0 | 4,688 |
(function() {
"use strict";
var sampleTitle = "Orientation Sensor";
var scenarios = [{
url: "/html/scenario1_DataEvents.html",
title: "Data Events"
}, {
url: "/html/scenario2_Polling.html",
title: "Polling"
}, {
url: "/html/scenario3_Calibration.html",
title: "Calibration"
}];
WinJS.Nam... | gisfromscratch/windowsappsamples | OrientationSensor sample/JavaScript/Shared/js/sample-configuration.js | JavaScript | apache-2.0 | 439 |
/* Copyright 2019 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | mainegreen/pdf.js | src/core/worker_stream.js | JavaScript | apache-2.0 | 3,539 |
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | googleapis/nodejs-game-servers | samples/generated/v1/game_server_deployments_service.update_game_server_deployment_rollout.js | JavaScript | apache-2.0 | 2,298 |
import angular from 'angular';
let commonFiltersModule = angular.module('app.common.filters', [])
.filter('paymentTotal', function () {
return function (data) {
if (typeof (data) === 'undefined') {
return 0;
}
var sum = 0;
for (var i = 0; i < data.length; i++) {
sum = sum ... | mosh086/guardartodo | client/app/common/filters/index.js | JavaScript | apache-2.0 | 997 |
U.CoordinateSys = U.Class.extend({
init: function(point) {
this.orginPoint = point;
},
draw: function (painter) {
}
}); | UnifyKit/Unify.js | src/grid/Grid.js | JavaScript | apache-2.0 | 145 |
requirejs.config({
//appDir: ".",
baseUrl: "..",
paths: {
'jquery': ['lib/jquery'],
'bootstrap': ['lib/bootstrap'],
'tabproject': ['js/tabproject'],
'jasmine': ['lib/jasmine-1.3.1/jasmine'],
'jasmine-html': ['lib/jasmine-1.3.1/jasmine-html'],
'jasmine-gui': ['test/jasmine-gui'],
'ichro... | tyrken/TabProject | cext/js/popup.js | JavaScript | apache-2.0 | 2,059 |
/**
通用设置模块
*/
angular.module("commonSettingModule", [])
/**
通用设置指令
*/
.directive("commonSetting", function () {
return {
restrict: 'A',
templateUrl: "/Content/de/sidebar/mc-options/common-settings.html",
replace: true,
scope: {
todo: "=commonSetting"
}... | emksaz/choicefrom | development/de-app/script/directive/common_setting_directive.js | JavaScript | apache-2.0 | 525 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _deleteProperty = require('babel-runtime/core-js/reflect/delete-property');
var _deleteProperty... | celada/botbot1 | node_modules/ciscospark/dist/plugins/messages.js | JavaScript | apache-2.0 | 7,343 |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './index.scss';
import { Icon, Layout, Tooltip, message, Row, Popconfirm } from 'antd';
const { Content, Sider } = Layout;
import ProjectEnvContent from './ProjectEnvContent.js';
import { connect } from 'react-redux';
import { updateEn... | YMFE/yapi | client/containers/Project/Setting/ProjectEnv/index.js | JavaScript | apache-2.0 | 6,432 |
var express = require('express')
var app = express()
app.get('/', function (req, res) {
res.send('Hello World!')
})
app.use(express.static('public'))
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
})
| ncoronges/clarifai_trainer_aihd2017 | web_client/server.js | JavaScript | apache-2.0 | 242 |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | yandex-pcode/amphtml | build-system/eslint-rules/prefer-destructuring.js | JavaScript | apache-2.0 | 5,785 |
var classorg_1_1onosproject_1_1dhcp_1_1impl_1_1DhcpConfig =
[
[ "broadcastAddress", "classorg_1_1onosproject_1_1dhcp_1_1impl_1_1DhcpConfig.html#ada5506dd4a6cf39e607d55d5ff881336", null ],
[ "broadcastAddress", "classorg_1_1onosproject_1_1dhcp_1_1impl_1_1DhcpConfig.html#a4fc9a9d6bc238bbd156ab60bfb3ac329", null ]... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1dhcp_1_1impl_1_1DhcpConfig.js | JavaScript | apache-2.0 | 3,622 |
var common = require("common");
function spawnDetails(e) {
common.openWindow("loot/details", {model: $model});
} | ryanhobsonsmith/lootapp | app/controllers/loot/thumb.js | JavaScript | apache-2.0 | 117 |
/*
* Copyright (C) 2014-2015 University of Stuttgart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | excess-project/monitoring-frontend | routes/contact.js | JavaScript | apache-2.0 | 998 |
//injects the database inoformation into the called scope 'this'
(function() {
function deleteRoomCtrl(room, $uibModalInstance, Room) {
var modal = $uibModalInstance;
// cancel: closes the modal without doing anything
// delete: removes the room and all associated messages
this.cance... | dwaite498/second-bloc-chat | app/scripts/controllers/deleteRoomCtrl.js | JavaScript | apache-2.0 | 634 |