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 |
|---|---|---|---|---|---|
/*
* jQuery Highlight plugin
*
* Based on highlight v3 by Johann Burkard
* http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html
*
* Code a little bit refactored and cleaned (in my humble opinion).
* Most important changes:
* - has an option to highlight o... | jcarle/cloneReader | assets/scripts/jquery.highlight.js | JavaScript | gpl-2.0 | 4,765 |
<<<<<<< HEAD
/*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2010 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
*... | marvoey/live-web | sites/all/libraries/fckeditor/editor/lang/bg.js | JavaScript | gpl-2.0 | 49,255 |
//>>built
define("dojox/lang/oo/Filter",["dijit","dojo","dojox"],function(g,c,f){c.provide("dojox.lang.oo.Filter");(function(){var d=f.lang.oo,c=d.Filter=function(a,b){this.bag=a;this.filter="object"==typeof b?function(){return b.exec.apply(b,arguments)}:b},e=function(a){this.map=a};e.prototype.exec=function(a){return ... | joshuacoddingyou/php | public/scripts/dojox/lang/oo/Filter.js | JavaScript | gpl-2.0 | 452 |
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2014 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with th... | cnitucson/cnde | extjs4/src/util/ElementContainer.js | JavaScript | gpl-2.0 | 10,887 |
// ## Module dependencies
var mongoose = require('mongoose');
var User = require('../models/users');
// ## Posts
users = {
// #### List
// returns list of all users
list: function list(req,res) {
User.find(function(err, users) {
return res.json(users);
});
},
// ####... | NicolasBouhours/Cleanz-Node.js | core/server/api/users.js | JavaScript | gpl-2.0 | 3,763 |
var mraa = require('mraa');
function BlockingActuator(pin, nf){
var output = new mraa.Gpio(pin);
output.dir(mraa.DIR_OUT);
this.block = function(){
if(nf)
output.write(0);
else
output.write(1);
};
this.unblock = function(){
if(nf)
... | IEEE-RAS-UFABC/SmartHomeMeter | BlockerActuator.js | JavaScript | gpl-2.0 | 437 |
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.loader} objects, which is used to
* load core scripts and their dependencies from _source.
*/
if ( typeof CKEDITOR == 'u... | pos/byggaktuelt | sites/all/libraries/ckeditor/_source/core/loader.js | JavaScript | gpl-2.0 | 8,282 |
/*
* GNU GENERAL PUBLIC LICENSE
* Version 2, June 1991
*
* Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, ... | P1tt187/fhs-schedule-generator | public/javascripts/i18n/defaults-nl_NL.min.js | JavaScript | gpl-2.0 | 19,307 |
function init() {
tinyMCEPopup.resizeToInnerSize();
}
function mfn_mce_submit() {
var output;
var shortcode = document.getElementById('shortcode').value;
switch( shortcode ) {
case 0:
case "0":
tinyMCEPopup.close();
break;
// ************************* content **********************
case "alert":... | jcrosales/lemerywebsite | wp-content/themes/betheme/functions/tinymce/tinymce-3/tinymce.js | JavaScript | gpl-2.0 | 7,827 |
define([
"cldr",
"src/currency/name-format",
"src/currency/name-properties",
"json!cldr-data/main/en/currencies.json",
"json!cldr-data/main/en/numbers.json",
"json!cldr-data/main/zh/currencies.json",
"json!cldr-data/main/zh/numbers.json",
"json!cldr-data/supplemental/currencyData.json",
"json!cldr-data/supplem... | apgeo/silexgis | scripts/globalize-master/test/unit/currency/name-format.js | JavaScript | gpl-2.0 | 1,733 |
jQuery(document).ready(function(){jQuery(".hero .hero-container").addClass("animated fadeInUp")}); | sammyboy45467/CORE | wp-content/themes/uno/js/general.min.js | JavaScript | gpl-2.0 | 98 |
'use strict';
describe('Test hello suit', function(){
it('hello', function(){
expect(greeting()).toBe('hello');
});
});
| vollov/spa-clients | backbone/test/unit/hello.test.js | JavaScript | gpl-2.0 | 125 |
var playTime;
var videoTitle;
var enableAudio = false;
var adsCompleted = true;
var videoCompleted = true;
var playerParams;
var playerObj;
function receiveOoyalaEvent(player, messageBus, params) {
//When Player is created
/*messageBus.subscribe(OO.EVENTS.PLAYER_CREATED, 'playerCreated', function()
{ conso... | srinivas-qfor/jkc-wp | wp-content/themes/jeanknowscars/assets/js/ooyala-utils.js | JavaScript | gpl-2.0 | 6,882 |
module.exports = (function(){
var mongoose = require("mongoose");
mongoose.connect("mongodb://localhost/quotecreatornew");
var db = mongoose.connection;
db.on('error', console.error.bind(console, 'connection error:'));
db.once('open', function (callback) {
console.log("Db ready to go!");
... | steoo/Quote-Creator | models/db.js | JavaScript | gpl-2.0 | 347 |
$(document).ready(function(){
loading = $('[data-installation-loading]'),
submit = $('[data-installation-submit]'),
retry = $('[data-installation-retry]'),
form = $('[data-installation-form]'),
completed = $('[data-installation-completed]'),
source = $('[data-source]'),
installAddons = $('[data-installation-ins... | quanghung0404/it2tech | administrator/components/com_easydiscuss/setup/assets/scripts/script.js | JavaScript | gpl-2.0 | 12,185 |
(function() {
tinymce.create('tinymce.plugins.Spider_Zoom_mce', {
init : function(ed, url){
ed.addCommand('mceSpider_Zoom_mce', function() {
ed.execCommand('mceInsertContent', 0,'[Web-Dorado_Zoom]');
});
ed.addButton('Spider_Zoom_mce', {
title : 'Insert Zoom'... | ronanlopes/portalufsj-wordpress | wp-content/plugins/zoom-widget/js/editor_plugin.js | JavaScript | gpl-2.0 | 487 |
/*
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'ca', {
auto: 'Automàtic',
bgColorTitle: 'Color de Fons',
colors: {
'000': 'Negre',
'800000': 'Grana',
'8B45... | WBCE/WBCE_CMS | wbce/modules/ckeditor/ckeditor/plugins/colorbutton/lang/ca.js | JavaScript | gpl-2.0 | 2,085 |
// Functions for admin control panel's slider - Add, Edit, Remove images
function addRowToTable()
{
var tbl = document.getElementById('demo');
var lastRow = tbl.rows.length;
// if there's no header row in the table, then iteration = lastRow + 1
var iteration = lastRow;
var row = tbl.insertRow(lastRow);
... | cathral/mintra-homepage | wp-content/themes/good-minimal/functions/options/js/slider_add_remove.js | JavaScript | gpl-2.0 | 1,485 |
var EditableTable = function () {
return {
//main function to initiate the module
init: function () {
function restoreRow(oTable, nRow) {
var aData = oTable.fnGetData(nRow);
var jqTds = $('>td', nRow);
for (var i = 0, iLen = jqTds.lengt... | beannguyen/hcmute-dashboard | hcmute-dashboard/public/js/table-editable.js | JavaScript | gpl-2.0 | 6,543 |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'sv', {
options: 'Special Character Options',
title: 'Välj utökat tecken',
toolbar: 'Klistra in utökat tecken'
});
| labase/activnce | main/static/ckeditor/plugins/specialchar/lang/sv.js | JavaScript | gpl-2.0 | 317 |
/*!
* @version 1.0.0
* @package Perfect Decorations For Occasions
* @copyright © 2015 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co
* @license GNU/GPL http://www.gnu.org/licenses/gpl-3.0.html
* @author Mateusz Podraza
*/
DFOEvent = (function ($) {
function Event() {
//Private
... | gpabian/dfo | wp-content/themes/decorations_for_occasions/js/event.js | JavaScript | gpl-2.0 | 2,882 |
function panelSize() {
var currentTallest = 0,
currentRowStart = 0,
rowDivs = new Array(),
$el,
topPosition = 0;
$('.item').each(function() {
$el = $(this);
$el.css({'height':'auto'});
topPostion = $el.position().top;
if (currentRowStart != topPostion) {
// we just came to a new... | kaiakonsap/viikingid | html/js/main.js | JavaScript | gpl-2.0 | 1,713 |
var Application = require('lib/config/application');
var bb = require('backbone');
var LayoutView = require('./layout-view');
var debug = require('debug')('app');
var accounting = require('accounting');
var polyglot = require('lib/utilities/polyglot');
module.exports = Application.extend({
initialize: function() {
... | habibmasuro/WooCommerce-POS | assets/js/src/apps/app/application.js | JavaScript | gpl-2.0 | 885 |
( function( $ ) {
FLBuilder.registerModuleHelper( 'subscribe-form', {
rules: {
btn_text: {
required: true
},
btn_font_size: {
required: true,
number: true
},
btn_padding: {
required: true,
number: true
},
btn_border_radius: {
required: true,
number: true
},
se... | onedaylabs/onedaylabs.com | wp-content/plugins/bb-plugin/modules/subscribe-form/js/settings.js | JavaScript | gpl-2.0 | 1,723 |
module.exports = function(crsf, basicAuth) {
return function(req, res, next) {
if(req.session.allowed) {
finish(req, res, next, crsf, basicAuth);
} else {
if(req.host) {
if(req.verified) {
req.session.organization = req.fake.organization;
... | Laborate/laborate | routes/global/security.js | JavaScript | gpl-2.0 | 1,932 |
(function(){
var AutoComplete = kendo.ui.AutoComplete;
var CLICK = kendo.support.touch ? "touchend" : "click";
var input;
module("kendo.ui.AutoComplete events", {
setup: function() {
input = $("<input>").appendTo(QUnit.fixture);
$.fn.press = function(key) {
return this.trigger({ type:... | cuongnd/test_pro | media/kendo-ui-core-master/tests/autocomplete/events.js | JavaScript | gpl-2.0 | 8,176 |
(function($, wprss_admin_heartbeat){
/**
* Returns the IDs of the feed sources shown on the current page
*/
var getFeedSourceIDS = function() {
var ids = [];
$('table.wp-list-table tbody tr').each( function(){
if ( $(this).hasClass('no-items') ) return;
ids.push( $(this).attr('id').split('-')[1] );
... | ted-collins/billerica-catholic | wp-content/plugins/wp-rss-aggregator/js/heartbeat.js | JavaScript | gpl-2.0 | 3,735 |
/**
* echarts组件:值域
*
* @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
* @author Kener (@Kener-林峰, linzhifeng@baidu.com)
*
*/
define(function (require) {
/**
* 构造函数
* @param {Object} messageCenter echart消息中心
* @param {ZRender} zr zrender实例
* @param {Object} opti... | highsea/force-echarts | echarts/src/component/dataRange.js | JavaScript | gpl-2.0 | 44,944 |
/*! jQuery UI - v1.12.1 - 2016-09-15
* http://jqueryui.com
* Copyright jQuery Foundation and other contributors; Licensed */
!function(a){"function"==typeof define&&define.amd?define(["jquery","./version"],a):a(jQuery)}(function(a){"1.7"===a.fn.jquery.substring(0,3)&&(a.each(["Width","Height"],function(b, c){function ... | KplusH/jsbach-timeline | src/jsb/js/lib/jquery-ui/ui/minified/jquery-1-7.js | JavaScript | gpl-2.0 | 1,055 |
var path = require('path'),
rootPath = path.normalize(__dirname + '/..'),
env = process.env.NODE_ENV || 'development';
var config = {
development: {
root: rootPath,
app: {
name: 'yeoman'
},
//port: 3000,
port: 80,
db: 'mongodb://localhost/yeoman-development'
},
test: {
... | donh/DownAndUp | config/config.js | JavaScript | gpl-2.0 | 648 |
/**
* External dependencies
*
* @format
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import ActionHeader from 'woocommerc... | Automattic/woocommerce-connect-client | client/extensions/woocommerce/app/settings/taxes/taxes-wcs.js | JavaScript | gpl-2.0 | 6,378 |
var searchData=
[
['real',['REAL',['../Riemann_8hh.html#a5821460e95a0800cf9f24c38915cbbde',1,'Riemann.hh']]]
];
| jackycfd/WENO | doc/html/search/typedefs_72.js | JavaScript | gpl-2.0 | 114 |
var Route = require('lib/config/route');
var App = require('lib/config/application');
var View = require('./view');
var TranslationModal = require('./modal/translation-update');
var Radio = require('backbone.radio');
var Tools = Route.extend({
initialize: function( options ) {
options = options || {};
this.... | tablesmit/WooCommerce-POS | assets/js/src/apps/settings/tools/route.js | JavaScript | gpl-2.0 | 854 |
npcScript[ 634 ] = function( npcObject )
{
npcObject.events._add( "show", function()
{
new spellEffects.LargeWaveLoop({
targetCharacter: npcObject
});
});
} | victoralex/gameleon | public_web/components/bugcraft/resources/public/component.bugcraft.npcScripts/npcScript.634.js | JavaScript | gpl-2.0 | 194 |
// JQTOUCH
var jQT = new $.jQTouch({
preloadImages: [
'http://srvdme.com/wp-content/themes/Starkers/img/sprite-home14.png',
'http://srvdme.com/wp-content/themes/Starkers/img/chicago9.jpg',
'http://srvdme.com/wp-content/themes/Starkers/img/dropbar.jpg',
'http://srvdme.com/wp-content/themes/Starkers/img/patt... | benmkramer/srvd | wp-content/themes/Starkers/js/my-home.js | JavaScript | gpl-2.0 | 41,627 |
(function($) {
$.fn.drawFlotLinkInit = function(){
/*
if ($("#flot_div").length > 0) {
$.fn.makeCollectionItemAttributes();
var showChartLink = $("#chart_show");
showChartLink.bind('click',function(){$.fn.drawFlot();});
$.fn.drawFlot();
}
*/
};
$.fn.makeCollectionItemAttributes = function (){
... | teeple/pc_dev | sites/all/modules/product_catalog/product_catalog_tree/js/product_catalog_tree_flot.js | JavaScript | gpl-2.0 | 4,947 |
'use strict';
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var crypto = require('crypto');
var UserSchema = new Schema({
name: String,
email: { type: String, lowercase: true },
role: {
type: String,
default: 'user'
},
hashedPassword: String,
provider: String,
salt: String,
... | hackathon-2014/zubielicious-repo | server/api/user/user.model.js | JavaScript | gpl-2.0 | 2,837 |
/**
* mBlock // 实现与web通讯
* |----menu.js //菜单:构造、刷新
* |----project.js //项目文件:创建、保存、加载
* |----translator.js //多国语言
* |----boards.js //控制板
* |----serial.js //USB串口通讯
* |----hid.js //无线2.4G串口通讯
* |----autoupdater.js //自动更新
*/
const {ipcMain,dialog,BrowserWindow,MenuItem,Menu,app} = require(... | woniucumt/902HardwareScratch | app/mBlock.js | JavaScript | gpl-2.0 | 6,787 |
(function() {
'use strict';
angular
.module('fw.logger')
.factory('logger', logger);
logger.$inject = ['$log', 'toastr'];
/* @ngInject */
function logger($log, toastr) {
var service = {
log : log,
info : info,
success : success,
... | stefanmiroslav6/AngularJS-Example | app/framework/logger/logger.js | JavaScript | gpl-2.0 | 1,202 |
'use strict';
require('../common');
const assert = require('assert');
const net = require('net');
const async_wrap = process.binding('async_wrap');
const providers = Object.keys(async_wrap.Providers);
const uidSymbol = Symbol('uid');
let cntr = 0;
let client;
function init(uid, type, parentUid, parentHandle) {
th... | domino-team/openwrt-cc | package/gli-pub/openwrt-node-packages-master/node/node-v6.9.1/test/parallel/test-async-wrap-disabled-propagate-parent.js | JavaScript | gpl-2.0 | 1,288 |
jQuery(document).ready(function(){
jQuery('.listfusion-multiTextRemove').live('click', function(){
jQuery(this).prev('input[type="text"]').val('');
jQuery(this).parent().fadeOut('slow', function(){jQuery(this).remove();});
});
jQuery('.listfusion-multiTextAdd').live('click', function(){
var new_inp... | iqbaljayadi/bloggoodco | wp-content/plugins/list-fusion/lib/js/list-fld.js | JavaScript | gpl-2.0 | 760 |
/*
* Envía una petición ajax para comprobar
* si hay un usuario en sesión.
*/
function isConnected()
{
$.ajax({
url: URL_SERVER +'php/connected.php',
type: 'get',
success: function (data) {
var response = data.trim();
if(response == "Error: no login"){
window.location.href = '#login';
... | sharedslist/sharedslist | src/js/connected.js | JavaScript | gpl-2.0 | 378 |
function CKEditor_Load() {
if (arguments.callee.done) return;
arguments.callee.done = true;
CKEDITOR.replaceAll(function( textarea, config ){
config.disableNativeSpellChecker = false;
config.scayt_autoStartup = true;
config.extraPlugins = 'bbcodehtml,syntaxhighlight,bb... | chiadem/YET | YetAnotherForum.NET/editors/ckeditor/ckeditor_init.js | JavaScript | gpl-2.0 | 1,385 |
if(typeof Math.MAX_FACTORIAL === 'undefined'){
Math.MAX_FACTORIAL = (function(){
var max = Number.MAX_VALUE;
var j = 1;
while(max>1){max/=j;j++}
return j-2;
})();
}
if(typeof Math.factorial === 'undefined'){
Math.factorial = function(n){
if(n < 0 || (typeof n) != 'number' || parseInt(n) != n... | czurnieden/Little | libs/gamma_real.js | JavaScript | gpl-2.0 | 15,719 |
jQuery(document).ready(function($) {
$('#submit-post-type-archives').click(function(event) {
event.preventDefault();
/* Get checked boxes */
var postTypes = [];
$('#post-type-archive-checklist li :checked').each(function() {
postTypes.push($(this).val());
});
... | GrCMS/Bibliothek | wp-content/plugins/mm-post-type-archive-links/metabox.js | JavaScript | gpl-2.0 | 774 |
/* globals require, exports */
// jshint devel:true, curly: false, asi:true, -W084, -W061
var utils = require('../utils')
exports.hasBody = true
exports.tagMatch = /<[\/]?cfloop[^>]*>/gi
exports.render = function(tag, vars, renderFn){
var out = ''
if (typeof tag.attributes.from != 'undefined' && typeof tag.attribute... | Lafougere/node-cfml | lib/cfloop.js | JavaScript | gpl-2.0 | 2,035 |
// Custom Google Map Skin - Get more at http://snazzymaps.com/
var myOptions = {
zoom: 15,
center: new google.maps.LatLng(33.0332621,-96.8413509),
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: true,
styles: [{
"featureType": "water",
"elementType": "geometry",
... | MattTavares/MattTavares.github.io | assets/js/spectrum.map.js | JavaScript | gpl-2.0 | 2,803 |
Registry.require(["helper","compat","i18n"],function(){var c=Registry.get("helper"),d=Registry.get("compat"),q=Registry.get("i18n"),m=function(){this.uuid=null;this.observers=[];this.name=this.supportURL=this.updateURL=this.downloadURL=this.fileURL=this.icon64=this.icon=null;this.name_i18n={};this.description=this.home... | lichuan261/wuand | User Data/Default/Extensions/dhdgffkkebhmkfjojejmpbldmpobfkfo/3.11_0/parser.js | JavaScript | gpl-2.0 | 4,755 |
/**
* The file expression.js Create with WebStorm
* @Author gaosi
* @Email angus_gaosi@163.com
* @Date 2014/10/14 20:17:00
* To change this template use File | Setting |File Template
*/
module.exports = function (experssion) {
return new Handler(experssion);
};
/**
* 时间函数解析
* [*,yy... | huojiecs/game1 | game-server/app/tools/expression/expression.js | JavaScript | gpl-2.0 | 6,221 |
jQuery(document).ready(function($){
$(function(){
//$('.eStore_add_to_cart_button').click(function(){
$('.eStore-button-form').on('submit', function() {
//check if the advanced variation addon is active
if (typeof(eStore_AVUI_JS) != "undefined"){
return;
}
var $thisbuttonform = $(this);
var prod... | fritids/embroideryadvertisers | wp-content/plugins/wp-cart-for-digital-products/lib/eStore-ajax.js | JavaScript | gpl-2.0 | 5,472 |
showWord(["v. "," Maltrete, abize. Jak maspinen Jera joustan li endispoze."
]) | georgejhunt/HaitiDictionary.activity | data/words/maspinen.js | JavaScript | gpl-2.0 | 78 |
'use strict';
jQuery(function($) {
var validator = {form: '#validator', input: '#validator input:text'}
var result = {valid: '#9effb1', invalid: '#f01818'}
$(validator.input).keyup(function() {
if ($(this).val().length > 0) {
$(this).css('color', ($(this).isIsbn()) ? result.valid : res... | bhalash/Fun | HTML/isbn/validator.js | JavaScript | gpl-2.0 | 915 |
$.fn.dropdown = function(options) {
var defaults = {
hideSpeed: 50,
showSpeed: 350,
parentBGHoverColor: false,
parentTextHoverColor: false,
zIndex: 5000
};
var settings = $.extend({}, defaults, options);
var self = {};
self.show = function(menu){
if... | jegoyalu/jariscms | themes/default/js/efectos.js | JavaScript | gpl-3.0 | 3,876 |
import React, { Component } from "react";
import GettyImage from "./GettyImage";
class Legal extends Component {
componentDidMount() {
this.getContent(this.props.params.type);
}
componentWillUpdate(nextProps, nextState) {
if (this.props.params.type !== nextProps.params.type) {
... | ScotlandsMountains/ScotlandsMountains | Source/Web/Client/src/components/other/Legal.js | JavaScript | gpl-3.0 | 1,037 |
// A GAME MECHANIC EXPLORER DEMO
// http://gamemechanicexplorer.com/#bullets-5
var GameState = function(game) {};
// Load images and sounds
GameState.prototype.preload = function() {
this.game.load.image('canon', 'img/canon.png');
this.game.load.image('bullet', 'img/bullet.png');
this.game.load.image('grou... | marcosacristao/marcosacristao.github.io | game.js | JavaScript | gpl-3.0 | 12,034 |
var
myData =
{ "val" : "WOERTER",
"nxt" : [
{ "val" : "A",
"nxt" : [
{ "val" : "al",
"nxt" : [
{ "val" : "en",
"nxt" : null
},
null
]
},
{ "val" : "aron",
"nxt" : null
},
{ "val" : "b",
"nxt" : [
{ "val" : "e",
"nxt" : [
{ ... | samuelohterion/sj.eerht | realPhysics/myData.js | JavaScript | gpl-3.0 | 1,138 |
Ext.define('PMDMeta.store.datacite.combobox.RelationtypeCombo', {
extend: 'Ext.data.Store',
model: 'PMDMeta.model.Combobox',
storeId: 'RelationtypeCombo',
data: [
{abbr:'IsCitedBy',name:'IsCitedBy', group:'Citation', qtip:'This dataset is cited by a manuscript. For initial publication consider usi... | ulbricht/pmdmeta | app/store/datacite/combobox/RelationtypeCombo.js | JavaScript | gpl-3.0 | 3,249 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.status = undefined;
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done)... | tepk/sonek | node_modules/mup/lib/plugins/default/command-handlers.js | JavaScript | gpl-3.0 | 7,380 |
var gulp = require('gulp');
var log = require('./log')('copy');
var through = require('through2-concurrent');
var fs = require('fs');
var mkdirp = require('mkdirp');
var p = require('path');
module.exports = function (dir, opts) {
opts = opts || {}
function destination (sourcePath, base) {
var fullPath = sour... | lomegor/DemocracyOS-App | lib/build/copy-assets.js | JavaScript | gpl-3.0 | 821 |
import React from 'react';
import { Link } from 'react-router'
export default React.createClass({
render() {
return (
<div>
<h2>Repos my way</h2>
<ul>
<li><Link to="/repos/reactjs/react-router">React Router</Link></li>
<li><Link to="/repos/facebook/react">React</Link></l... | Muzietto/react-playground | router_tutorial/06-params/modules/Repos.js | JavaScript | gpl-3.0 | 426 |
import verifyToken from './verifyToken.js'
const middlewares = {
verifyToken
}
export default middlewares
| DomonJi/monkov | server/middlewares/index.js | JavaScript | gpl-3.0 | 108 |
/**
Handles user following
@module follow
@class follow
@toc
public methods
1. getUserFollowers
2. getFollowedUsers
3. follow
4. unfollow
5. searchFollowableUsers
private methods
*/
'use strict';
var crypto =require('crypto');
var moment = require('moment');
var Q = require('q');
var lodash =... | mirazmamun/meanTestApp | app/modules/controllers/follow/follow.js | JavaScript | gpl-3.0 | 10,657 |
var searchData=
[
['iconmagic_20license_2e',['IconMagic license.',['../license.html',1,'']]]
];
| ThetaSinner/IconMagic | App/documentation/html/search/pages_0.js | JavaScript | gpl-3.0 | 98 |
/**
* Created by rosaeliana on 30/01/15.
*/
$(document).ready(function() {
$('#formIntegration')
.bootstrapValidator({
container: 'tooltip',
feedbackIcons: {
valid: 'glyphicon',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyp... | centaurustech/crowdfunding-teens | assets/js/integrations.js | JavaScript | gpl-3.0 | 4,644 |
'use strict';
var GrabType = require(__dirname + '/types/grab'),
extend = require(__dirname + '/extend');
function AreaGrabConstructor(io, config, game, character, code) {
var self = this;
this.properties.codes = ['B', 'F', 'S'];
this.properties.description = 'Steals left edge from enemy';
this.p... | BrandonE/mmbno | server/chips/areaGrab.js | JavaScript | gpl-3.0 | 2,254 |
var MusicManager = cc.Class.extend({
starWar:null,
ctor: function (gameScene) {
//this._super();
},
playStarWar:function(){
this.starWar = cc.audioEngine.playMusic("res/StarWar.mp3", true);
cc.audioEngine.setMusicVolume(0.1);
},
playEffect:function(type){
... | RogerKang/JasonAmbition | src/manager/MusicManager.js | JavaScript | gpl-3.0 | 534 |
const fs = require('fs-promise');
const turf = require('turf');
const _ = require('underscore');
const complexify = require('geojson-tools').complexify;
class InfrastructureAugmenter {
constructor(callback) {
this.aggregatedData = null;
this.buildingsGeo = null;
this.landingsGeo = null;
this.landingsGeoByI... | brangerbriz/webroutes | nw-app/InfrastructureAugmenter.js | JavaScript | gpl-3.0 | 7,085 |
//关闭等待窗口
function closediv(divid) {
//Close Div
document.body.removeChild(document.getElementById(divid));
document.getElementById("msgDiv").removeChild(document.getElementById
("msgTitle"));
document.body.removeChild(document.getElementById("msgDiv"));
}
//显示等待窗口
function showdiv(divid,str,sWidth,msgw... | yangyunfei/V_Recruitment | WebContent/weixin/js/loading.js | JavaScript | gpl-3.0 | 3,149 |
// e.g. Checkboxes
$(document).on('click', 'body .js-bool', function(){
var $this = $(this);
// If the parent element has js-bool-exclusive, it means that
// only one element should have the status 'enabled' at a time
if ($this.parent().hasClass('js-bool-exclusive')){
// Remove 'enabled' from all siblings of t... | venomgfx/blender-ui | src/scripts/tutti/01_widgets.js | JavaScript | gpl-3.0 | 2,564 |
//Variables
var p1, p2;
var Difficulty, Class;
var playerHealth = 'Loading...', enemyHealth = 'Loading...', oldPlayerHealth = 'Loading...', oldEnemyHealth = 'Loading...';
var playerDamage = 0, enemyDamage = 0;
var parry = 0, sharpensword = 0, enemybuff = 0, potions = 0;
var playerLunged = false, playerUsedPotion = fals... | ekl489/slei | web_publish/js/script.js | JavaScript | gpl-3.0 | 28,666 |
function decodeCoordinate(coordinate, encodeOffset) {
var result = []
var cx, cy
var offset = encodeOffset.slice()
for (var i = 0, L = coordinate.length; i < L; i += 2) {
cx = coordinate.charCodeAt(i) - 64
cy = coordinate.charCodeAt(i + 1) - 64
cx = ((cx >> 1) ^ (-(cx & 1))) + offset[0]
cy = ((cy >> 1) ^ (... | pixcai/geojson-map | lib/parser.js | JavaScript | gpl-3.0 | 3,150 |
/*
Copyright Jesús Rubio <jesusprubio@gmail.com>
This code may only be used under the MIT license found at
https://opensource.org/licenses/MIT.
*/
'use strict';
const test = require('ava');
const net = require('net');
const client = require('../../..');
const helpers = require('../../helpers');
test('should f... | jesusprubio/node-shodan-client | test/functional/index/dnsResolve.js | JavaScript | gpl-3.0 | 1,447 |
(function() {
'use strict';
var crypto = require('crypto');
var path = require('path');
var passport = require('passport');
var uuid = require('node-uuid');
var Schema = require('jugglingdb-model-loader');
var LinkedInStrategy = require('passport-linkedin-oauth2').Strategy;
module.exports = function... | bhuisgen/blog-server | app/routes/api/auth/linkedin.js | JavaScript | gpl-3.0 | 4,822 |
var NAVTREEINDEX53 =
{
"group___peripheral___registers___bits___definition.html#ga6bdc7bd4dbad1f8e3bb622343bd7c522":[2,16,0,6,0,739],
"group___peripheral___registers___bits___definition.html#ga6bdcac7c0d6ef7acd5f32467fa018568":[2,16,0,6,0,295],
"group___peripheral___registers___bits___definition.html#ga6bdcac7c0d6ef7ac... | MyEmbeddedWork/ARM_CORTEX_M3-STM32 | 1. Docs/Doxygen/html/navtreeindex53.js | JavaScript | gpl-3.0 | 28,451 |
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 4.1.1 Patch Level 1
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000-2011 vBulletin Solutions Inc. All Right... | chrisplough/otmfaq | otmfaq.com/htdocs/forums/clientscript/vbulletin_album.js | JavaScript | gpl-3.0 | 1,131 |
import dayjsGenerateConfig from "rc-picker/es/generate/dayjs";
import generatePicker from "antd/es/date-picker/generatePicker";
const DatePicker = generatePicker(dayjsGenerateConfig);
export default DatePicker;
| nextgis/nextgisweb | nextgisweb/gui/nodepkg/antd/date-picker/index.js | JavaScript | gpl-3.0 | 213 |
/**
* This file is part of Mrogue.
*
* Mrogue 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.
*
* Mrogue is distributed in the ... | albinodervall/Mrogue | mrogue/src/states/states/helpstate.js | JavaScript | gpl-3.0 | 3,833 |
const Ava = require('ava')
const Sinon = require('sinon')
const { getCard } = require('../deck')
const Junkyard = require('../junkyard')
Ava.test('should cause a player to miss 2 turns.', (t) => {
const announceCallback = Sinon.spy()
const game = new Junkyard('player1', 'Jay', announceCallback)
game.addPlayer('... | gfax/junkyard-brawl | src/cards/gas-spill.spec.js | JavaScript | gpl-3.0 | 2,828 |
class Turing {
constructor(states = [], alphabet = [], startState, acceptanceStates = []){
this.states = states;
this.alphabet = alphabet;
this.startState = startState;
this.acceptanceStates = acceptanceStates;
this.currentTransitionId = 0;
this.currentStateId = 0;
this.epsilon = 'ε';
... | Raimmaster/Automata | Automata/Turing/Turing.js | JavaScript | gpl-3.0 | 2,295 |
var toRna = require('./rna-transcription');
describe("toRna()", function() {
it("transcribes cytosine to guanine", function() {
expect(toRna('C')).toEqual('G');
});
it("transcribes guanine to cytosine", function() {
expect(toRna('G')).toEqual('C');
});
it("transcribes adenine to uracil", function()... | basbossink/exercism | javascript/rna-transcription/rna-transcription_test.spec.js | JavaScript | gpl-3.0 | 619 |
var Response = require("ringo/webapp/response").Response;
var Request = require("ringo/webapp/request").Request;
var urls = [
[(/^\/(index(.html)?)?/), require("./root/index").app],
//[(/^\/(login)/), require("./root/login").app],
[(/^\/(loginpage)/), require("./root/loginpage").app],
//[(/^\/(maps(\/\... | offtherailz/mapstore | mapcomposer/app/config.js | JavaScript | gpl-3.0 | 5,282 |
import Struct from './';
const tokenField = Symbol('token');
const secretField = Symbol('secret');
export default class Token extends Struct {
constructor(token, secret) {
super();
this.unserialize([token, secret]);
}
get token() {
return this[tokenField];
}
get secret() {
return this[secretField];
}... | silentroach/twic | src/base/core/struct/token.js | JavaScript | gpl-3.0 | 577 |
dice = {};
dice.min = 1;
dice.max = 6;
dice.left = 0;
dice.right = 0;
dice.isFixed = function() {
return $('button[data-rel=face].hit').length == 2;
}
dice.drop = function() {
this.left = random(this.min, this.max);
this.right = random(this.min, this.max);
};
| shockwaves/snapdice | models/dice.js | JavaScript | gpl-3.0 | 269 |
var class_broadcast_spawn_character =
[
[ "BroadcastSpawnCharacter", "class_broadcast_spawn_character.html#ab9cc762f978f80ad542ccd7c32532d74", null ],
[ "execute", "class_broadcast_spawn_character.html#a7396c7c1c4b16324b597057b8f9c5274", null ],
[ "newCharacter", "class_broadcast_spawn_character.html#abbc0d... | Ryoga-Unryu/pidgirl-engine | doc/html/class_broadcast_spawn_character.js | JavaScript | gpl-3.0 | 359 |
// Copyright 2002-2015, University of Colorado Boulder
/**
* view for slider control
* copied from phetsims wave-on-a-string
* heavily edited by Samuel Volin
* @author Anton Ulyanov (Mlearner)
* @authot Samuel Volin (untra)
*/
define( function( require ) {
'use strict';
var inherit = require( 'PHET_CORE/in... | alecmartin/quantum-bound-states | js/quantum-bound-states/view/Slider.js | JavaScript | gpl-3.0 | 6,126 |
const http = require('http');
const https = require('https');
const fs = require('fs');
const net = require('net');
const tls = require('tls');
const multer = require('multer');
const express = require('express');
const Moment = require('moment');
const async = require('async');
const superagent = require('superagent')... | picluster/picluster | server/server.js | JavaScript | gpl-3.0 | 65,947 |
'use strict';
const Command = require('../../util/helpers/modules/Command');
class Queue extends Command {
constructor() {
super();
this.help = {
name: 'queue',
category: 'music',
description: 'Queue a song or check the queue, to check the queue, just run `{pref... | ParadoxalCorp/FelixBot | commands/music/queue.js | JavaScript | gpl-3.0 | 6,960 |
import pick from 'lodash/pick';
import React, { Component } from 'react';
import NodemcuMinion from '../../devices/nodemcu-minion';
class Devices extends Component {
constructor( props, context ) {
super( props, context );
this.state = {
devices: []
};
this.dbDevices = this.props.db.ref( 'things' );
this... | artpi/SmartPi | web/src/app/Devices.js | JavaScript | gpl-3.0 | 1,297 |
Meteor.methods({
getFile: function(identifier) {
console.log('getFile identifier', identifier);
if(!identifier) {
throw new Meteor.Error('No identifier provided');
}
return OroFile.findOne({$or: [
{ _id: identifier },
{ title: identifier }
]});
},
getFileName: function(title)... | kuip/oro-devi | lib/methods.js | JavaScript | gpl-3.0 | 479 |
var cacheName = 'lex-v1';
// Assets to cache
var assetsToCache = [
'index.html',
'css/Lex.css',
'css/bootstrap.css',
'css/bootstrap.min.css',
'js/Lex.js',
'js/bootstrap.js',
'js/bootstrap.min.js'
];
self.addEventListener('install', function(event) {
// waitUntil() ensures that the Servic... | GMCoelho/Lex | service-worker.js | JavaScript | gpl-3.0 | 2,473 |
(function() {
module('j5g3-loader');
test('j5g3.Loader#ready', function(a) {
var loader = new j5g3.Loader();
var done = a.async();
loader.ready(function() {
a.equal(this, loader);
a.equal(loader.progress, 1);
done();
});
});
test('j5g3.Loader#ready sources', function(a) {
var
loader = j5g3.loader(),
... | giancarlo/j5g3 | test/j5g3-loader.js | JavaScript | gpl-3.0 | 2,557 |
var chai = require('chai');
var chaiHttp = require('chai-http');
var assert = chai.assert;
chai.should();
chai.use(chaiHttp);
describe('Test APIG', function() {
this.slow(10000);
it('/hello', function(done) {
this.timeout(0);
chai.request('http://localhost:1465')
.get('/hello')... | edgarchinchilla/sls-basic-demo | test/test.js | JavaScript | gpl-3.0 | 680 |
/**
* Brazilian Portuguese translation
* @author Leandro Carvalho <contato@leandrowebdev.net>
* @version 2011-07-09
*/
if (elFinder && elFinder.prototype && typeof(elFinder.prototype.i18) == 'object') {
elFinder.prototype.i18.pt_BR = {
translator: 'Leandro Carvalho <contato@leandrowebdev.net>',
... | zenn1989/ffcms | resource/elfinder/js/i18n/elfinder.pt_BR.js | JavaScript | gpl-3.0 | 12,590 |
/* bender-tags: editor */
( function() {
'use strict';
var doc = CKEDITOR.document,
tools = bender.tools;
CKEDITOR.focusManager._.blurDelay = 0;
// This group of tests plays upon the editable div.
bender.test( {
// Initialize the editor instance.
'async:init': function() {
var tc = this;
var editor... | ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/tests/core/editable/wysiwyg.js | JavaScript | gpl-3.0 | 3,332 |
/**
* Set a counter to the element
*
* @namespace Lungo.Element
* @class count
*
* @param {string} Element query selector
* @param {number} Value for counter
*
* @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
*/
Lungo.Element.count = function(selector, count) {
var element = Lungo.dom(sel... | CoffeeLabs/UGH | src/element/Lungo.Element.Count.js | JavaScript | gpl-3.0 | 573 |
/* ajaxCRUD validation javascript (optional) */
$(document).ready(function(){
doValidation();
});
function doValidation(){
// mask some fields with desired input mask
// use "modifyFieldWithClass" to set a css class on the fields you need to mask (e.g. phone, zip)
$("input.phone").mask("(999) 999-9999")... | jlwalm/cfmworship | validation.js | JavaScript | gpl-3.0 | 781 |
/**
* Controls: Link plugin
*
* Depends on jWYSIWYG
*
* By: Esteban Beltran (academo) <sergies@gmail.com>
*/
(function ($) {
"use strict";
if (undefined === $.wysiwyg) {
throw "wysiwyg.link.js depends on $.wysiwyg";
}
if (!$.wysiwyg.controls) {
$.wysiwyg.controls = {};
}
/*
* Wysiwyg namespace: publ... | urban48/HomeRemote | Web/js/controls/wysiwyg.link.js | JavaScript | gpl-3.0 | 5,941 |
"use strict";
BulletHell.prototype = new Minigame();
BulletHell.prototype.constructor = BulletHell;
function BulletHell (pGameEngine) {
this.gameEngine = pGameEngine;
this.gameId = 'bh';
// [TODO] enum
// 0 = ongoing, 1 = won, -1 = lost
this.outcome = 0;
this.score = 0;
this.bulletHellMusic;
this.gameT... | lcb931023/mini_trooper | game/js/bulletHell.js | JavaScript | gpl-3.0 | 5,493 |
var sinon = require('sinon'),
should = require('should'),
needle = require('needle'),
api_req = require('../request');
describe('API Request Wrapper', function() {
describe('get', function() {
describe('with proxy', function () {
before(function () {
api_req.use({
try_... | prey/prey-node-client | lib/agent/plugins/control-panel/api/test/request_with_proxy_spec.js | JavaScript | gpl-3.0 | 6,058 |
define(['rz_trigger_event/triggerEventHelper'], function (triggerEventHelper) {
return {
init: function () {
triggerEventHelper.initAllEvents();
}
};
}); | rukzuk/rukzuk | app/sets/rukzuk/rz_core/modules/rz_trigger_event/assets/triggerEventInit.js | JavaScript | gpl-3.0 | 189 |