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 |
|---|---|---|---|---|---|
/*
Created by Toroo
*/
require.config({
paths: {
"jquery" : '/lib/jquery-2.2.3.min',
"jquery_cookie" : '/lib/jquery.cookie.min',
"text" : '/lib/text.min',
"socket_io" : '/socket.io/socket.io',
"css" : '/lib/css.min'
},
shim: {
"socket_io": {
... | tortuvshin/NodeChat | public/init.js | JavaScript | gpl-2.0 | 19,072 |
angular.module('resources', [
//'resources.messages'
,'resources.users'
,'resources.projects'
,'resources.backlogs'
,'resources.issues'
,'resources.tasks'
,'resources.myevents'
])
angular.module('controllers',[
//'controllers.messages'
,'controllers.users'
,'controllers.projects'
,'controllers.backlogs'
,'controller... | SISE-KB/kanban | client/src/app/index.js | JavaScript | gpl-2.0 | 762 |
let path = require('path');
let objectValues = require('lodash').values;
let File = require('./File');
class Versioning {
/**
* Create a new Versioning instance.
*
* @param {Array} manualFiles
* @param {object} manifest
* @param {string} publicPath
*/
constructor(manualFiles = []... | Hassan93/openTima | node_modules/laravel-mix/src/Versioning.js | JavaScript | gpl-2.0 | 2,335 |
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-aggregate-paginate');
var Schema = mongoose.Schema;
var Notification = new Schema({
recipient: String,
date: Date,
content: String,
read: Boolean
});
Notification.plugin(mongoosePaginate);
module.exports = mongoose.model('No... | DkGr/virtualid | models/notification.js | JavaScript | gpl-2.0 | 348 |
tinyMCE.addI18n("sv.advlink_dlg", {
target_name: "Målnamn",
classes: "Klasser",
style: "Stil",
id: "Id",
popup_position: "Position (x/y)",
langdir: "Skriftriktning",
popup_size: "Storlek",
popup_dependent: "Beroende av (Mozilla/Firefox enbart)",
popup_resizable: "Skalbart fönster",
... | openacs/openacs-core | packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/plugins/advlink/langs/sv_dlg_src.js | JavaScript | gpl-2.0 | 1,891 |
angular.module('app', ['ngRoute'])
.config(function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider
.when('/', {
templateUrl: myLocalized.partials + 'main.html',
controller: 'Main'
})
.when('/:ID', {
templateUrl: myLocalized.partials + 'content.html',
controller: 'Co... | Allerby/vics | wp-content/themes/vics/js/scripts.js | JavaScript | gpl-2.0 | 640 |
/**
* TBlock Class
*
* Tetris block class
* Keeps track of block textures, positions, dynamics
*
* Author: Alex J. Staples
* Date last modified: 6/22/16
*
*/
function TBlock(image, posX, posY) {
// identification code
this.id = "";
// texture taken from file, to be applied as the image for the sp... | mercuryax/pixi-tetris | block.js | JavaScript | gpl-2.0 | 4,316 |
(function() {
var CYCLE_CHAR, CYCLE_EXPLODED, CYCLE_EXPLOSION, Cycle, CycleView, Game, WallView, buffer, directions, screen;
require('../../define_property');
directions = require('../../models/directions');
buffer = require('../buffer');
screen = require('../screen');
Game = require('../../models/game... | carbonfive/vimtronner | lib/client/views/cycle_view.js | JavaScript | gpl-2.0 | 3,557 |
/*!
* VisualEditor UserInterface LinkInspector class.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* Link inspector.
*
* @class
* @extends ve.ui.AnnotationInspector
*
* @constructor
* @param {ve.ui.WindowSet} windowSet Windo... | Wikia/OldStructuredDataPrototype | extensions/VisualEditor/modules/ve/ui/inspectors/ve.ui.LinkInspector.js | JavaScript | gpl-2.0 | 2,933 |
/**
* @todo
*/
(function($) {
/**
* @todo
*/
Drupal.behaviors.luggageUTagInput = {
attach: function (context) {
$('body', context).once('luggageUTagInput', function() {
var $inputs = $('.field-type-taxonomy-term-reference input[type="text"]'),
block = false;
$inputs/*.cs... | rlfrahm/luggage_ux | js/tag_box.js | JavaScript | gpl-2.0 | 3,934 |
/*
* spa.js
* Root namespace module
*/
/*jslint
browser : true, continue : true,
devel : true, indent : 2, maxerr : 50,
newcap : true, nomen : true, plusplus : true,
regexp : true, sloppy : true, vars : true,
white : true
*/
/*global $, spa */
var spa = (function () {
var in... | rihbyne/app_control_client | app/scripts/spa.js | JavaScript | gpl-2.0 | 457 |
( function( $, Backbone, _, ccfSettings ) {
'use strict';
window.wp = window.wp || {};
wp.ccf = wp.ccf || {};
wp.ccf.utils = wp.ccf.utils || {};
wp.ccf.utils.cleanDateFields = function( object ) {
delete object.date;
delete object.date_gmt;
delete object.modified;
delete object.modified_gmt;
delete obj... | linzw07/campuspecs | wp-content/plugins/custom-contact-forms/build/js/form-manager.js | JavaScript | gpl-2.0 | 83,540 |
'use strict';
import React from 'react';
let Button = React.createClass({
getDefaultProps() {
return {
icon: '',
name: '',
target: {}
}
},
render() {
return (
<button type="button" className="btn btn-default btn-md btn-space" onClic... | helderfarias/ges | web/src/js/components/comuns/button.js | JavaScript | gpl-2.0 | 579 |
/*
DO NOT MODIFY - This file has been generated and will be regenerated
Semantic UI v2.1.0
*/
/*!
* # Semantic UI - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, do... | jeroenpeeters/world-port-hackathon-2015 | client/lib/semantic-ui/definitions/modules/checkbox.js | JavaScript | gpl-2.0 | 25,257 |
define([
'phaser',
'rot',
'settings',
'entity'
], function (Phaser, ROT, Settings, Entity) {
'use strict';
// Private vars.
var game;
function Cursor (_game, target) {
game = _game;
Entity.call(this, game, 0, 0, 'cursor');
// Identifying information
... | suicidepills/hk | src/cursor.js | JavaScript | gpl-2.0 | 1,427 |
'use strict';
angular.module('myApp', [
'ngRoute',
'ngResource',
'ngMessages',
'myApp.Search',
'myApp.Profile',
'myApp.Service',
'myApp.Route',
'ngMaterial',
'satellizer'
]);
| princealikhan/namma-tutor | public/App/app.js | JavaScript | gpl-3.0 | 207 |
var pmc__utils_8c =
[
[ "char_replace", "pmc__utils_8c.html#aafd74bb6564c3c3c057175e5b7973fec", null ],
[ "cmp_float", "pmc__utils_8c.html#a7051d2192267dcba608e4720c7b0187c", null ],
[ "cmp_int32", "pmc__utils_8c.html#ad08429d28a59ccf2ac45c0f54a16c323", null ],
[ "error", "pmc__utils_8c.html#a7e15c8e288... | PMAlgo/pmc-0.2 | doc/html/pmc__utils_8c.js | JavaScript | gpl-3.0 | 1,124 |
define(['backbone', 'JST'], function(Backbone, templates) {
var StateWidget = Backbone.View.extend({
el: '#stateWidget',
template: templates['app/Templates/stateWidget'],
className: 'widget',
render: function() {
this.$el.html(this.template());
}
});
... | arctic-fire-development/dapper-gcs | app/Views/Widgets/State.js | JavaScript | gpl-3.0 | 346 |
var
rules,
lastRequestId;
if(localStorage['rules']){
rules = JSON.parse(localStorage['rules']);
}
else{
rules = [];
}
chrome.webRequest.onBeforeRequest.addListener(function(details) {
return redirectToMatchingRule(details);
}, {
urls : ["<all_urls>"]
}, ["blocking"]);
function redirectToM... | desigonz/Desiroo | request.js | JavaScript | gpl-3.0 | 2,148 |
const electron = require('electron');
const remote = electron.remote;
const dialog = electron.remote.dialog;
const shell = electron.shell;
const app = electron.remote.app;
const fs = remote.require('fs');
const main = remote.require('./main');
const path = require('path');
const showdown = require('showdown');
const ... | JonSn0w/Hyde | js/app.js | JavaScript | gpl-3.0 | 11,904 |
var __v=[
{
"Id": 2383,
"Chapter": 763,
"Name": "md-select",
"Sort": 0
},
{
"Id": 2384,
"Chapter": 763,
"Name": "md-radio-group",
"Sort": 0
}
] | zuiwuchang/king-document | data/chapters/763.js | JavaScript | gpl-3.0 | 176 |
Ext.define('OpenMusic.view.queue.MainController', {
extend: 'Ext.app.ViewController'
,alias: 'controller.queue-main'
/*
,onSongDblClick: function( grid, record, item, index, e ) {
var me = this;
console.log('onSongDblClick', record);
OpenMusic.util.Player.playVideoAt(index);
}
*/
,onSongDblClick: fu... | openmusicapp/app | classic/src/view/queue/MainController.js | JavaScript | gpl-3.0 | 1,395 |
var Invite = ProtectedShared.extend({
base_url: '/invites',
relations: {
from_persona: {model: 'Persona'},
to_persona: {model: 'Persona'}
},
public_fields: [
'id',
'object_id',
'perms',
'token_server',
'has_passphrase',
'has_persona',
'from',
'to',
'title'
],
private_fields: [
'key',
... | cibersheep/turtl-ut | www/app/models/invite.js | JavaScript | gpl-3.0 | 7,381 |
/* Многое взято с сайта Mozilla Foundation, из примера создания видео плейера HTML5. Всё что взто оттуда
я оставил без изменений. Ниже ссылка на статью. */
/* https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/cross_browser_video_player */
'use strict';
//Using the Media API
/* HTM... | astrolac/videotest | videotest.js | JavaScript | gpl-3.0 | 19,821 |
// @flow
const x: {
(...args: *[]): string,
[_: string]: string
} = function(...args: *[]): string {
return "";
};
export default x;
| sashasushko/moira-front | flow/StylesFlowStub.js | JavaScript | gpl-3.0 | 141 |
// @thirdparty Axios declaration
// set up CSRF for use with Django.Python server
// vue-resource is "depreciated;
// seeL https://medium.com/the-vue-point/retiring-vue-resource-871a82880af4
import Axios from "axios"
Axios.defaults.xsrfCookieName = "csrftoken"
Axios.defaults.xsrfHeaderName = "X-CSRFToken"
class API {
... | mPowering/django-orb | vue/services/api.js | JavaScript | gpl-3.0 | 1,613 |
define(["intern!object", "intern/chai!assert", "wc/dom/messageBox", "wc/dom/classList", "wc/ui/icon", "wc/i18n/i18n", "./resources/test.utils!"],
function (registerSuite, assert, controller, classList, icon, i18n, testutils) {
"use strict";
/*
* Unit tests for wc/dom/messageBox
*/
var testHolder,
testBo... | jonathanaustin/wcomponents | wcomponents-theme/src/test/intern/wc.dom.messageBox.test.js | JavaScript | gpl-3.0 | 3,720 |
var searchData=
[
['page_5flinks',['PAGE_LINKS',['../classtemplates_1_1_settings_temp.html#a813be5a9356d17a9165b65f97b40aadc',1,'templates::SettingsTemp']]],
['page_5fprofile',['PAGE_PROFILE',['../classtemplates_1_1_settings_temp.html#a6dd91f0c75e530b35b11f4e6f7da5b89',1,'templates::SettingsTemp']]],
['page_5fsen... | Badges4Languages/Badges-Issuer-for-wp | doc/html/search/variables_a.js | JavaScript | gpl-3.0 | 1,027 |
function addProperties(obj, properties) {
var props = properties;
for ( var z in props) {
if (z == 'values') {
var values = props[z];
var n = 0;
for (n = 0; n < values.length; n++) {
obj.add({
value : values[n]
});
}
} else {
obj[z] = props[z];
}
}
}
function h5Cha... | DolceVii/Raspberry | WWW-for-Presure-and-Temperature/WWW/chart-core.js | JavaScript | gpl-3.0 | 26,056 |
var searchData=
[
['perfcpu',['PerfCpu',['../class_node_net_1_1_network_1_1_nodes_1_1_node.html#a3d4435d72b766a712e4b321e050eef45',1,'NodeNet::Network::Nodes::Node']]],
['perfram',['PerfRam',['../class_node_net_1_1_network_1_1_nodes_1_1_node.html#a96f682af2888dbd7c8ce38a40503c247',1,'NodeNet::Network::Nodes::Node']... | lowxorx/c-projet-adn | NodeNet/Doc/html/search/all_d.js | JavaScript | gpl-3.0 | 3,382 |
// *************************************************************************************************************************************************
// Libreria de scripts de Javascript
// Autor: José Manuel Alonso (E.T.S.I.I.) Universidad de Sevilla
// Fecha Creación: 2009-2010
// Fecha Última modificación: Agosto-20... | DreamaerD/Opengnsys | admin/WebConsole/jscripts/propiedades_entidades.js | JavaScript | gpl-3.0 | 3,977 |
function myelement(name) {
return document.getElementById(name);
}
function show_validation() {
myelement("contenu").innerHTML=" Contenu Validé ";
}
function make_url(type,data) {
switch (type) {
case "url_osm":
url="http://nominatim.openstreetmap.org/search?";
key="email=" + data["key"] ;
format="format=... | Alolise/helpskool | basemap.js | JavaScript | gpl-3.0 | 2,813 |
//For more information, check phaser documentation
//If you have learned to use phaser, then you can easily underatnd the following content.
//Declaring the game object
var game = new Phaser.Game(640, 520, Phaser.AUTO, 'gamingArea', { preload: preload, create: create, update: update });
function preload()
{
//Impo... | Vigneshsekar/Tux4ME | js/template.js | JavaScript | gpl-3.0 | 2,145 |
'use strict';
var async = require('async'),
winston = require('winston'),
nconf = require('nconf'),
validator = require('validator'),
user = require('./user'),
db = require('./database'),
plugins = require('./plugins'),
posts = require('./posts'),
privileges = require('./privileges'),
utils = require('../pub... | dwendt/NodeBB | src/groups.js | JavaScript | gpl-3.0 | 12,655 |
import "./methods/conf";
import "./i18n";
export * from "./methods/Serverapi";
| sebaGonzalez21/kuvasz | imports/plugins/custom/kuvasz-example/server/index.js | JavaScript | gpl-3.0 | 80 |
Ext.define("DIRAC.SystemAdministration.classes.SystemAdministration", {
extend: "Ext.dirac.core.Module",
requires: [
"Ext.tab.Panel",
"Ext.ProgressBar",
"Ext.grid.feature.Grouping",
"Ext.data.ArrayStore",
"Ext.util.TaskRunner",
"Ext.dirac.utils.DiracJsonStore",
"Ext.dirac.utils.DiracAja... | DIRACGrid/WebAppDIRAC | src/WebAppDIRAC/WebApp/static/DIRAC/SystemAdministration/classes/SystemAdministration.js | JavaScript | gpl-3.0 | 49,608 |
/*
* This file is part of CoreWorker.
*
* CoreWorker 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.
*
* CoreWorker is distribu... | CircleOfNice/CoreWorker | src/ExitCodes.js | JavaScript | gpl-3.0 | 1,172 |
cimss.namespace("model.clinical_summary").ClinicalSummary = function(){
this.id = ko.observable();
this.versions = ko.observable();
this.worstLevelOfConsciousness = ko.observable();
this.urinaryTractInfection = ko.observable();
this.newPneumonia = ko.observable();
this.palliativeCare = ko.observable();
t... | open-health-hub/CIMMS | web-app/js/application/model/clinical_summary/ClinicalSummary.js | JavaScript | gpl-3.0 | 449 |
/**
* Background takes in the information from the middleware (the parsed elements, plus info
* from the frontend UI), and creates the file outputs it should, formatting them as required.
*/
// Variables used to hold the most important pieces of data
let outputFileHeader = []; //Info from the page parsed for the he... | NAUTeamWATER/ChromeTestingPlugin | core/generateOutputFiles.js | JavaScript | gpl-3.0 | 5,402 |
/* Zepto v1.0-1-ga3cab6c - polyfill zepto detect event ajax form fx - zeptojs.com/license */
;
(function (undefined) {
if (String.prototype.trim === undefined) // fix for iOS 3.2
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, '')
}
// For iOS 3.x
// from https://developer.mozilla.o... | TouchTheBeat/TouchTheBeat | app/vendor/backbone.paginator/test/vendor/zepto.js | JavaScript | gpl-3.0 | 52,957 |
import Db from '../config/db';
import { TABLE_NAME } from '../../migrations/20170315163745_create_auth_user';
const Bookshelf = Db.Bookshelf;
const AuthUser = Bookshelf.Model.extend({
idAttribute: 'id',
tableName: TABLE_NAME,
hasSecurePassword: 'password_hash',
});
export default AuthUser;
| codenetwork/budget-hamster-rest | src/models/auth-user.js | JavaScript | gpl-3.0 | 300 |
var mongoose = require('mongoose'),
Schema = mongoose.Schema,
mongoosePaginate = require('mongoose-paginate');
var release = Schema({
title: {
type: String,
required: true
},
type: {
type: String,
enum: ['physical', 'digital'],
required: true
},
p... | FomaLSSJ/ps-collection | model/release.js | JavaScript | gpl-3.0 | 1,108 |
var searchData=
[
['utils',['Utils',['../d4/d3d/namespaceUtils.html',1,'']]]
];
| CuonDeveloper/cuon | cuon_client/cpp/doc/html/search/namespaces_4.js | JavaScript | gpl-3.0 | 82 |
App.getTorrentsCollection = function (options) {
var start = +new Date(),
url = 'http://subapi.com/';
var supportedLanguages = ['english', 'french', 'dutch', 'portuguese', 'romanian', 'spanish', 'turkish', 'brazilian', 'italian'];
if (options.genre) {
url += options.genre.toLowerCase() + ... | davidaparicio/popcorn-app-1 | js/frontend/providers/torrents.js | JavaScript | gpl-3.0 | 2,719 |
/**
* @package ImpressPages
* @copyright Copyright (C) 2011 ImpressPages LTD.
* @license see ip_license.html
*/
function IpWidget_IpImageGallery(widgetObject) {
this.widgetObject = widgetObject;
this.prepareData = prepareData;
this.manageInit = manageInit;
this.fileUploaded = fileUploaded;
... | mariomka/ImpressPages-CMS | ip_cms/modules/standard/content_management/widget/IpImageGallery/public/IpImageGallery.js | JavaScript | gpl-3.0 | 11,083 |
import React, { Component } from 'react';
import { TextField } from 'redux-form-material-ui';
import { Field } from 'redux-form';
import { Row, Column } from 'react-cellblock';
// Validation function for redux-form
const required = value => value == null || value === '' ? 'Required' : undefined;
const style = {
erro... | muiradams/plantogo | src/components/forms/Restaurant.js | JavaScript | gpl-3.0 | 1,277 |
/**
* Copyright (c) 2011 Pere Monfort Pàmies (http://www.pmphp.net)
* Official site: http://www.canvastext.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, inc... | beone/JRUN | RunJS/webapp/js/sandbox/other/CanvasText-0.4.1.js | JavaScript | gpl-3.0 | 19,387 |
class MidiMessage {
static get SequenceNumber() { return 0x00; }
static get Text() { return 0x01; }
static get Copyright() { return 0x02; }
static get TrackName() { return 0x03; }
static get InstrumentName() { return 0x04; }
static get Lyric() { return 0x05; }
static get Marker() { return 0... | jeremyfromearth/meter | client/app/js/midi.js | JavaScript | gpl-3.0 | 17,956 |
import React from 'react';
import { string, bool } from 'prop-types';
import classNames from 'classnames';
import CSS from './style.scss';
function SidebarButton({ className, isCollapsed, ...props }) {
const buttonClassName = classNames(CSS.button, {
[CSS.isOpen]: !isCollapsed,
[CSS.hamburger]: isCollapsed,
... | BramscoChill/BlendleParser | information/blendle-frontend-react-source/app/modules/settings/components/SidebarButton/index.js | JavaScript | gpl-3.0 | 762 |
(function () {
'use strict'
angular
.module('cgti')
.constant('URLS', {
BASE: 'http://localhost:3000',
BASE_API: 'http://localhost:3000/api/v1'
})
}())
| icaroramiires/CGTI-PROJECT | client/app/app.constants.js | JavaScript | gpl-3.0 | 180 |
"use strict";
//------------------------------------------------------------------------------
// Global constants
var g_WIDTH;
var g_HEIGHT;
var g_NEWS_COUNT = 4;
//------------------------------------------------------------------------------
// Global variables
var g_time;
var g_tick;
var g_gpeArray;
var g_gpeCoun... | lorancou/newsfeeder | main.js | JavaScript | gpl-3.0 | 4,570 |
var class_m_s_vehicle_1_1_state =
[
[ "State", "df/dd1/class_m_s_vehicle_1_1_state.html#abcc163b083595c7420f359b41c633031", null ],
[ "State", "df/dd1/class_m_s_vehicle_1_1_state.html#a71eedaa00220b2112f389229e7a9d316", null ],
[ "operator!=", "df/dd1/class_m_s_vehicle_1_1_state.html#a61b7b2d9fe5abc44fa9f99... | cathyyul/sumo-0.18 | docs/doxygen/df/dd1/class_m_s_vehicle_1_1_state.js | JavaScript | gpl-3.0 | 1,058 |
var should = require('should')
, GVCode = require('../src/object/GVCode')
, gvcData = {
code: 6,
text: "GELDAUTOMAT"
};
describe('Test gvc', function() {
it('Test gvc completely', function(done) {
var gvc = GVCode.instance();
gvc.setCode(gvcData.code);
gvc.setText(gvcData.text);
should... | svenmuellerssen/node-mt940 | test/testGVCode.js | JavaScript | gpl-3.0 | 494 |
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.TileLayer = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
tileSize: 256,
subdomains: 'abc',
errorTileUrl: '',
attribution: '',
zoomOffset: 0,
opacity: 1,
/* (undefined works too)
zIndex: null,... | oltur/seeyourtravel.com | lib/leaflet-0.6/src/layer/tile/TileLayer.js | JavaScript | gpl-3.0 | 12,840 |
/**
* Copyright © 2011 Jonathon Reesor
*
* This file is part of Jayus.
*
* Jayus 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... | symaxian/jayus | source/Wrapper.js | JavaScript | gpl-3.0 | 6,373 |
function setup(){
createCanvas(windowWidth, windowHeight, WEBGL);
}
function draw() {
background(0);
fill(255);
stroke(255);
for(var y = 0; y<200;y+=20){
for(var x = -200; x < 200;x+=20){
fill(map(y,0,200,0,255),map(x,-200,200,0,255),1);
beginShape();
vertex(x,y,0);
vertex(x+60,-y,... | Darklod/p5-sketches | static/projects/Coso uscito per sbaglio/sketch.js | JavaScript | gpl-3.0 | 353 |
/*
* ATLauncher CLI - https://github.com/ATLauncher/ATLauncher-CLI
* Copyright (C) 2016 ATLauncher
*
* 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
* ... | ATLauncher/ATLauncher-CLI | inc/managers/index.js | JavaScript | gpl-3.0 | 988 |
/*global require, describe, it */
(function () {
'use strict';
var required = require('../scripts/'),
utilx = required.utilx,
expect = required.expect;
describe('String.contains', function () {
var str = 'The quick sly fox jumped over the lazy dog.';
it('should throw if n... | Xotic750/util-x | tests/String.contains.js | JavaScript | gpl-3.0 | 2,199 |
/*
* zyFile.js 基于HTML5 文件上传的核心脚本 http://www.czlqibu.com
* by zhangyan 2014-06-21 QQ : 623585268
*/
/* 代码整理:懒人之家 www.lanrenzhijia.com */
var ZYFILE = {
fileInput : null, // 选择文件按钮dom对象
uploadInput : null, // 上传文件按钮dom对象
dragDrop: null, //拖拽敏感区域
url : serverUrl+"/gift/upload", ... | yulele166/web-gradle | src/main/webapp/assets/plugins/file-upload/core/zyFile.js | JavaScript | gpl-3.0 | 8,117 |
/**
* Created by l.heddendorp on 05.03.2016.
*/
let TemplateService = ($http, API_URL) => {
'ngInject';
return {
getList: function () {
return $http.get(API_URL+'/api/getList')
},
getHtml: function (templateName) {
return $http.get(API_URL+'/api/html/' + templateName)
}
}
};
export ... | BreakOutEvent/breakout-cms | app/api/templateService.js | JavaScript | gpl-3.0 | 344 |
var searchData=
[
['manip_2ecpp',['manip.cpp',['../d2/d42/manip_8cpp.html',1,'']]],
['memorytest_2ecpp',['MemoryTest.cpp',['../d6/d51/_memory_test_8cpp.html',1,'']]],
['mersennetwister_2eh',['MersenneTwister.h',['../da/d3b/_mersenne_twister_8h.html',1,'']]],
['mfxaddedittypedtable_2ecpp',['MFXAddEditTypedTable.... | cathyyul/sumo-0.18 | docs/doxygen/search/files_6d.js | JavaScript | gpl-3.0 | 19,041 |
#!/usr/bin/env node
/* eslint no-console: "off" */
const Command = require('../../lib/Command'),
CommandError = require('../../lib/errors/CommandError');
const COMMAND = 'add <name>';
const DESCRIPTION = 'Adds a centre.';
const USAGE = `$0 centre ${COMMAND}
${DESCRIPTION}
NAME is the name to assign to... | cbsrbiobank/bbwebcli | commands/centre/add.js | JavaScript | gpl-3.0 | 1,446 |
// Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 lat... | nipunn1313/parity | scripts/contractABI.js | JavaScript | gpl-3.0 | 9,493 |
/*
* Allmighty Twitch Toolbox - https://github.com/RyanTheAllmighty/Allmighty-Twitch-Toolbox
* Copyright (C) 2015 RyanTheAllmighty
*
* 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 ... | RyanTheAllmighty/Allmighty-Twitch-Toolbox | app.backend/checkers/musicChecker.js | JavaScript | gpl-3.0 | 4,654 |
/**
* # dice plugin
*
* ## Install
* 1. Copy the plugin to the `plugins` directory.
* 2. Start your bot and enable the plugin with `!enable dice`
*
* ## Commands
* * `!dice roll <number>` - Rolls a dice with `<number>` faces.
* + Example: `!dice roll 5` - Rolls a dice with 5 faces
*/
// Discord Bot API
... | simonknittel/discord-bot-api | src/plugins/dice.js | JavaScript | gpl-3.0 | 1,100 |
/*******************************************************************************
* Copyright 2010-2016 Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publ... | UKPLab/wikulu | de.tudarmstadt.ukp.wikulu.proxy/src/main/webapp/ukp_static/js/wikulu.js | JavaScript | gpl-3.0 | 3,422 |
/*
* #%L
* Eva
* %%
* Copyright (C) 2013 Abada Servicios Desarrollo (investigacion@abadasoft.com)
* %%
* 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... | abada-investigacion/eva | eva-server/eva-web/src/main/webapp/abada/grid/RowExpander.js | JavaScript | gpl-3.0 | 4,129 |
$('.ready-widget .HTML .widget-content span.mainlabel').each(function () {
var v = $(this).attr("data-label"),
b = $(this).attr("data-no");
$.ajax({
url: "/feeds/posts/default/-/" + v + "?alt=json-in-script&max-results=" + b,
type: 'get',
dataType: "jsonp",
success: function (e) {
var u = "";
var h = '... | Tutor41/arsip | recentbylabel.js | JavaScript | gpl-3.0 | 1,862 |
// 页面逻辑定制在这里,布局在 i.html 和 i.css
iweb.controller('i070', function ($scope,$filter) {
$scope.dataGet = {searchType:"查询类型",searchTypeValue:"all","key":"","pageSizeSelect":"10",pageNumber:1,pageSize:10,"day_num":-1,"start_end":[],"startTime":'177275555',"endTime":'',"export_flag":false};
$scope.welfare_add = {};
... | zhichaoGuo/wb | www80/i070.js | JavaScript | gpl-3.0 | 19,577 |
class ContactController {
constructor (/*$timeout, webDevTec, toastr*/) {
'ngInject';
this.something = 'foobar';
}
}
export default ContactController;
| elijahdorman/salesforce-deploy-tools | src/app/components/views/contacts/contacts.controller.js | JavaScript | gpl-3.0 | 165 |
/*
**************************************************************************************************************************
** CORAL Resources Module v. 1.2
**
** Copyright (c) 2010 University of Notre Dame
**
** This file is part of CORAL.
**
** CORAL is free software: you can redistribute it and/or modify it under ... | NathanAhlstrom/CORAL | resources/js/admin.js | JavaScript | gpl-3.0 | 25,585 |
"use strict";
var accountsController = {};
var fs = require('fs'),
nconf = require('nconf'),
async = require('async'),
validator = require('validator'),
db = require('../database'),
user = require('../user'),
posts = require('../posts'),
topics = require('../topics'),
groups = require('../groups'),
messagin... | ZJU-Shaonian-Biancheng-Tuan/NodeBB | src/controllers/accounts.js | JavaScript | gpl-3.0 | 17,229 |
var structutil_1_1_spacial_bounding_box =
[
[ "Vec", "structutil_1_1_spacial_bounding_box.html#a37bdeec9750c91b23613c49351b166cf", null ],
[ "SpacialBoundingBox", "structutil_1_1_spacial_bounding_box.html#a2d745996db194a5da6ea64ce8e9fef6f", null ],
[ "containsPoint", "structutil_1_1_spacial_bounding_box.htm... | nshkurkin/VitalK | docs/html/structutil_1_1_spacial_bounding_box.js | JavaScript | gpl-3.0 | 1,000 |
/*global require */
'use strict';
var _ = require('lodash'),
utils = require('./../build-utils'),
StatementBloq = require('./../statementBloq');
/**
* Bloq name: servoNormal
*
* Bloq type: Statement
*
* Description: It sets a specific servo, selectable from a
* drop-down, in a given positio... | bq/bloqs | src/scripts/bloqs/components/servo.js | JavaScript | gpl-3.0 | 1,105 |
var amqp = require('amqplib/callback_api');
amqp.connect('amqp://liming:12345678@localhost:5672', function (error, connection) {
if (error) {
throw error;
}
connection.createChannel(function (error, channel) {
if (error) {
throw error;
}
var queue = 'hello';
... | lmshao/codebase | nodejs/rabbitmq/WorkQueues/receive.js | JavaScript | gpl-3.0 | 656 |
import { Template } from 'meteor/templating';
import { Academy } from '/imports/api/databasedriver.js';
import { Challenges } from '/imports/api/databasedriver.js';
import { Rooms } from '/imports/api/databasedriver.js';
import { Badges } from '/imports/api/databasedriver.js';
Template.endDayModal.events({
'click #e... | LandOfKroilon/KroilonApp | client/alerts/endDayModal.js | JavaScript | gpl-3.0 | 1,965 |
const Browser = require('zombie')
const mocha = require('mocha')
const describe = mocha.describe
const beforeEach = mocha.beforeEach
const it = mocha.it
Browser.localhost('localhost', 3000)
describe('User visits login page', () => {
const browser = new Browser()
beforeEach(() => browser.visit('/'))
describe(... | vindkaldr/yak | test/login.js | JavaScript | gpl-3.0 | 940 |
Template.allStudyGroups.onCreated(function() {
const title = "CodeBuddies | Study Groups";
const metaInfo = {
name: "description",
content:
"CodeBuddies is a community of independent code learners who enjoy sharing knowledge and helping each other learn faster. We come from all over the world; there a... | codebuddiesdotorg/codebuddies | client/templates/study_groups/all_study_groups.js | JavaScript | gpl-3.0 | 3,695 |
'use strict';
/**
* @file single example
* @module tickle
* @subpackage examples
* @version 0.0.1
* @author hex7c0 <hex7c0@gmail.com>
* @license GPLv3
*/
/*
* initialize module
*/
var tickle = require('..'); // use require('tickle') instead
var app = require('express')();
app.get('/', tickle, function(req, r... | hex7c0/tickle | examples/single.js | JavaScript | gpl-3.0 | 548 |
module.exports = function(platformIO, serviceUrls) {
return {
getMessageDetail: function(messageId) {
return getDisplayIdFromLocalStorage()
.then(function(displayId) {
return generateMessageDetailRequestUrl(displayId, messageId);
})
.then(requestMessageDetail);
}
};
... | Rise-Vision/offline-player | app/player/channel/message-detail-retriever.js | JavaScript | gpl-3.0 | 1,211 |
const proofOfWork={loopThroughProofOfWork:function(){var req=GL.powqueue.shift();if(typeof req!=="undefined"){proofOfWork.solve(req.split("/")[1],submitProofOfWork(req),failedProofOfWork(req))}}};function submitProofOfWork(req){return function(proof){const proofOfWorkStr=req.split("/")[0]+"/"+proof;logger("Submitting s... | internetofcoins/hybridd | views/interface/js/proofOfWork.js | JavaScript | gpl-3.0 | 511 |
/**
* AvaTax Brazil
* The Avatax-Brazil API exposes the most commonly services available for interacting with the AvaTax-Brazil services, allowing calculation of taxes, issuing electronic invoice documents and modifying existing transactions when allowed by tax authorities. This API is exclusively for use by busines... | Avalara/avataxbr-clients | javascript-client/src/model/CalcModelEnum.js | JavaScript | gpl-3.0 | 1,788 |
'use strict'
const chalk = require('chalk')
const electron = require('electron')
const path = require('path')
const { say } = require('cfonts')
const { spawn } = require('child_process')
const webpack = require('webpack')
const WebpackDevServer = require('webpack-dev-server')
const webpackHotMiddleware = require('webp... | shangxinbo/treering-windows | .electron-vue/dev-runner.js | JavaScript | gpl-3.0 | 4,334 |
var users = [{
id: 1,
active: 1,
"name": "Вася",
"phone": "1114124"
}, {
id: 2,
active: 0,
"name": "Иван",
"phone": "1114123"
}
];
var next_id = 3;
function getUserById(id) {
var key = +id;
var l = users.length;
for (var i=0; i<l; i++) {
if(users[i].id === key) {
return users[i];
}
}
}
f... | tmorozov/stalker-admin | routes/user.js | JavaScript | gpl-3.0 | 1,244 |
/* jslint node: true */
'use strict';
var path = require('path');
var rootPath = path.normalize(__dirname + '/../..');
module.exports = {
root: rootPath,
port: process.env.PORT || 9000,
// Cookie secret
cookieSecret: 'R3TA1L-1N51GHT-0RCH3STRAT0R',
// Cookie sid
cookieKey: 'rio.cookie.sid... | vinnylinck/rio-poc | config/env/all.js | JavaScript | gpl-3.0 | 578 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.crm");
cur_frm.email_field = "contact_email";
frappe.ui.form.on("Opportunity", {
setup: function(frm) {
frm.custom_make_buttons = {
'Quotation': 'Quotation',
... | ovresko/erpnext | erpnext/crm/doctype/opportunity/opportunity.js | JavaScript | gpl-3.0 | 5,934 |
var gulp = require('gulp');
var browserSync = require('browser-sync').create('Freedomvote');
var sass = require('gulp-sass');
const reload = browserSync.reload;
var src = {
sass: ['src/sass/**/*.sass', 'src/sass/**/*.scss'],
css: 'public',
html: 'public/*.html'
}
gulp.task('serve', ['sass'], fu... | freedomvote/frontend | gulpfile.js | JavaScript | gpl-3.0 | 778 |
var searchData=
[
['datatype_5fe',['DataType_e',['../ProcModuleInterface_8h.html#a7f744a63aa1123dec31fc2bc47cf8ba8',1,'ProcModuleInterface.h']]]
];
| lmarent/QualityManager | html/search/enums_1.js | JavaScript | gpl-3.0 | 150 |
//
window.onload = defaultRun();
function defaultRun() {
/*
document.forms.onload = preventValidation();
function preventValidation() {
return null;
}
*/
}
//inputDefinition class focus
//not very optimized - function needs to be called everytime on the element
//should be more general as inputDefinition.onC... | rendergit/webapp | dscript.js | JavaScript | gpl-3.0 | 2,741 |
/**
* Created by Sreelal on 12-04-2016.
*/
$(document).ready(function(){
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a[href='#insidenav']").on('click', function(event) {
// Prevent default anchor click behavior
event.preventDefault();
/... | Sreelal-c/Online-Job-Portal | js/scroll.js | JavaScript | gpl-3.0 | 811 |
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const gymSchema = mongoose.Schema({
team_id: Number,
gym_points: Number,
last_modified: Number,
latitude: Number,
longitude: Number,
guard_pokemon_id: Number,
enabled: Boolean,
gym_id: { type: String, index: true},
date: ... | jophj/GoPalantir | schemas/gym.js | JavaScript | gpl-3.0 | 464 |
import { cache, render } from '../common';
const title = 'Mis afiliados';
const description = `
Estos son algunos de los productos y servicios que me acompañan en mi día a día. Sino los utilizaría ten por seguro que no te los podría recomendar. Aprovecha los descuentos especiales y así me ayudas a mantener este sitio.... | soyjavi/site | src/pages/affiliates.js | JavaScript | gpl-3.0 | 981 |
module.exports = function(mongoose) {
return mongoose.model('Image', new mongoose.Schema({
name: { type: String, required: true, unique: true },
type: { type: String, required: true },
base64: { type: String, required: true },
loaded: { type: Number, required: true, default: 0 },
... | graywolf336/craftyn-email-portal | server/models/image.js | JavaScript | gpl-3.0 | 430 |
'use strict';
import 'static_sites/less/code.less';
// simple test to ensure babel is working
let foo = 'foo',
bar = 'bar';
let obj = {foo, bar};
window.console.log(`loaded main.js with Babel ES6, ${JSON.stringify(obj)}`);
// end simple test
| herereadthis/redwall | app/static_sites/code.js | JavaScript | gpl-3.0 | 248 |
'use strict';
TABS.motors = {
allowTestMode: false,
feature3DEnabled: false,
feature3DSupported: false,
escProtocolIsDshot: false
};
TABS.motors.initialize = function (callback) {
var self = this;
self.armed = false;
self.feature3DSupported = false;
self.allowTestMode = true;
self.... | charlch/betaflight-configurator | tabs/motors.js | JavaScript | gpl-3.0 | 19,409 |
var dir_b13a63ec1fa1839fda20bc47040d4cb2 =
[
[ "PrimitiveTypes.h", "_primitive_types_8h.html", "_primitive_types_8h" ]
]; | TwinDrills/Ludo | Docs/html/dir_b13a63ec1fa1839fda20bc47040d4cb2.js | JavaScript | gpl-3.0 | 125 |
const Data = {};
Data.properties = {}
const SIXTEEN_COLORS = [
'#F0F0F0', 'silver', 'gray', 'black', 'red', 'maroon', 'yellow', 'olive',
'lime', 'green', 'aqua', 'teal', 'blue', 'navy', 'fuschia', 'purple'
]
const SIXTEEN_GRAYS = [
'#000', '#111', '#222', '#333', '#444', '#555', '#666', '#777',
'#888', '#999... | robmyers/artworld-ethereum | dapps/secret-artworks/app/js/secret.js | JavaScript | gpl-3.0 | 5,922 |
// Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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.... | kushti/mpt | js/src/3rdparty/etherscan/index.js | JavaScript | gpl-3.0 | 856 |
/**
*
*/
Ext.define('RODAdmin.store.dashboard.TempStudies', {
extend: 'RODAdmin.store.Base',
requires: [
'RODAdmin.model.dashboard.TempStudies',
],
model: 'RODAdmin.model.dashboard.TempStudies',
autoLoad: true,
proxy: {type: 'main', url: '/adminjson/dashboard/tempstudies'},
// ... | cosminrentea/roda | src/main/webapp/RODAdmin/app/store/dashboard/TempStudies.js | JavaScript | gpl-3.0 | 405 |
$(document).ready(function () {
// Dodawanie ofert
$('#job_description').markItUp(mySettings, { previewAutoRefresh:false });
$('.flash .dismiss').click(function () {
$(this).parent('.flash').hide();
return false;
});
});
| macbury/webpraca | public/javascripts/application.js | JavaScript | gpl-3.0 | 232 |