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
document.querySelectorAll('._2GJb6>button, a[data-test=test-out-button]').forEach(item => item.parentNode.removeChild(item));document.querySelectorAll('.W1dac>span:first-child').forEach(item => {if((item.parentNode.nodeName === 'SPAN' || (item.querySelectorAll('span').length === 2))){item.parentNode.parentNode.removeCh...
pansay/tts_bookmarklets
duolingo_clear_full_new.js
JavaScript
unlicense
440
// jshint -W097 // jshint undef: true, unused: true /* globals require,document,__dirname,Float32Array,module*/ "use strict"; var fs = require("fs"); var glm = require("gl-matrix"); var webgl = require("./webgl.js"); var util = require("./util.js"); var rng = require("rng"); var NSTARS = 100000; module.exports = fu...
wwwtyro/proceduro
builtins/space-skybox/src/space-3d.js
JavaScript
unlicense
11,890
function Controller() { function doButtonClick() { Titanium.UI.createAlertDialog({ cancel: 1, buttonNames: [ "Confirm", "Cancel", "Info" ], message: "Would you like to delete the file?", title: "Delete" }).show(); } require("alloy/controllers/B...
andrewrowatt-masseyuni/HelloWorldTitaniumStudio1
Resources/alloy/controllers/index.js
JavaScript
apache-2.0
3,540
var gulp = require('gulp'); var path = require('path'); var args = require('yargs').argv; var gulpConfig = require('./gulp.config')(); var notify = require("gulp-notify"); var $ = require('gulp-load-plugins')({ lazy: true }); function tattle(msg) { var nn = require('node-notifier'); nn.notify({ t...
JeremyJStarcher/free-flow-solver
src/gulpfile.js
JavaScript
apache-2.0
3,340
/** * 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 applic...
appsforartists/eslint-config-google
index.js
JavaScript
apache-2.0
1,259
/* * 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 ...
koentjev/phonebuildtest
www/js/index.js
JavaScript
apache-2.0
4,606
sap.ui.define([ 'sap/m/MessageToast', 'sap/ui/core/mvc/Controller' ], function(MessageToast, Controller) { "use strict"; var PageController = Controller.extend("sap.m.sample.HeaderContainerVM.Page", { press : function(evt) { MessageToast.show("Fire press"); } }); return PageController; });
SAP/openui5
src/sap.m/test/sap/m/demokit/sample/HeaderContainerVM/Page.controller.js
JavaScript
apache-2.0
304
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict'; const name = "add-polyline"; const pathData = "M0 144V98l179 117L292 64l109 145 79-113 32 19-110 156-110-147-105 141-111-74zm402 257v-73h36v73h74v36h-74v73h-36v-73h-73v-36h73z"; const ltr = false; const co...
SAP/openui5
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/add-polyline.js
JavaScript
apache-2.0
544
const yapi = require('yapi.js'); const baseModel = require('models/base.js'); class advMockModel extends baseModel { getName() { return 'adv_mock'; } getSchema() { return { interface_id: { type: Number, required: true }, project_id: {type: Number, required: true}, enable: {type: Boolea...
YMFE/yapi
exts/yapi-plugin-advanced-mock/advMockModel.js
JavaScript
apache-2.0
1,182
/* * Author: @senthil2rajan * plugin: timepicker * website: senthilraj.github.io/Timepicki */ (function($) { $.fn.timepicki = function(options) { var defaults = { format_output: function(tim, mini, meri) { if (settings.show_meridian) { // limit hours between 1 and 12 - inculsive. ...
danwood/tyr_website
js/timepicki.js
JavaScript
apache-2.0
17,405
var semver = require("./semver"); var descriptors = require("./descriptors"); var log = require("ringo/logging").getLogger(module.id); var {version} = require("ringo/engine"); const ENGINE_VERSION = semver.cleanVersion(version.join(".")); var Resolver = exports.Resolver = function(registry, mode) { var resolved ...
grob/rp
lib/utils/resolver.js
JavaScript
apache-2.0
11,142
/*! * Copyright 2012 Sakai Foundation (SF) Licensed under the * Educational Community 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.osedu.org/licenses/ECL-2.0 * * Unless required by applicable...
Coenego/3akai-ux
mobile/js/views/components/Modal.js
JavaScript
apache-2.0
2,739
"use strict"; var collName = "daemons"; const async = require("async"); const soajsLib = require("soajs.core.libs"); var methods = { "findEntries": function (soajs, model, opts, cb) { opts.collection = collName; model.findEntries(soajs, opts, (err, records)=>{ if (err){ return cb(err); } if (records...
soajs/soajs.dashboard
models/daemons.js
JavaScript
apache-2.0
1,408
import React, { PropTypes } from 'react' import '../../styles/core.scss' import Header from '../../components/header' import Player from '../../components/player' // Note: Stateless/function components *will not* hot reload! // react-transform *only* works on component classes. // // Since layouts rarely change, they a...
stranbury/react-miuus
src/layouts/CoreLayout/CoreLayout.js
JavaScript
apache-2.0
869
/* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import Page from './Page'; import Link from '../components/Link'; storiesOf('Design|Guidelines', module) .addParameters({ options: { showPanel: false, isToolshown: false } }) .add('Development', () => ( <P...
wfp/ui
src/documentation/Development-story-depreciated.js
JavaScript
apache-2.0
977
/** * @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/utils/group-in/lib/index.js
JavaScript
apache-2.0
2,317
var classadbase_1_1_timer_item = [ [ "TimerItem", "d0/db0/classadbase_1_1_timer_item.html#a72988b767c5f2d44d3e7d0da58837d33", null ], [ "~TimerItem", "d0/db0/classadbase_1_1_timer_item.html#a605e9a82245eeccfe12f96ccf93aab1b", null ], [ "setDelTimerCallback", "d0/db0/classadbase_1_1_timer_item.html#a9eb85cc8...
weiboad/adbase
docs/d0/db0/classadbase_1_1_timer_item.js
JavaScript
apache-2.0
659
// @flow import injectSheet from "react-jss"; import classNames from "classnames"; import React from "react"; import { Badge } from "../components/Badge"; type Props = { classes: any, className: any, status: string, labelFormatter?: string => string }; const StatusComponent = ({ classes, className, sta...
criteo/cuttle
frontend/javascript/common/components/Status.js
JavaScript
apache-2.0
1,914
/*global define */ /* | Copyright 2014 Esri | | 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 o...
adrianwelsh/adrianwelsh.github.io
js/nls/ja/resources.js
JavaScript
apache-2.0
1,456
/** * @author fanguozhu */ function isMappingEquals(m1,m2) { if (m1==m2){ return true; } return isArrayEquals(m1.master,m2.master)&&isArrayEquals(m1.sub,m2.sub); } function isArrayEquals(a1,a2) { if (a1==a2){ return true; } for (var i=0;i<a1.length;i++){ if (a1[i]!=a2[i]) { return false; } } ...
stserp/erp1
source/web/por2/demo/Demo/Demo.js
JavaScript
apache-2.0
2,740
'use strict' var log = require('tracer').colorConsole({dateformat: 'yyyy-mm-dd HH:MM:ss.L'}); /* * * Get home page * */ module.exports = function(app){ app.get('/', function(req, res) { log.debug('/', req.session.user); // auth if (!req.session.user){ req.flash('success', ...
viney/express-mvc
app/routes/dashboard.js
JavaScript
apache-2.0
478
"use strict"; const helper = require("../../../helper.js"); const BL = helper.requireModule('bl/index.js'); const assert = require('assert'); let user = { _id: "5d7fee0876186d9ab9b36492", locked: true, username: "tony", password: "$2a$12$geJJfv33wkYIXEAlDkeeuOgiQ6y6MjP/YxbqLdHdDSK7LDG.7n7Pq", firstName: "tony", ...
soajs/soajs.urac
test/unit/bl/lib/inviteUsers.test.js
JavaScript
apache-2.0
7,872
// 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...
luxas/dashboard
src/test/frontend/replicationcontrollerdetail/replicationcontrollerinfo_controller_test.js
JavaScript
apache-2.0
3,791
/** * Appshaper XML Parser Module * @module XML * @desc Used to parse XML. * @author Jeroen Reurings * * @copyright Copyright © 2015 Jeroen Reurings, all rights reserved. * @license Licensed under the Apache License, Version 2.0 (the "License"); * You may not use this file except in compliance with the L...
appshaper/appshaper
src/modules/xhr/parser/xml.js
JavaScript
apache-2.0
1,406
import Utils from '../../../utils/utils'; export default function (event) { const swiper = this; const data = swiper.touchEventsData; const { params, touches, rtl, $wrapperEl, slidesGrid, snapGrid, } = swiper; let e = event; if (e.originalEvent) e = e.originalEvent; if (data.allowTouchCallbacks) { ...
uvalib/staff-directory
bower_components/swiper/src/components/core/events/onTouchEnd.js
JavaScript
apache-2.0
8,598
(function($){ $.addGrid = function(t,p) { if (t.grid) return false; //return if already exist // apply default properties p = $.extend({ height: 200, //default height width: 'auto', //auto width striped: true, //apply odd even stripes novstripe: false, minwidth: 30, //min width of co...
Himkwok/TaxEasy
Aptana Jaxer/public/demo/Oa/static/js/jquery-1.5.1/jquery.datagrid.js
JavaScript
apache-2.0
42,581
angular.module('uiRouterSample.settings.service', ['ngCookies']) .factory('settingsFactory', ['$http', '$cookieStore', 'utils', function($http, $cookieStore, $scope, utils) { var settingsFactory = {}; settingsFactory.all = function() { var url = $cookieStore.get('AdminURL') + '/settings/' + $cookieSt...
CrunchyData/crunchy-postgresql-manager
images/cpm/www/v3/app/settings/settings-service.js
JavaScript
apache-2.0
763
/* * Copyright 2018 Rundeck, Inc. (http://rundeck.com) * * 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...
rundeck/rundeck
rundeckapp/grails-app/assets/javascripts/ko/binding-message-template.js
JavaScript
apache-2.0
689
allUsersData = { color: '#FF9D00', name: 'All Users', data: [ [1412670305162,0],[1412670306162,0],[1412670307162,0],[1412670308162,0],[1412670309162,0],[1412670310162,0],[1412670311162,0],[1412670312162,0],[1412670313162,0],[1412670314162,0],[1412670315162,0],[1412670316162,0],[1412670317162,0],[1412670318162,0]...
myunusov/spe
doc/testresult/baseapp/js/all_sessions.js
JavaScript
apache-2.0
596
exports.row = { text: 'La dette de l\'État est l\'ensemble des emprunts que ce dernier a émis ou garantis et dont l\'encours (c\'est à dire le montant total des emprunts) résulte de l\'accumulation des déficits de l\'État.', source: 'Aucune', link: '', slug: 'dette', }
project-orion/orion
data/definitions/dette.js
JavaScript
apache-2.0
292
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jec_exchange_1 = require("jec-exchange"); const ContextRootUtil_1 = require("../util/contextroot/ContextRootUtil"); const UrlUtils_1 = require("../util/url/UrlUtils"); const ResourceProxy_1 = require("../services/http/proxy/ResourceProxy...
pechemann/jec-glasscat-core
dist/com/onsoft/glasscat/core/SecurityManager.js
JavaScript
apache-2.0
6,673
/* * Copyright 2016 Studentmediene i Trondheim AS * * 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 ...
Studentmediene/anthropos
src/main/webapp/app/javascript/services/userListService.js
JavaScript
apache-2.0
1,363
import DateNative from '../../src/widget/date-native/datepicker-native'; import { testStaticProperties, testBasicInstantiation, } from '../helpers/test-widget'; const FORM = `<label class="question"> <input name="/data/date" type="date" data-type-xml="date" readonly /> </label>`; testStaticPropert...
enketo/enketo-core
test/spec/widget.date-native.spec.js
JavaScript
apache-2.0
791
exports.tableTemplete = function(dataArray){ var tableView = Ti.UI.createTableView({ width:Ti.UI.FILL, height:Ti.UI.FILL, selectionStyle: Titanium.UI.iPhone.TableViewCellSelectionStyle.NONE, backgroundColor:"#F5F1E9", prependMovie:"none", old_row:"null", leastId:0, }); var tableViewData= {new_data:...
techcamp15-tokyo-1/decoboco
Resources/UI/timelineTemplete.js
JavaScript
apache-2.0
10,008
'use strict'; require('should'); var LAMPApp = require('../../lib/plugins/TaskRunner/LAMPApp'); var mockContainer = { log: {child: function() {}}, build: { links: { build: 'http://abc123.probo.build', }, }, }; describe('LAMP App', function() { var options = { database: 'my-cool-db.sql', ...
ProboCI/probo
test/tasks/LAMPApp.js
JavaScript
apache-2.0
6,158
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; exports.messages = exports.ruleName = void 0; var _utils = require("../../utils"); var _stylelint = require("stylelint"); var ruleName = (0, _utils.namespace)("at-if-no-null"); exports.ruleName = ruleName; ...
kyleterry/sufr
pkg/ui/node_modules/stylelint-scss/dist/rules/at-if-no-null/index.js
JavaScript
apache-2.0
1,557
!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;return n.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(n){var e=n.input.length-n.maximum,r="너무 깁니다. "+e+" 글자 지워주세요.";return r},inputTooShort:funct...
moxuanchen/BMS
core/static/assets/libs/AdminLTE/plugins/select2/i18n/ko.js
JavaScript
apache-2.0
771
/* Copyright 2016 ElasticBox 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 law or agreed to in w...
ElasticBox/elastickube
src/ui/app/instances/ek-customize-deployment/ek-customize-deployment.controller.js
JavaScript
apache-2.0
1,535
/** * Broadcast updates to client when the model changes */ 'use strict'; var hvd = require('./hvd.model.js'); exports.register = function(socket) { hvd.schema.post('save', function (doc) { onSave(socket, doc); }); hvd.schema.post('remove', function (doc) { onRemove(socket, doc); }); } function on...
utwente/lisa-telefonie
server/api/hvd/hvd.socket.js
JavaScript
apache-2.0
451
/*! * Copyright 2013 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
Coenego/Hilary
node_modules/oae-tincanapi/lib/model.js
JavaScript
apache-2.0
3,329
'use strict'; /** * Requirements * @ignore */ const Parser = require('../Parser.js').Parser; const DocBlockParser = require('./DocBlockParser.js').DocBlockParser; const DocumentationExample = require('../../model/documentation/DocumentationExample.js').DocumentationExample; const ContentType = require('../../model/...
entoj/entoj-system
source/parser/documentation/ExampleParser.js
JavaScript
apache-2.0
2,593
'use strict'; var Zookeeper = require('../lib/zookeeper').Zookeeper; var host = process.env['KAFKA_TEST_HOST'] || ''; var zk; var uuid = require('uuid'); var should = require('should'); // Helper method function randomId () { return Math.floor(Math.random() * 10000); } describe('Zookeeper', function () { this.re...
dyf102/TinyURL
server/node_modules/kafka-node/test/test.zookeeper.js
JavaScript
apache-2.0
10,154
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSpeakerNotesOff(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ic...
mineral-ui/mineral-ui
packages/mineral-ui-icons/src/IconSpeakerNotesOff.js
JavaScript
apache-2.0
730
/** * 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...
lzanol/amphtml
src/service/viewer-impl.js
JavaScript
apache-2.0
29,589
/* * GET index */ exports.index = function(req, res){ res.render('index', { title: 'Express' }); }; /* * GET anotherPage */ exports.anotherPage = function(req, res){ res.render('anotherPage', { title: 'Express' }); };
robertg/nodejs-boilerplate-appfog
routes/index.js
JavaScript
apache-2.0
230
/** * Extracts the timestamp of a date, if the input is a date. Otherwise * just returns the input back * @param {*} input * @returns {*} */ module.exports = function (input) { if (input && input.getTime) { return input.getTime(); } else { return input; } };
hscasn/type-parser
test/utils/getTimeIfDate.js
JavaScript
apache-2.0
295
'use strict'; // dont touch var plugin = []; // dont touch this.command = []; // dont touch this.commandName = []; // dont touch this.gamemodeId = []; // dont touch this.gamemode = []; // dont touch this.addToHelp = []; // dont touch // [General] this.name = "GiveMeMinionsToo"; // Name of plugin REQUIRED this.author...
AJS-development/OgarUL-Plugin-Library
givememinionstoo/index.js
JavaScript
apache-2.0
3,870
exports.createThreadsView =function(){ var TempHtmlname ='threadsHTML'; var viewVisible = true; var PlatformWidth=Ti.Platform.displayCaps.platformWidth; var PlatformHeight=Ti.Platform.displayCaps.platformHeight; var _iphoneType = PlatformHeight >700 ? 'iphonePlus' :(PlatformHeight>600 ? 'iphone6':'ipho...
huaidan123456/NewLineWow
Resources/ui/ThreadsWintest.js
JavaScript
apache-2.0
15,351
define([ 'underscore', 'backbone', 'models/webtool' ], function(_, Backbone, webToolModel){ var webToolCollection = Backbone.Collection.extend({ model: webToolModel }); return webToolCollection; });
mobilizingcs/navbar
collections/webtools.js
JavaScript
apache-2.0
214
/** * Copyright 2016 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...
shawnbuso/amphtml
test/functional/test-chunk.js
JavaScript
apache-2.0
12,313
define({"topics" : [{"title":"<span class=\"ph\">Data Collector Edge</span> New Features and Enhancements\n ","href":"datacollector\/UserGuide\/WhatsNew\/WhatsNew_Title.html#concept_jgf_vyk_1hb","attributes": {"data-id":"concept_jgf_vyk_1hb",},"menu": {"hasChildren":false,},"tocID":"concept_jgf_vyk_1hb-d46e3...
streamsets/datacollector
docs/generated/oxygen-webhelp/app/nav-links/json/concept_lvk_lsk_1hb-d46e3167.js
JavaScript
apache-2.0
341
var Timer = function() { // Property: Frequency of elapse event of the timer in millisecond this.Interval = 1000; // Property: Whether the timer is enable or not this.Enable = new Boolean(false); // Event: Timer tick this.Tick; // Member variable: Hold interval id of the timer var timerId = 0; // Member va...
cuc2017/scoreReporting
src/main/resources/static/js/timer.js
JavaScript
apache-2.0
706
'use strict'; var gulp = require('gulp'); var conf = require('./conf'); var browserSync = require('browser-sync'); var browserSyncSpa = require('browser-sync-spa'); var util = require('util'); var proxyMiddleware = require('http-proxy-middleware'); function browserSyncInit(baseDir, browser) { // var routes = null...
AvaPirA/alpenditrix.com
ineluki/gulp/server.js
JavaScript
apache-2.0
1,436
module.exports = function(app, config) { app.use(function(req, res, next) { if(req.url.indexOf('/auth/auth/login') === 0 || req.session.cas_user_name) { return next(); } else { res.redirect('/auth/cas/login'); } }); config.cas_server_url = config.cas_server_url.replace(/\s+$/g, ''); a...
AdoHe/jcas
example/cas-auth.js
JavaScript
apache-2.0
1,399
/* * Copyright 2020 Verizon Media * * 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 t...
yahoo/athenz
ui/src/__tests__/components/modal/DeleteModal.test.js
JavaScript
apache-2.0
2,001
// Init var gulp = require('gulp'); var jshint = require('gulp-jshint'); var stylish = require('jshint-stylish'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var less = require('gulp-less'); var paths = { js: [ './bower_components/jquery/dist/jquery.js', './bower_c...
alexleonard/base-template
gulpfile.js
JavaScript
apache-2.0
1,974
var win = Titanium.UI.currentWindow; win.showNavBar(); var data = [ {title:'HI-FI Sound Systems', hasChild:true, header:'Audio'}, {title:'Audio Accessories', hasChild:true }, {title:'CD/Radio/Cassette', hasChild:true }, {title:'Digital Radio', hasChild:true }, {title:'Docking Stations', hasChild:true }, {...
peterscheffer/The-Good-Guys-Retail-Mobile-App
Resources/src/catalog_page.js
JavaScript
apache-2.0
5,128
(function() { /** * Config */ var moduleName = 'com.github.jlgrock.informatix.workmanager'; module = angular.module(moduleName); module.controller('accountsCtrl', function ($scope, $http, $log, $location, stateKeeper, processResponse) { /** * Handle State base...
Deloitte-VA/workmanager
src/main/webapp/controllers/accounts.js
JavaScript
apache-2.0
2,739
var utils = require('../util/utils'), moment = require('moment'), _ = require('underscore'); exports.getBlog = function (req, res, callback) { var message = utils.messageFactory(), params = { blogToken : req.param('blogToken') }; if (!params.blogToken) { throw(new Error('Blog token not submitted.')); ...
oliverm2112/ng-blog
server/js/dao/blog.js
JavaScript
apache-2.0
907
const config = require('../CONFIG.json') let command = "pause" let pause = { command: command, usage: config.botPrefix + " " + command , description: "Pauses playback", process: function(bot, msg, suffix) { let connection = bot.voiceConnections.find(voiceConnection => voiceConnection.channel.gui...
TJALambert/MuBot
commands/pause.js
JavaScript
apache-2.0
535
/* * Copyright DataStax, 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 wri...
datastax/nodejs-driver
test/unit/event-debouncer-tests.js
JavaScript
apache-2.0
8,404
var searchData= [ ['protocolversion',['ProtocolVersion',['../class_accela_1_1_windows_store_s_d_k_1_1_http_web_response_wrapper.html#af04dfa73545b0ef3270dafa6a3624ef8',1,'Accela::WindowsStoreSDK::HttpWebResponseWrapper']]], ['proxy',['Proxy',['../class_accela_1_1_windows_store_s_d_k_1_1_http_web_request_wrapper.htm...
Accela-Inc/Windows-SDK
Doxygen/doc/html/search/properties_c.js
JavaScript
apache-2.0
414
// Options: --types --type-assertions --type-assertion-module=./resources/assert var a = { B: class {} }; var b : a.B = new a.B(); assert.throw(() => { var c : a.B = 42; });
mathiasbynens/traceur-compiler
test/feature/TypeAssertions/TypeName.js
JavaScript
apache-2.0
181
function dftreal_n_contents( dftsize ) { var cache = (dftreal_n_contents._cache || (dftreal_n_contents._cache = {})); if (!(dftsize in cache)) { var h3_arr = document.getElementsByTagName( 'h3' ) , c_arr = [] ; for (var n = h3_arr.length, i = 0; i < n; i++) { ...
glathoud/flatorize
test/speed_test_c_fftw/dftreal_n_contents.js
JavaScript
apache-2.0
1,138
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var users = require('./routes/users'); var app = express()...
garrows/canvas-basics-tutorial
app.js
JavaScript
apache-2.0
1,496
'use strict'; const formats = {}; formats["10Digits.json"] = require("./formats/10Digits.json"); formats["2Digits.json"] = require("./formats/2Digits.json"); formats["3Digits.json"] = require("./formats/3Digits.json"); formats["4Digits.json"] = require("./formats/4Digits.json"); formats["5Digits.json"] = require("./f...
Cimpress-MCP/postal-codes-js
formats-web.js
JavaScript
apache-2.0
3,480
// Karma configuration // Generated on Fri Apr 24 2015 18:03:55 GMT-0400 (EDT) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '../', // frameworks to use // available frameworks: https://npmjs.org/browse/keywor...
kentendo/k-alert
test/karma.conf.js
JavaScript
apache-2.0
1,724
var Index = function () { // function to initiate Chart 1 var runChart1 = function () { function randValue() { return (Math.floor(Math.random() * (1 + 40 - 20))) + 20; }; var pageviews = [ [1, randValue()], [2, randValue()], [3, 2 + randVal...
tufanbarisyildirim/fbgroup
assets/js/index.js
JavaScript
apache-2.0
17,981
var express = require('express'); var router = express.Router(); var graficosMySql = require('./graficos_mysql'); router.get('/ventas', function (req, res) { var query = req.query; if (query.codmacta==null) { graficosMySql.FacturasMesCli(1, function (err, cobros) { if (err) { ...
icedrum/ariconta6
api/lib/graficos/graficos_controller.js
JavaScript
apache-2.0
3,423
/* Copyright (c) 2007, iUI Project Members See LICENSE.txt for licensing terms */ (function() { var slideSpeed = 20; var slideInterval = 0; var currentPage = null; var currentDialog = null; var currentWidth = 0; var currentHash = location.hash; var hashPrefix = "#_"; var pageHistory = []; var...
intel-hadoop/HiTune
chukwa-hitune-dist/src/web/hicc/js/iui.js
JavaScript
apache-2.0
10,307
(function e(t, n, r) { function s(o, u) { if (!n[o]) { if (!t[o]) { var a = typeof require == "function" && require; if (!u && a) return a(o, !0); if (i) return i(o, !0); var f = new Error("Cannot find module '" + o + "'"); ...
comic/comic-django
app/grandchallenge/core/static/js/markdownx.js
JavaScript
apache-2.0
24,056
var shufflemeHackathons = (function($) { "use strict"; let $grid = $("#about-hackathons #grid"); //locate what we want to sort let $filterMajorOptions = $("#portfolio-hackathon-major-sorting li"); //locate the filter categories let $filterMinorOptions = $("#portfolio-hackathon-minor-sorting li"); //locate the f...
xonixx/cml-site-jekyll
_includes/js/about-hackathons.js
JavaScript
apache-2.0
5,688
/* WebRTC PubNub Controller * Author: Kevin Gleason * Date: July 15, 2015 * Description: A wrapper library for the PubNub WebRTC SDK to make simple video * functions a breeze to implement. * * TODO: make getVideoElement a native non-jQuery function * */ (function(){ var CONTROLLER = window.CON...
francispires/francispires.github.io
kennybaker/js/rtc-controller.js
JavaScript
apache-2.0
9,188
/** * @license Apache-2.0 * * Copyright (c) 2020 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/scumax/examples/index.js
JavaScript
apache-2.0
1,078
/** * @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/array/uint16/benchmark/benchmark.of.js
JavaScript
apache-2.0
1,206
//Application Window Component Constructor function ApplicationWindow() { //load component dependencies var FirstView = require('ui/common/FirstView'); //create component instance var self = Ti.UI.createWindow({ backgroundColor:'#ffffff', navBarHidden:true, exitOnClose:true }); //construct UI var f...
datsuns/MemoCalculator
Resources/ui/handheld/android/ApplicationWindow.js
JavaScript
apache-2.0
482
alert("hi there")
behramcelen/folder_db_backup
new.js
JavaScript
apache-2.0
18
const path = require("path"); const glob = require("glob"); function loadReadModels(logger) { return glob .sync(path.resolve(__dirname, '../readModels/*.js')) .map(filePath => { const model = require(filePath); const name = path.basename(filePath, '.js'); logger.info('Registering read model...
Adaptech/nota
api/src/infra/initRead.js
JavaScript
apache-2.0
1,386
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
todaychi/hue
desktop/core/src/desktop/static/desktop/js/assist/assistCollectionEntry.js
JavaScript
apache-2.0
4,513
var classorg_1_1onlab_1_1osgi_1_1ComponentContextAdapter = [ [ "disableComponent", "classorg_1_1onlab_1_1osgi_1_1ComponentContextAdapter.html#ac72a5dec8e7a93b1a9027faee095e354", null ], [ "enableComponent", "classorg_1_1onlab_1_1osgi_1_1ComponentContextAdapter.html#ab40fa4267e5e096d1625c8c8f6592c48", null ], ...
onosfw/apis
onos/apis/classorg_1_1onlab_1_1osgi_1_1ComponentContextAdapter.js
JavaScript
apache-2.0
1,345
sap.ui.define([ 'jquery.sap.global', './Formatter', 'sap/ui/core/mvc/Controller', 'sap/ui/model/json/JSONModel', 'sap/m/Button', 'sap/m/Dialog', 'sap/m/Text' ], function(jQuery, Formatter, Controller, JSONModel, Button, Dialog, Text) { "use strict"; var TableController = Controller.extend("view.Table", { o...
cschuff/openui5
src/sap.m/test/sap/m/demokit/sample/TableTest/applicationUnderTest/view/Table.controller.js
JavaScript
apache-2.0
1,513
/* * 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 ...
f7753/ignite
modules/web-console/src/main/js/app/modules/states/configuration/clusters/logger/custom.directive.js
JavaScript
apache-2.0
1,021
/*! * Bootstrap Customizer (http://getbootstrap.com/customize/) * Copyright 2011-2016 Twitter, Inc. * * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see https://creativecommons.org/licenses/by/3.0/. */ /* global JSON, JSZip, less, autoprefixer, saveAs, UglifyJS, __configBr...
Prymon/markbook
view/lib/bower_components/bootstrap/docs/assets/js/src/customizer.js
JavaScript
apache-2.0
16,461
/** * @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/unc-path/lib/regexp.js
JavaScript
apache-2.0
4,804
define(['lodash'], function (_) { 'use strict'; describe('Controller.About', function () { beforeEach(angular.mock.module('app.controllers')); describe('When Initialising', function () { var scope, versionService; beforeEach(angular.mock.inject(function ($q) { ...
bendras/bdd-webapi-angular-seed
WebApplication/AngularJsApp/tests/controllers/aboutController.spec.js
JavaScript
apache-2.0
1,288
var searchData= [ ['word',['Word',['../classqsense_1_1hash_1_1_m_d5.xhtml#abba8743dda9b7a9f4e60a7c0aec1be09',1,'qsense::hash::MD5']]] ];
sidecar-io/sidecar-arduino-sdk
doc/html/search/typedefs_8.js
JavaScript
apache-2.0
139
var mysql = require("mysql-as-promised").mysqlAsPromised; var config = require("../config"); var pool = mysql.createPool(config.database); module.exports = pool;
NotificationSync/ns-server
lib/db.js
JavaScript
apache-2.0
163
/* * Copyright (c) 2008, WSO2 Inc. (http://www.wso2.org) 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 ...
maheshika/carbon-mediation
components/mediation-ui/mediators-ui/org.wso2.carbon.mediator.script.ui/src/main/resources/web/script-mediator/js/mediator-util.js
JavaScript
apache-2.0
7,256
/** * @copyright Copyright 2016 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
GoogleCloudPlatform/PerfKitExplorer
client/components/dashboard/versions/dashboard-schema_11.js
JavaScript
apache-2.0
2,285
import { NEXT_STEP, PREVIOUS_STEP, PREPARE_EVALUATION, SUBMIT_RESULT, SHOW_CONFIRM_DIALOG, CLOSE_CONFIRM_DIALOG } from '../actions/evaluation'; function evaluation(state = {}, action) { switch(action.type) { case PREPARE_EVALUATION: return Object.assign({}, state, { totalStep: action.totalS...
liming/hellosleep-site
src/client/reducers/evaluation.js
JavaScript
apache-2.0
1,086
var Clock = require('./com/jeshu/cars/CarsGame.js'); Clock.init('main-canvas'); // module.exports = application;
jeshu/node-play
scripts/application.js
JavaScript
apache-2.0
113
/** * @license Apache-2.0 * * Copyright (c) 2020 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/blas/ext/base/gnansum/examples/index.js
JavaScript
apache-2.0
1,076
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('speakingPartsApp')); var MainCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); MainCtrl = $...
erochest/speaking-parts
test/spec/controllers/main.js
JavaScript
apache-2.0
601
/* * Template Name: Fungroo * Description: Business, Corporate, Portfolio and Blog Theme. * Version: 1.4 * Author: @htmlstream * Website: http://htmlstream.com */ var App = function () { function handleIEFixes() { //fix html5 placeholder attribute for ie7 & ie8 if (jQuery.brows...
chanchal1971/fungroo
assets/js/app.js
JavaScript
apache-2.0
8,730
import loader from 'monaco-loader'; import { remote } from 'electron'; import FileManager from './util/filemanager'; import EditorRenderer from './core/editorrender' import dataX from './util/datax' const {Menu}=remote import Menur from './core/menu' loader().then((monaco) => { var editor = monaco.editor.create(docu...
Lewiskong/Electron-Code-Editor-mul
src/renderer.js
JavaScript
apache-2.0
636
import {identityLinkSubmodule} from 'modules/identityLinkIdSystem.js'; import * as utils from 'src/utils.js'; import {server} from 'test/mocks/xhr.js'; import {getStorageManager} from '../../../src/storageManager.js'; export const storage = getStorageManager(); const pid = '14'; const defaultConfigParams = { params: ...
passit/Prebid.js
test/spec/modules/identityLinkIdSystem_spec.js
JavaScript
apache-2.0
5,913
var THREE = require('three'); var ScapeStuff = require('../stuff'); var M4 = THREE.Matrix4; var ScapeCameraAddon = require('./addons/camera'); // ------------------------------------------------------------------ /** * Returns a mesh array for a tower crane. * @param {Object} options used to specify properties of...
DanielBaird/scapejs
src/scape/itemtypes/crane.js
JavaScript
apache-2.0
6,907
/* Javascript plotting library for jQuery, version 0.8.1. Copyright (c) 2007-2013 IOLA and Ole Laursen. Licensed under the MIT license. */ // first an inline dependency, jquery.colorhelpers.js, we inline it here // for convenience /* Plugin for jQuery for working with colors. * * Version 1.1. * * Inspiration from...
xuelinyi/scott
src/main/webapp/views/assets/flot/jquery.flot.js
JavaScript
apache-2.0
126,048
var mongoose = require('mongoose'), Schema = mongoose.Schema; var log = require("../log"); var red_util = require("../util"); var bcrypt; try { bcrypt = require('bcrypt'); } catch (e) { bcrypt = require('bcryptjs'); } var settings; var NodeSchema = new Schema({ key: String, version: Number, deplo...
Ubicall/node-red
red/ubicall/mongos.js
JavaScript
apache-2.0
2,272
/** * dat-gui JavaScript Controller Library * http://code.google.com/p/dat-gui * * Copyright 2011 Data Arts Team, Google Creative Lab * * 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 ...
herevrush/dat-gui-mobile
src/dat/controllers/NumberControllerSlider.js
JavaScript
apache-2.0
5,593