code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
var mn_items=[
[2,"Оружие",,[
[,"Одноручное"],
[15,"Кинжалы"],
[13,"Кистевое"],
[0,"Одноручные топоры"],
[4,"Одноручное дробящее"],
[7,"Одноручные мечи"],
[,"Двуручное"],
[6,"Древковое"],
[10,"Посохи"],
[1,"Двуручные топоры"],
[5,"Двуручное дробящее"],
[8,"Двуручные мечи"],
[,"Дальний бой"],
... | chaosua/aowow | templates/wowhead/js/locale_ruru.js | JavaScript | gpl-2.0 | 150,293 |
/* Copyright 2013 William Summers, metaTribal LLC
* adapted from https://developer.mozilla.org/en-US/docs/JXON
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | vpham21/ohmageX | www/js/vendor/xmlToJSON.js | JavaScript | gpl-2.0 | 8,853 |
$(document).ready(function(){
$("#dpsta").datetimepicker({
dateFormat: $.datepicker.W3C,
});
$("#dpend").datetimepicker({
dateFormat: $.datepicker.W3C,
});
});
function SelectChanged (select) {
select.form.submit();
} | captainsensible/volunteer | volunteer/js/volunteer.js | JavaScript | gpl-2.0 | 255 |
/* globals RecipeView, Recipe */
describe('RecipeView', function() {
'use strict';
var recipeView;
beforeEach(function() {
var recipe = new Recipe({
name: 'arroz con pollo',
label: 'arroz-con-pollo',
imageUrl: '/img/arroz-con-pollo.jpg',
description: 'comida criolla de arroz y... | paolocarrasco/rz | webapp/test/specs/recipe-view.js | JavaScript | gpl-2.0 | 954 |
/*
Filename: init.js
Author: Mave Yeap
Date: Feb, 2014
[DESCRIPTION]: Head-end initialization files.
*/
/*external configuration*/
var db = require('./config/database.js');
var functions = require('./functions/functions.js');
/*Creating MySQL database*/
functions.initialization(db.host, db.name, db.userid, db.p... | mavewei/AMI-Smart-Grid | src/Head_End/init.js | JavaScript | gpl-2.0 | 328 |
var m_levelcount = 1;
function m_removesublevel() {
var level = jQuery(this).parents('li.sortable-levels').attr('id');
jQuery(this).parents('li.sortable-levels').remove();
jQuery('#level-order').val( jQuery('#level-order').val().replace(',' + level, ''));
return false;
}
function m_addnewsub() {
window.locat... | tannernet/DNA-PRSS | wp-content/plugins/membership/membershipincludes/js/subscriptions.js | JavaScript | gpl-2.0 | 2,180 |
$(function(){
var $container = $('#instafeed');
$container.on("insta-ready", function() {
$container.isotope({
layoutMode: 'masonry',
//resizable: false, // disable normal resizing
// set columnWidth to a percentage of container width
masonry: { columnWidth: 125 }
});
/*
$(window).... | work-shop/hb | wp-content/themes/hb/_/js/iso.js | JavaScript | gpl-2.0 | 2,259 |
var ListenerView = function(json, el) {
"use strict";
for (var i = 0; i < json.top_albums.length; i++) {
json.top_albums[i].rating_site = json.top_albums[i].rating;
json.top_albums[i].rating = json.top_albums[i].rating_listener;
json.top_albums[i].rating_user = true;
}
// no need to be terribly accurate her... | williamjacksn/rainwave | static/js5/detail/ListenerView.js | JavaScript | gpl-2.0 | 4,134 |
//判断输入密码的类型
function CharMode(iN){
if (iN>=48 && iN <=57) //数字
return 1;
if (iN>=65 && iN <=90) //大写
return 2;
if (iN>=97 && iN <=122) //小写
return 4;
else
return 8;
}
//bitTotal函数
//计算密码模式
function bitTotal(num){
modes=0;
for (i=0;i<4;i++){
if (num & 1) modes++;
num>>>=1;
}
return... | lhp123/test | MiniServer/www/htdocs/m/netjs/tools.js | JavaScript | gpl-2.0 | 7,942 |
var arexworks;
function equalheight(container){
var currentTallest = 0,
currentRowStart = 0,
rowDivs = new Array(),
$el,
topPosition = 0;
container.each(function() {
$el = jQuery(this);
jQuery($el).height('auto')
topPostion = $el.position().top;
i... | binhdarkcu/shoping_quan | wp-content/themes/quan/js/theme.js | JavaScript | gpl-2.0 | 38,619 |
/* glpapi14.c (processing models in GNU MathProg language) */
var glp_mpl_alloc_wksp = exports["glp_mpl_alloc_wksp"] = function(){
/* allocate the MathProg translator workspace */
return mpl_initialize();
};
var _glp_mpl_init_rand = exports["_glp_mpl_init_rand"] = function (tran, seed){
if (tran.phase != ... | hgourvest/glpk.js | lib/glpapi14.js | JavaScript | gpl-2.0 | 8,312 |
/**
* @package AdminTools
* @copyright Copyright (c)2010-2013 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
*/
/** @var The AJAX proxy URL */
var admintools_scan_ajax_url_start = "";
var admintools_scan_ajax_url_step = "";
/** @var The callback function to call on error */... | nestoronald/anc | media/com_admintools/js/scan.js | JavaScript | gpl-2.0 | 4,241 |
/* -*- Mode: js; js-indent-level: 2; -*- */
/*
* Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
* http://opensource.org/licenses/BSD-3-Clause
*/
if (typeof define !== 'function') {
var define = require('amdefine')(module, require);
}
define(func... | toolsmasterbioinfo/toolsmasterbioinfo | node_modules/grunt-contrib-concat/node_modules/source-map/lib/source-map/binary-search.js | JavaScript | gpl-2.0 | 4,276 |
showWord(["n. ","Espas bò lanmè kote yo fè sèl. Gen yo kote yo rele Grann Salin, gen anpil salin la."
]) | georgejhunt/HaitiDictionary.activity | data/words/salin.js | JavaScript | gpl-2.0 | 108 |
/*
js-tableservice
Copyright 2013 Alistair Buckle
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.
This program is distributed ... | agtb/js-tableservice | tableservice.js | JavaScript | gpl-2.0 | 5,498 |
showWord(["a.","ki pote atansyon. 2. adv. ak atansyon.ki pote atansyon. 2. adv. ak atansyon.<br>"]) | georgejhunt/HaitiDictionary.activity | data/words/alekout.js | JavaScript | gpl-2.0 | 99 |
({
insertTableTitle: "Inserir tabela",
modifyTableTitle: "Modificar tabela",
rows: "Linhas:",
columns: "Colunas:",
align: "Alinhar:",
cellPadding: "Preenchimento de células:",
cellSpacing: "Espaçamento de células:",
tableWidth: "Largura da tabela:",
backgroundColor: "Cor de segundo plano:",
borderColor: "Cor ... | adamfisk/littleshoot-client | server/static/build/src/main/webapp/dojo/dojox/editor/plugins/nls/pt-pt/TableDialog.js | JavaScript | gpl-2.0 | 955 |
"use strict";
/**
editor._openPopupWindow
=======================
Opens a popup window, provided the `windowFeatures`.
*/
WYMeditor.editor.prototype._openPopupWindow = function (windowFeatures) {
var wym = this,
popup,
basePath = wym._options.basePath;
popup = window.open(
... | haryshwaran/wymeditor | src/wymeditor/editor/dialogs.js | JavaScript | gpl-2.0 | 20,351 |
// VideoShareVOD.com Multi Drag & Drop Video Upload Script
// Developed by VideoWhisper.com
(function() {
function vwEBI(id) {
return document.getElementById(id);
}
function vwO(msg) {
var m = vwEBI("messages");
m.innerHTML = msg + m.innerHTML;
}
function vwFDH(e) {
e.stopPropagation();
e.preventDefa... | Sunella/Jupiter | wp-content/plugins/video-share-vod/upload.js | JavaScript | gpl-2.0 | 2,983 |
showWord(["pre fr. ","Konfòtab, kòrekteman, nan plat, nan asyèt. Gladis mete nou chita sou de chèz pou li rakonte nou istwa sa a."
]) | georgejhunt/HaitiDictionary.activity | data/words/soudech~ez.js | JavaScript | gpl-2.0 | 137 |
'use strict';
angular.module('agileimApp')
.config(function ($stateProvider) {
$stateProvider
.state('entity', {
abstract: true,
parent: 'site'
});
});
| lazcatluc/agileim | src/main/webapp/scripts/app/entities/entity.js | JavaScript | gpl-2.0 | 225 |
function updateMyProfileDialogSettings(title, height) {
var id = 'dialogMyProfile';
var dialog = $("#" + id, window.parent.document);
// update height
$('.modal-content', dialog).height(height);
if (height.match("%$")) {
$('.modal-dialog', dialog).height(height);
} else {
$('.modal-dialog', dialog).height(''... | lamsfoundation/lams | win_installer/assembly/lams.ear/lams-central.war/includes/javascript/profile.js | JavaScript | gpl-2.0 | 411 |
/* A map of test titles and their manually verified output. If the parser
* output matches the expected output listed here, the test can be marked as
* passing in parserTests.js. */
// CSA note: This whitelist dates back to when parsoid was an experiment,
// and there wasn't "php"/"parsoid" support in upstream's par... | rmacqueen/parsoid | tests/parserTests-whitelist.js | JavaScript | gpl-2.0 | 11,251 |
/*
* Off-the-Record Messaging bindings for nodejs
* Copyright (C) 2012 Mokhtar Naamani,
* <mokhtar.naamani@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free ... | mnaamani/node-otr-v2 | index.js | JavaScript | gpl-2.0 | 8,333 |
/**
* TinyMCE 3.x language strings
*
* Loaded only when external plugins are added to TinyMCE.
*/
( function() {
var main = {}, lang = 'en';
if ( typeof tinyMCEPreInit !== 'undefined' && tinyMCEPreInit.ref.language !== 'en' ) {
lang = tinyMCEPreInit.ref.language;
}
main[lang] = {
common: {
edit_confirm... | mtaandao/Framework | res/js/tinymce/langs/mn-langs-en.js | JavaScript | gpl-3.0 | 15,598 |
var HOME='home';
var ENTITY_PRODUCT='product';
var ENTITY_ITEM='item';
var ENTITY_CATEGORY='category';
var ENTITY_EXPENSE='expense';
var ENTITY_INCOME='income';
var test="123456";
//function to initialize the page
var init = function() {
//showing the home tab on initializing
showTab(HOME);
//adding event listeners ... | ljug/gestionDepenseMobile | script/ajax.utilv6.js | JavaScript | gpl-3.0 | 12,123 |
const Service = require('egg').Service
const { authority } = require('../../constants')
const {
PRIVACY_ALL,
PRIVACY_MEMBER,
PRIVACY_SELF,
OPERATION_ALL,
OPERATION_MEMBER
} = authority
class Group extends Service {
isWritable (group, authId) {
switch (group.operation) {
case OPERATION_ALL:
... | DXY-F2E/api-mocker | server/app/service/group.js | JavaScript | gpl-3.0 | 2,987 |
import React from 'react';
import { Link } from 'react-router';
class App extends React.Component {
constructor(props) {
super();
this.state = {
favoritesList: [],
buoysList: [],
fetchError: false,
};
}
getChildContext() {
return {
favoritesList: this.state.favoritesList,... | dfuruya/BuoyCheck | client/App/App.js | JavaScript | gpl-3.0 | 1,478 |
// Search script generated by doxygen
// Copyright (C) 2009 by Dimitri van Heesch.
// The code in this file is loosly based on main.js, part of Natural Docs,
// which is Copyright (C) 2003-2008 Greg Valure
// Natural Docs is licensed under the GPL.
var indexSectionsWithContent =
{
0: "000000000000000000000000000000... | TheComet93/ponyban | ponyban-cpp/doc/html/search/search.js | JavaScript | gpl-3.0 | 22,716 |
import { createNewPost, setPostContent } from '@wordpress/e2e-test-utils';
import { publishPost } from './publish-post';
/**
* Create and publish a new post
*
* @since 2.2.0
* @since 3.3.0 Set the post's content with `setPostContent()`.
*
* @param {string} postType WP_Post type.
* @param {string} title Po... | gocodebox/lifterlms | packages/llms-e2e-test-utils/src/create-post.js | JavaScript | gpl-3.0 | 740 |
$(document).ready(function() {
$commentDiv = $("#disqus_recent");
$.get("https://disqus.com/api/3.0/threads/listPosts.json?forum=alpaalrebseonggyeong&thread=7611588846&limit=3&api_key=8C1bWCyMgfsAEm9EDpCgboLD30M3sKHqN0izKBPJp2jgk0ceNxvAJjWsT3MH76k7", function(res, code) {
//Good response?
if(res.code === 0) {
... | kungsik/kimsbible | static/js/disqus_recent_posts.js | JavaScript | gpl-3.0 | 1,436 |
import React, { PropTypes } from 'react';
import Header from './Header';
import Footer from './Footer';
import { Container } from 'semantic-ui-react';
const MainLayout = ({children}) => (
<Container>
<Header />
{children}
<Footer />
</Container>
);
MainLayout.propTypes = {
children: PropTypes.node
... | akoltun/reblog-front | src/components/layouts/MainLayout.js | JavaScript | gpl-3.0 | 351 |
/*global btnSave:true, tabEditors:true, winCloseConfirm:true, btnYesAll:true, btnNoAll:true*/
/*global btnSaveCancel:true, btnSaveYes:true, btnSaveNo:true, saveStatus:true*/
/*global trSaveAs:true, winSaveAs:true, fileDesc:true, barTools:true*/
/*global trFiles:true, txtSaveAs:true, lblPath:true, winConfirm:true, btnCo... | frankrousseau/cloud9 | plugins-client/ext.save/save.js | JavaScript | gpl-3.0 | 26,344 |
/*
** beelancer-api
** author: gordon hall
**
** acknowledgement endpoint
*/
var endpoint = require('../classes/endpoint.js');
module.exports = endpoint({
method : 'GET',
path : '/',
handler : acknowledge,
params : [],
description : 'Sanity check endpoint. Returns API name and version.',
re... | beelancer/beelancer-api | lib/routes/acknowledge.js | JavaScript | gpl-3.0 | 940 |
import { createStore, compose } from 'redux';
import { syncHistoryWithStore } from 'react-router-redux';
import { hashHistory } from 'react-router';
import rootReducer from './reducers/index';
let defaultState
if(window.__PRELOADED_STATE__){
defaultState = window.__PRELOADED_STATE__
defaultState.spreadsheet.... | PinkFLoyd92/softwareII | src/app/store.js | JavaScript | gpl-3.0 | 579 |
/*
* Copyright (c) 2017, Tim Leerhoff <tleerhof@web.de>
* All rights reserved.
*
* See LICENSE-file for further information.
*/
var featureprofilemesh = require('./featureprofilemesh');
var featureplanemesh = require('./featureplanemesh');
var vecmat = require('lethexa-vecmat');
var meshutils = require('./meshuti... | lethexa/lethexa-osm3d | lib/shiphullmesh.js | JavaScript | gpl-3.0 | 8,729 |
/*
*
* This file is part of phynx.
* phynx 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.
* phynx is distributed in the... | nemiah/poolPi | public_html/backend/javascript/Popup.js | JavaScript | gpl-3.0 | 17,983 |
/**
* @name CarliModules Service
* @ngdoc service
* @description
* ## External Code ##
* This service exists solely to import the packaged CARLI code into the Angular app.
* All the code under CARLI/ is bundled using Browserify and exposed via a global variable
* **window.CARLI**, which this service returns.
... | CARLI/select | browserClient/common/components/carli/carliModules.service.js | JavaScript | gpl-3.0 | 440 |
// Copyright 2015-2022, University of Colorado Boulder
/**
* Several utilities for making it easier to create some complex and somewhat random shapes. This was created initially
* to make it easier to create the shapes associated with biomolecules, but may have other uses.
*
* @author Sharfudeen Ashraf
* @author ... | phetsims/gene-expression-essentials | js/common/model/BioShapeUtils.js | JavaScript | gpl-3.0 | 10,120 |
// TODO: add remaining evaluation eementss (based on requirements)
Ext.define('EvaluateIt.view.SiteGeneralForm', {
extend: 'Ext.form.Panel',
alias : 'widget.siteGeneralForm',
requires: [
'Ext.form.Panel',
'Ext.form.FieldSet',
'Ext.field.Number',
'Ext.field.Select',
'Ext.field... | GregSilverman/evaluate-it | app/view/SiteGeneralForm.js | JavaScript | gpl-3.0 | 2,463 |
$('document').ready(function() {
require(['composer', 'composer/controls'], function(composer, controls) {
if (composer === undefined || composer.addButton === undefined) return;
composer.addButton('bbcode fa fa-bold', function(textarea, selectionStart, selectionEnd) {
if(selectionStart === selectionEnd){
... | APXEOLOG/nodebb-plugin-bbcodes | static/buttons.js | JavaScript | gpl-3.0 | 3,616 |
/*************************************************************************
* tranSMART - translational medicine data mart
*
* Copyright 2008-2012 Janssen Research & Development, LLC.
*
* This product includes software developed at Janssen Research & Development, LLC.
*
* This program is free software: you can... | CortellisLabs/tranSMART_GVDB | web-app/js/datasetExplorer/highDimensionData.js | JavaScript | gpl-3.0 | 26,447 |
/**
*
*/
Ext.define
(
'Zenws.view.searchengine.searchsetup.ChartFieldsModel',
{
extend : 'Ext.data.Model',
alias : 'model.chartfieldsmodel',
fields : [ 'fieldName', 'fieldType', 'fieldSettingKey', 'checked', 'fieldSettingValue', 'fieldOrder', 'gridIndex' ],
setDefaults : function()
{
var fiel... | applifireAlgo/ZenClubApp | zenws/src/main/webapp/app/view/searchengine/searchsetup/ChartFieldsModel.js | JavaScript | gpl-3.0 | 691 |
import ReactDOM from 'react-dom'
import {createStore, connect} from 'st88'
import createVirtualAudioGraph from 'virtual-audio-graph'
import Prometheus from './components/Prometheus'
import notesToGraph from './notesToGraph'
import defaultState from './defaultState'
const audioContexts = new WeakMap()
const stores = ne... | benji6/elemental | src/plugins/instruments/Prometheus/index.js | JavaScript | gpl-3.0 | 3,487 |
var assert = require('assert');
var insert = require('./insert');
insert([{
t: 242424,
online: 1
}, {
t: 4244,
online: 0
}], function(db, done) {
db.a.group({
key: {},
cond: {t: {$gte: 86400}},
initial: {count: 0, online: 0},
reduce: function(doc, out) {
out.count++;
out.online += doc.online;
},
... | plasticpanda/kodels | node_modules/promised-mongo/tests/test-group.js | JavaScript | gpl-3.0 | 543 |
/**
* Created by sito on 01/02/2017.
*/
var crud = require('../crud');
module.exports = function(app){
// GET ALL
app.get('/api/radioStation', function(req, res){
crud.getAllRadioStations(function(err, radioStations){
if(err){
return res.json({err:err});
}
... | FrancescoVaiani/udoo-radio-alarm-clock | app/routes/radioStation.js | JavaScript | gpl-3.0 | 2,306 |
/* istanbul ignore file */
export const DATE_FORMAT = 'YYYY-MM-DD';
export const DEFAULT_MINUTES = 60;
export const TIME_FORMAT = 'h:mm a';
export const LIST_DISPLAY_SIZE = 15;
| kellerj/command-line-time-tracker | src/constants.js | JavaScript | gpl-3.0 | 177 |
"use strict";
const CreepManager = require("CreepManager");
/**
* A creep which reserves remote rooms
*/
class ReserverCreepManager extends CreepManager {
/**
* Creates a new Reserver creep manager
*
* @param {String} creepName Name of the creep to manage
* @param {ReserverManager} energyManager The reserv... | Suppen/screeps | src/ReserverCreepManager.js | JavaScript | gpl-3.0 | 1,456 |
turConverseApp
.controller(
'TurConverseMainCtrl',
[
"$scope",
"$translate",
"amMoment",
"vigLocale",
"$http",
"turAPIServerService",
"$timeout",
"$location",
"$anchorScroll",
"$stateParams",
"turConverseAgentResource",
function ($scope, $translate, amMoment, vigLocale, $http, ... | openviglet/turing | src/main/resources/public/js/converse/build/extract/feature/main/TurConverseMainCtrl.js | JavaScript | gpl-3.0 | 1,830 |
module.exports = {
"ipfsRepoPath": "./ipfs-repo",
"ipfs": {
"gatewayUrl": "/ip4/127.0.0.1/tcp/5001",
"pollIntervalMs": 1000
},
"faucetUrl": "https://theserverbythe.stream",
"web3": {
"accountNumber": process.env.ACCOUNT_NUMBER || 0,
"defaultGas": 4712388,
"url": "http://localhost:8545",
... | aletheia-foundation/aletheia-app | config/default.js | JavaScript | gpl-3.0 | 386 |
var http = require('http.min')
var util = require('util')
var EventEmitter = require('events')
const apiEndpoint = 'http://trc-api.wialon.com/wialon/ajax.html'
const maxSessionRetryCount = 3 // number of retries on invalid session errors before shutdown logging
const maxNetworkIssueMinutes = 2 // number of minutes bef... | irritanterik/homey-gps-trace.com | lib/location.js | JavaScript | gpl-3.0 | 11,382 |
var finder = require('../finder');
var chai = require('chai');
var expect = chai.expect;
chai.use(require('chai-shallow-deep-equal'));
function log(logentries)
{
return `<?xml version="1.0" encoding="UTF-8"?>
<log>` + logentries +'</log>';
}
function path(obj) {
var defaultPath = {
'text-mo... | gilescope/zombiecodefinder | test/tests.js | JavaScript | gpl-3.0 | 5,524 |
import React, {Component} from "react";
import {GameBoardComponent} from "./board";
import Cookie from 'js-cookie';
import {GameStatusComponent} from "./status";
export class GameSessionComponent extends Component {
render() {
return (
<div className="game-session">
<GameStatus... | tomasz-chojna/hex | src/client/components/session.js | JavaScript | gpl-3.0 | 992 |
App.directive("contactForm", [
'$timeout',
'$rootScope',
'$http',
'CONFIG',
function($timeout,$rootScope,$http,CONFIG) {
return {
restrict: 'E',
scope : true,
link: function(scope, element, attrs) {
scope.form_visibility = 0;
... | flaviendelangle/resume | frontend/js/directives/contact-form.js | JavaScript | gpl-3.0 | 3,529 |
var chai = require( 'chai' ),
sinon = require( 'sinon' );
describe( 'routes', function(){
describe( 'content-type and file-type', function(){
it( "req.header is a function", function(){
chai.expect( ).to.be.a( 'function' );
});
it( "charset is a string", function(){
chai.expect( ).to.be.a( 's... | brunocasanova/newtree | test/tests/routes.test.js | JavaScript | gpl-3.0 | 347 |
Fox.define('Views.Import.Record.Panels.Imported', 'Views.Record.Panels.Relationship', function (Dep) {
return Dep.extend({
link: 'imported',
readOlny: true,
rowActionsView: 'Record.RowActions.RelationshipNoUnlink',
setup: function () {
this.scope = this.model.get('e... | ilovefox8/zhcrm | client/src/views/import/record/panels/imported.js | JavaScript | gpl-3.0 | 401 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/tests/auto/qml/ecmascripttests/test262/test/suite/ch15/15.4/15.4.4/15.4.4.19/15.4.4.19-1-5.js | JavaScript | gpl-3.0 | 975 |
var module = {
guid: function () {
function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
},
getLocale:function(){
var queryParam = this.getParameterByName('lo... | domch/frass | src/Utils.js | JavaScript | gpl-3.0 | 854 |
export class ElementType {
static ROOT_FOLDER = 'ROOT_FOLDER';
static FOLDER = 'FOLDER';
static NOTE = 'NOTE';
static FILE = 'FILE';
static IGNORE_NOTE_KEYS = ['_id', 'parentId', 'attachments', 'title', 'type', 'content'];
static FORCE_UPDATE_KEYS = ['attachments', '_id', 'type', 'parentId', 'created'];
s... | libeanim/sundew-notes | src/utils/CONSTANTS.js | JavaScript | gpl-3.0 | 2,129 |
var searchData=
[
['mainfolder',['mainFolder',['../class_dataset.html#accd7ce9be4329d6e3b758f71269a8703',1,'Dataset']]],
['maxsteps',['maxSteps',['../class_dataset.html#a5350c5b634efd3979339149aca3264f2',1,'Dataset']]],
['model',['Model',['../class_model.html',1,'Model'],['../class_model.html#ae3b375de5f6df4faf74... | tum-vision/AFS | doc/html/search/all_c.js | JavaScript | gpl-3.0 | 580 |
/**
* Collection Math and sorting methods
* @Class MathUtils
* @static
*/
var ME = module.exports = {};
/**
* Takes an integer and calculates what the 16 bit float
* representation of the binary data used to read the integer is.
* @method f16
* @param {Number} h Integer value
* @return {Number} Float value
... | RequestTimeout408/Tyria3DLibrary | src/util/MathUtils.js | JavaScript | gpl-3.0 | 2,306 |
Sigma.controller("CompanyController", function ($scope, $window, CompanyService) {
$scope.Companies = [];
$scope.Company = {};
$scope.dataTableOpt = {
//custom datatable options
"aLengthMenu": [[10, 50, 100, -1], [10, 50, 100, 'All']],
};
$scope.InitializeIndexView = function () ... | StratosAgein/Sigma.Website | Sigma.Website/Angular/Company/Controller.js | JavaScript | gpl-3.0 | 3,475 |
"use strict";
var Widget = require("wdg");
var Svg = Widget.svg;
module.exports = function(options) {
if (typeof options === 'undefined') options = {};
if (typeof options.width === 'undefined') options.width = '1em';
if (typeof options.height === 'undefined') options.height = '1em';
if (typeof options.... | tolokoban/grenier | src/mod/svg.triangle.js | JavaScript | gpl-3.0 | 850 |
H5PEditor.language.core = {
missingTranslation: '[Traduction manquante :key]',
loading: 'Chargement en cours, merci de patienter...',
selectLibrary: 'Sélectionnez une activité pour votre exercice.',
unknownFieldPath: 'Impossible de trouver ":path".',
notImageField: '":path" n\'est pas une image.',
notImageO... | Redcolaborar/Red-Colaborar | wp-content/plugins/h5p/h5p-editor-php-library/language/fr.js | JavaScript | gpl-3.0 | 14,701 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AnnotationsQueryCtrl = exports.QueryOptionsCtrl = exports.ConfigCtrl = exports.QueryCtrl = exports.Datasource = undefined;
var _datasource = require('./datasource');
var _query_ctrl = require('./query_ctrl');
require('./netxms_ob... | netxms/grafana | dist/test/module.js | JavaScript | gpl-3.0 | 1,345 |
'use strict';
/* Controllers */
angular.module('Giggity.controllers', [])
.controller('Main', ['$scope', '$rootScope', '$window', '$route', '$routeParams', 'Requests', '$location', '$filter', '$position', '$timeout', '$modal', 'Members', 'Gigs',
function($scope, $rootScope, $window, $route, $routeParams, Reques... | michalgm/giggity | js/controllers.js | JavaScript | gpl-3.0 | 9,213 |
/*global Ext, i18n*/
//<debug>
console.log(new Date().toLocaleTimeString() + ": Log: Load: WPAKT.view.core.email.ButtonSend");
//</debug>
Ext.define("WPAKT.view.core.email.ButtonSend", {
extend: "Ext.button.Button"
, alias : "widget.coreemailbuttonsend"
, text: i18n.gettext("Send Email")
, scale: "larg... | Webcampak/ui | Sencha/App6.0/workspace/Dashboard/app/view/core/email/ButtonSend.js | JavaScript | gpl-3.0 | 384 |
/* eslint
no-unused-vars: ["error", {"args": "after-used"}]
*/
const DEFAULT_USER = process.env.HARBORMASTER_SSH_DEFAULT_USER || 'ubuntu';
const get_user = (manifest) => {
return manifest.user || DEFAULT_USER;
};
const maybe_get_private_key = (manifest) => {
let private_key;
if (manifest.use_key && manifest.k... | StrictlySkyler/harbormaster-ssh | ssh/work.js | JavaScript | gpl-3.0 | 4,932 |
['app', [
['text', "<h1>Appointments List</h1>"],
['button', {
text: "Add new appointment",
action: "app-appointments-add"
}],
['loop', {
list: "appointments",
item: "tmp.apt",
sort: "date",
filter: function( item ) {
return true; //item.text.i... | tolokoban/hackathon-2016 | src/actions/tutorial/app-appointments.js | JavaScript | gpl-3.0 | 629 |
var F=require('../xml');
console.log('xml test suite');
fs=require('fs');
QUnit.test('import xml',function(){
var buf=fs.readFileSync('./test1.xml','utf8').replace(/\r\n/g,'\n').replace(/\r/g,'\n');
var doc=F.importXML(buf,{"template":"accelon"});
equal(doc.pageCount,4);
equal(doc.tags.length,12);
console.log(doc... | ksanaforge/ksana-document | test/xml-test.js | JavaScript | gpl-3.0 | 495 |
//鼠标周围出现星星
(function() {
var z = function() {
(function(j, l) {
function q(a, b, d) {
if (d === l && a.nodeType === 1)
if (d = "data-" + b.replace(db, "$1-$2").toLowerCase(), d = a.getAttribute(d), typeof d === "string") {
try {
d = d === "true" ? true : d === "false" ? false : d === "null" ... | hjzgg/HZML | WebContent/js/mymouse.js | JavaScript | gpl-3.0 | 139,650 |
var searchData=
[
['sensor',['Sensor',['../class_sensor.html',1,'']]],
['sensor_3c_20bool_20_3e',['Sensor< bool >',['../class_sensor.html',1,'']]],
['sensor_3c_20short_20_3e',['Sensor< short >',['../class_sensor.html',1,'']]],
['sensor_3c_20unsigned_20short_20_3e',['Sensor< unsigned short >',[... | kipr/harrogate | shared/client/doc/search/classes_e.js | JavaScript | gpl-3.0 | 461 |
//This is a addon for habbitRPG.com
//every time when you visit vice website it report to habbitRPG and you loose HP.
var Widget = require("widget").Widget;
var tabs = require('sdk/tabs');
var notifications = require("sdk/notifications");
var Url = require("sdk/url");
var Prefs = require("sdk/simple-prefs").p... | harlequix/habitrpg-mozilla | lib/main.js | JavaScript | gpl-3.0 | 3,235 |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/// Ecma International makes this code available under the terms and conditions set
/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
/// "Use Terms"). Any redistribution of this code must retain the above
/// copyright an... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtdeclarative/tests/auto/qml/ecmascripttests/test262/test/suite/ch15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-165.js | JavaScript | gpl-3.0 | 845 |
const timeParser = require("../../util/timeParser.js");
exports.run = function (client, msg, args, options, sel) {
if (client.queues[msg.guild.id].queue.length === 0)
return msg.channel.send({ embed: {
color: config.options.embedColour,
title: "There's no music playing"
}});
let guild = client.queues[msg... | Monskiller/podfm | src/commands/now.js | JavaScript | gpl-3.0 | 1,335 |
/* @license
* This file is part of the Game Closure SDK.
*
* The Game Closure SDK is free software: you can redistribute it and/or modify
* it under the terms of the Mozilla Public License v. 2.0 as published by Mozilla.
* The Game Closure SDK is distributed in the hope that it will be useful,
* but WITHOUT ANY ... | gameclosure/timestep | test/Sound.js | JavaScript | gpl-3.0 | 6,172 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=language.js.map | joefraley/dotfiles | vscode/extensions/robertohuertasm.vscode-icons-7.6.0/out/src/models/language/language.js | JavaScript | gpl-3.0 | 115 |
/**
$ node uploadcsv __gradeid _filename
*/
var mysql = require('mysql'),
fs = require('fs'),
colors = require('colors');
var parse = require('csv-parse');
var connection = require('../../lib/mysql').connection;
var upload = function(gid, uid, score, callback) {
var cmd = 'DELETE FROM exam_scores WHERE eid = ? AN... | JudgeGirl/JudgeNode | test/workspace/uploadcsv.js | JavaScript | gpl-3.0 | 1,408 |
/**
* Facebook Likebox Element
*
* @copyright: Copyright (C) 2005-2013, fabrikar.com - All rights reserved.
* @license: GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
var FbLikebox = new Class({
Extends: FbElement,
initialize: function (element, options) {
this.plugin = 'fbLikebox';
this.parent(element, ... | cheesegrits/fabrik | plugins/fabrik_element/fblikebox/fblikebox.js | JavaScript | gpl-3.0 | 336 |
import {expect} from 'chai';
import jsdom from 'jsdom';
import fs from 'fs';
describe('Our first test', () => {
it('should pass', () => {
expect(true).to.equal(true);
});
});
describe('index.html', () => {
it('should say hello', (done) => {
const index = fs.readFileSync('./src/index.html',... | eckko/rahul-js-dev-env | src/index.test.js | JavaScript | gpl-3.0 | 578 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'fr', {
auto: 'Automatique',
bgColorTitle: 'Couleur d\'arrière plan',
colors: {
'000': 'Noir',
'800000': 'Marron',
'8B4513':... | tsmaryka/hitc | public/javascripts/ckeditor/plugins/colorbutton/lang/fr.js | JavaScript | gpl-3.0 | 1,259 |
module.exports = {
app: 'src/main/resources/static/',
dist: 'target/www/',
test: 'src/test/javascript/',
scss: 'src/main/resources/static/scss/',
sassSrc: 'src/main/resources/static/scss/**/*.{scss,sass}',
cssDir: 'src/main/resources/static/content/css',
bower: 'src/main/resources/static/bow... | michoo/kubeek | kubeek-service-rest/gulp/config.js | JavaScript | gpl-3.0 | 503 |
Ext.define('Surveyportal.surveyportal.shared.com.survey.model.location.VillageModel', {
"extend": "Ext.data.Model",
"fields": [{
"name": "primaryKey",
"type": "string",
"defaultValue": ""
}, {
"name": "villageId",
"type": "string",
"defaultValue... | applifireAlgo/appDemoApps201115 | surveyportal/src/main/webapp/app/surveyportal/shared/com/survey/model/location/VillageModel.js | JavaScript | gpl-3.0 | 1,741 |
(function() {
'use strict';
angular
.module('guardian.enrollment')
.controller('PrintEnrollmentController', PrintEnrollmentController);
PrintEnrollmentController.$inject = ['$stateParams'];
/* @ngInject */
function PrintEnrollmentController(stateParams) {
var vm = this;
... | org-yacare/tutor_frontend | app/enrollment/print-enrollment.controller.js | JavaScript | gpl-3.0 | 646 |
"use strict";
const express = require('express');
const router = express.Router();
const mongoose = require('mongoose');
const PaymentSchema = require("./../schemas/payment");
const PaymentModel = mongoose.model('Payment', PaymentSchema);
const parser = require("./../parser/parser");
const _ = require("lodash");
cons... | AlexeyPopovUA/my-expenses | server/routes/payments.js | JavaScript | gpl-3.0 | 2,665 |
const mdlDialog = function () {
function showDialog(options) {
options = $.extend({
id: 'orrsDiag',
title: null,
text: null,
neutral: false,
negative: false,
positive: false,
cancelable: true,
contentStyle: null,... | nuxsmin/sysPass | app/modules/web/themes/material-blue/js/mdl-jquery-modal-dialog.js | JavaScript | gpl-3.0 | 4,453 |
window.onload = setup;
const g = 9.81; // m/s^2
const g_slow_rate = 3;
const bounce_efficiency = 0.8; // (80% Kinetic energy maintained)
const color_slow_rate = 10000;
const jump_rate = 2;
const block_space = 50;
const block_width = 10;
const block_speed = 5;
const block_frequency = 2;
const player_radius = 20;
var c... | uPaymeiFixit/HTML5-JavaScript-Utilities | Demos/Flappy Bird/main.js | JavaScript | gpl-3.0 | 2,473 |
"use strict";
var PNG = function(){
// initialize all members to keep the same hidden class
this.width = 0;
this.height = 0;
this.bitDepth = 0;
this.colorType = 0;
this.compressionMethod = 0;
this.filterMethod = 0;
this.interlaceMethod = 0;
this.colors = 0;
this.alpha = false;... | 4142/png2audio-web | PNG.js | JavaScript | gpl-3.0 | 4,300 |
// -- Set Up OAuth Scopes -- //
const GOOGLE_SCOPES = [
"email", "profile",
"https://www.googleapis.com/auth/drive.scripts",
"https://www.googleapis.com/auth/drive"
];
const GITHUB_SCOPES = ["basic", "gist", "repo"];
// -- Set Up OAuth Scopes -- //
// -- Global Variables -- //
var global = {_before : {}, _paging :... | scriptr-space/scriptr-space.github.io | script/home.js | JavaScript | gpl-3.0 | 9,393 |
/*
* File: app/controller/FormsController.js
*
* This file was generated by Sencha Architect version 2.2.2.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Ext JS 4.1.x library, under independent license.
* License of Sencha Architect does not include license for Ext JS 4.1.x. For m... | nicolasrhone/AcnExtension | app-extension/survey/controller/FormsController.js | JavaScript | gpl-3.0 | 30,661 |
/*
@ @licstart The following is the entire license notice for the
JavaScript code in this file.
Copyright (C) 1997-2017 by Dimitri van Heesch
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 ... | jvoosten/ntrace | doc/doxygen/html/menudata.js | JavaScript | gpl-3.0 | 2,890 |
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {$get, $transform} from 'plow-js';
import {selectors} from '@neos-project/neos-ui-redux-store';
import {neos} from '@neos-project/neos-ui-decorators';
export default ({isMulti}) => WrappedCompone... | mstruebing/PackageFactory.Guevara | packages/neos-ui-editors/src/Editors/Reference/referenceDataLoader.js | JavaScript | gpl-3.0 | 5,319 |
viewModel.packages([{
name: 'algopy',
link: 'http://packages.python.org/algopy/',
description: 'Taylor Arithmetic Computation and Algorithmic Differentiation'
}, {
name: 'asciitable',
link: 'http://cxc.harvard.edu/contrib/asciitable/',
description: 'Extensible ASCII table reader and writer'
}, {... | yuguang/fiddlesalad | static/js/packages.python.js | JavaScript | gpl-3.0 | 2,887 |
Espo.define('she:views/hi-email/record/edit', ['views/record/edit', 'she:views/hi-email/record/detail'], function (Dep, Detail) {
return Dep.extend({
isWide: true,
sideView: false
});
});
| flashnot/espocrm-skyeng-tt | client/modules/SHE/src/views/hi-email/record/edit.js | JavaScript | gpl-3.0 | 214 |
"use strict"; // eslint-disable-line
/* eslint-env node */
/* eslint sort-keys: ["error", "asc"] */
module.exports = {
env: {
browser: true,
es6: true,
webextensions: true,
},
extends: "@exe-boss",
parserOptions: {
ecmaVersion: 9,
sourceType: "module",
},
root: true,
rules: {
},
};
| ExE-Boss/app-menu | .eslintrc.js | JavaScript | gpl-3.0 | 302 |
const { mix } = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel a... | kiki091/LintasEbtke | webpack.mix.js | JavaScript | gpl-3.0 | 8,406 |
var babylonToEspree = require("./babylon-to-espree");
var assign = require("lodash.assign");
var pick = require("lodash.pick");
var Module = require("module");
var path = require("path");
var parse = require("babylon").parse;
var t = require("babel-types");
var ... | santosh-surya/pcb-cnc-machine | desktop-application/node_modules/babel-eslint/index.js | JavaScript | gpl-3.0 | 14,052 |
/**
* This module provides our external API functionality.
*
* @author Douglas Muth <http://www.dmuth.org/>
*
*/
var septa = require("../lib/septa/bus/main.js");
var util = require("util");
/**
* This function is our main entry point.
*/
exports.go = function(request, response) {
var retval = "";
septa.getRawDa... | dmuth/IsSeptaFcked | routes/api-bus-raw.js | JavaScript | gpl-3.0 | 767 |
/**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | nio101/BASECAMP | docker_stuff/docker_nginx/static_content/node_modules/@material/menu/simple/index.js | JavaScript | gpl-3.0 | 5,734 |
function loadDenon(){
var denonDiv = document.getElementById("denonState");
denonInputsDiv = document.getElementById("denonInputs");
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
if(this.responseText == "Off") {
denonDiv.innerH... | sciguy16/AutomationServer | flask-js/templates/denon.js | JavaScript | gpl-3.0 | 1,727 |