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 |
|---|---|---|---|---|---|
import Ember from 'ember';
function onlyOnce(f) {
let exec = false;
return () => {
if(exec) {
return;
}
exec = true;
return f();
};
}
export default Ember.Component.extend({
audio: Ember.inject.service(),
classNames: ['step', 'step-default', 'huayra-step'],
classNameBindings: ['acti... | HuayraLinux/huayra-ritmos | app/components/huayra-step.js | JavaScript | gpl-3.0 | 1,944 |
var camera;
var scene;
var renderer;
var mesh;
var infoSprite = new THREE.Mesh();
var effect;
var controls;
// var music = document.querySelector('#music');
var clicky = 0;
var mouseX = 1;
var mouseY = 1;
var currentBoost = new THREE.Matrix4().set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
var fixOutside = true; //moves you b... | DarkPrince304/webVR-playing-with | js/TwelveToneTiling.js | JavaScript | mpl-2.0 | 5,865 |
const StorageBucket = require('./StorageBucket')
module.exports = new StorageBucket('mailboxes')
| openWMail/openWMail | src/app/src/app/storage/mailboxStorage.js | JavaScript | mpl-2.0 | 97 |
//@flow
import React from 'react';
import { create } from 'react-test-renderer';
import Article from './article.jsx';
import Breadcrumbs from './breadcrumbs.jsx';
import Document, { DocumentRoute, Sidebar } from './document.jsx';
import Header from './header/header.jsx';
import Newsletter from './newsletter.jsx';
impo... | a2sheppy/kuma | kuma/javascript/src/document.test.js | JavaScript | mpl-2.0 | 7,818 |
var omnikey_callback=null,omnikey_callback_called=!1;function do_submit(){var a=document.getElementById("pin").value;null!=omnikey_callback&&(omnikey_callback_called=!0,omnikey_callback(a));setTimeout(function(){window_close("omnikey.html")},0);return!1}function load(a){a?(null!=getBG().g_omnikey_callback&&(omnikey_cal... | MKuenzi/browser-laptop | app/extensions/lastpass/omnikey1.js | JavaScript | mpl-2.0 | 469 |
/**
* @prettier
*/
const { assert, itMacro, describeMacro } = require('./utils');
const jsdom = require('jsdom');
const locales = {
'en-US': {
Firefox_developer_release_notes: 'Firefox developer release notes'
},
fr: {
Firefox_developer_release_notes: 'Notes de versions pour développeurs'... | a2sheppy/kumascript | tests/macros/firefoxsidebar.test.js | JavaScript | mpl-2.0 | 1,306 |
/**
* Copyright 2017 Google Inc.
*
* 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 required by applicable law or agreed to i... | Kalissaac/Mountainz | node_modules/@firebase/messaging/dist/esm/src/controllers/controller-interface.js | JavaScript | mpl-2.0 | 6,510 |
/* */
var baseClamp = require('./_baseClamp'),
baseToString = require('./_baseToString'),
toInteger = require('./toInteger'),
toString = require('./toString');
/**
* Checks if `string` ends with the given target string.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [... | mscottnelson/grapph | public/jspm_packages/npm/lodash@4.13.1/endsWith.js | JavaScript | agpl-3.0 | 1,089 |
/* Omega User JS Representation
*
* Copyright (C) 2013 Mohammed Morsi <mo@morsi.org>
* Licensed under the AGPLv3 http://www.gnu.org/licenses/agpl.txt
*/
Omega.User = function(parameters){
$.extend(this, parameters);
};
Omega.User.prototype = {
json_class : 'Users::User'
};
| movitto/omega | site/source/javascripts/omega/user.js | JavaScript | agpl-3.0 | 285 |
angular.module("viradapp.programacao", [])
.factory('Programacao', function() {
return {
init: function(){console.log("stub service")},
}
})
.filter('newlefilter', function(){
/**
* This filter receives 3 objects:
* 1 - Events Lazy sequence
* 2 - Spaces Lazy sequence
* 3 - And a ... | hacklabr/emergencias-app-bkp | www/js/programacao.js | JavaScript | agpl-3.0 | 5,591 |
/*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/jsx/speed_grader/AssessmentAuditTray/components/AuditTrail/index.js | JavaScript | agpl-3.0 | 1,309 |
import React from 'react'
import { shallow, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import configureStore from 'redux-mock-store'
import GeneBreakdown from './GeneBreakdown'
import { STATE1, SEARCH_HASH } from '../fixtures'
configure({ adapter: new Adapter() })
test('shallow-render w... | macarthur-lab/seqr | ui/shared/components/panel/search/GeneBreakdown.test.js | JavaScript | agpl-3.0 | 459 |
/*----------------------------------------------------------------------*/
/* Fonction qui verifie si la valeur d'un element est vide ou pas */
/*----------------------------------------------------------------------*/
function isEmpty(element) {
var tmp;
if(element.value == "") {
tmp = true;
} else {
... | theclimber/Bilboplanet | javascript/functions.js | JavaScript | agpl-3.0 | 1,871 |
/**
* PUSH Notification server
* (c) Telefonica Digital, 2012 - All rights reserved
* License: GNU Affero V3 (see LICENSE file)
* Fernando Rodríguez Sela <frsela@tid.es>
* Guillermo Lopez Leal <gll@tid.es>
*/
var mn = require('../../src/common/MobileNetwork.js'),
assert = require('assert'),
vows = requir... | frsela/notification_server | test/unit/mobilenetwork-test-disabled.js | JavaScript | agpl-3.0 | 7,485 |
/*
* Data HUb Service (DHuS) - For Space data distribution.
* Copyright (C) 2013,2014,2015,2016 European Space Agency (ESA)
* Copyright (C) 2013,2014,2015,2016 GAEL Systems
* Copyright (C) 2013,2014,2015,2016 Serco Spa
*
* This file is part of DHuS software sources.
*
* This program is free software: you can ... | calogera/DataHubSystem | client/webclient/src/main/frontend/app/scripts/services/authentication-service.js | JavaScript | agpl-3.0 | 2,781 |
'use strict';
var q = require('q');
var fs = require('fs-extra');
var mongoose = require('mongoose');
var path = require('path');
function connect(config) {
var defer = q.defer();
mongoose.connect(config.connectionString, function(err) {
if (err) {
return defer.reject(err);
}
console.log('Connec... | heroandtn3/openpaas-esn | fixtures/db.js | JavaScript | agpl-3.0 | 842 |
/*
* Copyright (C) 2012 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/jsx/bundles/notification_preferences.js | JavaScript | agpl-3.0 | 1,065 |
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission... | Sunchairs/shopware | themes/Backend/ExtJs/backend/article_list/view/main/grid.js | JavaScript | agpl-3.0 | 27,560 |
import React from 'react';
import SPELLS from 'common/SPELLS';
import Panel from 'interface/others/Panel';
import CooldownOverview from 'interface/others/CooldownOverview';
import CoreCooldownThroughputTracker, { BUILT_IN_SUMMARY_TYPES } from 'parser/shared/modules/CooldownThroughputTracker';
class ProcTracker extend... | fyruna/WoWAnalyzer | src/parser/shaman/enhancement/modules/features/ProcTracker.js | JavaScript | agpl-3.0 | 874 |
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU ... | fluent93/DocumentServer | OfficeWeb/sdk/Common/Drawings/Format/CreateGeometry.js | JavaScript | agpl-3.0 | 416,165 |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pa... | chrisma/event-und-raumplanung | app/assets/javascripts/application.js | JavaScript | agpl-3.0 | 1,950 |
'use strict';
var alphabet = require('./alphabet');
function decode(id) {
var characters = alphabet.shuffled();
return {
version: characters.indexOf(id.substr(0, 1)) & 0x0f,
worker: characters.indexOf(id.substr(1, 1)) & 0x0f
};
}
module.exports = decode;
| seraum/fortpress | base/util/uid/decode.js | JavaScript | agpl-3.0 | 285 |
/*
* Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder
* is on an "... | shrumit/cbioportal-gsoc-final | portal/src/main/webapp/js/src/study-view/view/StudyViewSurvivalPlotView.js | JavaScript | agpl-3.0 | 50,320 |
var searchData=
[
['scalaradvectionartdiff',['ScalarAdvectionArtDiff',['../class_scalar_advection_art_diff.html#ae7e81248053af98f4a0aeb3bdf6b55b8',1,'ScalarAdvectionArtDiff']]],
['scalaradvectionartdiffnobcbc',['ScalarAdvectionArtDiffNoBCBC',['../class_scalar_advection_art_diff_no_b_c_b_c.html#a8f70d330617fa5b7c1eb... | lindsayad/moltres | docs/search/functions_d.js | JavaScript | lgpl-2.1 | 1,284 |
CATS.Model.Contest = Classify(CATS.Model.Entity, {
init: function () {
this.$$parent();
this.type = "contest";
this.name = null;
this.url = null;
this.problems_url = null;
this.full_name = null;
this.affiliation = null;
this.start_time = null;
... | Zimovik007/cats-score | app/models/contest.js | JavaScript | lgpl-2.1 | 2,514 |
$(function() {
var paging = $('.lazyloading-paging').hide();
if (!paging.length) {
return;
}
var loading = $('<div><i class="icon16 loading"></i>Loading...</div>').hide().insertBefore(paging);
var win = $(window);
var product_list = $('#product-list .product-list');
var cur... | dmitriyzhdankin/avantmarketcomua | wa-apps/shop/themes/default/lazyloading.js | JavaScript | lgpl-3.0 | 1,548 |
( function($) {
var Drawer = ( function($) {
Drawer = function(options) {
var that = this;
that.$wrapper = options["$wrapper"];
if (that.$wrapper && that.$wrapper.length) {
// DOM
that.$block = that.$wrapper.find(".drawer-body");
... | webasyst/webasyst-framework | wa-apps/ui/js/drawer.js | JavaScript | lgpl-3.0 | 7,494 |
import _ from 'underscore';
import State from 'components/navigator/models/state';
export default State.extend({
defaults: {
page: 1,
maxResultsReached: false,
query: {},
facets: ['facetMode', 'severities', 'resolutions'],
isContext: false,
allFacets: [
'facetMode',
'issues',
... | sulabh-msft/sonarqube | server/sonar-web/src/main/js/apps/issues/models/state.js | JavaScript | lgpl-3.0 | 1,371 |
GoogleElectionMap.shapeReady({name:"23_03",type:"state",state:"23_03",bounds:[],centroid:[],shapes:[
{points:[
{x:30.7337437360944,y: 29.4749206150606}
,
{x:30.7337582665663,y: 29.4744813215764}
,
{x:30.7337486793531,y: 29.4741262248318}
,
{x:30.733830562916,y: 29.4738380667479}
,
{x:30.7340080361753,y: 29.473327820204... | amounir86/amounir86-2011-elections | voter-info/shapes/old_json/23_03.js | JavaScript | unlicense | 95,900 |
var
blog_previews_container = $('#blog .preview-container-shift'),
blog_previews = $('#blog-posts'),
blog_belt = $('.blog-belt'),
post_section = $('.post-section');
blog_return = $('.blog-return'),
post_poster = $('.post-poster'),
post_content = $('.post-content');
total_number = blog_... | const-int/const-int.github.io | assets/js/sections/section-blog.js | JavaScript | unlicense | 4,911 |
function refreshHzBarChart(){
console.log("entered refreshHzBarChart");
d3.json('../../data/team24/files.json', function(error, data) {
if (error) throw error;
var chartWidth = 600,
barHeight = 14,
groupHeight = barHeight * data.series.length ,
gapBetweenGroup... | USCDataScience/polar.usc.edu | js/team24/nerCompare.js | JavaScript | apache-2.0 | 4,520 |
var Manager;
(function ($) {
$(function () {
Manager = new AjaxSolr.Manager({
solrUrl: 'http://evolvingweb.ca/solr/reuters/'
});
Manager.addWidget(new AjaxSolr.ResultWidget({
id: 'result',
target: '#docs'
}));
Manager.addWidget(new AjaxSolr.PagerWidget({
id: 'pager',
... | ox-it/wl-course-signup | tool/src/main/webapp/static/lib/ajax-solr-master/search/js/reuters.8.js | JavaScript | apache-2.0 | 1,954 |
// Copyright 2017 The Kubernetes Dashboard Authors.
//
// 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 required by applicabl... | vlal/dashboard | src/app/frontend/namespace/list/stateconfig.js | JavaScript | apache-2.0 | 2,220 |
/* global L, leafLet, emp, armyc2, sec */
leafLet.internalPrivateClass.MilStdFeature = function() {
var publicInterface = {
initialize: function(args) {
var options = {
oMilStdModifiers: {},
sBasicSymbolCode: undefined,
i2525Version: 0,
bIsMultiPointTG: false
};
... | missioncommand/emp3-web | src/mapengine/leaflet/js/typeLibrary/leaflet-eng.typeLibrary.feature.milstd.js | JavaScript | apache-2.0 | 19,728 |
let httpRequest = {
send(url, cb) {
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
cb(xhr.responseText);
}
}
xhr.send();
}
}
export default httpRequest; | juancjara/bets-extension | src/js/background/httpRequest.js | JavaScript | apache-2.0 | 276 |
//// [classWithPredefinedTypesAsNames.ts]
// classes cannot use predefined types as names
class any { }
class number { }
class boolean { }
class string { }
//// [classWithPredefinedTypesAsNames.js]
var any = (function () {
function any() {
}
return any;
})();
var number = (function () {
func... | DickvdBrink/TypeScript | tests/baselines/reference/classWithPredefinedTypesAsNames.js | JavaScript | apache-2.0 | 550 |
import React from 'react';
/** dkjnslknkjfndn */
const CloseButton = ({ YouCanPassAnyProps, closeToast }) => (
<button
ariaLabel="close"
className="Toastify__close-button"
onClick={closeToast}>
<span></span>
</button>
);
/** huyhuyghu */
const notificationStyle = {
position: 'bottom-right',
cl... | wfp/ui | src/components/Notification/Notification.legacy.js | JavaScript | apache-2.0 | 411 |
// Tests conversion from x-mac-icelandic to Unicode
load('CharsetConversionTests.js');
const inString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x... | wilebeast/FireFox-OS | B2G/gecko/intl/uconv/tests/unit/test_decode_x_mac_icelandic.js | JavaScript | apache-2.0 | 1,706 |
<%#
Copyright 2013-2017 the original author or authors.
This file is part of the JHipster project, see https://jhipster.github.io/
for more information.
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 L... | fjuriolli/scribble | node_modules/generator-jhipster/generators/client/templates/angularjs/src/main/webapp/app/admin/configuration/_configuration.controller.js | JavaScript | apache-2.0 | 1,559 |
'use strict'
const mongoose = require('mongoose')
require('dotenv').config()
let mongoDB = `mongodb://${process.env.HOST_NAME}/${process.env.DATABASE_NAME}`
mongoose.Promise = global.Promise
mongoose.connect(mongoDB)
let db = mongoose.connection
db.on('error', console.error.bind(console, 'MongoDB Connection error')... | adamsaparudin/spaced-repetition | server/db.js | JavaScript | apache-2.0 | 322 |
import styled from 'styled-components';
import Hamburger from './Hamburger';
import {
BREAKPOINT_SHOW_HAMBURGER,
SIDENAV_SIZE,
HAMBURER_SIZE,
} from './constants';
export default styled(Hamburger)`
position: absolute;
top: 0;
left: ${SIDENAV_SIZE}px;
transform: ${(props) =>
props.active ? 'translate... | spearwolf/blitpunk | packages/kitchen-sink/src/AppShell/SideNavHamburger.js | JavaScript | apache-2.0 | 512 |
// javascript (closure) port (c) 2013 Manuel Braun (mb@w69b.com)
/*
* Copyright 2008 ZXing authors
*
* 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/licens... | dsanders11/barcode.js | tests/reedsolomondecoder.spec.js | JavaScript | apache-2.0 | 2,927 |
var orig = {
from: 20,
to: 500
};
var board = tnt.board().from(orig.from).to(orig.to);
// reload button
var reload = d3.select(yourDiv)
.append("button")
.text("reset")
.style("margin", "10px")
.on("click", function () {
board.from(orig.from);
board.to(orig.to);
board.s... | tntvis/tnt.board | snippets/reload.js | JavaScript | apache-2.0 | 1,560 |
'use strict';
module.exports = {
get: 'SENSOR_MULTILEVEL_GET',
getParser: () => ({
'Sensor Type': 'Power (version 2)',
Properties1: {
Scale: 0,
},
}),
report: 'SENSOR_MULTILEVEL_REPORT',
reportParser: report => {
if (report && report.hasOwnProperty('Sensor Type') && report.hasOwnProperty('Sensor Value ... | timkouters/nl.timkouters.domitech | node_modules/homey-meshdriver/lib/zwave/system/capabilities/measure_power/SENSOR_MULTILEVEL.js | JavaScript | apache-2.0 | 454 |
const eg = require('../../eg');
module.exports = class extends eg.Generator {
constructor (args, opts) {
super(args, opts);
this.configureCommand({
command: 'list [options]',
description: 'List scopes',
builder: yargs =>
yargs
.usage(`Usage: $0 ${process.argv[2]} list [opt... | ExpressGateway/express-gateway | bin/generators/scopes/list.js | JavaScript | apache-2.0 | 717 |
// This THREEx helper makes it easy to handle window resize.
// It will update renderer and camera when window is resized.
//
// # Usage
//
// **Step 1**: Start updating renderer and camera
//
// ```var windowResize = THREEx.WindowResize(aRenderer, aCamera)```
//
// **Step 2**: Start updating renderer and camera
//... | hiroki-repo/hiroki-repo.github.com | game0001/public/lib/THREEx.WindowResize.js | JavaScript | apache-2.0 | 1,245 |
/**
* @author Swagatam Mitra
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, document, console, brackets, $, Mustache */
define(function (require, exports, module) {
"use strict";
require("resizer/BottomCenterResizer");
require("resizer... | HunseopJeong/WATT | libs/brackets-server/embedded-ext/swmitra.html-designer/ResizeHandler.js | JavaScript | apache-2.0 | 602 |
import { config, path, fs } from 'azk';
import h from 'spec/spec_helper';
import { Generator } from 'azk/generator';
import { Manifest } from 'azk/manifest';
var qfs = require('q-io/fs');
describe('Azk generator generation two nodes systems', function() {
var project = null;
var outputs = [];
var UI = h.mockUI(... | saitodisse/azk-travis-test | spec/generator/rules/generation/two_node_gen_spec.js | JavaScript | apache-2.0 | 1,473 |
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --expose-wasm
load("test/mjsunit/wasm/wasm-constants.js");
load("test/mjsunit/wasm/wasm-module-builder.js");
function testCallFFI(func, chec... | runtimejs/runtime | deps/v8/test/mjsunit/wasm/ffi.js | JavaScript | apache-2.0 | 6,653 |
/*
* 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 required by applicable law or agreed to in writing, software
* distribu... | wu560130911/MultimediaDesktop | Client/src/main/webapp/resources/desktop/app/UserManager/store/UserStore.js | JavaScript | apache-2.0 | 1,100 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | apache/devicemap-browsermap | Gruntfile.js | JavaScript | apache-2.0 | 10,049 |
var contextName = getContextName(); //return page context such as ACS
var week = new Array('یك شنبه', 'دوشنبه', 'سه شنبه', 'چهار شنبه', 'پنج شنبه', 'جمعه', 'شنبه');
function getContextName() {
var i = location.href.indexOf('/', 8);
var j = location.href.indexOf('/', i + 1);
return location.href.subst... | azizkhani/StarterKitProject | target/starter/Scripts/Naji/base.js | JavaScript | apache-2.0 | 21,019 |
//========================================================================
// 存储器属性
//========================================================================
var p = {
//普通属性
x: 1.0,
y: 1.0,
//$符号暗示这个属性是私有属性,但仅仅是暗示
$n: 0,
//存储器属性
get r() {
return Math.sqrt(this.x * this.x + this.y *... | Ztiany/CodeRepository | Web/JavaScriptDefinitiveGuide-Core/06_对象/03_getter_setter.js | JavaScript | apache-2.0 | 732 |
/**
* Copyright 2013-2020 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | PierreBesson/generator-jhipster | utils/index.js | JavaScript | apache-2.0 | 909 |
describe('Coordinate', function () {
describe('has various constructors', function () {
it('can be created by a coordinate array', function () {
var c = new maptalks.Coordinate([0, 0]);
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
});
it('can be c... | MapTalks/layertalks | test/geo/CoordinateSpec.js | JavaScript | apache-2.0 | 3,726 |
// --- ping-content -------------------------------
import $ from 'jquery'
import {debugMsg, spawnVdsm} from './helpers'
export function renderPing () {
var vdsmPingResponse = ''
spawnVdsm('ping', null,
function (data) { vdsmPingResponse += data },
function () { pingSuccessful(vdsmPingResponse) },
pin... | matobet/cockpit-ovirt | src/ping.js | JavaScript | apache-2.0 | 1,604 |
window.onresize=function(){
setFrame();
}
$(document).ready(function(){
setFrame()
});
function setFrame(){
var totalHeight = document.documentElement.clientHeight
|| window.innerHeight || docuemnt.body.clientHeight;
$('#container').css('height', totalHeight);
var headerHeight = $('#header').height();
var ... | igemsoftware/HFUT-China_2015 | static/js/simulation.js | JavaScript | apache-2.0 | 14,759 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | telefonicaid/fiware-cosmos-ambari | ambari-web/app/controllers/main/admin.js | JavaScript | apache-2.0 | 937 |
define(function (require) {
'use strict';
// require jquery and load plugins from the server
var plugins = require('plugins');
var alien4cloud = require('alien4cloud');
return {
startup: function() {
plugins.init().then(function(files, modules) {
require(files, function() {
requi... | xdegenne/alien4cloud | alien4cloud-ui/src/main/webapp/scripts/alien4cloud-bootstrap.js | JavaScript | apache-2.0 | 431 |
d2hStoreMenuItems("TX__2769", [["Documents/authorization.htm", "right", "Authorization"],["Documents/gloss_authorization1.htm", "d2hWnd_SecondaryPopup", "Authorization"]]); | vivantech/kc_fixes | src/main/webapp/static/help/AKLinks/TX__2769.js | JavaScript | apache-2.0 | 175 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/datafactoryManagement/lib/models/fileShareDataset.js | JavaScript | apache-2.0 | 6,074 |
/**
* Define public API for Angular here.
*/
export * from './change_detection';
export * from './core';
export * from './directives';
export * from './forms';
| lgalfaso/angular | modules/angular2/angular2.js | JavaScript | apache-2.0 | 162 |
import {Component} from '@angular/core';
import {Home} from '../home/home';
import {Conferences} from '../conferences/conferences';
import {Agenda} from '../agenda/agenda';
import {Accessmap} from '../accessmap/accessmap';
@Component({
templateUrl: 'build/pages/tabs/tabs.html'
})
export class TabsPage {
constructo... | worldline/TechForum2016 | app/pages/tabs/tabs.js | JavaScript | apache-2.0 | 535 |
/* @flow */
import { PropTypes } from 'react';
import { Map } from 'immutable';
import isString from 'lodash/isString';
import includes from 'lodash/includes';
import isUndefined from 'lodash/isUndefined';
import isEmpty from 'lodash/isEmpty';
import map from 'lodash/map';
import mapValues from 'lodash/mapValues';
impo... | kryptnostic/gallery | src/containers/async/AsyncStorage.js | JavaScript | apache-2.0 | 4,676 |
var westSideProp = {
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "PVANUM": 16548054, "PROPERTY_A": "451 ADDIE ST, LEX... | LexHousingStudies/LexHousingStudies.github.io | archive_spring2015/LANDLORDS/West Side Properties LLC.js | JavaScript | apache-2.0 | 10,871 |
'use strict';
var $ = require('jquery');
var $osf = require('js/osfHelpers');
var bootbox = require('bootbox');
var ko = require('knockout');
var oop = require('js/oop');
var Raven = require('raven-js');
var ChangeMessageMixin = require('js/changeMessage');
require('knockout.punches');
ko.punches.enableAll();
var U... | barbour-em/osf.io | website/static/js/accountSettings.js | JavaScript | apache-2.0 | 12,254 |
var MSG = {
title: "Codi",
blocks: "Blocs",
linkTooltip: "Desa i enllaça als blocs.",
runTooltip: "Executa el programa definit pels blocs de l'àrea de treball.",
badCode: "Error de programa:\n %1",
timeout: "S'ha superat el nombre màxim d'iteracions d'execució.",
trashTooltip: "Descarta tots els blocs.",
... | rachel-fenichel/blockly | demos/code/msg/ca.js | JavaScript | apache-2.0 | 1,052 |
(function($) {
$.fn.extend({
'events': function() {
return this.filter('.event');
},
'highlight': function() {
return this.events()
.removeClass('dimmed')
.addClass('highlighted');
},
'dim': function() {
retu... | leriomaggio/pycon_site | p3/static/p7/javascripts/schedule.js | JavaScript | bsd-2-clause | 28,339 |
/**
* Close Changeset
* http://wiki.openstreetmap.org/wiki/API_v0.6#Close:_PUT_.2Fapi.2F0.6.2Fchangeset.2F.23id.2Fclose
*/
module.exports = function (req, res, api, params, next) {
var parts = params.id.split(':')
var version = parts.length === 2 ? parts[1] : null
api.closeChangeset(parts[0], version, functio... | digidem/osm-p2p-server | routes/changeset_close.js | JavaScript | bsd-2-clause | 590 |
/*
json2.js
2013-05-26
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM S... | chop-dbhi/cilantro | src/js/json2.js | JavaScript | bsd-2-clause | 17,548 |
/*!
* OS.js - JavaScript Operating System
*
* Copyright (c) 2011-2015, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions o... | nelug/OS.js-v2 | src/javascript/dialogs/font.js | JavaScript | bsd-2-clause | 7,099 |
/*
* Tangram
* Copyright 2009 Baidu Inc. All rights reserved.
*/
///import baidu.array;
///import baidu.array.indexOf;
/**
* 判断一个数组中是否包含给定元素
* @name baidu.array.contains
* @function
* @grammar baidu.array.contains(source, obj)
* @param {Array} source 需要判断的数组.
* @param {Any} obj 要查找的元素.
* @return {boolean} 判... | BaiduFE/Tangram-base | src/baidu/array/contains.js | JavaScript | bsd-3-clause | 511 |
dw.derive.variable = function(x) {
var variable = dw.derive.expression();
variable.transform = function(values, table) {
var result = table[x].copy();
return result;
}
return variable;
}
| uwdata/profiler | wrangler/src/transform/derive/variable.js | JavaScript | bsd-3-clause | 197 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | htc2u/react-native | Libraries/Inspector/InspectorUtils.js | JavaScript | bsd-3-clause | 1,329 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Checks the RunMicrotasks event is emitted and nested into RunTask.\n`);
await TestRunner.loadModule('timelin... | scheib/chromium | third_party/blink/web_tests/http/tests/devtools/tracing/timeline-js/timeline-microtasks.js | JavaScript | bsd-3-clause | 1,650 |
function save(e, link) {
$.ajax(link.attr("href"), {
success: function(data, textStatus, jqXHR) {
link.hide();
link.closest("tr").addClass("success");
link.closest("tr").find("div.remove").show();
},
error: ajax_error_handler
});
e.preventDefault();
}
... | hellhovnd/dentexchange | dentexchange/apps/matches/static/matches/js/posting_automatches.js | JavaScript | bsd-3-clause | 1,161 |
/**
* Copyright 2020 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 required by applic... | ChromeDevTools/devtools-frontend | node_modules/puppeteer/lib/esm/puppeteer/common/fetch.js | JavaScript | bsd-3-clause | 889 |
/*!
* bootstrap 3 modal 封装
*/
(function ($) {
window.BSModal = function () {
var reg = new RegExp("\\[([^\\[\\]]*?)\\]", 'igm');
var generateId = function () {
var date = new Date();
return 'mdl' + date.valueOf();
}
var init = function (options) {
... | Mutueye/MutueyeWeb | src/apps/HaierAdmin/static/js/BSModal.js | JavaScript | mit | 7,097 |
/* eslint-disable no-undef */
import update from 'react/lib/update';
import { mapValues, pickBy } from 'lodash';
import { flow, keyBy, mapValues as mapValuesFp } from 'lodash/fp';
import * as types from '../types';
const cdn = window.location.host.startsWith('pre') || window.location.host.startsWith('localhost')
? '... | worona/worona | client/packages/core-dashboard-worona/src/dashboard/build-dashboard-extension-worona/reducers/assets.js | JavaScript | mit | 1,195 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | lmazuel/azure-sdk-for-node | lib/services/serviceFabric/lib/models/statefulServiceReplicaHealthState.js | JavaScript | mit | 1,913 |
// Copyright: All contributers to the Umple Project
// This file is made available subject to the open source license found at:
// http://umple.org/license
//
// Models history (undo stack) in UmpleOnline
History = new Object();
// History item currently on display; -1 means nothing saved.
History.currentIndex... | ahmedvc/umple | umpleonline/scripts/umple_history.js | JavaScript | mit | 4,793 |
/**
* @fileoverview 管道对象,包含过滤规则和被过滤的数据,作为数据树的节点
* @authors Tony Liang <pillar0514@163.com>
*/
define('mods/model/pipe',function(require,exports,module){
var $ = require('lib');
var $model = require('lib/mvc/model');
var $tip = require('mods/dialog/tip');
var $channel = require('mods/channel/global');
var $getD... | Esoul/log-analysis | src/js/mods/model/pipe.js | JavaScript | mit | 6,524 |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const path = require("path")
const jade = require("jade")
const fs = require("fs")
describe("templates", function () {
c... | joeyAghion/force | src/desktop/apps/galleries_institutions/components/dropdown/test/templates.test.js | JavaScript | mit | 3,005 |
// Github: https://github.com/shdwjk/Roll20API/blob/master/DarknessClosingIn/DarknessClosingIn.js
// By: The Aaron, Arcane Scriptomancer
// Contact: https://app.roll20.net/users/104025/the-aaron
var DarknessClosingIn = DarknessClosingIn || (function() {
'use strict';
var version = 0.1,
schemaVersion =... | maekstr/roll20-api-scripts | DarknessClosingIn/DarknessClosingIn.js | JavaScript | mit | 2,062 |
/**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#/documentation/concepts/ORM
*/
module.exports.models = {
/*******************************... | timkendall/vigil | config/models.js | JavaScript | mit | 1,443 |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationNetworkLocked = (props) => (
<SvgIcon {...props}>
<path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 14.5V16c-.55 0-1 .45-1 1v4c0 .55.4... | alvarolobato/blueocean-plugin | jenkins-design-language/src/js/components/material-ui/svg-icons/notification/network-locked.js | JavaScript | mit | 597 |
define([
'ufojs/main'
, 'ufojs/errors'
, 'ufojs/ufoLib/filenames'
, 'ufojs/ufoLib/validators'
, 'ufojs/ufoLib/glifLib/misc'],
function(
main
, errors
, filenames
, validators
, misc
) {
"use strict";
doh.register("ufoLib.glifLib.misc", [
/**
* this wraps ufoLib/filenames.userNam... | moyogo/ufoJS | tests/ufoLib/glifLib/misc.js | JavaScript | mit | 3,610 |
/* jshint maxlen: false */
var ca = require('../client_action');
var api = module.exports = {};
api._namespaces = ['cat', 'cluster', 'indices', 'nodes', 'snapshot'];
/**
* Perform a [abortBenchmark](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request
*
* @param {Obj... | Christopheraburns/projecttelemetry | node_modules/elasticsearch/src/lib/apis/1_3.js | JavaScript | mit | 164,513 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Microsoft/ChakraCore | test/Closures/bug_OS_9008744.js | JavaScript | mit | 802 |
module.exports = {
'name': 'mad',
'category': 'Statistics',
'syntax': [
'mad(a, b, c, ...)',
'mad(A)'
],
'description': 'Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.',
'exam... | ocadni/citychrone | node_modules/mathjs/lib/expression/embeddedDocs/function/statistics/mad.js | JavaScript | mit | 447 |
var HtmlWebpackPlugin = require('html-webpack-plugin')
var HTMLWebpackPluginConfig = new HtmlWebpackPlugin({
template: __dirname + '/app/index.html',
filename: 'index.html',
inject: 'body'
});
module.exports = {
entry: [
'./app/index.js'
],
output: {
filename: "index_bundle.js",
path: __dirname... | absurdSquid/thumbroll | client/desktop/webpack.config.js | JavaScript | mit | 548 |
define({
"selectAnalysisTools": "Selecione ferramentas de análise para utilizar no widget.",
"graphicalDisplay": "Visualização gráfica",
"toolSetting": "Configurar detalhes da ferramenta",
"toolLabel": "O nome de visualização da ferramenta",
"showHelpTip": "Mostrar links de ajuda no widget",
"showCurrentMap... | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/Analysis/setting/nls/pt-br/strings.js | JavaScript | mit | 4,520 |
module.exports = {
'baseURL': process.env.BASEURL ? process.env.BASEURL.replace(/\/$/, '') : 'http://localhost:4000',
'waitTime': isNaN(parseInt(process.env.TIMEOUT, 10)) ? 5000 : parseInt(process.env.TIMEOUT, 10),
'before': function() {
/* eslint-disable no-console */
console.log('WaitTime ... | JoeSava/developer-dot | _test/browser/api-reference/avatax.js | JavaScript | mit | 8,117 |
#!/usr/bin/env node
/*
The MIT License (MIT)
Copyright (c) 2007-2013 Einar Lielmanis and contributors.
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 ... | J2TeaM/js-beautify | js/lib/cli.js | JavaScript | mit | 14,890 |
var util = require('util');
/**
* @param options {Object} A data blob parsed from a query string or JSON
* response from the Asana API
* @option {String} error The string code identifying the error.
* @option {String} [error_uri] A link to help and information about the error.
* @option {String} [error_descripti... | Asana/node-asana | lib/auth/oauth_error.js | JavaScript | mit | 761 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | Krzysztof-Cieslak/vscode | src/vs/css.build.js | JavaScript | mit | 17,970 |
DEMO.App.factory("utilitiesService", ["$http", function ($http) {
"use strict";
var getQueryStringValue = function (name) {
try {
var args = window.location.search.substring(1).split("&");
var r = "";
for (var i = 0; i < args.length; i++) {
var n = ... | dafunkphenomenon/dev | JSLinkModule/JSLinkModule/Scripts/app/services/utilities.js | JavaScript | mit | 618 |
'use strict';
var grunt = require('grunt');
var fs = require('fs');
var rimraf = require('rimraf');
var mkdirp = require('mkdirp');
var flow = require('nue').flow;
var as = require('nue').as;
var _h = require('./testHelpers');
var throwOrDone = _h.throwOrDone;
var output = _h.fixtures('output');
var istanbul = require... | acvetkov/grunt-istanbul | test/istanbul_test.js | JavaScript | mit | 4,311 |
// flow-typed signature: 5dc7d0ac7123cc9ec9614b8a8edda194
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.2.0/flow_v0.48.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-import'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share... | michalkvasnicak/spust | packages/spust/flow-typed/npm/eslint-plugin-import_vx.x.x.js | JavaScript | mit | 11,638 |
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.SoftwareRenderer = function () {
console.log( 'THREE.SoftwareRenderer', THREE.REVISION );
var canvas = document.createElement( 'canvas' );
var context = canvas.getContext( '2d' );
var imagedata = context.getImageData( 0, 0, canvas.width, canvas.height );
va... | juhnowski/J_and_K_Softlabs | httpdocs/js/renderers/SoftwareRenderer.js | JavaScript | mit | 7,441 |