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 |
|---|---|---|---|---|---|
var __v=[
{
"Id": 1848,
"Panel": 971,
"Name": "QByteArray",
"Sort": 0,
"Str": ""
}
] | zuiwuchang/king-document | data/panels/971.js | JavaScript | gpl-3.0 | 104 |
/// <reference path="http://code.jquery.com/jquery-1.4.1-vsdoc.js" />
/*
* Print Element Plugin 1.2
*
* Copyright (c) 2010 Erik Zaadi
*
* Inspired by PrintArea (http://plugins.jquery.com/project/PrintArea) and
* http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome
*
* Hom... | bg93/adapta | vendor/print/jQuery.printElement.js | JavaScript | gpl-3.0 | 8,430 |
// Build HTML files.
var shellSystem = WScript.CreateObject("WScript.Shell");
var chmCompiler = "\"c:\\Program Files (x86)\\HTML Help Workshop\\hhc.exe\"";
// Generate HTML files.
var outExec = shellSystem.Exec("wscript.exe .\\BuildHTMLs.js nomessage");
while (outExec.Status == 0)
{
WScript.Sleep(10... | codecentrix/open-twebst | Help/BuildHelp.js | JavaScript | gpl-3.0 | 734 |
/*!
* ----------
* XFDB®-Data
* ----------
* Data of XFDB — A manually curated dedicated xylella fastidiosa database.
* ___________________________________________________________________________
*
* Grunt, http://gruntjs.com/ — The JavaScript Task Runner.
* _____________________________________________________... | XFDB/XFDB-Data | version.js | JavaScript | gpl-3.0 | 1,273 |
document.write("-----------------------Sets-----------------------<br />");
var randSet = new Set();
randSet.add(10);
randSet.add("Word");
document.write(`Set Size : ${randSet.size}<br />`);
for (let val of randSet) document.write(`Set Val : ${val}<br />`);
document.write("-----------------------MAPS -----------------... | ahmeturganci/es6Denemeler | es6setvemap.js | JavaScript | gpl-3.0 | 750 |
const bcrypt = require('bcrypt-nodejs');
const crypto = require('crypto');
const mongoose = require('mongoose');
const SchemaTypes = mongoose.Schema.Types;
const userSchema = new mongoose.Schema({
email: { type: String, unique: true },
password: String,
passwordResetToken: String,
passwordResetExpires: Date,
... | dozgunyal/oboyapp | models/User.js | JavaScript | gpl-3.0 | 2,167 |
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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.
//
// Moodle is dis... | universityofglasgow/moodle | mod/oublog/amd/src/export.js | JavaScript | gpl-3.0 | 6,999 |
var searchData=
[
['direction',['direction',['../structplatform.html#a886d551d5381dc3e53f17825ffc51641',1,'platform::direction()'],['../structprojectile.html#a886d551d5381dc3e53f17825ffc51641',1,'projectile::direction()']]],
['dirx',['dirX',['../struct_character.html#ab1761c91e3594dec827fe60e992d2e1a',1,'Character'... | Dalan94/Super_Martin | Super_Martin/doc/html/search/variables_3.js | JavaScript | gpl-3.0 | 535 |
"use strict";
var should = require('should');
var watch = require(__dirname + "/../src/async-watch.js").AsyncWatch;
describe('It should give old values', function() {
it('SHould properly handle old value (simple case)', function(done) {
let obj = {
a: 0
};
obj.a++;
let o... | wiresjs/async-watch | test/old_values.js | JavaScript | gpl-3.0 | 2,242 |
/*
* Random Module
* Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
*/
var Random = (function() {
// Private variables and functions
var integer = function(min, max) {
// Source: https://stackoverflow.com/a/1527820/1093087
return Math.floor(Math.random() * (max - min +... | klenwell/sumobo | js/Random.js | JavaScript | gpl-3.0 | 571 |
document.addEventListener("DOMContentLoaded", function(event) {
function calcularSoma(numero_1, numero_2){
var resultado = numero_1 + numero_2;
alert(resultado);
}
document.getElementById('calcularSoma').addEventListener("click", function(){
calcularSoma(4, 6);
});
});
| adrianomargarin/curso-js-vendabem | cursojs/static/aulas/js/aula-02/example-4.js | JavaScript | gpl-3.0 | 313 |
// eslint-disable-next-line
const regex = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[... | anarinya/feedback-panda-server | client/src/utils/validateEmails.js | JavaScript | gpl-3.0 | 1,355 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/tests/auto/qml/ecmascripttests/test262/test/suite/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-3-151.js | JavaScript | gpl-3.0 | 922 |
var app = angular.module('herod', ['ui.bootstrap']);
window.DEBUG = 0;
app.directive("ecuViewport", ["$timeout", function($timeout) {
return {
restrict: 'A',
scope: true,
link: function(scope, element) {
function generatePartitionLayout(champ, shape) {
var layoutShapes = [];
champ.partition.cuts.fo... | sm-Fifteen/herod | js/app.js | JavaScript | gpl-3.0 | 3,593 |
var tnr = tnr || {};
(function(){
tnr.audio = function( S ){
var A = this;
A.DOM = document.getElementById( S );
A.ctx = new AudioContext();
A.anl = A.ctx.createAnalyser();
A.src = A.ctx.createMediaElementSource( A.DOM );
A.src.connect( A.ctx.destination );
A.src.connect( A.anl );
A.cu... | tnormandao/tnr | dist/tnr-audio.js | JavaScript | gpl-3.0 | 505 |
/**
* @author Martin Micunda {@link http://martinmicunda.com}
* @copyright Copyright (c) 2015, Martin Micunda
* @license GPL-3.0
*/
'use strict';
import './partner.mock.js#?ENV|mock';
import AbstractResource from '../abstract-resource';
import {Service, Inject} from '../../../ng-decorators'; // jshint unused:... | martinmicunda/employee-scheduling-ui | src/app/core/resources/partner/partner.js | JavaScript | gpl-3.0 | 583 |
HotTarget.librarydesign = {
getUserManualUrl: function() {
return Urls.external.userManual('type_data', 'library-designs');
},
getCreateUrl: function() {
return Urls.rest.libraryDesigns.create;
},
getUpdateUrl: function(id) {
return Urls.rest.libraryDesigns.update(id);
},
requestConfiguration:... | TGAC/miso-lims | miso-web/src/main/webapp/scripts/hot_librarydesign.js | JavaScript | gpl-3.0 | 2,614 |
// Generated by CoffeeScript 1.11.1
Ext.define('FM.store.WebDavConnections', {
extend: 'Ext.data.Store',
storeId: 'WebDavConnections',
sortOnLoad: true,
model: 'FM.model.WebDavConnection',
sorters: [
{
property: "id",
direction: "ASC"
}
]
});
| LTD-Beget/sprutio-frontend | app/store/WebDavConnections.js | JavaScript | gpl-3.0 | 275 |
Ext.define('Bizcuit.view.categories.CategoryController', {
extend: 'Ext.app.ViewController',
alias: 'controller.categories-category'
});
| elasticsearcher/Bizcuit | src/ui/app/view/categories/CategoryController.js | JavaScript | gpl-3.0 | 150 |
Ext.ns('CMS');
/**
* A window with a form that users can utilize for sending feedback
*/
CMS.FeedbackWindow = Ext.extend(Ext.Window, {
modal: true,
width: 500,
height: 400,
resizable: false,
layout: 'fit',
closable: false,
padding: 10,
initComponent: function () {
this.items = ... | rukzuk/rukzuk | app/js/CMS/FeedbackWindow.js | JavaScript | gpl-3.0 | 3,336 |
/* ========================================================================
* Bootstrap: alert.js v3.3.7
* http://getbootstrap.com/javascript/#alerts
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstra... | glhd/wp-bootstrap-widgets | assets/bootstrap/alert.js | JavaScript | gpl-3.0 | 2,437 |
import UserInfo from "./UserInfo";
class UserManager{
/****************************************************
* static
****************************************************/
static _instance;
static getInstance() {
if (UserManager._instance)
return UserManager._instance;
else
return new UserManager();
... | cuebrick/TypeWriter | src/components/UserManager.js | JavaScript | gpl-3.0 | 3,986 |
var parseGeoJson = require('./lib/parser')
var Renderer = require('./src/renderer')
function geoJsonMap(geoJSON, options) {
return new Renderer(parseGeoJson(geoJSON), options)
}
geoJsonMap.MERCATOR = 0
module.exports = geoJsonMap
| pixcai/geojson-map | index.js | JavaScript | gpl-3.0 | 234 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/tests/auto/qml/ecmascripttests/test262/test/suite/ch15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-207.js | JavaScript | gpl-3.0 | 1,312 |
/*
## Task
Construct a promise chain that returns values to prove to yourself that
promise handlers will wrap your returned values in promises allowing
additional chaining.
* Declare a function `attachTitle` which prepends `'DR. '` to its firstargument and returns the result.
* Create a fulfilled promise wi... | champagne-randy/es6-sandbox | promise-it-wont-hurt/08_valuesAndPromises.js | JavaScript | gpl-3.0 | 724 |
var Waterline = require('waterline');
var modules = Waterline.Collection.extend({
identity: 'modules',
connection: 'sqcrmMysql',
tableName: 'module',
autoCreatedAt: false,
autoUpdatedAt: false,
autoPK: false,
attributes: {
id: {
type: 'integer',
columnName: 'idmodule',
primaryKey: true
},
name... | sQcrm/sqcrm-node-api | models/modules.js | JavaScript | gpl-3.0 | 541 |
var url = require('url');
var WebSocketServer = require('ws').Server;
var _ = require('lodash');
var RTSGame = require('./RTSGame.js');
var RTSSocket = require('./RTSSocket.js');
//https://gist.github.com/manast/1185904
function interval(duration, fn){
this.baseline = undefined
this.run = function(){
if(this... | pimlu/node-rts | rts/RTSServer.js | JavaScript | gpl-3.0 | 4,404 |
/*global defineSuite*/
defineSuite([
'Core/appendForwardSlash'
], function(
appendForwardSlash) {
"use strict";
/*global jasmine,describe,xdescribe,it,xit,expect,beforeEach,afterEach,beforeAll,afterAll,spyOn,runs,waits,waitsFor*/
it('Appends to a url', function() {
expe... | alemart/mestrado | html5/Cesium-1.6/Specs/Core/appendForwardSlashSpec.js | JavaScript | gpl-3.0 | 681 |
/*** Graphs Zoom in/out ***/
function ZoomIN(elem) {
// get the original image size
elem.css({'width': 'auto','position': 'relative','z-index': 10});
var width = elem.width();
elem.css({'width': '100%'})
// calc a left offset to zoom centered
var left = width / 2 - elem.width() / 2;
// keep the image inside t... | DaveMDS/munin_dynamic_template | munin2/static/dynatempl3.js | JavaScript | gpl-3.0 | 8,252 |
System.register(["angular2/src/facade/lang", "angular2/src/core/di"], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var lang_1, di_1;
var ON_WEB_WORKER;
return {
setters:[
function (lang_1_1) {
lang_1 = lang_1_1;
... | silvandco/angular2-tests | nod_modules/angular2/ts/src/web_workers/shared/api.js | JavaScript | gpl-3.0 | 613 |
/**
* Module dependencies.
*/
var request = require('superagent');
var util = require('util');
var http = require('http');
var https = require('https');
var assert = require('assert');
var Request = request.Request;
/**
* Expose `Test`.
*/
module.exports = Test;
/**
* Initialize a new `Test` with the given `ap... | assemblee-virtuelle/Semantic-Bus | tests/test_unitaires/node_modules/supertest/lib/test.js | JavaScript | gpl-3.0 | 7,236 |
"use strict";
/* global global: false */
var tinymce = require("tinymce");
var $ = require("jquery");
var ko = require("knockout");
var console = require("console");
require("./eventable.js");
ko.bindingHandlers.wysiwygOrHtml = {
init: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext)... | hugo-events/mosaico | src/js/bindings/wysiwygs.js | JavaScript | gpl-3.0 | 14,811 |
IfMicro.toc = {
tocEffect: function () {
if (window.innerWidth < 460) return ;
var menu = $("<div class='menu' title='点击展开/收起,Shift+Z 隐藏或打开'>目录</div>");
var toc = $("ul#markdown-toc");
//wrap toc into div which class is 'tocWrap'
toc.wrap('<div class="tocWrap">');
//set mouseenter and mouseo... | MwumLi/MwumLi.github.io | assets/js/toc.js | JavaScript | gpl-3.0 | 2,893 |
var class_application =
[
[ "getCore", "class_application.html#a3341f4e07d95034e051579e010511585", null ],
[ "run", "class_application.html#ac52e005ff9e766a66de4d3c3d896e063", null ]
]; | infoburp/gtorrent-gtk-docs | class_application.js | JavaScript | gpl-3.0 | 193 |
/* @flow */
/*
class Name {
firstName: string;
lastName: string;
constructor(firstName:string, lastName:string) {
this.firstName = firstName
this.lastName = lastName
}
}
class EsperantoName {
nominative: Name;
accusative: Name;
constructor(nominative:Name, accusative:Name) {
this.nominativ... | tmcl/katalogo | frontend/src/live/book.js | JavaScript | gpl-3.0 | 1,336 |
var searchData=
[
['base_5fvalue',['base_value',['../classAdData.html#a156da702ebf4837590f4854dc7c2bc81',1,'AdData']]],
['bench',['Bench',['../classBench.html',1,'']]],
['bench_2ecpp',['bench.cpp',['../bench_8cpp.html',1,'']]],
['bench_2ehpp',['bench.hpp',['../bench_8hpp.html',1,'']]],
['block_5fof_5fmessages... | richoux/Adaptive_Framework | html/search/all_62.js | JavaScript | gpl-3.0 | 533 |
import React, { Component } from 'react';
class Text extends Component {
render() {
return(
<p className="calc-text">
{this.props.text}
</p>
);
}
}
export default Text;
| shawware/react-calculator | src/components/text.js | JavaScript | gpl-3.0 | 187 |
var MyLayer = cc.Layer.extend({
isMouseDown:false,
helloImg:null,
helloLabel:null,
circle:null,
sprite:null,
init:function () {
//////////////////////////////
// 1. super init first
this._super();
/////////////////////////////
// 2. add a menu item with... | kaikai2/ShadowWalker | ShadowWalker/src/MushroomScene.js | JavaScript | gpl-3.0 | 3,690 |
/**
* @author Ondrej Benda
* @date 2011-2016
* @copyright GNU GPLv3
* @brief Implements SVGPathSegCubicSmoothAbs
*/
function pathSegCurvetoCubicSmooth(x2, y2, x, y) {
this.pathSegType = 16;
this.pathSegTypeAsLetter = 'S';
this.x = isNaN(x) ? 0 : x;
this.y = isNaN(y) ? 0 : y;
this.x2 = isNaN(x2) ? 0 : ... | aibosan/anigen | pathSeg/pathSegCurvetoCubicSmooth.js | JavaScript | gpl-3.0 | 4,668 |
angular.module('app', ['app.controllers', 'app.services', 'ui.router'])
.config(function($stateProvider, $urlRouterProvider, $httpProvider) {
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('home', {
url: "/home",
templateUrl: "/html/home.html",
data: {
... | luizbag/notasfaceis | public/js/app.js | JavaScript | gpl-3.0 | 1,859 |
CS.Controllers.Texts = [
{
type: "workbook-area-description",
workbookAreaClassName: "Strengths",
htmlText: "<p>Vad utmärker dig som person? Vilka styrkor använder du för att få jobbet gjort? Från vilket perspektiv ser du på tillvaron? </p><p>I det här avsnittet av Tracks kommer du att besva... | PanzerKunst/workdimension | website/javascripts/controllers/texts.js | JavaScript | gpl-3.0 | 4,611 |
// -------------------------------------------------------------------
// markItUp!
// -------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// -------------------------------------------------------------------
// MarkDown tags example
//... | SleepWalker/HamsterCMS | protected/extensions/markitup/assets/sets/hmarkdown/set.js | JavaScript | gpl-3.0 | 4,532 |
// **********************************************************************
//
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// ***************************************************... | aitormf/JdeRobotWebClients | node_example/node_modules/IceGrid/Registry.js | JavaScript | gpl-3.0 | 2,397 |
var convict = require('convict');
var config = convict({
log: {
level: {
doc: 'The winston log level',
format: 'String',
default: 'INFO',
env: 'LOG_LEVEL'
}
},
amqp: {
url: {
doc: '',
format: 'String',
default: 'amqp://rabbitmq',
env: 'AMQP_URL'
}
}... | marcelmaatkamp/docker-compose-applications | seneca/seneca-rabbitmq/src/start.js | JavaScript | gpl-3.0 | 763 |
'use strict';
module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
config: {
src: 'src/**/*.js',
dist: 'dist',
dev: 'dev',
unit: 'test/**/*.js',
e2e: 'e2e/**/*.js',
module: 'angular-datamaps.js',
... | Abderrahmen/meteofrance | node_modules/angular-datamaps/Gruntfile.js | JavaScript | gpl-3.0 | 4,092 |
/**
* @fileOverview
* Парсер шаблонов.
*/
ym.modules.define("template.Parser", [
"util.id"
], function (provide, utilId) {
// TODO хорошо бы перенести в отдельный модуль.
// Главное не забыть в билдере подключить файл.
// TODO util.string
var trimRegExp = /^\s+|\s+$/g,
nativeTrim = typeo... | theKashey/ym-helpers | src/modules/template/parser/template.Parser.js | JavaScript | mpl-2.0 | 22,448 |
/*
* 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) 2018, Joyent, Inc.
*/
// This testcase is currently smartos specific.
var testCase = re... | joyent/sdc-cn-agent | test/http-task.test.js | JavaScript | mpl-2.0 | 5,357 |
/* 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 https://mozilla.org/MPL/2.0/. */
import {getStringFromDataView, objectAssign} from './utils.js';
import XmpTagNames from './xmp-tag-names.js';
imp... | mattiasw/ExifReader | src/xmp-tags.js | JavaScript | mpl-2.0 | 12,604 |
// DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py.
// OffscreenCanvas test in a worker:2d.pattern.repeat.case
// Description:
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("");
var t_pass = t.done.bind(t)... | UK992/servo | tests/wpt/web-platform-tests/offscreen-canvas/fill-and-stroke-styles/2d.pattern.repeat.case.worker.js | JavaScript | mpl-2.0 | 624 |
var struct___message__t =
[
[ "buffer", "struct___message__t.html#a1036629b83898b6ddc5c56230a6505f8", null ],
[ "id", "struct___message__t.html#a6c8ce0265b14d351b4029a127cc52179", null ]
]; | legatoproject/legato-docs | 14_07/struct___message__t.js | JavaScript | mpl-2.0 | 197 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | tmhorne/celtx | toolkit/components/downloads/test/unit/test_bug_381535.js | JavaScript | mpl-2.0 | 3,646 |
import React from 'react';
import {
renderIntoDocument,
findRenderedComponentWithType,
} from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { Provider } from 'react-redux';
import createStore from 'amo/store';
import { MastHeadBase } from 'amo/components/MastHead';
import { getFakeI18n... | squarewave/addons-frontend | tests/client/amo/components/TestMastHead.js | JavaScript | mpl-2.0 | 1,757 |
import PropTypes from 'prop-types'
import React from 'react'
import { Button } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
import { withStyles } from '@material-ui/core/styles'
import SettingsListItem from './SettingsListItem'
import ColorPickerButton from './ColorPickerButton'
c... | wavebox/waveboxapp | classic/src/scenes/wbui/SettingsListItemColorPicker.js | JavaScript | mpl-2.0 | 3,061 |
import sortTable from './thirdparty/sorttable.js';
import _ from 'lodash';
import filterTable from './thirdparty/filtertable.js';
const integrations = {
_,
sortTable,
filterTable,
rollbar (type = 'reportMessage', env = 'client') {
if (typeof XMLHttpRequest !== undefined) {
if (!this.rb) {
th... | noahehall/udacity-corporate-dashboard | src/.globals/lib/integrations.js | JavaScript | mpl-2.0 | 524 |
import * as React from 'react';
import AddonAdminLinks from 'amo/components/AddonAdminLinks';
import AddonMoreInfo, { AddonMoreInfoBase } from 'amo/components/AddonMoreInfo';
import Link from 'amo/components/Link';
import { loadVersions } from 'core/reducers/versions';
import {
ADDON_TYPE_DICT,
ADDON_TYPE_EXTENSIO... | kumar303/addons-frontend | tests/unit/amo/components/TestAddonMoreInfo.js | JavaScript | mpl-2.0 | 15,882 |
window.onload = function () {
editor.setOpt({
emotionLocalization:false
});
emotion.SmileyPath = editor.options.emotionLocalization === true ? "images/" : "http://img.baidu.com/hi/";
emotion.SmileyBox = createTabList( emotion.tabNum );
emotion.tabExist = createArr( emotion.tabNum );
in... | agebullhu/AgebullDesigner | demo/src/Web/wwwroot/ueditor/dialogs/emotion/emotion.js | JavaScript | mpl-2.0 | 6,292 |
'use strict';
import delegate from 'delegate';
import activateTab from './utils/activate-tab';
import getPanel from './utils/get-panel';
module.exports = () => {
/**
* Clicks on tabs
*/
delegate(document.body, '.dqpl-tablist .dqpl-tab', 'click', (e) => {
activateTab(e.delegateTarget);
});
/**
*... | dequelabs/pattern-library | lib/components/tabs/events.js | JavaScript | mpl-2.0 | 1,264 |
document.addEventListener("domcontentloaded", () => {
if (document.toString() != "[object ImageDocument]") {
return;
}
browser.runtime.sendMessage("ImageDocument");
});
| msujaws/transparent-standalone-images | content.js | JavaScript | mpl-2.0 | 179 |
'use strict';
/* Whether the browser is Chromium-based with MojoJS enabled */
const isChromiumBased = 'MojoInterfaceInterceptor' in self;
/* Whether the browser is WebKit-based with internal test-only API enabled */
const isWebKitBased = !isChromiumBased && 'internals' in self;
/**
* Loads a script in a window or wo... | asajeffrey/servo | tests/wpt/web-platform-tests/resources/test-only-api.js | JavaScript | mpl-2.0 | 3,466 |
process.env.ethTest = 'TransactionTests'
module.exports = function (config) {
config.set({
browserNoActivityTimeout: 60000,
frameworks: ['browserify', 'tap'],
// the official transaction's test suite is disabled for now, see https://github.com/ethereumjs/ethereumjs-testing/issues/40
files: ['./test-b... | ethereum/ethereumjs-vm | packages/tx/karma.conf.js | JavaScript | mpl-2.0 | 523 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 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... | Seldaiendil/meyeOS | devtools/qooxdoo-1.5-sdk/framework/source/class/qx/dom/Node.js | JavaScript | agpl-3.0 | 8,266 |
angular.module('app.utils.directives').directive('activityAddNote', activityAddNoteDirective);
function activityAddNoteDirective() {
return {
restrict: 'E',
scope: {
item: '=',
},
templateUrl: 'utils/directives/activity_stream_add_note.html',
controller: Activity... | HelloLily/hellolily | frontend/app/utils/directives/activity_stream_add_note.js | JavaScript | agpl-3.0 | 1,721 |
'use strict';
define(function (require) {
var routes = require('routes'),
Backbone = require('backbone'),
RRSModel = require('model/recodes/rrs-model');
var RRSList = Backbone.Collection.extend({
model: RRSModel,
url: routes.absoluteUrl(routes.RRS_DATA)
});
return RRSL... | hflabs/perecoder | rcd-web/src/main/javascript/app/model/recodes/rrs-list.js | JavaScript | agpl-3.0 | 330 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'smiley', 'af', {
options: 'Lagbekkie opsies',
title: 'Voeg lagbekkie by',
toolbar: 'Lagbekkie'
} );
| afshinnj/php-mvc | assets/framework/ckeditor/plugins/smiley/lang/af.js | JavaScript | agpl-3.0 | 285 |
/*
* Electronic Logistics Management Information System (eLMIS) is a supply chain management system for health commodities in a developing country setting.
*
* Copyright (C) 2015 John Snow, Inc (JSI). This program was produced for the U.S. Agency for International Development (USAID). It was prepared under the USAI... | kelvinmbwilo/open_elmis | modules/openlmis-web/src/main/webapp/public/js/help/help-content/module/help-content-module.js | JavaScript | agpl-3.0 | 1,542 |
/*
YUI 3.10.0 (build a03ce0e)
Copyright 2013 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('widget-parent', function (Y, NAME) {
/**
* Extension enabling a Widget to be a parent of another Widget.
*
* @module widget-parent
*/
var Lang = Y.Lang,
REN... | miing/mci_migo | identityprovider/static/yui/3.10.0/widget-parent/widget-parent-debug.js | JavaScript | agpl-3.0 | 25,867 |
import { Feelings } from './';
Feelings.allow({
insert () {
return true;
}
})
| GeriLife/feelings | feelings/collection/permissions.js | JavaScript | agpl-3.0 | 87 |
/*
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( 'link', 'da', {
acccessKey: 'Genvejstast',
advanced: 'Avanceret',
advisoryContentType: 'Indholdstype',
advisoryTitle: 'Titel',... | astrobin/astrobin | astrobin/static/astrobin/ckeditor/plugins/link/lang/da.js | JavaScript | agpl-3.0 | 2,107 |
var RichText = require('../services/RichText')
module.exports = function ($stateProvider) {
$stateProvider
.state('profile', {
parent: 'main',
url: '/u/:id',
abstract: true,
resolve: /*@ngInject*/ {
isSelf: function(currentUser, $stateParams) {
return currentUser && currentUser.id ===... | Hylozoic/hylo-frontend | src/js/app/routes/profile.js | JavaScript | agpl-3.0 | 2,414 |
describe("Broadcasts for show", () => {
const today = new Date("2019-04-15");
beforeEach(() => {
cy.clock(today.getTime(), ["Date"]);
cy.intercept("GET", "/api/login", {
fixture: "login/failed.json",
statusCode: 401,
});
cy.intercept("GET", "/api/shows/415164569", {
fixture: "show... | radiorabe/raar-ui | cypress/integration/shows_spec.js | JavaScript | agpl-3.0 | 3,399 |
/*!
* Extensible 1.6.0-rc.1
* Copyright(c) 2010-2013 Extensible, LLC
* licensing@ext.ensible.com
* http://ext.ensible.com
*/
/**
* Portuguese/Portugal (pt_PT) Translation
* by Nuno Franco da Costa - francodacosta.com
* translated from ext-lang-en.js
*/
Ext.onReady(function() {
var cm = Ext.ClassManager,
... | annndrey/npui-unik | netprofile_core/netprofile_core/static/extensible/examples/calendar/ext-locales/ext-lang-pt_PT.js | JavaScript | agpl-3.0 | 9,932 |
// ===========================================================================
// Purpose : Posts
// Contributors : jaw-sh
// Widget Version : 2
// ===========================================================================
(function(window, $, undefined) {
// Widget blueprint
var blueprint = ib... | tmrwbo/infinity-next | resources/assets/js/app/widgets/postbox.widget.js | JavaScript | agpl-3.0 | 42,492 |
/**
* Shopware 4.0
* Copyright © 2012 shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
... | lmaslag/test | templates/_default/backend/blog/view/blog/detail/sidebar/assigned_articles.js | JavaScript | agpl-3.0 | 9,580 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'font', 'fo', {
fontSize: {
label: 'Skriftstødd',
voiceLabel: 'Skriftstødd',
panelTitle: 'Skriftstødd'
},
label: 'Skrift',
panelT... | afshinnj/php-mvc | assets/framework/ckeditor/plugins/font/lang/fo.js | JavaScript | agpl-3.0 | 371 |
/**
* Aru
* Logger Extension
* Copyright (C) 2018 - Present, PyroclasticMayhem
*
* 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 opt... | perhion/aru | src/utils/loggerExtended.js | JavaScript | agpl-3.0 | 2,060 |
// allow override variables here
require.context('../../assets/stylesheets/', false, /variables.*\.scss$/);
// import default stylesheet with variables
require('font-awesome/css/font-awesome.css');
require('../styles/application.scss');
function onDomContentLoaded(callback) {
if (document.readyState !== 'loading') ... | 3846masa/mastodon | app/javascript/mastodon/main.js | JavaScript | agpl-3.0 | 1,017 |
module.exports = {
name: 'rainbow',
type: 'image generation',
usage: 'rainbow <mention>',
permission: 1,
help: 'Put a rainbow on someone\'s avatar!',
main: function(bot, msg) {
var { Attachment } = require('discord.js'), user = msg.author;
if (msg.mentions.users.first()) ... | FRCDiscord/RoBot | modules/rainbow.js | JavaScript | agpl-3.0 | 556 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2009 1&1 Internet AG, Germany, http://www.1and1.org
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/... | FireWalkerX/eyeOS-FOSS-V.2.0 | devtools/qooxdoo-sdk/framework/source/class/qx/ui/embed/HtmlArea.js | JavaScript | agpl-3.0 | 37,738 |
/*
Copyright 2008-2013 Clipperz Srl
This file is part of Clipperz, the online password manager.
For further information about its features and functionalities please
refer to http://www.clipperz.com.
* Clipperz is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Pub... | nikolaykhodov/clipperz-password-manager | frontend/beta/js/Clipperz/Crypto/ECC.js | JavaScript | agpl-3.0 | 28,502 |
/**
* @version $Id$
* @author Thomas Crespin <thomas.crespin@sesamath.net>
* @copyright Thomas Crespin 2009-2015
*
* ****************************************************************************************************
* SACoche <http://sacoche.sesamath.net> - Suivi d'Acquisitions de Compétences
* © Thomas Cresp... | Qwaseur/SACoche | pages/officiel_assiduite.js | JavaScript | agpl-3.0 | 19,969 |
odoo.define('staff_management.SalaryTimeline', function (require) {
"use strict";
var core = require('web.core');
var data = require('web.data');
var time = require('web.time');
var Model = require('web.DataModel');
var form_common = require('web.form_common');
var Scheduler = require('staff_management.Scheduler');
va... | Dazul/staff_management | staff_management/static/src/js/timecheck.js | JavaScript | agpl-3.0 | 5,325 |
// pollyfill for require.context (Webpack feature) for test environment
import registerRequireContextHook from 'babel-plugin-require-context-hook/register';
registerRequireContextHook(); | usu/ecamp3 | frontend/.jest/register-context.js | JavaScript | agpl-3.0 | 186 |
/*
DatePicker v4.4 by frequency-decoder.com
Released under a creative commons Attribution-ShareAlike 2.5 license (http://creativecommons.org/licenses/by-sa/2.5/)
Please credit frequency-decoder in any derivative work - thanks.
You are free:
* to copy, distribute, disp... | INRIA/osc | app/assets/javascripts/datepicker.js | JavaScript | agpl-3.0 | 74,247 |
/*
* JSS v0.3 - JavaScript Stylesheets
* https://github.com/Box9/jss
*
* Copyright (c) 2011, David Tang
* MIT Licensed (http://www.opensource.org/licenses/mit-license.php)
*/
var jss = (function (undefined) {
var jss,
Jss,
// Shortcuts
doc = document,
head = doc.head || doc.ge... | creativewebsrl/boardespresso | app/public/js/lib/jss.js | JavaScript | agpl-3.0 | 7,124 |
import { Meteor } from 'meteor/meteor'
import { SettingsToClient } from '../lib/model'
import { get_collection_from_name, convertToPlain } from '../lib/export_data'
import { implementations } from './migrationImplementation'
// As a security measure, do not set these collections.
const doNotUpdate = ['Meteor.users', ... | strawlab/neuron-catalog | server/json_data.js | JavaScript | agpl-3.0 | 3,751 |
import Controller from '@ember/controller';
import {set as emberSet } from '@ember/object';
import user from '../models/user';
import app_state from '../utils/app_state';
import i18n from '../utils/i18n';
import modal from '../utils/modal';
import persistence from '../utils/persistence';
import profiles from '../utils/... | CoughDrop/coughdrop | app/frontend/app/controllers/profile.js | JavaScript | agpl-3.0 | 4,679 |
'use strict';
const users = require('dumonda-me-server-test-util').user;
const db = require('dumonda-me-server-test-util').db;
const dbDsl = require('dumonda-me-server-test-util').dbDSL;
const requestHandler = require('dumonda-me-server-test-util').requestHandler;
const moment = require('moment');
describe('Handling ... | Elyoos/Elyoos | dumondaMe/api/test/test/e2e/tests/user/question/answer/note/upVoteNoteSpec.js | JavaScript | agpl-3.0 | 4,115 |
'use strict';
var oauth2orize = require('oauth2orize'),
passport = require('passport'),
mongoose = require('mongoose'),
randomstring = require('randomstring'),
logger = require('../core/logger'),
OAuthAuthorizationCode = mongoose.model('OAuthAuthorizationCode'),
OAuthAccessToken = mongoose.mode... | chamerling/rse-chamerling | backend/oauth2/index.js | JavaScript | agpl-3.0 | 3,425 |
/*
Copyright (c) 2016 eyeOS
This file is part of Open365.
Open365 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 ver... | Open365/spice-web-client | lib/prettyprint.js | JavaScript | agpl-3.0 | 20,688 |
OC.L10N.register(
"settings",
{
"APCu" : "APCu",
"Redis" : "Redis",
"Security & setup warnings" : "Upozornění zabezpečení a nastavení",
"Sharing" : "Sdílení",
"Server-side encryption" : "Šifrování na serveru",
"External Storage" : "Externí úložiště",
"Cron" : "Cron",
"Email serve... | lrytz/core | settings/l10n/cs_CZ.js | JavaScript | agpl-3.0 | 24,535 |
/**
* Created by KanwarUjjaval on 07-02-2015.
*/
pr.controller('homeController', function () {
}); | kanwarujjaval/photoroll | public/app/controllers/homeController.js | JavaScript | agpl-3.0 | 101 |
export { ManageFiltersTab } from './ManageFiltersTab';
| lnogues/superdesk-client-core | scripts/superdesk-content-filters/directives/index.js | JavaScript | agpl-3.0 | 55 |
#!/usr/bin/env node
const APP_NAME = 'xo-proxy'
const APP_DIR = require('path').join(__dirname, '..')
// -------------------------------------------------------------------
{
const { catchGlobalErrors } = require('@xen-orchestra/log/configure')
catchGlobalErrors(require('@xen-orchestra/log').createLogger('xo:pr... | vatesfr/xo-web | @xen-orchestra/proxy/src/index.js | JavaScript | agpl-3.0 | 4,390 |
const querystring = require('querystring');
const https = require('https');
const zlib = require('zlib');
const Agent = require('agentkeepalive').HttpsAgent;
const cache = require('./cache');
function getCurrentMemoryUsage() {
const memoryUsage = process.memoryUsage();
return memoryUsage.rss;
}
const keepAliveAg... | Yuyz0112/WoWAnalyzer | server/api.js | JavaScript | agpl-3.0 | 2,879 |
var searchData=
[
['elapsed_5fdata',['elapsed_data',['../group__API__SC__Hypervisor.html#a5256359f2725c36c087725384a89a9f9',1,'sc_hypervisor_wrapper']]],
['elapsed_5fflops',['elapsed_flops',['../group__API__SC__Hypervisor.html#a88b5959a57bf1498f4316cc6172a0b96',1,'sc_hypervisor_wrapper']]],
['elapsed_5ftasks',['e... | joao-lima/starpu-1.2.0rc2 | doc/doxygen/html/search/variables_5.js | JavaScript | lgpl-2.1 | 2,881 |
var NFLCIME;
var module;
// get the NFLCIME object
try {
var p = window;
do {
p = p.parent;
if(p.NFLCIME) {
NFLCIME = p.NFLCIME;
break;
}
} while(p != p.parent);
} catch(e) {
}
function loadStyleSheets() {
var interface_css = 'ui.iframe.css';
var module_css = 'ui.google.translation.css'... | NFLC-UMD/NFLCIME | nflcime/packages/ui/google/ui.google.translation.js | JavaScript | lgpl-2.1 | 6,874 |
/**
Class for drawing polylines.
@namespace ludo.canvas
@class ludo.svg.Polyline
@augments canvas.NamedNode
@param {String} points
@param {canvas.NodeConfig} config
@example
var polyline = new ludo.svg.Polyline('20,20 40,25 60,40 80,120 120,140 200,180');
*/
ludo.svg.Polyline = new Class({
Extends: ludo.svg.... | DHTMLGoodies/ludojs | src/svg/polyline.js | JavaScript | lgpl-2.1 | 3,093 |
/*
* This file is part of Cockpit.
*
* Copyright (C) 2015 Red Hat, Inc.
*
* Cockpit 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.1 of the License, or
* (at your option) any l... | matobet/cockpit | pkg/kubernetes/scripts/images.js | JavaScript | lgpl-2.1 | 24,986 |
// Generated by CoffeeScript 1.8.0
(function() {
var async, avatar, bucket, check_collect_one, check_new_config_file, check_new_file_meta, check_new_meta, check_new_metas, check_retrieve_the_folder, check_the_err, client, collect_meta, collect_new_file_meta, collect_one_file, collect_redis, delete_redis_key, delete_t... | goodagood/gg | plain/aws/file-collector-v2.js | JavaScript | lgpl-2.1 | 17,350 |
/*
* Copyright (c) 2016 SoapBox Innovations Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | savoirfairelinux/ring-lrc | src/web-chatview/linkify-string.js | JavaScript | lgpl-2.1 | 3,328 |