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 |
|---|---|---|---|---|---|
/**
* A script for handling the bootstrap switch on the resume page.
*/
// Import css.
require("bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css");
require('bootstrap-switch');
$("[name='my-checkbox']").bootstrapSwitch();
// http://www.bootstrap-switch.org/events.html
$('input[name="my-checkbox"]').on... | TexAgg/website | website/Scripts/resume/resumeButtons.js | JavaScript | gpl-3.0 | 808 |
/*
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* 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.
*
... | Stargamers/PhantomBot | javascript-source/core/lang.js | JavaScript | gpl-3.0 | 6,046 |
(function (root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory(require('jquery'), require('../common/utility'));
} else {
root.api = factory(root.jQuery, root.utility);
}
}(this, function ($, util) {
// API
var self = {};
// Object -> Promise[[Entity]]
s... | public-accountability/littlesis-rails | app/javascript/src/common/api.js | JavaScript | gpl-3.0 | 3,991 |
import VK from 'VK';
import { VK_API_VERSION } from '../constants';
/**
* Fetch friends.
* @param {Object} options
* @return {Promise<Object>}
*/
export function fetchFriends(options = {}) {
const mergedOptions = {
...options,
order: 'hints',
fields: 'photo_100',
v: VK_API_VERSION,
};
return... | AlexeySmolyakov/likeometer-redux | src/api/friends.js | JavaScript | gpl-3.0 | 519 |
/** @ignore */
Kekule.LOCAL_RES = true;
Kekule.Localization.setCurrModule("widget");
Kekule.Localization.addResource("zh", "WidgetTexts",
{
"CAPTION_OK": "确定",
"CAPTION_CANCEL": "取消",
"CAPTION_YES": "是",
"CAPTION_NO": "否",
"CAPTION_BROWSE_COLOR": "浏览颜色",
"HINT_BROWSE_COLOR": "浏览更多颜色",
"S_COLOR_... | deepchem/deepchem-gui | gui/static/kekulejs/src/localization/zh/kekule.localize.widget.zh.js | JavaScript | gpl-3.0 | 12,211 |
var repl = repl || {};
repl.prompt = "> ";
repl.cont = "+\t";
repl.command = {};
load(":/resources/core.js");
soft_version = "SOFT v" + version() + " ";
soft_license = "GNU LESSER GENERAL PUBLIC LICENSE (v 2.1, February 1999)";
function showHelp()
{
var message = soft_version + "(" + soft_license + ")\n\n" +
"W... | NanoSim/Porto | tools/src/softshell/resources/repl.js | JavaScript | gpl-3.0 | 2,146 |
import { Meteor } from 'meteor/meteor';
import '../images.js';
import { Devs } from '../../devs/devs.js';
import { Teams } from '../../teams/teams.js';
import { Visitors } from '../../visitors/visitors.js';
import { Sponsors } from '../../sponsors/sponsors.js';
Meteor.publish('profile.image', function(id){
let d = De... | NEETIIST/BreakingDev17 | imports/api/images/server/publications.js | JavaScript | gpl-3.0 | 2,393 |
import React from 'react';
import { shallow, mount } from 'enzyme';
import Tabs from '../components/layout/Tabs';
describe('Tabs render with different props', () => {
const tabs = [
{ label: 'Přihlášení', render: () => {} },
{ label: 'Registrace', render: () => {} }
];
it('renders without... | jirkae/hobby_hub | src/Base/__tests__/Tabs.test.js | JavaScript | gpl-3.0 | 869 |
var fs = require('fs');
const readline = require('readline');
Lexer = require("./Lexer.js")
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('File name please. ', (answer) => {
var data = fs.readFileSync(answer, 'utf8');
console.log("Got", answer, "->", data)
... | olegispe/Loaf | src/ReadAndLexer.js | JavaScript | gpl-3.0 | 451 |
'use strict';
/**
* app settings factory
* stores the custom user settings and shares it app wide
*/
var app = angular.module('istart');
app.factory('appSettings', ['$q', '$rootScope',function ($q, $rootScope) {
/**
* migrate the old settings from istart 1.x to the
* istartV2!
* @type {{loaded: n... | KaySchneider/istart-ntp | app/service/settings.js | JavaScript | gpl-3.0 | 13,401 |
/* jshint -W117 */
/*
Copyright 2016 Herko ter Horst
__________________________________________________________________________
Filename: _videoplayerApp.js
__________________________________________________________________________
*/
log.addSrcFile("_videoplayerApp.js", "_videoplayer");
function _videoplayerAp... | Trevelopment/MZD-AIO-TI-X | app/files/tweaks/config/videoplayer/jci/gui/apps/_videoplayer/js/_videoplayerApp.js | JavaScript | gpl-3.0 | 3,832 |
import { Link, LocationProvider } from '@reach/router';
import router from '@elementor/router';
import { arrayToClassName } from 'elementor-app/utils/utils.js';
import './inline-link.scss';
export default function InlineLink( props ) {
const baseClassName = 'eps-inline-link',
colorClassName = `${ baseClassName }-... | ramiy/elementor | core/app/assets/js/ui/molecules/inline-link.js | JavaScript | gpl-3.0 | 1,644 |
/// <reference path="windowbutton/battlelog.windowbutton.js" />
/// <reference path="playbar/battlelog.bf3.playbar.js" />
/// <reference path="dialog/battlelog.bf3.dialog.js" />
/// <reference path="stats/battlelog.bf3.stats.js" />
var baseurl = 'http://battlelogium.github.io/Battlelogium/Battlelogium.Core/Javascript'... | Battlelogium/Battlelogium | Battlelogium.Core/Javascript/battlelog.mohw.inject.js | JavaScript | gpl-3.0 | 2,616 |
/**
* Created by gjrwcs on 10/25/2016.
*/
'use strict';
/**
* Game Behavior and Logic for Warp
* @module pulsar.warp
*/
var warp = require('angular').module('pulsar.warp', []);
const ADT = require('../app.dependency-tree.js').ADT;
ADT.warp = {
Level: 'warp.Level',
WarpField: 'warp.WarpField',
Bar: 'w... | thunder033/RMWA | pulsar/app/warp/index.js | JavaScript | gpl-3.0 | 742 |
/* Copyright (c) 2012 Richard Klancer <rpk@pobox.com>
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, merge, publ... | rascalmicro/control-freak | public/static/js/joystick.js | JavaScript | gpl-3.0 | 4,902 |
/*
This file is part of KUMobile.
KUMobile 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.
KUMobile is distributed in th... | garrickbrazil/kumobile | www/js/news.js | JavaScript | gpl-3.0 | 17,619 |
/**
* This file is part of "PCPIN Chat 6".
*
* "PCPIN Chat 6" 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.
*
... | Dark1revan/chat1 | js/base/confirmbox.js | JavaScript | gpl-3.0 | 2,595 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... | Skookum-Nightshift/who-let-the-dogs-in | prototype.js | JavaScript | gpl-3.0 | 37,139 |
function processData(allText) {
var allTextLines = allText.split(/\r\n|\n/);
var headers = allTextLines[0].split(',');
var lines = [];
for (var i=1; i<allTextLines.length; i++) {
var data = allTextLines[i].split(',');
if (data.length == headers.length) {
var tarr = [];
... | Aakast/self_website | Documents/code/GIT/self_website/scripts/showCSV.js | JavaScript | gpl-3.0 | 905 |
/** Namespace NotificationsTable */
var NotificationsTable = new function()
{
var ns = this; // reference to the namespace
ns.oTable = null;
var asInitVals = [];
/** Update the table to list the notifications. */
this.update = function() {
ns.oTable.fnClearTable( 0 );
ns.oTable.fnDraw();
};
... | catsop/CATMAID | django/applications/catmaid/static/js/widgets/table-notifications.js | JavaScript | gpl-3.0 | 6,977 |
define(["exports"], function (_exports) {
"use strict";
Object.defineProperty(_exports, "__esModule", {
value: true
});
_exports.phpLang = phpLang;
function phpLang(hljs) {
var VARIABLE = {
begin: "\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"
};
var PREPROCESSOR = {
className: "... | elmsln/elmsln | core/dslmcode/cores/haxcms-1/build/es5-amd/node_modules/@lrnwebcomponents/code-sample/lib/highlightjs/languages/php.js | JavaScript | gpl-3.0 | 3,428 |
/**
* Policy mappings (ACL)
*
* Policies are simply Express middleware functions which run **before** your controllers.
* You can apply one or more policies to a given controller, or protect just one of its actions.
*
* Any policy file (e.g. `authenticated.js`) can be dropped into the `/policies` folder,
* at wh... | appdevdesigns/opstool-process-reports | config/policies.js | JavaScript | gpl-3.0 | 785 |
/*
* Copyright (c) 2011-2013 Lp digital system
*
* This file is part of BackBuilder5.
*
* BackBuilder5 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 opt... | ndufreche/bb-core-js-dist | src/tb/apps/user/routes.js | JavaScript | gpl-3.0 | 1,111 |
/* 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'
/* brave ledger integration for the brave browser
module entry points:
init() - called by... | MKuenzi/browser-laptop | app/ledger.js | JavaScript | mpl-2.0 | 41,776 |
"use strict";
let Ci = Components.interfaces;
let Cc = Components.classes;
let Cu = Components.utils;
let Cr = Components.results;
var loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader);
loader.loadSubScript("resource://emic/sugar.js");
Cu.import("resource://emic/mailtodate.js... | XxJo3yxX/emic | content/compose.js | JavaScript | mpl-2.0 | 8,930 |
const products = [{id : 'classic', name : 'Classic Ad', price : 269.99},
{id : 'standout', name : 'Standout Ad', price : 322.99},
{id : 'premium', name : 'Premium Ad', price : 394.99}]
class ProductDao {
constructor() {
console.log('Instantiating ProductDao')
}
listA... | marcos-goes/ads-checkout-nodejs | dao/ProductDao.js | JavaScript | mpl-2.0 | 408 |
import Ember from 'ember';
const { Route, RSVP } = Ember;
export default Route.extend({
model() {
const job = this.modelFor('jobs.job');
return RSVP.all([job.get('deployments'), job.get('versions')]).then(() => job);
},
});
| Ashald/nomad | ui/app/routes/jobs/job/deployments.js | JavaScript | mpl-2.0 | 238 |
import animate;
import event.Emitter as Emitter;
import device;
import ui.View;
import ui.ImageView;
import ui.TextView;
import src.Match3Core as Core;
import src.Utils as Utils;
//var Chance = require('chance');
//Some constants
var CoreGame = new Core();
var level = new Core();
//var chance = new Chance();
/* The G... | CoderBear/HoneyBear | src/GameScreen.js | JavaScript | mpl-2.0 | 1,811 |
var fs = require("fs");
var path = require("path");
var _ = require("underscore");
var chai = require("chai");
var expect = chai.expect;
var profile = require("../../lib/profile");
var PREFS = require("../../data/preferences");
var simpleXpiPath = path.join(__dirname, '..', 'xpis', 'simple-addon.xpi');
describe("lib/... | Gozala/jpm | test/unit/test.profile.js | JavaScript | mpl-2.0 | 2,323 |
var langPrettyprint = {"bg":"Bulgarian","ca@valencia":"Catalan (Valencian)","cs":"Czech","da":"Danish","de":"German","el":"Greek","en":"English","en-GB":"English (United Kingdom)","eo":"Esperanto","es":"Spanish","es-ES":"Spanish (Spain)","eu":"Basque","fi":"Finnish","fr":"French","fr-CA":"French (Canada)","fy":"Western... | nrm21/syncthing | gui/default/assets/lang/prettyprint.js | JavaScript | mpl-2.0 | 699 |
/* @flow */
import * as React from 'react';
import Link from 'amo/components/Link';
import { addParamsToHeroURL, checkInternalURL } from 'amo/utils';
import tracking from 'core/tracking';
import LoadingText from 'ui/components/LoadingText';
import type {
HeroCallToActionType,
SecondaryHeroShelfType,
} from 'amo/re... | kumar303/addons-frontend | src/amo/components/SecondaryHero/index.js | JavaScript | mpl-2.0 | 3,823 |
#!/usr/bin/env node
const fs = require('fs');
const Gcp = require('../static/app/js/classes/Gcp');
const argv = process.argv.slice(2);
function die(s){
console.log(s);
process.exit(1);
}
if (argv.length != 2){
die(`Usage: ./resize_gcp.js <path/to/gcp_file.txt> <JSON encoded image-->ratio map>`);
}
const [inputFile... | pierotofy/WebODM | app/scripts/resize_gcp.js | JavaScript | mpl-2.0 | 658 |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2015, Joyent, Inc.
*/
var url = require('url');
var assert = require('assert-plus');
va... | richardkiene/sdc-vmapi | test/vms.marker.test.js | JavaScript | mpl-2.0 | 19,701 |
// listen and handle messages from the content script
// via the background script
import { addStackingContext } from "./actions/stacking-context";
function connectToInspectedWindow({ dispatch }) {
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
if (request.tabId !== browser.devtools.i... | gregtatum/z-index-devtool | extension/src/bootstrap.js | JavaScript | mpl-2.0 | 588 |
/**
* Image Processing
*
* In imaging science, image processing is any form of signal processing for
* which the input is an image, such as a photograph or video frame; the output
* of image processing may be either an image or a set of characteristics or
* parameters related to the image. Most image-processing ... | team178/oculus.js | lib/processing.js | JavaScript | mpl-2.0 | 1,968 |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileOverview WebAudio layout test utility library. Built around W3C's
* testharness.js. Includes asynchronous test task manager,... | DominoTree/servo | tests/wpt/web-platform-tests/webaudio/resources/audit.js | JavaScript | mpl-2.0 | 46,546 |
/*
* taskapi.
*/
var input_taskname_text = '<input type="text" id="task_name_{0}" value="{1}" class="form-control">';
var input_taskdesc_text = '<input type="text" id="task_desc_{0}" value="{1}" class="form-control">';
var btn_update_task = '<a href="#" class="btn-update-task btn btn-sm btn-success" data-taskid="... | Jumoo/Taskily | TaskilyWeb/Scripts/admin/tasks.js | JavaScript | mpl-2.0 | 7,154 |
(function () {
'use strict'
var SIZE
var COLUMNS
var UNICODES = {
'w': '\u26C0',
'b': '\u26C2',
'B': '\u26C3',
'W': '\u26C1',
'0': ' '
}
var START_FEN
function validMove (move) {
// move should be a string
if (typeof move !== 'string') return false
// move should be in t... | shubhendusaurabh/draughtsboardJS | draughtsboard.js | JavaScript | mpl-2.0 | 49,458 |
/* 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";
var convict = require('convict');
var format = require('util').format;
var getHashes = require('cry... | mozilla-services/loop-server | loop/config.js | JavaScript | mpl-2.0 | 15,679 |
import basicAuth from 'express-basic-auth'
import { Ability } from '@casl/ability'
const userAccountAuthorizer = (app) => async (email, password, cb) => {
try {
const auth = await app
.service('authentication')
.create({ email, password, strategy: 'local' }, { provider: 'rest' })
const ability = ... | teikei/teikei | api/src/middleware/userAccountBasicAuth.js | JavaScript | agpl-3.0 | 619 |
function Component(type,id,uri,name,query,inputList,x,y) {
// this.code = code;
// this.type = type;
this.componentId = id;
this.uri = uri;
this.name = name;
this.query = query;
this.inputList = inputList;
this.x = x;
this.y = y;
};
Component.prototype = {
constructor: Component,
// getCode: fu... | miguel76/WorldPipes | WebContent/components/Union.js | JavaScript | agpl-3.0 | 4,217 |
// EXIF Orientation test
// iOS looks at the EXIF Orientation flag in jpgs and rotates the image
// accordingly. Looks like most desktop browsers just ignore this data.
// description: www.impulseadventure.com/photo/exif-orientation.html
// Bug trackers:
// bugzil.la/298619 (unimplemented)
// crbug.com/56845 (... | Firescar96/kotoken | app/assets/css-toggle-switch-gh-pages/bower_components/modernizr/feature-detects/exif-orientation.js | JavaScript | agpl-3.0 | 1,755 |
/*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... | Lokiedu/libertysoil-site | src/prop-types/common.js | JavaScript | agpl-3.0 | 5,950 |
engine.eval("load('nashorn:mozilla_compat.js');");
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modi... | Micah-S/hidden-ms | src/scripts/npc/2082002.js | JavaScript | agpl-3.0 | 2,408 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'sourcearea', 'ko', {
toolbar: '소스'
} );
| afshinnj/php-mvc | assets/framework/ckeditor/plugins/sourcearea/lang/ko.js | JavaScript | agpl-3.0 | 225 |
// i18n.js
App.i18n = {
strings: {},
loaded: false,
setLanguage: function(languageCode, callback) {
this.languageCode = languageCode;
App.localStorage.set('selected_interface_locale', languageCode);
this.loadStrings(callback);
},
getLanguage: function(languageCode) {
return this.languageCode;
},
transla... | jeka-kiselyov/dimeshift | public/scripts/app/i18n.js | JavaScript | agpl-3.0 | 1,657 |
{
"metadata" :
{
"formatVersion" : 3.1,
"sourceFile" : "Buffalo.obj",
"generatedBy" : "OBJConverter",
"vertices" : 2202,
"faces" : 4134,
"normals" : 2113,
"uvs" : 0,
"materials" : 4
},
"materials": [ ... | adaxi/freeciv-web | freeciv-web/src/main/webapp/3d-models/Buffalo.js | JavaScript | agpl-3.0 | 1,330 |
/*
* 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... | USAID-DELIVER-PROJECT/elmis | modules/openlmis-web/src/main/webapp/public/js/demographics/controller/base-demographic-estimate-controller.js | JavaScript | agpl-3.0 | 3,940 |
function recaptcha_verified () {
document.querySelector('.recaptcha_submit').removeAttribute('disabled')
}
function recaptcha_expired () {
document.querySelector('.recaptcha_submit').setAttribute('disabled', 'disabled')
}
| julianguyen/ifme | app/assets/javascripts/require_recaptcha.js | JavaScript | agpl-3.0 | 227 |
/*
* This program was produced for the U.S. Agency for International Development. It was prepared by the USAID | DELIVER PROJECT, Task Order 4. It is part of a project which utilizes code originally licensed under the terms of the Mozilla Public License (MPL) v2 and therefore is licensed under MPL v2 or later.
*
* T... | kelvinmbwilo/vims | modules/openlmis-web/src/main/webapp/public/js/vaccine/demographics/controller/district-demographic-estimate-controller.js | JavaScript | agpl-3.0 | 3,037 |
module.exports = {
error: require('./error'),
store: require('./store'),
task: require('./task')
};
| jcolag/mindlessChat | node_modules/hoodie-server/node_modules/hoodie/src/lib/index.js | JavaScript | agpl-3.0 | 106 |
/*Copyright (c) Shelloid Systems LLP. All rights reserved.
The use and distribution terms for this software are covered by the
GNU Affero General Public License 3.0 (http://www.gnu.org/licenses/agpl-3.0.html)
which can be found in the file LICENSE at the root of this distribution.
By using this software in any fashion,... | jayaraj-poroor/vpt-web | basic-admin/routes/user/signup.js | JavaScript | agpl-3.0 | 1,917 |
var BUFFER_SIZE = 2048;
var div = 1;
var context = new AudioContext();
var masterNode = context.createScriptProcessor(BUFFER_SIZE*4, 2, 2);
var nodes = [];
var eqs = [];
loadSample = function(url) {
var request = new XMLHttpRequest();
request.open('GET', url, true);
request.responseType = 'arraybuffer... | echo66/PhaseVocoderJS | test.js | JavaScript | agpl-3.0 | 6,660 |
// document.getElementsByTagName('body')[0].style.visibility = 'hidden';
// //console.log("first" + "/\\b" + "Hello" + "\\b/gi");
var fn2 = function() {
//console.log('running');
document.getElementsByTagName('body')[0].style.visibility = 'hidden';
//console.log('hidden');
};
fn2();
| ContentHolmes/Content-Holmes | src/js/URLInviz.js | JavaScript | agpl-3.0 | 297 |
describe('Introduction', function () {
beforeEach(function () {
cy.login();
cy.createContact('John', 'Doe', 'Man');
cy.createContact('Jane', 'Doe', 'Woman');
cy.createContact('Joe', 'Shmoe', 'Man');
});
it('lets you fill first met without an introducer', function () {
cy.url().should('include... | monicahq/monica | tests/cypress/integration/contacts/introductions_spec.js | JavaScript | agpl-3.0 | 2,477 |
var C = crel2;
var ventana = API.widget.create();
var textarea;
C(ventana,
C('button', ['onclick', local_set_test], 'LOCAL SET test'),
C('button', ['onclick', local_get_test], 'LOCAL GET test'),
C('button', ['onclick', local_delete_test], 'LOCAL DELETE test'),
C('button', ['onclick', local_delete_all_test], 'LO... | forestrf/CoolStartNet | widgets/test/main.js | JavaScript | agpl-3.0 | 6,066 |
var ERR = require('async-stacktrace');
var assert = require('assert');
var fs = require('fs');
var courseDB = require('../lib/course-db');
var logger = require('./dummyLogger');
describe('courseDB.loadFullCourse() on exampleCourse', function() {
this.timeout(20000);
var courseDir = 'exampleCourse';
var c... | rbessick5/PrairieLearn | tests/testLoadCourse.js | JavaScript | agpl-3.0 | 6,134 |
(function() {
"use strict";
angular.module("blocktrail.setup")
.factory("newAccountFormService", function($log, $http, $q, _, cryptoJS, device, CONFIG, launchService, settingsService, trackingService) {
return new NewAccountFormService($log, $http, $q, _, cryptoJS, device, CONFIG, launc... | blocktrail/blocktrail-wallet | src/js/modules/setup/services/new-account-form/new-account-form.service.js | JavaScript | agpl-3.0 | 4,234 |
import { setAttrs } from '../actions/object'
/*MATERIALDB_GROUP*/
export const addGroup = () => ({ type: "MATERIALDB_GROUP_ADD" });
export const deleteGroup = (groupId) => ({ type: "MATERIALDB_GROUP_DELETE", payload: groupId });
export const setGroupAttrs = (groupId, attrs) => ({ type: "MATERIALDB_GROUP_SET_ATTRS", pa... | LaserWeb/LaserWeb4 | src/actions/material-database.js | JavaScript | agpl-3.0 | 1,695 |
/* Copyright 2018 Onestein
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
odoo.define('website_lazy_load_image.lazy_image_loader', function (require) {
'use strict';
var Class = require('web.Class');
var mixins = require('web.mixins');
/**
* Handles lazy loading of images.
... | Vauxoo/website | website_lazy_load_image/static/src/js/frontend.js | JavaScript | agpl-3.0 | 3,060 |
/* @flow */
import React, { Component, PropTypes } from 'react';
import ReactNative from 'react-native';
import shallowEqual from 'shallowequal';
import Colors from '../../../Colors';
import AppText from '../AppText';
import ListItem from '../ListItem';
import Icon from '../Icon';
import Time from '../Time';
import Ac... | Anup-Allamsetty/pure | src/ui/components/views/Homescreen/RoomItem.js | JavaScript | agpl-3.0 | 3,984 |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, click } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import styles from 'irene/components/tri-state-checkbox/index.scss';
module('Integration | Component | tri-state-checkbox', function (ho... | appknox/irene | tests/integration/components/tri-state-checkbox-test.js | JavaScript | agpl-3.0 | 8,101 |
/*
* Include everything.
*/
var net = require('net');
var MudClient = require("./mudclient.js");
var MudRooms = require("./mudrooms.js");
/*
* I wanted to make this a field on a MudServer class and node decided it wanted to monkeypatch my scope and break that idea.
*/
var clients = []
/*
* As much as I feel thi... | duaneking/nodejs-derpmud | mudserver.js | JavaScript | agpl-3.0 | 6,399 |
/**
* @class NetProfile.tickets.controller.TicketGrid
* @extends Ext.app.Controller
*/
Ext.define('NetProfile.tickets.controller.TicketGrid', {
extend: 'Ext.app.Controller',
requires: [
'Ext.menu.Menu'
],
fromTemplateText: 'From Template',
fromTemplateTipText: 'Add ticket from template',
scheduleText: 'Sche... | annndrey/npui-unik | netprofile_tickets/netprofile_tickets/static/webshell/controller/TicketGrid.js | JavaScript | agpl-3.0 | 1,850 |
/**
* Copyright (C) 2017 3D Repo Ltd
*
* 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 version.
*
* This pro... | 3drepo/3drepo.io | backend/src/v4/models/aggregate_fields/issue/age.js | JavaScript | agpl-3.0 | 1,033 |
//Create an event node
var Event = (function($) { return function(properties) {
this.properties = properties;
this.blip = null;
this.listing = null;
this.className = properties.event_type_name.replace(/[^\w]/ig,"-").toLowerCase();
this.LatLng = [parseFloat(this.properties.latitude),
... | Bernie-2016/EventMap | js/MapManager.js | JavaScript | agpl-3.0 | 31,622 |
export default (original) => {
const url = getHashUrl(original);
let [path, params] = url.split('?');
if (path.length >= 2) {
path = path.replace(/\/$/, '');
}
if (params) {
params = parseSearchParams(params);
} else {
params = {}
}
const actual = path + joinSearchParams(params);
ret... | regenduft/kartevonmorgen | src/util/parseUrl.js | JavaScript | agpl-3.0 | 1,271 |
/*
* decaffeinate suggestions:
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
//##############################################################################
//
// CoCalc: Collaborative web-based calculation
// Copyri... | DrXyzzy/smc | src/smc-util/immutable-types.js | JavaScript | agpl-3.0 | 3,924 |
'use strict';
var openUrl = require('./utils').open;
module.exports = new PublishQueue();
function PublishQueue() {
this.openPublishQueue = function() {
openUrl('/#/publish_queue');
};
this.getRow = function(rowNo) {
return element.all(by.css('[ng-click="preview(queue_item);"]')).get(ro... | vladnicoara/superdesk-client-core | spec/helpers/publish_queue.js | JavaScript | agpl-3.0 | 2,111 |
var PlayerWrapper = function() {
this.underlyingPlayer = 'aurora';
this.aurora = {};
this.sm2 = {};
this.duration = 0;
this.volume = 100;
return this;
};
PlayerWrapper.prototype = _.extend({}, OC.Backbone.Events);
PlayerWrapper.prototype.play = function() {
switch(this.underlyingPlayer) {
case 'sm2':
thi... | pellaeon/music | js/app/playerwrapper.js | JavaScript | agpl-3.0 | 4,269 |
OC.L10N.register(
"passman",
{
"General" : "ទូទៅ",
"Done" : "Done",
"Sharing" : "ការចែករំលែក",
"Share link" : "Share link",
"Username" : "ឈ្មោះអ្នកប្រើ",
"File" : "File",
"Add" : "បញ្ចូល",
"Type" : "Type",
"Size" : "ទំហំ",
"Expiration date" : "ពេលផុតកំណត់",
"Disa... | nextcloud/passman | l10n/km.js | JavaScript | agpl-3.0 | 1,561 |
export class Toolbar {
} | QuantumConcepts/slumber-db-portal | wwwroot/elements/Toolbar.js | JavaScript | agpl-3.0 | 29 |
OC.L10N.register(
"weather",
{
"Monday" : "Måndag",
"Tuesday" : "Tysdag",
"Wednesday" : "Onsdag",
"Thursday" : "Torsdag",
"Friday" : "Fredag",
"Saturday" : "Laurdag",
"Sunday" : "Søndag",
"Weather" : "Vær",
"Save" : "Lagre",
"Add a city" : "Legg til ein by",
"Add city... | nerzhul/owncloud-weather | l10n/nn_NO.js | JavaScript | agpl-3.0 | 649 |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Adapter | organization cleanup', function(hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function(assert) {
let adapter = this.owner.lookup('adapter:organization-cleanup');
a... | appknox/irene | tests/unit/adapters/organization-cleanup-test.js | JavaScript | agpl-3.0 | 349 |
import React from 'react'
import { connect } from 'react-redux'
import { VelocityComponent } from 'velocity-react'
import TopNav from '../components/TopNav'
import NetworkNav from '../components/NetworkNav'
import LeftNav, { leftNavWidth, leftNavEasing } from '../components/LeftNav'
import { toggleLeftNav, updateCurren... | Hylozoic/hylo-redux | src/containers/PageWithNav.js | JavaScript | agpl-3.0 | 4,170 |
if(App.namespace) { App.namespace('Action.Sort', function(App) {
/**
* @namespace App.Action.Sort
* @type {*}
*/
var sort = {};
/** @type {App.Action.Project} Project */
var Project = null;
/**
* button for sorting columns grid
* @type {{}}
*/
so... | Werdffelynir/owncollab_chart | js/application/action/sort.js | JavaScript | agpl-3.0 | 18,828 |
/*
* 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... | USAID-DELIVER-PROJECT/elmis | modules/openlmis-web/src/main/webapp/public/js/reports/custom/controller/designer-controller.js | JavaScript | agpl-3.0 | 3,363 |
(function(global){
var PollXBlockI18N = {
init: function() {
(function(globals) {
var django = globals.django || (globals.django = {});
django.pluralidx = function(count) { return (count == 1) ? 0 : 1; };
/* gettext library */
django... | open-craft/xblock-poll | poll/public/js/translations/pl/textjs.js | JavaScript | agpl-3.0 | 3,444 |
import reducer, { addFlag, fetchAll } from '../reducer'
import fetchAllSuccess from './__fixtures__/fetch_all_success'
const INITIAL_STATE = reducer(undefined, {})
test('has correct defaults', () => {
snapshot(INITIAL_STATE)
})
test('fetch all', () => {
snapshotReducer(reducer, INITIAL_STATE, fetchAll(fetchAllSu... | CaptainFact/captain-fact-frontend | app/state/video_debate/comments/__tests__/reducer.spec.js | JavaScript | agpl-3.0 | 441 |
define([
'collections/credit_provider_collection',
'ecommerce',
'models/course_seats/credit_seat'
],
function (CreditProviderCollection,
ecommerce,
CreditSeat) {
'use strict';
var model,
data = {
id: 9,
... | mferenca/HMS-ecommerce | ecommerce/static/js/test/specs/models/course_seats/credit_seat_spec.js | JavaScript | agpl-3.0 | 2,777 |
(function($)
{
$(document).ready(function()
{
$('.nsfw').on('click', function()
{
if($(this).hasClass('show'))
{
$(this).removeClass('show');
}
else
{
$(this).addClass('show');
}
});
... | wetfish/classic | wiki/src/js/wiki2.js | JavaScript | agpl-3.0 | 728 |
/*
This file is part of Booktype.
Copyright (c) 2012 Aleksandar Erkalovic <aleksandar.erkalovic@sourcefabric.org>
Booktype 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... | btat/Booktype | lib/booktype/apps/edit/static/edit/js/booktype/editor.js | JavaScript | agpl-3.0 | 21,929 |
import * as randomMC from 'random-material-color';
import Localisation from '@js/Classes/Localisation';
import CustomFieldsHelper from '@js/Helper/Import/CustomFieldsHelper';
import ImportMappingHelper from '@js/Helper/Import/ImportMappingHelper';
export default class EnpassConversionHelper {
/**
*
* @p... | marius-wieschollek/passwords | src/js/Helper/Import/EnpassConversionHelper.js | JavaScript | agpl-3.0 | 8,193 |
const t = require('tcomb')
const Message = require('./message')
const Messages = t.list(Message, 'Messages')
module.exports = Messages
| enspiral-dev-academy/freehold | models/messages.js | JavaScript | agpl-3.0 | 137 |
/*
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/eyeoslogin | src/js/platformSettings.js | JavaScript | agpl-3.0 | 1,207 |
/**
* This file is part of taolin project (http://taolin.fbk.eu)
* Copyright (C) 2008, 2009 FBK Foundation, (http://www.fbk.eu)
* Authors: SoNet Group (see AUTHORS.txt)
*
* Taolin 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 ... | vad/taolin | webroot/js/portal/application.js | JavaScript | agpl-3.0 | 17,510 |
/**
* Crypto module for Geierlein.
*
* @author Stefan Siegl
*
* Copyright (c) 2012 Stefan Siegl <stesie@brokenpipe.de>
*
* 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 ve... | vog/geierlein | chrome/content/lib/geierlein/crypto.js | JavaScript | agpl-3.0 | 5,912 |
/**
* @file tools.js
* @brief Used by cutes agent to invoke async actions
* @copyright (C) 2014 Jolla Ltd.
* @par License: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
*/
var make_system_action = function(name) {
return function() {
var subprocess = require("subprocess");
su... | alinelena/sailfish-utilities | qml/tools.js | JavaScript | lgpl-2.1 | 1,566 |
var path = require('path')
var utils = require('./utils')
var config = require('../config')
var vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
entry: {
app: './src/main.js'
},
output: {
path: config.build.assetsRoot,
... | changxiao/guessTea | build/webpack.base.conf.js | JavaScript | lgpl-2.1 | 1,709 |
var slidedelay = $('#bannerslider').attr('data-delay');
var pauseonhover = $('#bannerslider').attr('data-pause');
var fadedelay = 2000;
$(document).ready(function() {
if ($('#bannerslider').hasClass("slide") && $('#bannerslider').hasClass("carousel")) {
$('#bannerslider').carousel({
interval: s... | JojoCMS-Plugins/jojo_bannerimage | js/functions.js | JavaScript | lgpl-2.1 | 1,098 |
var searchData=
[
['querybuilder_3034',['QueryBuilder',['../classCqrs_1_1Repositories_1_1Repository_a4447451b7dbcfcd68dfa3fa65a41f357.html#a4447451b7dbcfcd68dfa3fa65a41f357',1,'Cqrs::Repositories::Repository']]],
['querypredicate_3035',['QueryPredicate',['../classCqrs_1_1Azure_1_1BlobStorage_1_1Test_1_1Integration_... | Chinchilla-Software-Com/CQRS | wiki/docs/4.2/html/search/properties_10.js | JavaScript | lgpl-2.1 | 3,938 |
var dir_d5c97c2750cda5d5e748b76e78cc7d4b =
[
[ "Masking.cu", "_masking_8cu.html", "_masking_8cu" ]
]; | HZDR-FWDF/RISA | docs/dir_d5c97c2750cda5d5e748b76e78cc7d4b.js | JavaScript | lgpl-3.0 | 105 |
'use strict';
/**
* @ngdoc service
* @name ortolangMarketApp.STATIC_WEBSITE_FR
* @description
* # STATIC_WEBSITE_FR
* Constant in the ortolangMarketApp.
*/
angular.module('ortolangMarketApp')
.constant('STATIC_WEBSITE_FR', {
STATIC_WEBSITE: {
PATH: {
LEGAL_NOTICES: 'common... | Ortolang/market | src/main/webapp/static/app/common/static-website/i18n/static-website.fr.js | JavaScript | lgpl-3.0 | 4,289 |
/*
* 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/overview/components/EmptyOverview.js | JavaScript | lgpl-3.0 | 1,296 |
/**
* Copyright (C) 2005-2016 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 ... | jphuynh/Aikau | aikau/src/main/resources/alfresco/menus/AlfMenuGroup.js | JavaScript | lgpl-3.0 | 8,563 |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact 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... | joansmith/sonarqube | server/sonar-web/src/main/js/apps/update-center/plugin.js | JavaScript | lgpl-3.0 | 2,481 |
/**
* jQuery Selective v0.3.5
* https://github.com/amazingSurge/jquery-selective
*
* Copyright (c) amazingSurge
* Released under the LGPL-3.0 license
*/
import $$1 from 'jquery';
/*eslint no-empty-function: "off"*/
var DEFAULTS = {
namespace: 'selective',
buildFromHtml: true,
closeOnSelect: false,
local: null,... | amazingSurge/jquery-selective | dist/jquery-selective.es.js | JavaScript | lgpl-3.0 | 16,420 |
const keystone = require('keystone');
const Types = keystone.Field.Types;
const Gallery = new keystone.List('Gallery', {
autokey: { path: 'slug', from: 'title', unique: true },
map: { name: 'title' },
defaultSort: 'order'
});
Gallery.add({
title: { type: String, required: true },
state: { type: Ty... | CopenhagenCityArchives/collections-online | plugins/keystone/models/galleries.js | JavaScript | lgpl-3.0 | 724 |
isc.VStack.create({
membersMargin: 30,
members: [
isc.VStack.create({
membersMargin: 30,
members: [
isc.DynamicForm.create({
ID: "filterForm",
width: 300,
operator: "and",
saveOnEnter:... | kylemwhite/isc | isomorphic_11.1p/system/reference/inlineExamples/grids/filtering/advancedFilter.js | JavaScript | lgpl-3.0 | 2,434 |
var vueBody = new coreBody({
el: 'body',
data : {
user : "leasunhy",
selectedTab : 'All Questions',
currentOrder : 'vote',
orders : ['vote', 'view', 'time'],
page : 1,
tasks : [],
sear... | igemsoftware/SYSU-Software-2015 | server/static/js/taskhall/taskhall_index.js | JavaScript | lgpl-3.0 | 2,207 |