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
(function() { 'user strict'; angular.module('sbAdminApp.core') .factory('LSFactory', LSFactory); function LSFactory() { var LSAPI = { clear: function() { return localStorage.clear(); }, get: function(key) { return JSON.pars...
icedrum/ariconta6
app/core2/core.lsfactory.service.js
JavaScript
apache-2.0
641
// Includes Ti.include('functions/utils.js'); // Hide to clear space clearDashboard(); // Main window var main = Ti.UI.createWindow({ backgroundImage: 'img/background_editorial.png', orientationModes: [Ti.UI.PORTRAIT], opacity: 0, width: 768, left: -768, title: 'editorial' }); main.addEventListener('focus', fu...
wdmchaft/Acry-Sof-Tv
Resources/editorial.js
JavaScript
apache-2.0
1,346
var restify = require('restify'); var ecstatic = require('ecstatic'); var serverSettings = require('./server_settings.js'); var dbController = require('./controllers/DataStoreController.js'); var matchmaking = require('./controllers/MatchmakingController.js'); dbController.setup({username:'ubuntu', password:'', hostnam...
UofM-COMP4350-4/NBGI
server/server.js
JavaScript
apache-2.0
5,016
angular.module('dashboardApp', ['trafficLight']);
bartvanherck/dashboard
www/js/app/app.module.js
JavaScript
apache-2.0
50
angular.module('app.routes').controller('RouteUnmapCtrl', ['$scope', '$modalInstance', '$log', 'route', 'routeService', 'messageService', function($scope, $modalInstance, $log, route, routeService, messageService) { $scope.route = route; $scope.application = { 'id': $scope.route.applicationId }; $scope.app...
icclab/cf-webui
src/app/components/route/routeUnmapCtrl.js
JavaScript
apache-2.0
861
/* * jQuery OwlCarousel v1.22 * * Copyright (c) 2013 Bartosz Wojciechowski * http://www.owlgraphic.com/owlcarousel * * Licensed under MIT * */ // Object.create function if ( typeof Object.create !== "function" ) { Object.create = function( obj ) { function F() {}; F.prototype = obj; return new F(); };...
svendavison/SvenNinjaWebsite
src/ci-site/newsite/js/owl.carousel.js
JavaScript
apache-2.0
28,763
var helper; helper = require('./lib/helper'); console.log(helper.currentPath());
virtoolswebplayer/node-learning-examples
gulp-demo/build/index.js
JavaScript
apache-2.0
83
/* * 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 may ...
HazelwoodSoftware/identity-management-service
identity-management-service-web-ui/src/main/javascript/idms/constants/constants.js
JavaScript
apache-2.0
1,067
'use strict'; var _ = require('lodash'); var moment = require('moment'); var jwt = require('jwt-simple'); var bcrypt = require('bcrypt'); var jwtTokenSecret = 'YOUR_SECRET_STRING'; // Get list of logins exports.index = function(req, res) { res.json([]); }; exports.checkLogIn = function(req, res) { var input = J...
salvadoracosta/SS
server/api/login/login.controller.js
JavaScript
apache-2.0
2,075
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/math/strided/special/sqrt/lib/native.js
JavaScript
apache-2.0
1,144
import createMuiTheme from "@material-ui/core/styles/createMuiTheme" import { getThemeOptions } from "muy" const baseTheme = createMuiTheme({ palette: { primary: { main: "#207987", light: "#2FADC1", contrastText: "#FFFFF2", }, secondary: { dark: "#b25b19", main: "#FF8225", ...
educodar/educodar.github.io
src/themes/index.js
JavaScript
apache-2.0
1,578
var Promise = require('bluebird'); var express = require('express'); var path = require('path'); var database = require('./database'); var authentication = require('./authentication'); var app = express(); // Add database access to the request (req) variable app.use(database.addToRequest); // The login path app.get('...
Arubaruba/moodle-engagement
node/index.js
JavaScript
apache-2.0
1,560
/** * Copyright 2018 The AMP HTML Authors. 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 require...
koshka/amphtml
extensions/amp-subscriptions/0.1/test/test-local-subscriptions.js
JavaScript
apache-2.0
11,192
/** * Copyright 2015 IBM Corp. * * 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 wr...
kwiatks/node-red-bluemix-nodes
watson/pi.js
JavaScript
apache-2.0
2,296
import { Application } from 'stimulus' import InputmaskController from 'inputmask_controller' describe('InputmaskController', () => { beforeEach(() => { document.body.innerHTML = '<input data-controller="inputmask" type="text" id="actor_orcid">' const application = Application.start() application.regist...
psu-stewardship/scholarsphere
spec/javascript/inputmask_controller.test.js
JavaScript
apache-2.0
784
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var nodePath = require('path'); var cwd = process.cwd(); /** * Function to pull out and map the specific bower component metadata to our preferred form * @param {Object} bowerInfo * @returns {{name: String, commit: String, release: String, src: String, orig...
infusionsoft/bower-locker
bower-locker-common.js
JavaScript
apache-2.0
2,581
'use strict'; angular.module('moviefanApp') .controller('MovieDetailController', function ($scope, $stateParams, Movie, Genre) { $scope.movie = {}; $scope.load = function (id) { Movie.get({id: id}, function(result) { $scope.movie = result; }); }; ...
ozkangokturk/moviefan
src/main/webapp/scripts/app/entities/movie/movie-detail.controller.js
JavaScript
apache-2.0
360
var gulp = require('gulp'); var concat = require('gulp-concat'); var less = require('gulp-less'); /*var less = require('gulp-less-sourcemap');*/ var minifyCSS = require('gulp-minify-css'); var sourcemaps = require('gulp-sourcemaps'); gulp.task('scripts', function () { gulp.src([ 'src/js/libs/jquery.easing....
NadirZenith/amagency-html
gulpfile.js
JavaScript
apache-2.0
1,084
// common includes var flatten = require('../../utils/flatten'); var should = require('chai').should(); // handler specific includes var handler = require('../../hooks/push'); var payload = require('../fixtures/push.json'); describe('push', function () { it('returns expected keys', function () { var response = ...
rikeoka/github_logger
test/hooks/push_test.js
JavaScript
apache-2.0
840
var util = require('util') function UnknownEngineError () { // Super constructor Error.call(this) // Super helper method to include stack trace in error object Error.captureStackTrace(this, this.constructor) this.message = 'Unable to determine nodejs engine. Please report this bug' } util.inherits(Unknown...
westfieldlabs/environment_validator
lib/errors/unknown_engine_error.js
JavaScript
apache-2.0
438
// All the sysnchronous action creators for Instaurant import actionTypes from './actionTypes'; export const receiveCategories = categories => ( { type: actionTypes.RECEIVE_CATEGORY, categories, } ); export const fetchingCategories = () => ({ type: actionTypes.FETCHING_CATEGORY }); export con...
walkman-kuan/Instaurant
src/app/actions/actionCreator.js
JavaScript
apache-2.0
2,503
/** * Created by Bharat on 3/24/14. * Description: Ridiculous tests. */ var should = require('should'); var assert = require('assert'); describe ('Test Framework', function() { it('should have Mocha installed and running.', function() { assert.equal (true, true); }) it('should have the should l...
bruparel/BeerBeer
tests/tests.js
JavaScript
apache-2.0
424
Ext.define('SysApp.view.code.syscode.center.south.locale.SysCodeLocaleForm',{ extend: 'PmhTech.form.Panel', alias: 'widget.sys-code-locale-form', controller: 'sys-code-locale-form', layout: 'column', defaults: { columnWidth: 0.5, margin: '0 5 5 5' }, bodyPadding: 5, bord...
pmhtech/extjs
sys/classic/src/view/code/syscode/center/south/locale/SysCodeLocaleForm.js
JavaScript
apache-2.0
2,839
var socket_util_8h = [ [ "closesocket", "socket-util_8h.html#afdbb9d84bd17efd2ae7290e664992c48", null ], [ "DSCP_DEFAULT", "socket-util_8h.html#a6240b4c521d391f364add0fdf8ba696a", null ], [ "SS_NTOP_BUFSIZE", "socket-util_8h.html#a2bcf1129de1aac8542c39ad2177c5ef4", null ], [ "af_inet_ifreq_ioctl", "sock...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/socket-util_8h.js
JavaScript
apache-2.0
3,132
// Copyright 2022 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
googleapis/nodejs-ai-platform
samples/generated/v1beta1/prediction_service.predict.js
JavaScript
apache-2.0
3,003
/** * * Copyright 2015 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 app...
lyle-sigurdson/news-aggregator
scripts/app.js
JavaScript
apache-2.0
7,037
(function() { module.exports.register = function(Handlebars, options) { var path = require('path'); Handlebars.registerHelper('assets-demo', function(dirname) { var dir = ! dirname.hash ? dirname : this.page.dirname; var assetsDemo = 'dist/demos/assets/demo/'; var relativePath = path.relat...
richwidgets/richwidgets
src/demos/helpers/helper-assetsDemo.js
JavaScript
apache-2.0
423
import Interface from 'interface.json'; import Core from '_core.js'; import Option from 'components/global-nav/top-nav/help/option/option'; import Template from './group.html'; import './group.scss'; /** * Creates a Group * * @class */ class Group extends Core { constructor(options) { super(options); thi...
hyoshizumi/hig
packages/vanilla/src/components/global-nav/top-nav/help/group/group.js
JavaScript
apache-2.0
661
import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import { action } from '@ember/object'; export default class NewDirectoryDialog extends Component { @tracked directoryName = ''; @tracked validationError = null; directoryValidation = [ { message: 'Directory name ...
mnutt/davros
app/components/new-directory-dialog.js
JavaScript
apache-2.0
1,021
var lexer = require('./../../hsp/expressions/lexer'); describe('lexer', function () { describe('empty input', function () { it('should return an empty array of tokens for empty input', function () { expect(lexer()).to.eql([]); expect(lexer('')).to.eql([]); expect(lexer(...
ariatemplates/hashspace
test/expressions/lexer.spec.js
JavaScript
apache-2.0
8,193
var RTCPeerConnection = null; var getUserMedia = null; var attachMediaStream = null; var reattachMediaStream = null; var webrtcDetectedBrowser = null; if (navigator.mozGetUserMedia) { console.log("This appears to be Firefox"); webrtcDetectedBrowser = "firefox"; // The RTCPeerConnection object. RTCPeerConnect...
zhaoyou/livemeeting
webRTC/js/adapter.js
JavaScript
apache-2.0
2,287
function makeAjaxCall(options, errorAction, block, blockElement) { if (block) { if (blockElement) { blockElement.block({ message: 'Carregando...' }); } else { $.blockUI({ message: 'Carregando...' }); } } return $.ajax(options) .fail(f...
jplindgren/controlador.net
Gerenciador.Web.UI/Scripts/custom/ajaxCall.js
JavaScript
apache-2.0
757
var jQueryReadyStack = []; function addJQueryStack(func) { if (typeof jQuery === "undefined") jQueryReadyStack.push(func); else if (typeof func === "function") func(); } function execJQueryStack() { while (jQueryReadyStack.length > 0) { var func = jQueryReadyStack.pop(); i...
samerzmd/GradleBuilderWeb
GradleBuildWeb/Scripts/common.js
JavaScript
apache-2.0
1,938
'use strict'; define('group', ['sjcl', 'keystore'], function (sjcl, keystore) { var onSuccess = function (response) { var entry = keystore.decrypt(response.content); keystore.displayGroup(response.id, entry); $('#add-group-form').trigger('reset'); }; var onFail = function (status...
olivierperez/TouchYourPass
js/group.js
JavaScript
apache-2.0
855
function RegisterValue(vectorClock, value) { this.value = value; this.vectorClock = vectorClock; } /** * @returns {{}} */ RegisterValue.prototype.toSimpleObject = function (){ var array = {}; array.value = this.value; array.vectorClock = this.vectorClock.getInternalVector(); return array; }; ...
santiagocasti/collab
components/crdt/registerValue.js
JavaScript
apache-2.0
534
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "groups"; thi...
dreamfactorysoftware/titanium-sdk
Resources/iphone/alloy/controllers/groups.js
JavaScript
apache-2.0
2,452
/** * Dialog that runs all scripts in the suite and keeps track of scripts being run. */ builder.dialogs.runall = {}; builder.dialogs.runall.dialog = null; builder.dialogs.runall.versionToSettings = {}; builder.dialogs.runall.currentScriptOnly = false; builder.dialogs.runall.currentRunIndex = -1; builder.dialogs.ru...
rholt94/selenium-builder
seleniumbuilder/content/html/builder/dialogs/runall.js
JavaScript
apache-2.0
11,249
var Donation = BaseModel.extend({ urlRoot: "/api/donation", defaults: { }, initialize: function() { // this.on("change:paymentMethod", function(model, value, options) { // console.log("payment method changed:"+value); // }); } });
uibootcamp94040/bootcamp1
app/www/js/models/donation.model.js
JavaScript
apache-2.0
243
import $ from 'jquery'; export default function() { $(() => { if (window.location.pathname.indexOf('lunchtransactions.html') === -1) { var newLaunchBox = $('#ptgNewLaunchBox'); // Removes Older Launch link newLaunchBox.find('p').eq(2).remove(); // Rename Gradebook Launch header...
IronCountySchoolDistrict/pt-gradebook
src/scripts/pt-gradebook/js/main.js
JavaScript
apache-2.0
401
require.config({ baseUrl: '', paths: { app: 'js/app', jquery: 'lib/jquery/jquery.min', backbone: 'lib/backbone', underscore: 'lib/underscore-min', }, shim: { underscore: { exports: '_' }, backbone: { deps: ['underscore', 'jquery'], exports: 'Backbone' } }, map: { '*': { 'css...
xyzxyz442/project-template-client
js/init.js
JavaScript
apache-2.0
597
StartTest(function(t) { //================================================================= t.diag("Simple grid assertions"); // Use a convenience method to generate the grid, keeping the test as small as possible var grid = t.getGrid({ style:'margin:20px', height:200, width...
department-of-veterans-affairs/ChartReview
web-app/js/siesta-3.0.1-lite/examples/2.ui-tests/grid/mouseover.t.js
JavaScript
apache-2.0
2,782
'use strict'; import React from 'react' export class Register extends React.Components { constructor(props){ super(props); this.state = {}; } render(){ return ( <div> <form> <input type="text" name="name" placeholder="name"/> ...
cpg1111/demo-maestro-app
services/client/public/js/auth/register.js
JavaScript
apache-2.0
696
var Highlighter = (function () { function Highlighter() { var _this = this; this.typePrefixes = ["class", "module", "namespace", "new"]; this.keywords = [ "any", "as", "boolean", "break", "case", "catch", "class", "const", "constructor", "continue", "declare", "default", ...
frhagn/Typewriter
docs/content/scripts/highlighter.js
JavaScript
apache-2.0
10,347
/* * 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 may ...
scottbw/wave-node
examples/undergroundempire/main.js
JavaScript
apache-2.0
7,060
const express = require('express'); const redis = require('redis'); const path = require('path'); const favicon = require('serve-favicon'); const logger = require('morgan'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const session = require('express-session'); const RedisS...
heby/node-authentication-example
app.js
JavaScript
apache-2.0
2,063
const express = require('express'); const hbs = require('hbs'); const http = require('http'); const db = require('./database'); const helmet = require('helmet'); const morgan = require('morgan'); const bodyParser = require('body-parser'); const cookieParser = require('cookie-parser'); const cookieSession = require('co...
jnsdrtlf/diffused
app/server.js
JavaScript
apache-2.0
3,400
let next_timerender_id = 0; const set_to_start_of_day = function (time) { return time.setMilliseconds(0).setSeconds(0).setMinutes(0).setHours(0); }; // Given an XDate object 'time', returns an object: // { // time_str: a string for the current human-formatted version // formal_time_str: a string ...
synicalsyntax/zulip
static/js/timerender.js
JavaScript
apache-2.0
11,076
import React, { PureComponent } from 'react'; import Layout from '../components/layout'; import Footer from '../components/footer'; import { Helmet } from 'react-helmet'; var request = require('superagent'); export default class extends PureComponent { constructor(props) { super(props); this.state = { ...
YuyingWu/blog-modern
pages/crypto-calculator.js
JavaScript
apache-2.0
13,022
$(function() { var $tableBuild = $('#tableBuild'); $tableBuild.bootstrapTable({ idField: 'name', search: true, url: '/?type=getbuild', columns: [{ field: 'enable', title: 'Enable', checkbox: 'true' }, { ...
ac-pm/Inspeckage
app/src/main/assets/HTMLFiles/js/fingerprint.js
JavaScript
apache-2.0
1,237
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/stats/base/dists/normal/median/lib/median.js
JavaScript
apache-2.0
1,398
/* * Copyright 2009 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...
BladeRunnerJS/brjs-JsTestDriver
JsTestDriver/src-test/com/google/jstestdriver/javascript/PluginRegistrarTest.js
JavaScript
apache-2.0
3,778
/* * * EnvironmentEditPage * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import EnvironmentForm from 'components/EnvironmentForm'; import LoadingIndicator from 'components/LoadingIndicato...
fission/fission-ui
app/containers/EnvironmentEditPage/index.js
JavaScript
apache-2.0
3,196
import "../../components/Header/Header.component.js"; import Actions from "../../services/Action.service.js"; import Store from "../../services/Store.service.js"; import "./../../components/LoadingSpinner/LoadingSpinner.component.js" class DefaultLayout extends HTMLElement { connectedCallback() { var data;...
cloudspannerecosystem/harbourbridge
frontend/js/pages/DefaultLayout/DefaultLayout.page.js
JavaScript
apache-2.0
1,573
/** * di.console.editor.ui.VTplQuickEditor * Copyright 2012 Baidu Inc. All rights reserved. * * @file: vtpl的很粗暴的“可视化”编辑(代码也很粗暴~) * @author: sushuang(sushuang) * @depend: xui, xutil */ $namespace('di.console.editor.ui'); (function() { //------------------------------------------ // 引用 //-...
lxqfirst/bi-platform
designer/src/main/resources/public/report-ui/src/biz-console/di.console.editor.ui/vtpl-quick-editor.js
JavaScript
apache-2.0
25,637
"use strict"; /* istanbul ignore file */ Object.defineProperty(exports, "__esModule", { value: true }); const visitor_1 = require("../visitor"); const enum_1 = require("../enum"); /** @ignore */ const sum = (x, y) => x + y; /** @ignore */ const variableWidthColumnErrorMessage = (type) => `Cannot compute the byte width ...
graphistry/arrow
visitor/bytewidth.js
JavaScript
apache-2.0
1,894
// Copyright 2006 The Closure Library Authors. 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 requ...
knutwalker/google-closure-library
closure/goog/debug/formatter.js
JavaScript
apache-2.0
9,254
/** * inputBindingsMixin makes two-way bindings available for props declared * on a component, by added a computed property with a getter and setter * for each property. The convention used is to create a computed property with "Input" appended * to the original property name. E.g. property "name" will have corresp...
bcgov/gwells
app/frontend/src/common/inputBindingsMixin.js
JavaScript
apache-2.0
1,881
const express = require('express'); const wrap = require("../../../middleware/async-wrapper.js"); const models = require("../../../models"); var router = express.Router(); // Create router.get("/new", wrap(async (req, res) => { return res.render("cms/categories/new"); })); router.post("/", wrap(async (req, res) =>...
urban-knight/dmcc-website
routes/cms/routers/categories.js
JavaScript
apache-2.0
7,862
'use strict'; /** * Module dependencies */ var storeroomsPolicy = require('../policies/storerooms.server.policy'), storerooms = require('../controllers/storerooms.server.controller'); module.exports = function(app) { // Storerooms Routes app.route('/api/storerooms').all(storeroomsPolicy.isAllowed) .get(st...
cNille/belongings
modules/storerooms/server/routes/storerooms.server.routes.js
JavaScript
apache-2.0
634
var express = require('express') var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: false })) // parse application/json app.use(bodyParser.json()) app.set('port', (process.env.PORT || 5000)) app.use(express.static(__dirname + '/public')) app.get('/', function(r...
mahroof92/test
index.js
JavaScript
apache-2.0
673
/* * Copyright 2016-present Open Networking Laboratory * * 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 appli...
donNewtonAlpha/onos
web/gui/src/main/webapp/app/view/topo2/topo2Host.js
JavaScript
apache-2.0
4,878
'use strict'; const apiai = require('apiai'); const express = require('express'); const bodyParser = require('body-parser'); const uuid = require('node-uuid'); const request = require('request'); const JSONbig = require('json-bigint'); const async = require('async'); const bb_scrape = require('./bb_scrape'); const R...
raroque/Samantha
src/app.js
JavaScript
apache-2.0
15,081
/* * Copyright 2017 Wultra s.r.o. * * 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...
lime-company/lime-security-powerauth-webauth
powerauth-webflow/src/main/js/components/bankAccountSelect.js
JavaScript
apache-2.0
3,911
/** * Copyright 2015 The AMP HTML Authors. 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 require...
rsimha-amp/amphtml
test/unit/test-3p.js
JavaScript
apache-2.0
7,595
/* Copyright JS Foundation and other contributors, http://js.foundation * * 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 r...
gabrielschulhof/jerryscript
tests/jerry/fail/module-010.js
JavaScript
apache-2.0
749
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.react'; ReactDOM.render( <App />, document.getElementById('app') )
majunbao/xue
react-flux/demo01/js/app.js
JavaScript
apache-2.0
167
var gulp = require('gulp'), gutil = require('gulp-util'), jshint = require('gulp-jshint'), browserify = require('gulp-browserify'), concat = require('gulp-concat'), sass = require('gulp-sass'); // JSHint task gulp.task('lint', function() { gulp.src('./app/scripts/*.js') .pipe(jshint()) // Yo...
chloeleichen/birthday
gulpfile.js
JavaScript
apache-2.0
1,502
/* TODO: - create better data structure than _sad_ tabRules -> better code structure - communicate exclusively by ports (instead of accepting panel's chrome.runtime.sendMessage) - workaround for clearing cache - when applyingRules, push to panel, in case of _backend_ change - handle port disconnects - Isn...
rodyhaddad/SACE
background.js
JavaScript
apache-2.0
3,418
/** * @license Apache-2.0 * * Copyright (c) 2021 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/string/pascalcase/lib/main.js
JavaScript
apache-2.0
2,344
/* 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 in writing, software dis...
mauricionr/simpl
serviceworker/sw.js
JavaScript
apache-2.0
2,562
/** * The Import/Export module performs JSON serialization and deserialization of all module data and metadata * * Contents only accessible via RESTful APIs. * * @module Ozone.Services.ImportExport * @class Ozone.Services.ImportExport * @submodule Server-Side * @requires async * @requires fs * @requir...
ozone-development/depricated-ozp-center
ozone-modules/ozone-services-importer-exporter/services/importerApi.js
JavaScript
apache-2.0
11,078
export {default as WorldMap} from './world'; export {default as EuropeMap} from './europe'; export {default as USAMap} from './usa2'; export {default as CountryInfo} from './countryInfo';
grainier/carbon-analytics
components/org.wso2.carbon.status.dashboard.web/src/gadgets/chart-components/resources/MapData.js
JavaScript
apache-2.0
191
var base = require('./base'); var nock = require('nock'); var url = require('url'); var fs = require('fs'); var path = require('path'); var success_data = fs.readFileSync(path.join(__dirname,'fixtures', 'github_success.js')); exports.test_example_minimum = function(test, assert) { base.run_test(test, assert, 'examp...
racker/gutsy
tests/middleware_tests/test_github.js
JavaScript
apache-2.0
1,629
var porta = 3000, uri = "http://localhost:" + porta + "/api", candidato, eleitor, cargos = [], numMap = { "btn0": "0", "btn1": "1", "btn2": "2", "btn3": "3", "btn4": "4", "btn5": "5", "btn6": "6", "btn7": "7", "btn8": "8", ...
Gamarote/EleicaoInterface
public/js/script.js
JavaScript
apache-2.0
9,660
/** * @author Headspring Labs */ API_KEY= 'b6d34c3af91d62ab0ae00ab1b6fa8733'; API_SECRET = '2c631802c2285d5d5d1502462fe42a2b'; var fmcache; var lastfm; $(window).load(function() { // create a Cache object fmcache = new LastFMCache(); // create a LastFM object lastfm = new LastFM({ apiKey ...
HeadspringLabs/Mopidy-Headspring-Web
mopidy_headspring_web/static/js/lastfm.js
JavaScript
apache-2.0
1,581
var webservices = require("libraryWS"), header = require("HeaderRow"); function resources(json, entry) { var data = []; var labs = json.computers; var pcHeader = new header.HeaderRow("Available Computers"); data.push(pcHeader); for(var i=0; i < json.computers.length; i++) { var labRow...
uwoshkosh/uwo-mobile-alloy
app/controllers/polkComputers.js
JavaScript
apache-2.0
2,097
/** * -------------------------------------------------------------------- * jQuery-Plugin "pngFix" * Version: 1.2, 09.03.2009 * by Andreas Eberhard, andreas.eberhard@gmail.com * http://jquery.andreaseberhard.de/ * * Copyright (c) 2007 Andreas Eberhard * Licensed under GPL (http://www.opens...
nextreports/nextreports-server
webapp/js/jquery.pngFix.js
JavaScript
apache-2.0
4,736
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
stdlib-js/www
public/docs/api/latest/@stdlib/stats/base/dists/logistic/quantile/benchmark_bundle.js
JavaScript
apache-2.0
911,906
/* jslint es3: false */ /* global module:false, console:false, process:false */ module.exports = function(grunt) { 'use strict'; grunt.initConfig({ /*----------------------------------( PACKAGE )----------------------------------*/ /** * The `package.json` file belongs in the root ...
iamchriswick/kung-fu-starter-template
work/Gruntfile.js
JavaScript
apache-2.0
15,472
/*globals define, WebGMEGlobal*/ define([ 'deepforge/viz/CodeControl', 'js/Constants' ], function ( CodeControl, CONSTANTS ) { 'use strict'; var TabbedTextEditorControl; TabbedTextEditorControl = function (options) { this._logger = options.logger.fork('Control'); this._...
dfst/deepforge
src/visualizers/panels/TabbedTextEditor/TabbedTextEditorControl.js
JavaScript
apache-2.0
5,707
/** Copyright 2015 Jason Drake 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 ...
stamp-web/stamp-web-aurelia
src/resources/value-converters/filter-by-name.js
JavaScript
apache-2.0
986
/* * $Id: combinatorics.js,v 0.25 2013/03/11 15:42:14 dankogai Exp dankogai $ * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * References: * http://www.ruby-doc.org/core-2.0/Array.html#method-i-combination * http://www.ruby-doc.org/core-2.0/Array.htm...
TheFabFab/RowingClub
RowingTeams/combinatorics.js
JavaScript
apache-2.0
9,126
const createRegistry = require("./registry").createRegistry; const createCredentials = require("./credentials"); const createFlows = require("./flows").create; const NodeCreator = require("./Node").create; function createNodes(PN){ const credentials = createCredentials(PN); PN.credentials = credentials; const ...
monteslu/pagenodes
src/backend/runtime/nodes/index.js
JavaScript
apache-2.0
3,597
initSidebarItems({"struct":[["RouterBuilder","Builder for a router"]]});
lambdastackio/tokio-http2
docs/tokio_http2/router/builder/sidebar-items.js
JavaScript
apache-2.0
72
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/regexp/dirname/test/test.js
JavaScript
apache-2.0
3,281
//<![CDATA[ function addEvent(object, eventType, handler, useCapture){ //IE if(object.attachEvent){ object.attachEvent("on" + eventType, handler); } //Other browsers else if (object.addEventListener) { object.addEventListener(eventType, handler, useCapture); } ...
mcvela/richui-two
web-app/js/util/util.js
JavaScript
apache-2.0
335
/* * Copyright (C) 2013 salesforce.com, 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 ...
lhong375/aura
aura-impl/src/test/javascript/aura/AuraEventServiceTest.js
JavaScript
apache-2.0
3,318
//header of general chat opens and closes $(document).on('click', '.chat_header', function() { $('.chat_box').toggleClass('active'); $('#chat_conversation').scrollTop($('#chat_conversation')[0].scrollHeight); }); //Submits message to general chat $(document).on('submit', '#create_messge_form', function(){ var ...
BUTeam3/CS673-Project
src/main/resources/static/js/chat.js
JavaScript
apache-2.0
1,788
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
stdlib-js/www
public/docs/api/latest/@stdlib/stats/base/dists/chisquare/mean/benchmark_bundle.js
JavaScript
apache-2.0
882,385
import {FormBuilder, Validators} from 'angular2/angular2'; import {Page, NavController} from 'ionic/ionic' @Page({ templateUrl: 'app/<%= fileName %>/<%= fileName %>.html' }) class <%= jsClassName %> { constructor(nav: NavController ) { this.nav = nav; var fb = new FormBuilder(); this.loginForm = fb....
aayushkapoor206/whatshot
node_modules/ionic-framework/tooling/generators/page-login/page-login.tmpl.js
JavaScript
apache-2.0
535
// Copyright 2015 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 applicable...
edouardKaiser/dashboard
src/test/frontend/petsetlist/petsetlist_controller_test.js
JavaScript
apache-2.0
1,625
/** * Created by saint on 7/25/14. */ var api = { method:'jingdong.vas.subscribe.get', authorization:false, check:{ user_name:{ type:'String', required:true }, item_code:{ type:'String', required:true } } }; module.expor...
sainthsu/jos-sdk
api/jingdong.vas.subscribe.get.js
JavaScript
apache-2.0
329
/* ============================================================================ Copyright (C) 2006-2018 Talend Inc. - www.talend.com This source code is available under agreement available at https://github.com/Talend/data-prep/blob/master/LICENSE You should have received a copy of the agreement along with thi...
Talend/data-prep
dataprep-webapp/src/app/services/lookup/lookup-service.spec.js
JavaScript
apache-2.0
17,624
// Module dependencies var path = require('path'); var fs = require('fs'); var express = require('express'); var mongoose = require('mongoose'); var passport = require('passport'); var config = require(__dirname + '/app/config/config'); var log4js = require('log4js'); var app = express(); //日志模块 log4js.configure({ ...
jbkzty/-manageMent-background
server.js
JavaScript
apache-2.0
1,509
var _ = require('lodash'); var express = require('express'); var app = express(); var swaggerSpecMiddleware = require('../../index.js'); var exceptionsHandlers = { 'getExceptions': function () { throw "Sample exception message" }, 'getCustomExceptionsMessage': function () { throw {message: ...
kospiotr/swagger-spec-middleware
test/resources/customizedExceptionsApp.js
JavaScript
apache-2.0
1,166
var searchData= [ ['editablelistview_2ecs',['EditableListView.cs',['../_editable_list_view_8cs.html',1,'']]], ['editablelistviewrenderer_2ecs',['EditableListViewRenderer.cs',['../_editable_list_view_renderer_8cs.html',1,'']]], ['emailservice_2ecs',['EmailService.cs',['../_x_labs_8_platform_8_droid_2_services_2_em...
XLabs/xlabs.github.io
html/search/files_4.js
JavaScript
apache-2.0
7,518
$(document).ready(function() { //check all checkbox $('.container').on("click", 'input[name="all"]', function() { var status = $(this).is(':checked'); $('input[type="checkbox"]').attr('checked', status); }); $('.container').on("click", 'input[name="app"]', function() { var stat...
tarunkjain/drop2
www/DevOpsAssessment/js/index.js
JavaScript
apache-2.0
3,507
angular.module('dashboard.controllers').controller('HomeMenuCtrl', ['$scope', function($scope) { }]);
rstiller/crane
app/home/menu.js
JavaScript
apache-2.0
106
var mongoose = require('mongoose') mongoose.connect('mongodb://localhost/social', function () {   console.log('mongodb connected') }); module.exports = mongoose;
junechin/hello-mean
db.js
JavaScript
apache-2.0
167
var firstTime = true; function svgLoaded() { if (firstTime) { firstTime = false; var organ = window.location.search.substring(1); if (organ.length > 0) { highlight(organ, 'red'); } } } function highlight(organ, color) { var femaleSvg = document.getElementById('f...
iupui-soic/virtualhumanapp
www/scripts/humanbody.js
JavaScript
apache-2.0
1,907