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
/* dCodes Framework: (c) TemplateAccess */ var maxHeight = 400; $(function(){ $(".dc_scrollermenu > li").hover(function() { var $container = $(this), $list = $container.find("ul"), $anchor = $container.find("a"), height = $list.height() * 1.1, // make sur...
iCrany/ExtendLoveJ
Extend_loveJ(test)/WebContent/styles/blog/menus/scroller/js/dc_scroller_menu.js
JavaScript
apache-2.0
2,190
if(!dojo._hasResource["dojox.io.tests.xhrPlugins"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.io.tests.xhrPlugins"] = true; dojo.provide("dojox.io.tests.xhrPlugins"); dojo.require("dojox.io.xhrPlugins"); dojox.io.xhrPlugins.addXdr("http://xdrsup...
feklee/rotogame
source/dojo-release-1.3.0-src/release/dojo/dojox/io/tests/windowName.js
JavaScript
apache-2.0
2,215
steal.plugins('smart') .css('stylesheets/api_playground') .css('stylesheets/jquery_ui') .resources("jash") .controllers("main") .models("api_type") .views();
nich/smart_sample_apps
static/framework/api_playground/api_playground.js
JavaScript
apache-2.0
184
'use strict'; // copy webfonts const { readFileSync } = require('fs'), { resolve } = require('path'), devMode = process.env.NODE_ENV === 'dev', noop = (config) => null, Metalsmith = require('metalsmith'), autotoc = require('metalsmith-autotoc'), inp...
jan-molak/serenity-js
documentation/website/build.js
JavaScript
apache-2.0
5,470
define([], function() { 'use strict'; return withPublicApi; function withPublicApi() { this.before('initialize', function() { this.visalloData = {}; window.visalloData = this.visalloData; }); this.after('initialize', function() { this.on(docume...
visallo/visallo
web/war/src/main/webapp/js/data/withPublicApi.js
JavaScript
apache-2.0
1,237
'use strict'; const webpack = require('webpack'); const path = require('path'); module.exports = { entry: [ path.join(__dirname, 'app/client/js/main.js') ], output: { path: path.join(__dirname, 'dist/js'), filename: '[name].js', publicPath: '/js/' }, mode: 'production...
yuanying/aphrael
webpack.config.js
JavaScript
apache-2.0
1,356
/* See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Esri Inc. licenses this file to You 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 * ...
usgin/geoportal-server-catalog
geoportal-search/src/main/resources/gs/base/Val.js
JavaScript
apache-2.0
3,919
/** * @jsx React.DOM */ var TODO_COMPONENT = "\ /** @jsx React.DOM */\n\ var TodoList = React.createClass({\n\ render: function() {\n\ var items = this.props.items.map(function(item) {\n\ return <li>{item}</li>;\n\ });\n\ return <ul>{items}</ul>;\n\ }\n\ });\n\ \n\ var TodoCreate = React.create...
dschafer/react
docs/_js/examples/todo.js
JavaScript
apache-2.0
1,377
// @license // Copyright 2019 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 ...
PAIR-code/interpretability
bert-tree/script.js
JavaScript
apache-2.0
25,935
"use strict"; const params = { alert_words: ["alertone", "alerttwo", "alertthree", "al*rt.*s", ".+", "emoji"], }; zrequire("people"); zrequire("alert_words"); alert_words.initialize(params); people.add_active_user({ email: "tester@zulip.com", full_name: "Tester von Tester", user_id: 42, }); people....
brainwane/zulip
frontend_tests/node_tests/alert_words.js
JavaScript
apache-2.0
5,115
var converter = require('coordinator'); var geolib = require('geolib'); var csv = require('csv'); fn = converter('utm', 'latlong'); var g_data; csv().from.path(__dirname+'/data/fire_stations.csv').to.array(function(data) { g_data = data; }); exports.closest = function(query) { var closest_station; ...
rlabancz/casa-glass
webapp/fire_station.js
JavaScript
apache-2.0
982
var rune_dialog; // Rune functions function AssignRune(slot) { $.ajax({ type: 'get', url: '/profile/' + PROFILE_NAME + '/runes/assign/' + INSTANCE_ID + '/' + slot.toString() + '/' }).done(function (response) { rune_dialog = bootbox.dialog({ title: "Assign Rune", ...
PeteAndersen/swarfarm
herders/static/herders/js/monster_view.js
JavaScript
apache-2.0
17,664
console.log('3.js');
stryker-mutator/stryker
packages/mocha-runner/testResources/file-resolving/specs/3.js
JavaScript
apache-2.0
20
this.state.value -= parseInt(request.params.value, 0); request.result = this.state.value;
nikhilk/cloud.js
samples/hello/code/actions/calc/subtract.js
JavaScript
apache-2.0
90
/* * For serving resource */ var express = require("express"); var Promise = require("bluebird"); module.exports = function ($config, http, $invoke) { var express = require("express"); var expressApp = express(); expressApp.set("view engine", "jade"); expressApp.set("views", "./client/view"); ...
thoqbk/cloudpify
lib/resource-server.js
JavaScript
apache-2.0
2,497
var initEvent,initWinEvent; //激活弹出框事件 initEvent = function($modal,templatesSrc) { }; //请求弹出框数据,发布 initWinEvent = function(templatesSrc,iframeSrc,_callback){ var $parentBody = $(window.parent.document).find("body"); var $parentModal = $parentBody.find("#open_modal"); var tabIndex = $parentModal.attr('tabinde...
madfroglx/prod
zhujibank-webapp/src/main/webapp/app/scripts/modal.iframe.js
JavaScript
apache-2.0
2,227
'use strict'; module.exports = function (context) { return { 'CallExpression': function (node) { var callee; callee = node.callee; if ( callee.type === 'MemberExpression' && callee.object.name === 'Math' && callee.property.name === 'tan') context.report({ ...
NodeGuy/Deterministic.js
lib/ESLint rules/math-tan.js
JavaScript
apache-2.0
421
//>>built define("dojox/editor/plugins/nls/cs/AutoSave",{saveLabel:"Ulo\u017eit",saveSettingLabelOn:"Nastavit interval pro automatick\u00e9 ulo\u017een\u00ed",saveSettingLabelOff:"Vypnout automatick\u00e9 ulo\u017een\u00ed",saveSettingdialogTitle:"Automatick\u00e9 ulo\u017een\u00ed",saveSettingdialogDescription:"Ur\u01...
Caspar12/zh.sw
zh.web.site.admin/src/main/resources/static/js/dojo/dojox/editor/plugins/nls/cs/AutoSave.js
JavaScript
apache-2.0
702
var exec = require('cordova/exec'); var checkArgs = require('./checkArgs'); var Types = require('./Types'); var utils = require('./utils'); var findModel = utils.findModel; var normalizeDates = utils.normalizeDates; /** * setProps makes a result instance behaves like an array. * @param {RealmResults} result instanc...
airamrguez/cordova-plugin-realm
www/RealmResults.js
JavaScript
apache-2.0
4,510
'use strict'; var _ = require('underscore'); var utils = require('./panel_js/utils'); var appData = require('./panel_js/app_data'); var logger = require('../utils/logger'); var highlighter = require('./highlighter'); var isNode = require('./is_node'); var debugWindow; function closePanel() { debugWindow = null; ...
cgvarela/tungstenjs
src/debug/window_manager.js
JavaScript
apache-2.0
6,342
Alloy.Globals.extendsBaseViewController($, arguments[0]); $.exchangesTable.UIInit($, $.getCurrentWindow()); $.makeContextMenu = function(e, isSelectMode, sourceModel) { var menuSection = Ti.UI.createTableViewSection(); menuSection.add($.createContextMenuItem("新增汇率", function() { Alloy.Globals.openWindow("money/cu...
hoyoji/HoYoJi
app/controllers/money/currency/exchangeAll.js
JavaScript
apache-2.0
2,751
var express = require('express') var graphqlHTTP = require('express-graphql') var querySchema = require("./query.js") // Load the schema for our root level query const db = require("./database.js") // Get our database connection var app = express() // Setup the graphql url route app.use('/graphql', graphqlHTTP(...
t-fitz/GraphQL-Node-Example
server.js
JavaScript
apache-2.0
838
import Api, { Transforms } from '_/ovirtapi' import { put } from 'redux-saga/effects' import { callExternalAction } from './utils' import { setRoles, } from '_/actions' export function* fetchRoles (action) { const rolesApi = yield callExternalAction(Api.getRoles, action) if (rolesApi && rolesApi.role) { co...
oVirt/ovirt-web-ui
src/sagas/roles.js
JavaScript
apache-2.0
433
$(document).ready(function() { $.extend($.tablesorter.themes.bootstrap, { table : 'table table-bordered', caption : 'caption', header : 'bootstrap-header', footerRow : '', footerCells : '', icons : '', sortNone : 'bootstrap-icon-unsorted', sortAsc : 'icon-chevron-up glyphicon glyphicon-chevron-up', ...
arunkpatra/expense-tracker
src/main/webapp/scripts/tablesorter.js
JavaScript
apache-2.0
636
/* * @Author: Matthew Zygowicz * @Date: 2016-03-30 06:17:17 * @Last Modified by: Matthew Zygowicz * @Last Modified time: 2016-03-30 06:17:58 */ /* jshint node: true */ 'use strict'; var circle_of_death_cards = require('../lib/circle_of_death'); var games = require('../lib/games'); var never_have_i_ever_sayings = r...
goldsziggy/alexa_drinkmaster
src/globals.js
JavaScript
apache-2.0
1,439
/*! * ${copyright} */ // Provides control sap.ui.layout.form.ResponsiveGridLayout. sap.ui.define(['jquery.sap.global', 'sap/ui/layout/Grid', 'sap/ui/layout/GridData', './FormLayout', 'sap/ui/layout/library'], function(jQuery, Grid, GridData, FormLayout, library) { "use strict"; /** * Constructor for a new <cod...
olirogers/openui5
src/sap.ui.layout/src/sap/ui/layout/form/ResponsiveGridLayout.js
JavaScript
apache-2.0
42,556
//Generated on Tuesday, June 17, 2014 21:23:27 by the SCION SCXML compiler module.exports = (function(_x,_sessionid,_name,_ioprocessors,In){ var x; var $scion_early_binding_datamodel_has_fired= false; function $initEarlyBindingDatamodel(_event){ if(!$scion_early_binding_data...
mattoshry/SCION-CORE
test/tests/if-else/test0.sc.js
JavaScript
apache-2.0
10,828
var mDebugging=2 oCMenu=new makeCoolMenu("oCMenu") oCMenu.useframes=0 oCMenu.frame="frmMain" oCMenu.useNS4links=1 oCMenu.checkselect=0 oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/" oCMenu.onlineUrl="http://www.dhtmlcentral.com/" oCMenu.pagecheck=1 oCMenu.checkscroll=2 oCMenu.resizecheck=1 oCMenu....
drlouie/public-views
graphical-user-interface-scripting-central/javascript/coolMenus3/withoutframes/menu.js
JavaScript
apache-2.0
6,636
const mock = require('mock-require'); mock('redis', require('fakeredis')); const headerName = 'Authorization'; const request = require('supertest'); const should = require('should'); const services = require('../../../lib/services'); const credentialService = services.credential; const userService = services.user; co...
srcnix/express-gateway
test/policies/keyauth/keyauth.test.js
JavaScript
apache-2.0
6,064
/** * # Schema Delegation * * Schema delegation is a way to automatically forward a query (or a part of a query) from a parent schema to another schema (called a _subschema_) that is able to execute the query. Delegation is useful when the parent schema shares a significant part of its data model with the subsche...
BigBoss424/portfolio
v8/development/node_modules/graphql-tools-fork/dist/delegate/index.js
JavaScript
apache-2.0
7,725
AmCharts.AmFallback = AmCharts.Class( { write:function(holder) { var chart = this.chart; if(chart) { chart.clear(); this.chart = null; } document.getElementById(holder).innerHTML = ""; this.loadParseEverything(); // crate chart var type = this.type; if(type == "pie") { this.cha...
maojian/EaglePHP
Public/share/plug/amcharts/javascript/amfallback.js
JavaScript
apache-2.0
45,921
var fs = require('fs'), async = require('async'), ui = require('./ui'); function Config() {} Config.prototype.load = function (cb) { var self = this; fs.readFile('./sbm.json', function (err, data) { self.rawConfig = data; if (!self.rawConfig) { return cb('No sbm.json in the current directory.'); ...
tmlbl/sbm
lib/config.js
JavaScript
apache-2.0
2,233
var exec = require('cordova/exec'); var TwitterClient = { login: function (successCallback, errorCallback) { exec(successCallback, errorCallback, 'TwitterClient', 'login', []); }, getFriendsList: function (successCallback, errorCallback) { exec(successCallback, errorCallback, 'TwitterClient', 'getFriendsList', ...
sandro-salles/twitter-client-plugin
www/TwitterClient.js
JavaScript
apache-2.0
671
/*! * jQuery Migrate - v1.0.0 - 2013-01-14 * https://github.com/jquery/jquery-migrate * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT */ (function (jQuery, window, undefined) { "use strict"; var warnedAbout = {}; // List of warnings already given; public read only...
jglozano/NLogSpike
src/ElmahRHost/Scripts/jquery-migrate-1.0.0.js
JavaScript
apache-2.0
19,358
alt.loader.loading=function(){"undefined"==typeof alt.modules.loading&&(alt.modules.loading=angular.module("alt-loading",[]).factory("$loading",["$log","$rootScope",function(o,n){return{show:function(){n.$loading.counter++,n.$loading.isshow=n.$loading.counter>0},close:function(){n.$loading.counter--,n.$loading.isshow=n...
niwasmala/alt-angularjs
dist/alt/loading.js
JavaScript
apache-2.0
567
/* * Copyright 2020 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
GoogleCloudPlatform/professional-services
examples/iap-user-profile/services/user-service.js
JavaScript
apache-2.0
1,360
'use strict'; // mocha defines to avoid JSHint breakage /* global describe, it, before, beforeEach, after, afterEach */ var assert = require('../../utils/assert.js'); var server = require('../../utils/server.js'); var preq = require('preq'); const parallel = require('mocha.parallel'); var testPage = { title: '...
eevans/restbase
test/features/parsoid/transform.js
JavaScript
apache-2.0
18,209
//// [parserModuleDeclaration4.ts] module M { declare module M1 { module M2 { } } } //// [parserModuleDeclaration4.js]
freedot/tstolua
tests/baselines/reference/parserModuleDeclaration4.js
JavaScript
apache-2.0
132
/** * Created by tomihei on 17/02/28. */ import { call, put, fork} from 'redux-saga/effects' import * as FetchVideoList from '../ajax/video'; import {videoListResult,requestFailed,lasPage} from '../actions/videoList'; export function* fetchVideoList(action) { const {response} = yield call(FetchVideoList.get, acti...
motion123/mbookmakerUI
src/sagas/video.js
JavaScript
apache-2.0
563
/* Copyright 2015 Mozilla 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 required by applicable law or agreed...
adlerweb/pdf.js-Touch
src/core/standard_fonts.js
JavaScript
apache-2.0
16,754
/* * Copyright 2014 Eugenio Parodi <ceccopierangiolieugenio at googlemail>. * * 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 * * U...
ceccopierangiolieugenio/3DGameEngine.js
js/game/TestGame.js
JavaScript
apache-2.0
4,800
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./print")); //# sourceMappingURL=index.js.map
opentext/appworks-js
src/plugins/print/index.js
JavaScript
apache-2.0
237
const path = require("path"); const glob = require("glob"); const commandHandlerFactory = require("./commandHandler"); const CommandActionHelper = require("./CommandActionHelper"); function loadEventsMap(logger) { return glob .sync(path.resolve(__dirname, '../events/*.js')) .reduce((eventsMap, filePath) => {...
Adaptech/nota
api/src/infra/initWrite.js
JavaScript
apache-2.0
1,715
'use strict'; const log = require('../../../../lib/logger')({hostname: 'background', MODULE: 'tabs/background/index'}); const TabManager = require('./TabManager'); const tabsMethods = require('./tabsMethods'); const {setupLogging} = require('./logging'); setupLogging(browser.runtime); const scriptEnvUrl = browser.exte...
computestdev/Openrunner
runner-modules/tabs/lib/background/index.js
JavaScript
apache-2.0
1,648
import Ember from 'ember'; /* A mixin that enriches a view that is attached to a model property that has validation support. This mixin binds a property named `errors` to the model's `model.errors.@propertyName` array */ export default Ember.Mixin.create({ init() { this._super(...arguments); Ember.ass...
pedrokiefer/ember-forms
addon/mixins/has-property-validation.js
JavaScript
apache-2.0
766
/* * db_set.js * * David Janes * IOTDB.org * 2015-07-29 * * Copyright [2013-2015] [David P. Janes] * * 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.apac...
dpjanes/iotdb-iotql
lib/db_set.js
JavaScript
apache-2.0
9,880
function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "blogRow"; arguments[0] ? arguments[0]["__parentSymbol"] : null; arguments[0] ? arguments[0]["$model"] : null; arguments[0] ? arguments[0]["__itemTemplate"]...
ericwhitlock/ccsanfran
Resources/alloy/controllers/blogRow.js
JavaScript
apache-2.0
2,261
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
dremio/dremio-oss
dac/ui/src/pages/AdminPage/subpages/Provisioning/components/singleEngine/EngineStatusBarMixin.js
JavaScript
apache-2.0
1,163
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack/webpack.config.local'); new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true }).listen(3333, 'localhost', function(err, result...
f0zze/rosemary-ui
server.js
JavaScript
apache-2.0
439
'use strict'; var fs = require('fs'); var path = require('path'); var driver = require('../lib/driver'); exports['driver_test'] = { setUp: function(done) { done(); }, 'should crawl a SciSpike application for views': function(test) { var directory = '/Users/amit/Documents/workspace/Test/public' ...
SciSpike/yaktor-ui-angular1
test/driver_test.js
JavaScript
apache-2.0
387
//Page Constructor var Page = function(data) { var page = this, events = {}, additionalData = {}, // loaded = data.loaded, Self = Math.floor((Math.random() * 9999999) + 1), availableEvents = new Array('pageReady'), location = data.location, eventsIdentifiers = [], settings = { autoUpdateDat...
dinu88/Core.js
Page.js
JavaScript
apache-2.0
7,787
/** * Not much to see here. Just some routes. */ import version from './services/version'; import Summary from './services/summary'; import Metrics from './util/metrics'; import logger from './util/logger'; function acceptJson(req, res, next) { if (!req.accepts('json')) { req.log.warn("Request does not accept ...
socrata-platform/geo-import
es6-lib/router.js
JavaScript
apache-2.0
967
/* Highcharts JS v4.1.7 (2015-06-26) Exporting module (c) 2010-2014 Torstein Honsi License: www.highcharts.com/license */ (function(f){var z=f.Chart,s=f.addEvent,A=f.removeEvent,B=HighchartsAdapter.fireEvent,j=f.createElement,p=f.discardElement,u=f.css,l=f.merge,m=f.each,q=f.extend,E=f.splat,F=Math.max,k=document...
aarpon/obit_flow_core_technology
core-plugins/flow/1/as/webapps/bdfacsdiva-viewer/html/third-party/highcharts/modules/exporting.js
JavaScript
apache-2.0
7,808
define( ({ _themeLabel: "Tema demo", _layout_default: "Layout predefinito", _layout_right: "Layout a destra" }) );
nickperez1285/truck-hunt-hackathon
client/stemapp/themes/DemoTheme/nls/it/strings.js
JavaScript
apache-2.0
140
angular.module('noobdev.controllers', []) .controller('WorkCtrl', function($scope, $location, $anchorScroll, $rootScope) { $rootScope.page = 'work'; $location.hash('work'); $anchorScroll(); }) .controller('ServiceCtrl', function($scope, $location, $anchorScroll, $rootScope) { $rootScope.page = 'service'; $l...
freeweed/freeweed.github.io
js/controllers.js
JavaScript
apache-2.0
912
var World = { loaded: false, init: function initFn() { this.createOverlays(); }, createOverlays: function createOverlaysFn() { /* First an AR.ClientTracker needs to be created in order to start the recognition engine. It is initialized with a URL specific to the target collection. Optional parameters are p...
Tazaf/IonicitudeDemoApp
www/wikitude-worlds/1_ClientRecognition_3_ExtendedTracking/js/extendedtracking.js
JavaScript
apache-2.0
3,417
var firebase = new Firebase('https://wedo-maeb.firebaseio.com/'); (function() { document.getElementById('signin_button').addEventListener('click', submitForm, false); /* * If enter is pressed while one of the input fields is selected, submit form */ document.getElementById('email').onkeypress = function(e) ...
Vogeltak/wedo
scripts/signin.js
JavaScript
apache-2.0
2,063
function downloadf(fid) { var name = $('a.btn.btn-xs.btn-success').attr('name'); var passphrase = document.getElementById("bloadlistform").elements[0].value; var keyfile = document.getElementById("bloadlistform").elements[1].files[0]; var bpassphrase = document.getElementById("bp_"+name).value; getFileList...
ecleipteon/Thalos
public/javascripts/download.js
JavaScript
apache-2.0
2,751
/* * ../../../..//jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js * * Copyright (c) 2009-2018 The MathJax Consortium * * 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 * * ...
GerHobbelt/MathJax
jax/output/CommonHTML/fonts/TeX/Fraktur-Regular.js
JavaScript
apache-2.0
7,211
import { Map, fromJS } from 'immutable'; import { defineAction } from 'redux-define'; import { v4 as makeUUID } from 'uuid'; const c = defineAction('savedstates', ['ADD', 'SAVE', 'UPDATE', 'REMOVE']); const defaultState = Map({ list: Map(), }); // Actions export function add(states) { return { type: c.ADD, state...
stampzilla/stampzilla-go
nodes/stampzilla-server/web/src/ducks/savedstates.js
JavaScript
apache-2.0
1,273
/** * AdBlockerWarningWidget component. * * Site Kit by Google, Copyright 2021 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/LICE...
google/site-kit-wp
assets/js/modules/adsense/components/dashboard/AdBlockerWarningWidget.js
JavaScript
apache-2.0
1,468
/** * Created by dzmitry_dubrovin on 11-Dec-16. */ angular.module('estimator') .controller('UserProfileController', function ($scope, $rootScope, $http, $toast, $state, AuthService, AUTH_EVENTS) { $scope.user = AuthService.user; $scope.languages = [{ key: 'en', ...
dzmitryDubrovin/estimator
views/controllers/user/UserProfileController.js
JavaScript
apache-2.0
1,941
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ export const ButtonKinds = [ 'primary', 'secondary', 'danger', 'ghost', 'danger--primary', 'danger--ghost', 'danger--tertiary',...
carbon-design-system/carbon-components
packages/react/src/prop-types/types.js
JavaScript
apache-2.0
338
function compareDate1(sdate, edate) { var my_date = sdate; var my_date2 = edate; var mytool_array = my_date.split("-"); var mytool_array2 = my_date2.split("-"); var month_name = new Array(12); month_name["Jan"] = "01" month_name["Feb"] = "02" month_name["Mar"] = "03" mo...
winsandymyint/winsandymyint.github.io
dede/js/lib/compare.js
JavaScript
apache-2.0
1,163
/* Twitter */ /* Twitter #1 */ jQuery(function($){ $(".tweet").tweet({ username: "ashokramesh90", join_text: "auto", avatar_size: 0, count: 3, auto_join_text_default: "we said,", auto_join_text_ed: "we", auto_join_text_ing: "we were", auto_join_text_reply: "we repli...
integercal/integer
site/site/Content/js/custom.js
JavaScript
apache-2.0
1,305
Meteor.methods({ insertChat: function(meteorUserId,otherUserId){ if(!this.userId){ //not logged in return; }else{ chatId = Chats.insert({user1Id:meteorUserId, user2Id:otherUserId}); } }, updateChats: function(chat){ if(!this.userId){ //not logged in ...
extwiii/C-Meteor
meteor instant message/shared/main.js
JavaScript
apache-2.0
411
{"Students":[ {"Ravi":"Master":"0987654321":"Address"}, {"Ravi":"Master":"0987654321":"Address"}, {"Ravi":"Master":"0987654321":"Address"}, ] }
pafnat/WebServiceTraining
06_JaxRsJSON/_resources_/JSON.js
JavaScript
apache-2.0
148
'use strict'; // Development versions are default global.isProd = false; // Current working directory var cwd = process.cwd(); var runSequence = require('run-sequence'); // Gulp & Plugins var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var concat = $.concat; var templateCache = $.angularTemplat...
OnOneLeg/O1l-frontend
myapp/node_modules/ng-firebase-auth/package/gulpfile.js
JavaScript
apache-2.0
3,492
bot = { states: { origin: { exits: ["->initRhyme"], }, initRhyme: { onEnter: "rhyme=select(rhymes) firstLine=select(lines[rhyme]) '#/firstLine#'", exits: ["->rhyme"] }, rhyme: { onEnter: "firstLine=select(lines[rhyme]) '#/firstLine#' 'Is this a good next line?'", ex...
google/bottery
bots/rhymes.js
JavaScript
apache-2.0
1,001
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
camunda/camunda-commons-ui
lib/pages/index.js
JavaScript
apache-2.0
7,134
define(function (require) { return function (ecModel) { ecModel.eachSeriesByType('lines', function (seriesModel) { var coordSys = seriesModel.coordinateSystem; var fromData = seriesModel.fromData; var toData = seriesModel.toData; var lineData = seriesM...
aholake/hiringviet
src/main/webapp/resources/vendors/echarts/src/chart/lines/linesLayout.js
JavaScript
apache-2.0
1,314
import React from "react"; import { mount } from "enzyme"; import { GlobalNav as VanillaGlobalNav } from "hig-vanilla"; import GlobalNavAdapter from "./GlobalNavAdapter"; import TopNavAdapter from "./TopNav/TopNavAdapter"; import SideNavAdapter from "./SideNav/SideNavAdapter"; import SubNavAdapter from "./SubNav/SubNa...
hyoshizumi/hig
packages/react/src/adapters/GlobalNav/GlobalNavAdapter.test.js
JavaScript
apache-2.0
868
import _ from "lodash"; // We will get actual values when we get initialized. let emoji_codes = {}; // `emojis_by_name` is the central data source that is supposed to be // used by every widget in the webapp for gathering data for displaying // emojis. Emoji picker uses this data to derive data for its own use. expor...
brainwane/zulip
static/shared/js/emoji.js
JavaScript
apache-2.0
6,724
/** * Copyright 2017-2019 John Berlin <n0tan3rd@gmail.com>. 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 * ...
N0taN3rd/Squidwarc
lib/frontier/helper.js
JavaScript
apache-2.0
5,367
/** * Copyright 2014 IBM Corp. 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 applica...
shantry/java_tradeoffSample
WebContent/js/index.js
JavaScript
apache-2.0
12,731
/**工单管理*/ var TaskDeviceGrid = Ext.extend(Ext.grid.EditorGridPanel,{ taskDeviceGridStore:null, taskTypeId:null, constructor:function(rs){ this.taskDeviceGridStore = new Ext.data.JsonStore({ url: root + '/core/x/Task!queryTaskDevice.action' , fields:['device_id','device_type','device_type_text','device_model'...
leopardoooo/cambodia
boss-core/src/main/webapp/pages/business/cust/TaskManager.js
JavaScript
apache-2.0
36,099
'use strict'; /* * > Release */ import gulp from 'gulp'; import colors from 'colors'; import runSequence from 'run-sequence'; gulp.task('release', (cb) => { console.log('\n[build]'.bold.magenta + ' ⚙ Start bulding \n'.bold.blue); runSequence( 'bump', 'changelog', (error) => { if (error) { ...
contactlab/ikonograph
.gulp/tasks/release.js
JavaScript
apache-2.0
596
"use strict"; const timeout = 5000; const cards = { "imageImport": document.getElementById("imageImportCard"), "job": document.getElementById("jobCard"), "resultImport": document.getElementById("resultImportCard") }; const averageJobDuration = moment.duration(JSON.parse(document.getElementById("averageJo...
comic/comic-django
app/grandchallenge/algorithms/static/algorithms/js/job_session.js
JavaScript
apache-2.0
4,162
/** * 中文语言包 */ UM.I18N['zh-cn'] = { 'labelMap':{ 'anchor':'锚点', 'undo':'撤销', 'redo':'重做', 'bold':'加粗', 'indent':'首行缩进', 'snapscreen':'截图', 'italic':'斜体', 'underline':'下划线', 'strikethrough':'删除线', 'subscript':'下标','fontborder':'字符边框', 'superscript':'上标', 'formatmatch':'格式刷', 'source':'源代码',...
kulend/Vino.Core.CMS
source/Ku.Core.CMS.Web.Backend/wwwroot/lib/umeditor/lang/zh-cn/zh-cn.js
JavaScript
apache-2.0
6,895
import { receiveEvent } from './util/BenchmarkEvents.js'; import { setInputValue } from './util/DOM.js'; export async function measureRenderList(app, numItems) { const appDocument = app.window.document; const numItemsTextbox = appDocument.querySelector('#num-items'); setInputValue(numItemsTextbox, numItems.toStr...
aspnet/AspNetCore
src/Components/benchmarkapps/Wasm.Performance/TestApp/wwwroot/benchmarks/renderListBenchmark.js
JavaScript
apache-2.0
884
/** PURE_IMPORTS_START tslib,_Subscriber,_util_tryCatch,_util_errorObject PURE_IMPORTS_END */ import * as tslib_1 from "tslib"; import { Subscriber } from '../Subscriber'; import { tryCatch } from '../util/tryCatch'; import { errorObject } from '../util/errorObject'; /* tslint:enable:max-line-length */ /** * Returns a...
mrtequino/JSW
nodejs/observables-rxjs/node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js
JavaScript
apache-2.0
3,922
var NAVTREEINDEX44 = { "match_8c.html#a18fec4a49f5b8f30ad7957ccf24ccfd5":[36,0,0,3,109,15], "match_8c.html#a198f8e5a663b622341fdd7f0cb34045e":[36,0,0,3,109,67], "match_8c.html#a19ed1df624da8dad6ef0fa4e8f2e0f48":[36,0,0,3,109,36], "match_8c.html#a2194bf96203a0acc7fe44abfa2556d01":[36,0,0,3,109,89], "match_8c.html#a22c5d...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/navtreeindex44.js
JavaScript
apache-2.0
17,148
Cute.Effect10 = function(param){ Cute.Effect9.prototype.constructor.call(this , param); this.counter = 0; this._move = param.dir || 'vertical'; }; Cute.Effect10.prototype = new Cute.Effect9(); Cute.Effect10.prototype.constructor = Cute.Effect10; Cute.Effect10.prototype.getPieceOptions = function(){ this.dir = thi...
dd-out/base
src/main/webapp/view/comm/cute/src/rotator/effects/Effect10.js
JavaScript
apache-2.0
456
var dir_ad282dd252fd9ca84528e55278bd0053 = [ [ "src", "dir_180b986fea9e4346e5e501d24529ef90.html", "dir_180b986fea9e4346e5e501d24529ef90" ] ];
onosfw/apis
onos/apis/dir_ad282dd252fd9ca84528e55278bd0053.js
JavaScript
apache-2.0
146
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.tr'); goog.require('Blockly.Msg'); /** @export */ Blockly.Msg.ADD_COMMENT = "Yorum Ekle"; /** @export */ Blockly.Msg.CANNOT_DELETE_VARIABLE_PROCEDURE = "'%1' değişkeni, '%2' fonksiyonunun tanımının bir parçası olduğu i...
jstnhuang/blockly
msg/js/tr.js
JavaScript
apache-2.0
39,683
var a03279 = [ [ "base", "a03279.html#a48bfb575517d86ac301d90693f4c1c47", null ], [ "MemberSignature", "a03279.html#a6b86851f8e63dee3818099945744bc61", null ], [ "_TessMemberResultCallback_4_1", "a03279.html#aec668899bb830dba388055f40eed161e", null ], [ "Run", "a03279.html#ac643013d684a98c9a9a5eb9080961...
stweil/tesseract-ocr.github.io
4.0.0/a03279.js
JavaScript
apache-2.0
335
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
p0deje/selenium
javascript/node/selenium-webdriver/test/lib/webdriver_test.js
JavaScript
apache-2.0
68,005
ace.define("ace/mode/hjson_highlight_rules",[], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var HjsonHighlightRules = function() { this.$rules = { start: [{ include: "#commen...
SAP/openui5
src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/mode-hjson.js
JavaScript
apache-2.0
11,087
function addNote(e) { var addWindow = Alloy.createController('addScreen').getView(); addWindow.open(); } function viewNote(e) { var viewWindow = Alloy.createController('viewScreen').getView(); viewWindow.open(); } $.index.open();
trs-mark/note
app/controllers/index.js
JavaScript
apache-2.0
236
class jfTableRowController { /* @ngInject */ constructor($scope, $element, $timeout, JFrogEventBus) { this.$element = $element; this.$timeout = $timeout; this.$scope = $scope; this.JFrogEventBus = JFrogEventBus; this.EVENTS = JFrogEventBus.getEventsDefinition() $(th...
JFrogDev/jfrog-ui-essentials
src/ui_components/jf_table_view/jf_table_row.js
JavaScript
apache-2.0
14,641
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import {loginComponent} from './login.component'; let loginModule = angular.module('login', [ uiRouter ]) .config(($stateProvider, $urlRouterProvider) => { "ngInject"; $stateProvider .state('login', { url: '/login', compon...
zizizi17/pavlik
client/app/components/login/login.js
JavaScript
apache-2.0
418
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import mockPanoptesResource from '../../../../test/mock-panoptes-resource'; import { TranslationsManager } from './'; import TranslationTools from './translation-tools'; describe('TranslationsManager', function () { let wrapp...
zooniverse/Panoptes-Front-End
app/pages/lab/translations/index.spec.js
JavaScript
apache-2.0
5,490
/* Copyright 2013 Daniel Wirtz <dcode@dcode.io> 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...
dcodeIO/MetaScript
MetaScript.js
JavaScript
apache-2.0
17,571
const expect = require('chai').expect; const { parseAttributeString, shouldShowElement } = require('../content_visibility').__test__; describe('ContentVisibility', () => { describe('.parseAttributeString()', () => { it('works for a single inclusive', () => { expect(parseAttributeString(...
negar-binary/binary-static
src/javascript/app/common/__tests__/content_visibility.js
JavaScript
apache-2.0
4,637
(function() { 'use strict'; angular .module('blogApp') .controller('JhiHealthCheckController', JhiHealthCheckController); JhiHealthCheckController.$inject = ['JhiHealthService', '$uibModal']; function JhiHealthCheckController (JhiHealthService, $uibModal) { var vm = this; ...
cfaddict/jhipster-course
sample-app/blog/src/main/webapp/app/admin/health/health.controller.js
JavaScript
apache-2.0
1,939
// containers are "smart" react components that are aware of redux // they are connected to the redux store and listen on part of the app state // they use mapStateToProps to specify which parts and use selectors to read them // avoid having view logic & local component state in them, use "dumb" components instead imp...
henriqueadonai/flux
src/containers/TopicsScreen.js
JavaScript
apache-2.0
2,411
//shoutout to mnemonicflow on github for the OAuth handling //Designed by Angel, Fay, Alexis, and Isaac function cb(data) { //console.log(JSON.stringify(data)); console.log("---CALLBACK---"); console.log(data); console.log("----------"); } var auth = { // // Update with your auth toke...
izblender/webdevs2
1/core.js
JavaScript
apache-2.0
17,350
module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.addColumn( 'vendas', 'comandaId', { type: Sequelize.INTEGER, references: { model: 'comandas', key: 'id' }, onUpdate: 'CASCADE', onDelete: 'SET NULL' } ...
leandrocristovao/esquenta
V2-Node/esquenta.v2/SERVER/server/migrations/20180624231405-add-associations-venda.js
JavaScript
apache-2.0
458
/** * @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/random/streams/geometric/lib/main.js
JavaScript
apache-2.0
9,347
const exercise = require('workshopper-exercise')() exercise.addProcessor(function (mode, callback) { callback(null, true) }); exercise.hideSolutions = true; exercise.requireSubmission = false; module.exports = exercise;
Karumi/learnyougit
exercises/git_status_and_git_diff/exercise.js
JavaScript
apache-2.0
227