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(){
function get_date() {
var now = new Date();
var year = now.getFullYear();
var mon = (now.getMonth() + 1) > 9 ? '' + (now.getMonth() + 1) : '0' + (now.getMonth() + 1);
var day = now.getDate() > 9 ? '' + now.getDate() : '0' + now.getDate();
return year + '_' + m... | Hyeonsj/rss | public/js/admin.js | JavaScript | apache-2.0 | 11,912 |
/*global define */
define(["app/utils/utils"],
function(Utils) {
'use strict';
return function() {
this.data = {
"login" : "login",
"mail" : "mail",
"verifMail" : "verifMail",
"mdp" : "mdp",
"verifMdp" : "mdp"
};
this.validate = function() {
var mdp = $("#mdp").val();
// Est r... | Mastersnes/BUL | WebContent/app/model/form/inscriptionModel.js | JavaScript | apache-2.0 | 1,343 |
import Animal from '../Animal';
/**
* Defines the cat
* @extends {Animal}
*/
export default class Cat extends Animal{
/**
* Says 'Meow'
*/
talk(){
return `Meow`;
}
} | dpopescu/js-sessions | es6-testing/src/animal/cat/Cat.js | JavaScript | apache-2.0 | 199 |
/*
* 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
* distribut... | openthings/zeppelin | zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js | JavaScript | apache-2.0 | 51,477 |
var structvlog__rate__limit =
[
[ "first_dropped", "structvlog__rate__limit.html#a5e5e3573e3896856f662f69dd6c61db6", null ],
[ "last_dropped", "structvlog__rate__limit.html#abf689bdafddbdd448f7fdca18545f105", null ],
[ "mutex", "structvlog__rate__limit.html#a537fdf5130c0f6394445a5e421409c04", null ],
[ ... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structvlog__rate__limit.js | JavaScript | apache-2.0 | 504 |
DotLedger.addInitializer(function (options) {
$.ajax({
url: '/api/options',
type: 'GET',
success: function (response) {
window.DotLedgerData = response;
DotLedger.trigger('options:change', response);
}
});
});
| dotledger/dotledger | app/assets/javascripts/dot_ledger/initializers/options.js | JavaScript | apache-2.0 | 242 |
var a00648 =
[
[ "TrainingSampleSet", "a00648.html#abd7e09fc720c94426642b3d9e3eadeca", null ],
[ "~TrainingSampleSet", "a00648.html#ad4a373a77c4484d2a5d294e62ea229fc", null ],
[ "AddAllFontsForClass", "a00648.html#aa8a7f48e7004b719d9ee2eb2d7c54511", null ],
[ "AddSample", "a00648.html#a277711d46f9298fb0... | stweil/tesseract-ocr.github.io | 3.x/a00648.js | JavaScript | apache-2.0 | 3,475 |
'use strict';
var almacenModule = angular.module('tikal.modules.Almacen', ['ngRoute','ngResource','angular-ladda','ngAnimate','ui.bootstrap']);
almacenModule.config(function ($routeProvider, $httpProvider) {
$routeProvider.when('/almacen/entrada', {templateUrl: 'view/almacen/entradas-almacen.html', controller: ... | Nekorp/Tikal-Technology | comercializadora-produccion/src/main/webapp/app/almacen-module.js | JavaScript | apache-2.0 | 40,655 |
var sql2es = require('../src/sql2es.js')
sql2es('select * from test where a = 1 && b = 2 && (c != 4 || d = 6) && e in (1,2,3) && b like_in ("百度a", "b", "c");', function(err, q) {
console.log(err, JSON.stringify(q));
})
sql2es('select * from test where a = 1 && b = 2 order by id desc,id2 asc;', function(err, q) {
... | DalaranX/sql2es | example/test.js | JavaScript | apache-2.0 | 490 |
/*!
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
// (BOOTSTRAP) jQuery to collapse the navbar on scroll
$(window).scroll(function() {
if ($(".navbar").offset().top > 50)... | olli602/PROJECT-5 | js/main.js | JavaScript | apache-2.0 | 1,931 |
// Interface patches
//Autocomplete patch
//Adds support for JSON data retrieval.
jQuery.iAuto = {
helper : null,
content : null,
iframe: null,
timer : null,
lastValue: null,
currentValue: null,
subject: null,
selectedItem : null,
items: null,
empty : function()
{
jQuery.iAuto.content.empty();
if (jQ... | WilliamGoossen/epsos-common-components.gnomonportal | webapps/ROOT/html/js/jquery/interface.patch.js | JavaScript | apache-2.0 | 21,465 |
const ninjaCatSays = require('../../src/🐱👓ninja.cat');
const { expect } = require('chai');
describe('🐱👓', () => {
describe('ninjaCatSays', () => {
it('should speak', () => {
expect(ninjaCatSays('ATTACK!')).eq('🐱👓 ATTACK!')
});
});
});
| stryker-mutator/stryker | e2e/test/mocha-javascript/test/unit/ninjaCat.spec.js | JavaScript | apache-2.0 | 281 |
import { Template } from 'meteor/templating';
import { _ } from 'meteor/erasaur:meteor-lodash';
import { getUserIdFromRoute } from '../shared/get-user-id-from-route';
import { Users } from '../../../api/user/UserCollection';
import { CourseInstances } from '../../../api/course/CourseInstanceCollection';
import { Opport... | radgrad/radgrad | app/imports/ui/components/alumni/alumni-ice-column.js | JavaScript | apache-2.0 | 4,507 |
var inCone = require('./in-cone-2d');
var isDiagonalie = require('./is-diagonalie-2d');
module.exports = function( i, j, polygon ) {
var len = polygon.length;
var a0 = polygon[ ( i - 1 < 0 ) ? len - 1 : i - 1 ];
var a = polygon[ i ];
var a1 = polygon[ ( i + 1 ) % len ];
var b0 = polygon[ ( j - 1 < 0 ) ? len... | YCAMInterlab/cga.js | cga/is-diagonal-2d.js | JavaScript | apache-2.0 | 534 |
/*
* Copyright (C) 2014 FIZ Karlsruhe
*
* 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 agr... | Deutsche-Digitale-Bibliothek/apd | web-app/js/search/urlManager.js | JavaScript | apache-2.0 | 9,481 |
var express = require("express")
var bodyParser = require("body-parser")
var app = express()
var alerts = []
var trends = [
{
alertId: 1,
delta: 10
},
{
alertId: 2,
delta: 100
},
{
alertId: 3,
delta: 0
},
{
alertId: 4,
delta: ... | ThoughtWorksTurkey/marketwatcher.io | stub/api.js | JavaScript | apache-2.0 | 1,083 |
var dir_98c70e3029c94a484c2b1145d409bfc4 =
[
[ "Debug", "dir_11d94c0db0a208178cab0a7ad2761edc.html", "dir_11d94c0db0a208178cab0a7ad2761edc" ],
[ "Release", "dir_89db1675b16e406e0ff39280e79a205d.html", "dir_89db1675b16e406e0ff39280e79a205d" ]
]; | XLabs/xlabs.github.io | html/dir_98c70e3029c94a484c2b1145d409bfc4.js | JavaScript | apache-2.0 | 252 |
chorus.pages.StyleGuidePage = chorus.pages.Base.extend({
setup: function() {
this.mainContent = new chorus.views.MainContentView({
content: new chorus.pages.StyleGuidePage.SiteElementsView(),
contentHeader: new chorus.views.StaticTemplate("default_content_header", {title: 'Style Guid... | mpushpav/chorus | app/assets/javascripts/pages/style_guide_page.js | JavaScript | apache-2.0 | 41,327 |
angular.module("shopping",[]),angular.module("shopping").run(["$rootScope",function(o){o.appTitle="Electronic Shopping List"}]);
angular.module("shopping").controller("AppCtrl",["$scope",function(l){l.pageTitle="Start"}]); | mthmulders/shoppinglist | src/main/resources/app/js/app.min.js | JavaScript | apache-2.0 | 222 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | baby-gnu/one | src/sunstone/public/app/tabs/vnets-templates-tab/dialogs/instantiate-update-ar/dialogId.js | JavaScript | apache-2.0 | 1,287 |
/*!
* jQuery JavaScript Library v2.1.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-18T15:11Z
*/
(function( global, factory ) {
if (... | cnngraphics/NMM2 | bower_components/jquery/dist/jquery.js | JavaScript | apache-2.0 | 247,382 |
import React, { Component, PropTypes } from 'react'
import { Card, CardHeader, CardText } from 'material-ui/Card'
import Avatar from 'material-ui/Avatar'
import randomMC from 'random-material-color'
import SelectField from 'material-ui/SelectField'
import MenuItem from 'material-ui/MenuItem'
import Graph from '../Graph... | curcuz/agile-ui-berlindemo | app/modules/agile_client/src/js/components/Device/DeviceStream.js | JavaScript | apache-2.0 | 1,539 |
import { connect } from 'react-redux';
import Overview from '../components/overview';
import {
syncProject,
pollRunningSyncProject,
} from '../actions/limes';
export default connect(
(state, props) => ({
isFetching: state.limes.isFetching || state.limes.receivedAt == null,
metadata: state.limes.metada... | sapcc/elektra | plugins/resources/app/javascript/app/containers/overview.js | JavaScript | apache-2.0 | 651 |
var model = require('../models/track.js');
module.exports = function(app) {
app.get('/track/days', function(req, res) {
return res.json({days: model.getDays()});
});
app.get('/track/waypoints/:id', function(req, res) {
var filename = model.getFilenameForTrackId(req.params.id);
model.loadWaypoints(filename);
... | jstaffans/gpx_overlay | routes/track.js | JavaScript | apache-2.0 | 429 |
import Controller from '@ember/controller';
import { inject as service } from '@ember/service'
import { alias } from '@ember/object/computed'
export default Controller.extend({
scope: service(),
pageScope: alias('scope.currentPageScope'),
alerts: alias('model.alerts'),
notifiers: alias('model.notifiers'),
});
| pengjiang80/ui | lib/alert/addon/index/controller.js | JavaScript | apache-2.0 | 320 |
/**
* Created by Marie Foussette on 07/04/15.
*/
/*global module*/
module.exports = {
url: 'mongodb://localhost/test'
}; | Myeris/nodejs_boilerplate | config/database.js | JavaScript | apache-2.0 | 127 |
'use strict';
angular.module('carbonUiApp')
.service('userSvc', function userSvc(localStorageService, $http, notificationService, carbonApiProvider) {
var user = JSON.parse(localStorageService.get('user'));
this.permissions = [];
this.login = function(username, password) {
var credentials = JSON.stringify(... | ncthis/carbon-ui | app/scripts/services/usersvc.js | JavaScript | apache-2.0 | 1,137 |
import React from 'react';
import moment from 'moment';
import Time from 'react-time';
import { Tooltip } from '@material-ui/core';
const cutoff = -5 * 60;
export default class RelativeTime extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
updateTime: props.... | michaelatmender/gui | src/js/components/common/relative-time.js | JavaScript | apache-2.0 | 1,472 |
'use strict';
/**
* @ngdoc function
* @name mesFrontendApp.controller:cellSettingService
* @description
* # cellSettingService
* Controller of the mesFrontendApp
*/
var app = angular.module('mesFrontendApp');
app.service("cellSettingService", ['$http','$window','$q',function($http,$window,$q) {
... | weilinghsu/mesFrontend | app/scripts/service/factorySetting/cellSettingService.js | JavaScript | apache-2.0 | 3,171 |
/*
* Copyright © 2017, Momentum Ideas Co. All rights reserved.
*
* Source program code in this file and package are proprietary
* Intellectual Property (IP) of Momentum Ideas, Co Unauthorized
* reproduction, duplication, compilation, or publication of this
* code are prohibited without prior written consent from... | Bloombox/bloombox-client | JavaScript/src/common/api.js | JavaScript | apache-2.0 | 3,688 |
import React from 'react';
import { Box, Grommet, MaskedInput } from 'grommet';
import { grommet } from 'grommet/themes';
const IPv4ElementExp = /^[0-1][0-9][0-9]$|^2[0-4][0-9]$|^25[0-5]$|^[0-9][0-9]$|^[0-9]$/;
export const IPv4MaskedInput = () => {
const [value, setValue] = React.useState('');
return (
<Gro... | HewlettPackard/grommet | src/js/components/MaskedInput/stories/IPv4Address.js | JavaScript | apache-2.0 | 1,475 |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// can be referenced here using a relative path.
//
// It's not advisable to add code directly ... | yashb/generator | test/vendor/codesleeve/sprockets/tests/fixtures/app/assets/javascripts/manifest1.js | JavaScript | apache-2.0 | 680 |
const debug = process.env.DEBUG;
exports.config = {
host: "127.0.0.1",
port: 4444,
specs: [ "./dist/e2e/**/*.spec.js" ],
maxInstances: debug ? 1 : 5,
capabilities: [ {
maxInstances: debug ? 1 : 5,
browserName: "chrome"
} ],
sync: true,
logLevel: "silent",
coloredLogs... | mendixlabs/badge | tests/e2e/wdio.conf.js | JavaScript | apache-2.0 | 1,100 |
import React from 'react'
import axios from 'axios';
import { Link } from 'react-router'
import moment from 'moment';
import Pod from './elements/Pod'
import { browserHistory } from 'react-router';
let timer;
const getClassFromType = function(type) {
let className = '';
if (type === 'Warning') {
className = ... | jdeskins/k8s-custom-dashboard | modules/Scaling.js | JavaScript | apache-2.0 | 9,946 |
import { IndexInterface } from "../../type.js";
import { regex, replace, collapse } from "../../lang.js";
import { encode as encode_balance } from "./balance.js";
export const rtl = false;
export const tokenize = "";
export default {
encode: encode,
rtl: rtl,
tokenize: tokenize
}
// Phonetic Normalization... | nextapps-de/flexsearch | src/lang/latin/advanced.js | JavaScript | apache-2.0 | 1,969 |
var fs = require('q-io/fs'),
q = require('q'),
exec = require('promised-exec'),
path = require('path'),
tmpDir = path.join(__dirname, '..', 'tmp'),
txTime = new Date(Date.UTC(2015, 4, 23, 19)),
imgSizes = [180],
mediaPath = process.env.MEDIA_PATH || ''... | mediascape/euromeme | apps/clips-api/lib/create-clips.js | JavaScript | apache-2.0 | 4,077 |
/**
* (C) Copyright 2014 WebGAP (http://www.webgap.eu/).
*
* 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 requir... | webgap/portal | server/modules/core.util.system.info/lib/platform.js | JavaScript | apache-2.0 | 1,509 |
/*
* @license
* 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 require... | osric-the-knight/foam | js/foam/core/dao/ClientDAO.js | JavaScript | apache-2.0 | 4,334 |
thymol.handleError = function( err ) {
var result = null;
if( !err.suppress ) {
if( err.doThrow ) {
result = err;
}
else {
thymol.alert( err );
}
}
return result;
}
thymol.alert = function( err ) {
if( thymol.debug ) {
thymol.thWindow.alert( err.message );
}
}
thym... | thymol/thymol.js | src/main/js/thymol-clientside.js | JavaScript | apache-2.0 | 2,785 |
XSym
0109
3478ceb10c77e765e925c0eae0d2b9c1
/Users/bluememon1/Documents/Titanium_Studio_Workspace/Anxiety-Monitor/Resources/android/alloy/styles/index.js
... | bluememon/Anxiety-Monitor | build/android/assets/alloy/styles/index.js | JavaScript | apache-2.0 | 1,067 |
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
styles: './content/styles/app.scss',
image: './content/images/awesome.jpg',
... | NickolayLototskiyDevPro/AngularFlow | HomeWork/alexander.mezentsev/hw5/webpack.config.js | JavaScript | apache-2.0 | 2,653 |
define(function (require, exports, module) {
var distances = require("./distance");
function KMeans(centroids) {
this.centroids = centroids || [];
}
KMeans.prototype.randomCentroids = function(points, k) {
var centroids = points.slice(0); // copy
centroids.sort(function() {
return (Math.round(Math.rand... | MIR-focus/sampletime | site/js/clusterfck/kmeans.js | JavaScript | apache-2.0 | 2,771 |
function setCookie(name, value, time) {
var strsec = getsec(time);
var exp = new Date();
exp.setTime(exp.getTime() + strsec * 1);
document.cookie = name + "=" + escape(value) + ";expires="
+ exp.toGMTString();
}
function getsec(str) {
var str1 = str.substring(1, str.length) * 1;
var str2 = str.subst... | zgyq/yq-user | src/main/webapp/scripts/sms.js | JavaScript | apache-2.0 | 1,737 |
var context = "";
function describe(message) {
return `${context} ${message}`;
}
function should(msg) {
return `${context} should ${msg}`;
}
| gruberjl/agileOps | tests.complex/test.js | JavaScript | apache-2.0 | 147 |
$(document).ready(function(){
$('.js_startBtn').click(function(){
var btn = $(this);
var taskId=btn.attr("data");
var iteration=btn.attr("iteration");
btn.attr("disabled","disabled");
jagg.post("/site/blocks/task-manager/ajax/task.jag", { action:"startTask",taskId:taskId,task... | nuwand/carbon-apimgt | features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/admin-old/site/themes/wso2/templates/subscription-task/js/subscription.js | JavaScript | apache-2.0 | 3,472 |
/* implements userscript support */
var webviews = require('webviews.js')
var settings = require('util/settings/settings.js')
var bangsPlugin = require('searchbar/bangsPlugin.js')
var tabEditor = require('navbar/tabEditor.js')
var searchbarPlugins = require('searchbar/searchbarPlugins.js')
var urlParser = require('uti... | minbrowser/min | js/userscripts.js | JavaScript | apache-2.0 | 6,542 |
/**
* @license Licensed under the Apache License, Version 2.0 (the "License"):
* http://www.apache.org/licenses/LICENSE-2.0
*
* @fileoverview General javaScript for Arduino app with material design.
*/
'use strict';
/** Create a namespace for the application. */
var Ardublockly = Ardublockly || {};
/** ... | carlosperate/ardublockly | ardublockly/ardublockly.js | JavaScript | apache-2.0 | 29,298 |
export withUIState from './withUIState';
| veritone/veritone-sdk | packages/veritone-redux-common/src/components/index.js | JavaScript | apache-2.0 | 41 |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var browserSync = require('browser-sync');
var $ = require('gulp-load-plugins')();
var wiredep = require('wiredep').stream;
var _ = require('lodash');
gulp.task('styles', function () {
var sassOptions = {
styl... | aeisenberg/ganchrow-starter | gulp/styles.js | JavaScript | apache-2.0 | 1,260 |
'use strict';
/*jslint latedef:false*/
(function() {
angular.module('o19s.splainer-search')
.factory('BulkTransportFactory', [
'TransportFactory',
'$http',
'$q',
'$timeout',
'$log',
BulkTransportFactory
]);
function BulkTransportFactory(TransportFactory, $http, $q, $t... | o19s/splainer-search | factories/bulkTransportFactory.js | JavaScript | apache-2.0 | 4,403 |
/*
* Copyright 2012 OSBI Ltd
*
* 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... | ZauR77/saiku-ui | js/saiku/plugins/Statistics/plugin.js | JavaScript | apache-2.0 | 9,798 |
/**
* @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/_tools/pkgs/entry-points/test/test.js | JavaScript | apache-2.0 | 1,103 |
/**
* Copyright 2014 Sense Tecnic Systems, 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 o... | mblackstock/node-red-contrib | nodes/dist/dist-placeholder.js | JavaScript | apache-2.0 | 1,133 |
/* Test mountain fractal generation code */
(function (imports) {
'use strict';
describe('Random range', function () {
describe('randomInRange(): generate random number in a range', function () {
it('within range - negative, negative', function () {
var fractal = new MountainFractal();
v... | nfletton/2dMountainFractal | test/spec/test.js | JavaScript | apache-2.0 | 4,181 |
angular.module('app.controllers')
.controller('ProjectNoteEditController',
['$scope', '$location', '$routeParams', 'ProjectNote',
function ($scope, $location, $routeParams, ProjectNote) {
$scope.projectNote = ProjectNote.get({
... | ygc27/laravel-angular | resources/assets/js/controllers/project-note/projectNoteEdit.js | JavaScript | apache-2.0 | 944 |
// Check sorting of array sub field SERVER-480.
t = db.jstests_sort7;
t.drop();
// Compare indexed and unindexed sort order for an array embedded field.
t.save({a: [{x: 2}]});
t.save({a: [{x: 1}]});
t.save({a: [{x: 3}]});
unindexed = t.find().sort({"a.x": 1}).toArray();
t.ensureIndex({"a.x": 1});
indexed = t.find().... | christkv/mongo-shell | test/jstests/core/sort7.js | JavaScript | apache-2.0 | 730 |
var http = require('http');
var url = require('url');
var handlers = [];
/**
* Register an URL handler using regex.
* Request and response objects are passed to the callback.
*/
exports.route = function(regex, cb) {
if (!cb) {
cb = regex;
regex = null;
}
handlers.push({regex: regex, cb: cb});
};
/**
* Sta... | hamax/WebDevWatcher | lib/server.js | JavaScript | apache-2.0 | 671 |
/*!
* ${copyright}
*/
sap.ui.define([
"sap/base/Log",
"sap/ui/model/odata/v4/lib/_Batch",
"sap/ui/model/odata/v4/lib/_Helper"
], function (Log, _Batch, _Helper) {
"use strict";
var oEntity = {"@odata.etag" : "W/\"20180830000000.0000000\""},
oNewEmployeeBody = {
ID : "7",
Name : "Egon",
AGE : 17,
E... | SAP/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/odata/v4/lib/_Batch.qunit.js | JavaScript | apache-2.0 | 33,729 |
/**
* Copyright (c) 2014 Intel 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 law or ... | enableiot/iotanalytics-dashboard | public-interface/test/unit/lib/logger/formatter-spec.js | JavaScript | apache-2.0 | 6,052 |
//// [FunctionPropertyAssignments3_es6.ts]
var v = { *{ } }
//// [FunctionPropertyAssignments3_es6.js]
var v = { : function () { } };
| freedot/tstolua | tests/baselines/reference/FunctionPropertyAssignments3_es6.js | JavaScript | apache-2.0 | 135 |
setTimeout(function(){
(function(){
id = Ti.App.Properties.getString("tisink", "");
var param, xhr;
file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,"examples/table_view_edit_and_move.js");
text = (file.read()).text
xhr = Titanium.Network.createHTTPClient();
xhr.open("... | steerapi/KichenSinkLive | Resources/examples/table_view_edit_and_move.js | JavaScript | apache-2.0 | 1,750 |
// Copyright 2011 Google Inc. All Rights Reserved.
/**
* @fileoverview Description of this file.
* @author rowillia@google.com (Roy Williams)
*/
goog.provide('glslunit.TypeAnnotator');
goog.require('glslunit.VariableScopeVisitor');
/**
* @param {!Object} rootNode
* @constructor
* @extends {glslunit.Variable... | zz85/glslprep.js | src/glslunit/ast/visitors/type_annotator.js | JavaScript | apache-2.0 | 2,220 |
// 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-containeranalysis | samples/generated/v1/grafeas.list_notes.js | JavaScript | apache-2.0 | 2,189 |
// Copyright 2017 The TIE 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 required by appl... | google/tie | client/question/services/LocalStorageServiceSpec.js | JavaScript | apache-2.0 | 2,828 |
define(['angular', 'app', 'angular/angular-resource.min'], function(ng, app) {
app.register.service('core.prefs.service',
['$resource', '$window', function($resource, $window) {
var basePath = ($window.contextPath || '') + '/api/admin_console';
return $resource(
basePath + '/pref',
{},
{
page: {
url: ... | weiht/nutz-tpl | nutz-tpl-admin/src/main/resources/STATIC-RES/core/prefs.js | JavaScript | apache-2.0 | 595 |
"use strict";
/**
* Global variable AnyBoard.
* @type {object}
*/
var AnyBoard = AnyBoard || {};
/*
* Exporting AnyBoard as Node Module if applicable
*/
if (typeof module !== "undefined") module.exports = AnyBoard;
/**
* This type of callback will be called when card is drawn or played
* @callback playDrawCal... | simonem/Anyboard | games/anyboard-phaser-deck/dist/anyboard.js | JavaScript | apache-2.0 | 79,800 |
import chai from 'chai';
import { describe, it } from 'mocha';
import canonicalTitleMap from './canonical-title-map';
chai.should();
describe('canonical-title-map.js', () => {
it('should hold a normalisation function for enums and titleMaps to generate titleMaps', () => {
canonicalTitleMap.should.be.an('function')... | Talend/ui | packages/jsfc/src/lib/canonical-title-map.spec.js | JavaScript | apache-2.0 | 1,898 |
define({"topics" : [{"title":"Install the Oracle Bulkload Stage Library","shortdesc":"\n <p class=\"shortdesc\">You must install the Oracle Bulkload stage library before using the Oracle Bulkload origin.</p>\n ","href":"datacollector\/UserGuide\/Origins\/OracleBulk.html#concept_yx... | kunickiaj/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_qz3_4yk_1hb-d46e82054.js | JavaScript | apache-2.0 | 749 |
(function (root, factory) {
if (typeof exports === 'object') {
module.exports = factory(root, require('angular'));
} else if (typeof define === 'function' && define.amd) {
define(['angular'], function (angular) {
return (root.ngNotificationsBar = factory(root, angular));
});
} else {
root.ngNotificationsB... | HyperCatIoT/hc2-server | server/public/bower_components/ng-notifications-bar/src/ngNotificationsBar.js | JavaScript | apache-2.0 | 4,453 |
#!/usr/bin/env node
// Copyright 2016 Google Inc. All Rights Reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE
'use strict';
const sysPath = require('path');
const fs = require('fs');
const yargs = require('yargs');
const PWMetrics = require('../lib/index');
const { getConfigFromFile } = requir... | denar90/pwmetrics | bin/cli.js | JavaScript | apache-2.0 | 2,986 |
import '/imports/startup/server';
import '/imports/startup/both';
import '/imports/api/weather';
| amymalia/solar-power-app | app/server/main.js | JavaScript | apache-2.0 | 98 |
const graphql = require('graphql');
module.exports = new graphql.GraphQLEnumType({
name: 'CategoryEnum',
values: {
COMMERCIAL: {
value: 'Commercial',
},
RESIDENTIAL: {
value: 'Residential',
},
},
});
| craigbilner/zoopla-graphql | src/schema/category-enum.js | JavaScript | apache-2.0 | 235 |
import { StackNavigator } from 'react-navigation';
import CategoriesRoutes from '../routes/CategoriesRoutes';
import navOptions from '../../utils/navOptions';
const CategoriesNavigator = StackNavigator(CategoriesRoutes, {
...navOptions({
title: 'Categories',
icon: 'inbox',
}),
});
export default Categorie... | JSSolutions/Perfi | app/navigation/navigators/CategoriesNavigator.js | JavaScript | apache-2.0 | 332 |
/*
* 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/components/Tree/TreeNode-spec.js | JavaScript | apache-2.0 | 2,496 |
/*
Copyright 2015 OpenMarket Ltd
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
... | pvagner/vector-web | src/controllers/organisms/RoomList.js | JavaScript | apache-2.0 | 6,957 |
'use strict';
// Dependencies
const env = require('envalid'),
express = require('express'),
path = require('path'),
app = express();
env.validate(process.env, {
PORT: {required: false, parse: env.toNumber},
DOCKER_REGISTRY_HOST: {required: true},
DOCKER_REGISTRY_PORT: {required: true}
});
con... | sazap10/docker-registry-webapp | server.js | JavaScript | apache-2.0 | 865 |
"use strict"; module.exports = require("./lib/index.js"); | hidega/silurian | mailer/index.js | JavaScript | apache-2.0 | 57 |
'use strict';
angular.module('sbAdminApp')
.controller('LogisticsIrregularCtrl', function($scope, $http, LogisticsIrregular) {
LogisticsIrregular.sum().success(function(data){
$scope.sums = data.results;
});
$scope.setType = function(irr_type){
$scope.curr_type = irr_type;
... | seasonstar/bibi | application/static/ng-admin/scripts/controllers/logistics_irregular.js | JavaScript | apache-2.0 | 630 |
function signupController(
$scope,
$state,
$firebaseAuth,
$firebaseObject,
$window
) {
var auth = $firebaseAuth()
var ref_usuario = firebase.database().ref('users')
$scope.data = {}
$scope.register = register
$scope.menssageError = {}
$scope.controlError = false
function register() {
auth
... | renansigolo/live-design | src/assets/_pre/js/app/controllers/login/signup.js | JavaScript | apache-2.0 | 939 |
/*Datepicker*/
(function( $ ) {
'use strict';
if ( $.isFunction($.fn[ 'datepicker' ]) ) {
$(function() {
$('[data-plugin-datepicker]').each(function() {
var $this = $( this ),
opts = {};
var pluginOptions = $this.data('plugin-options');
if (pluginOptions)
opts = pluginOptions;
$thi... | huahuajjh/requisition_land | WebRoot/assets/js/date&timePicker.js | JavaScript | apache-2.0 | 3,472 |
var nodes = new vis.DataSet([
/* {id: a, label: b, ...}, */
{id: 'f88b274a-677b-4bf9-acc4-565e791b86e9', label: 'C2\n...', color: '#31b0d5', title: 'Name: C2<br>Value: null<br>Type: null<br>Id: f88b274a-677b-4bf9-acc4-565e791b86e9<br>Formula Expression: Formula String: null; Formula Value... | DataArt/CalculationEngine | calculation-engine/engine-demo/src/main/resources/ui/data.js | JavaScript | apache-2.0 | 9,114 |
var app = angular.module("sessionsApp");
app.config( function($translateProvider) {
$translateProvider.translations('en', {
BACK : 'Back',
SEARCH : 'Search',
ABOUT : 'Welcome',
NOWNEXT : "Now & Next",
ALLSESSIONS : "All sessions",
SESSION : "Session",
MAP : "Floorplan",
SESSIONS : "Sessions",
FEEDB... | markleusink/BeyondSessionsApp | client/translations.js | JavaScript | apache-2.0 | 4,299 |
define(function(require, exports, module) {
var FW = require("breeze/framework/js/BreezeFW");
require("./classMod");
var formatJS = require("breeze/framework/js/tools/formatJS");
FW.register({
name: "textMod",
param: {
},
public: {
/**
* 根据传入的gadget字符串,将字符串解析成class类结构
* 创建后对象被保存到th... | breezeloganluo/breeze | manager_auxiliary/service/textMod.js | JavaScript | apache-2.0 | 56,813 |
/*******************************************************************************
* Copyright (c) 2015, 2016 David Green.
*
* 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:/... | greensopinion/greenbeans | ui/app/scripts/controllers/categories.js | JavaScript | apache-2.0 | 2,145 |
var searchData=
[
['failexception_0',['FailException',['../classcom_1_1google_1_1ortools_1_1constraintsolver_1_1Solver_1_1FailException.html',1,'com::google::ortools::constraintsolver::Solver']]],
['filterevent_1',['FilterEvent',['../classcom_1_1google_1_1ortools_1_1constraintsolver_1_1LocalSearchFilterManager_1_1F... | google/or-tools | docs/java/search/classes_5.js | JavaScript | apache-2.0 | 1,335 |
(function () {
// Main module
var app = angular.module('odalic-app');
/** button-load
* Description:
* A button which changes to spinner icon upon a click.
* Serves for visual representation of long operations. Once the executed operation finishes, the button may
* be c... | odalic/odalic-ui | src/directives/buttonload/buttonload.js | JavaScript | apache-2.0 | 4,639 |
/*
Highcharts JS v4.1.6 (2015-06-12)
(c) 2009-2014 Torstein Honsi
License: www.highcharts.com/license
*/
(function(){function A(){var a,b=arguments,c,d={},e=function(a,b){var c,d;typeof a!=="object"&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&typeof c==="object"&&Object.prototype.toString.call(c)!=="[o... | spring-cloud-samples/brewery | presenting/src/main/resources/static/js/highcharts.js | JavaScript | apache-2.0 | 162,235 |
/**
* 爱消除
* @author stuart.shi
* @link http://g.pentv.cn
* @time 2014.4
*/
$(function() {
var Game = {
opts: {
"theme": "default",
"canvasID": "demoCanvas"
},
debug: true,
sound: true,
assets: {}, //缓存数据
score: null, //积分元素
canvas:... | linmingling/demo | zt/zhs/js/game.js | JavaScript | apache-2.0 | 34,413 |
$(document).on('select2:select', function(evt) {
var data = evt.params.data;
$('#viaf_uri').attr('href', data.id).text(data.id);
// Clear birth and death so that VIAF record can set them
$('#id_birth').val('');
$('#id_death').val('');
});
| Princeton-CDH/winthrop-django | winthrop/people/static/admin/viaf-suggest.js | JavaScript | apache-2.0 | 244 |
/*
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... | cvaconsulting/moodlemobile-windows8 | cordova/lib/build.js | JavaScript | apache-2.0 | 7,240 |
/**
* Copyright 2017 Red Hat 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... | knowncitizen/tripleo-ui | src/js/reducers/appConfig.js | JavaScript | apache-2.0 | 826 |
/**
* @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/plot/ctor/lib/props/engine/get.js | JavaScript | apache-2.0 | 825 |
function Ldb(){}
function UWc(){return n8}
function Xdb(){return vX}
function OWc(a){MWc();a.c=uZc(new rZc);return a}
function HWc(a){!AWc&&(AWc=OWc(new JWc));QWc(AWc,a.b)}
function XWc(a){this.f.kb.style.display!=Thd&&pAc(this.l,a)}
function Ydb(){Tdb=true;Sdb=(Vdb(),new Ldb);Lz((Iz(),Hz),10);!!$stats&&$stats(pA(_Pd,K... | Rikkola/guvnor | guvnor-webapp/overlays/org.jboss.bpm.gwt-console-2.1/app/deferredjs/CE4EB073A0E7E0E3CD06EC5BC4D148F0/10.cache.js | JavaScript | apache-2.0 | 933 |
var reposTable;
var dataTable;
var diskUsageChart;
var revisionsChart;
$(document).ready(function () {
$.ajaxSetup({ cache: false });
reposTable = $("#reposTable");
reposTable.on('init.dt', function () {
getBigRepoDetails();
drawCharts();
});
reposTable.on('xhr.dt', function () ... | devopsonwindows/Weald | Weald/Scripts/weald.js | JavaScript | apache-2.0 | 8,058 |
// @flow
export { default as LobbySection } from './LobbySection';
export { default as LobbyScreen } from './LobbyScreen';
| jitsi/jitsi-meet | react/features/lobby/components/web/index.js | JavaScript | apache-2.0 | 124 |
// @ts-check
const gulp = require('gulp');
const cp = require('child_process');
const decompress = require('gulp-decompress');
const download = require('gulp-download');
const serverDir = '../../../eclipse.jdt.ls';
const extensionDir = '../../lib/java/node/server';
gulp.task('download_java_server', () => {
downloa... | lmcgupe/theiagreenkeeperTest | config/gulp/java-ls-tasks.js | JavaScript | apache-2.0 | 1,877 |
jQuery(function($) {
$('input[name="photocrati-nextgen_pro_slideshow[image_crop]"]')
.nextgen_radio_toggle_tr('1', $('#tr_photocrati-nextgen_pro_slideshow_image_pan'));
$('input[name="photocrati-nextgen_pro_slideshow[show_captions]"]')
.nextgen_radio_toggle_tr('1', $('#tr_photocrati-nextgen_pro... | Lucas1313/miesner | www/wp-content/plugins/nextgen-gallery-pro/modules/nextgen_pro_slideshow/static/settings.js | JavaScript | apache-2.0 | 352 |
/*******************************************************************************
* Copyright (C) 2018 Push Technology Ltd.
*
* 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.a... | pushtechnology/diffusion-examples | js/examples/security.js | JavaScript | apache-2.0 | 4,121 |
/**
* Created by huy on 6/27/2016.
*/
angular.module('app').constant('ConstantValues', {
cacheMaxAge: 5*60*1000, //cache is kept in 5 mins
cacheAutoFlushInterval:60*60*1000, // This cache will clear itself every hour.
greenTimeOut: 15*60 *1000, // 15 mins gets yellow
redTimeout: 2*24*60*60*... | Cantara/ConfigService-Dashboard | src/main/resources/webapp/web/js/config.js | JavaScript | apache-2.0 | 3,390 |
/*!
* ${copyright}
*/
// Provides control sap.m.RadioButton.
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/core/EnabledPropagator', './RadioButtonGroup'],
function(jQuery, library, Control, EnabledPropagator, RadioButtonGroup) {
"use strict";
/**
* Constructor for a new Radi... | olirogers/openui5 | src/sap.m/src/sap/m/RadioButton.js | JavaScript | apache-2.0 | 18,388 |