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 |
|---|---|---|---|---|---|
'use strict';
angular
.module('ewbApp', [
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'btford.socket-io'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
.otherwise({
... | vbud/ewb-client_OLD | app/scripts/app.js | JavaScript | apache-2.0 | 356 |
/**
* This script is a demonstration of how you can create a TileMap and its layers programmatically (through the code) without having a JSON file define it for you.
*
**/
var IsometricTileMaps = new Kiwi.State('IsometricTileMaps');
IsometricTileMaps.preload = function () {
//Load in the TileMap
this.addJSO... | dfu23/swim-meet | lib/kiwi.js/examples/Tilemaps/IsometricTileMaps.js | JavaScript | apache-2.0 | 1,385 |
/**
* @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/dmeanors/benchmark/benchmark.js | JavaScript | apache-2.0 | 1,965 |
// @ts-nocheck
'use strict';
const _ = require('lodash');
const isStandardSyntaxAtRule = require('../../utils/isStandardSyntaxAtRule');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const validateOptions = require('../../utils/validateOptions');
const ruleNam... | kyleterry/sufr | pkg/ui/node_modules/stylelint/lib/rules/at-rule-property-required-list/index.js | JavaScript | apache-2.0 | 1,406 |
import { LightningElement, api } from 'lwc';
import { ComponentNonLockerizedMixin } from 'securemoduletest/componentNonLockerizedMixin';
import * as testUtil from 'securemoduletest/testUtil';
export default class ComponentLockerizedInSameNamespaceMixinNonLockerized extends ComponentNonLockerizedMixin(LightningElement)... | forcedotcom/aura | aura-modules/src/test/modules/securemoduletest/componentLockerizedInSameNamespaceMixinNonLockerized/componentLockerizedInSameNamespaceMixinNonLockerized.js | JavaScript | apache-2.0 | 15,023 |
/**
* Include services used for the application
*/
const debug = require('debug')('badger');
const request = require('request');
const fs = require ('fs');
const path = require('path');
const config = require('../../config/config');
const base = require('../base/base');
const steps = require('../base/commonSteps');
... | LukasLohoff/o2r-badger | controllers/location/location.js | JavaScript | apache-2.0 | 12,283 |
/*
* Copyright 2015 Concept
*
* 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 writi... | bompi88/concept | both/app.js | JavaScript | apache-2.0 | 596 |
'use strict';
var $ = require('jquery');
var ko = require('knockout');
var Raven = require('raven-js');
require('jquery-ui');
require('knockout-sortable');
var lodashGet = require('lodash.get');
var osfLanguage = require('js/osfLanguage');
var rt = require('js/responsiveTable');
var $osf = require('./osfHelpers');
re... | icereval/osf.io | website/static/js/accessRequestManager.js | JavaScript | apache-2.0 | 4,816 |
import { newBidder, registerBidder, preloadBidderMappingFile } from 'src/adapters/bidderFactory';
import adapterManager from 'src/adapterManager';
import * as ajax from 'src/ajax';
import { expect } from 'chai';
import { STATUS } from 'src/constants';
import { userSync } from 'src/userSync'
import * as utils from 'src/... | Adikteev/Prebid.js | test/spec/unit/core/bidderFactory_spec.js | JavaScript | apache-2.0 | 26,754 |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/nodejs-ai-platform | samples/create-training-pipeline-video-action-recognition.js | JavaScript | apache-2.0 | 3,310 |
Clazz.declarePackage ("J.g3d");
Clazz.load (null, "J.g3d.CylinderRenderer", ["J.util.ArrayUtil", "$.Shader"], function () {
c$ = Clazz.decorateAsClass (function () {
this.g3d = null;
this.line3d = null;
this.shader = null;
this.colixA = 0;
this.colixB = 0;
this.shadesA = null;
this.isScreenedA = false;
this.s... | DeepLit/WHG | root/static/js/jsmol/j2s/J/g3d/CylinderRenderer.js | JavaScript | apache-2.0 | 22,042 |
const fetch = require('node-fetch');
const listen = require('test-listen');
const qs = require('querystring');
const { createServerWithHelpers } = require('../dist/helpers');
const mockListener = jest.fn();
const consumeEventMock = jest.fn();
const mockBridge = { consumeEvent: consumeEventMock };
let server;
let url... | zeit/now-cli | packages/now-node/test/helpers.test.js | JavaScript | apache-2.0 | 25,042 |
'use strict';
angular.module('app.controllers')
.controller('HomeCtrl', function($scope, $http, $state,tree, $localStorage) {
var treeArray = tree.data;
console.log(treeArray.length);
$scope.user = $localStorage.user;
$scope.logout = function() {
delete $localStorage.user;
delet... | salvadoracosta/SS | client/app/home/home.controller.js | JavaScript | apache-2.0 | 3,046 |
import { setPropertiesFromJSON } from '../../json-helper';
import QuestionAnswer from '../finding/QuestionAnswer';
/**
* Generated class for shr.sex.ContraceptiveMethodUsed.
* @extends QuestionAnswer
*/
class ContraceptiveMethodUsed extends QuestionAnswer {
/**
* Get the entry information.
* @returns {Ent... | standardhealth/flux | src/model/shr/sex/ContraceptiveMethodUsed.js | JavaScript | apache-2.0 | 2,735 |
(function() {var implementors = {};
implementors["tokio_http2"] = ["impl <a class='trait' href='https://docs.serde.rs/serde/ser/trait.Serialize.html' title='serde::ser::Serialize'>Serialize</a> for Value",];
if (window.register_implementors) {
window.register_implementors(implementors);
... | lambdastackio/tokio-http2 | docs/implementors/serde/ser/trait.Serialize.js | JavaScript | apache-2.0 | 426 |
OC.L10N.register(
"settings",
{
"Cron" : "Крон",
"Sharing" : "Споделување",
"Security" : "Безбедност",
"Email Server" : "Сервер за електронска пошта",
"Log" : "Записник",
"Authentication error" : "Грешка во автентикација",
"Your full name has been changed." : "Вашето целосно име е пр... | kebenxiaoming/owncloudRedis | settings/l10n/mk.js | JavaScript | apache-2.0 | 12,020 |
var gulp = require("gulp"),
less = require("gulp-less"),
minify = require("gulp-minify-css"),
streamify = require("gulp-streamify"),
uglify = require("gulp-uglify");
function logError(err) {
console.log(err);
this.emit("end");
}
gulp.task("watch", function() {
gulp.watch(__dirname + "/asse... | montyanderson/sms-ui | gulpfile.js | JavaScript | apache-2.0 | 882 |
define(['angularAMD', 'factory_issue', 'constant_actionState', 'value_entity', 'ui-grid-js', 'ui-grid-custom-rowSelection'], function (angularAMD) {
angularAMD.processQueue();
angularAMD.directive('tableDir', ['issueFactory', '$timeout', 'actionState', 'entity', '$q', '$http',
function (issueFactory, $... | vknvnn/requirejs | Demo/apps/directives/issue/tableDirective.js | JavaScript | apache-2.0 | 7,119 |
/* @flow */
import React, {Component} from 'react';
import {List} from 'immutable';
import type {Report} from '../types/Report';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
import FontIcon from 'material-ui/FontIcon';
import {yellow500, red500, green500... | DJCordhose/floreysoft-status | src/main/js/src/components/UserOverview.js | JavaScript | apache-2.0 | 3,797 |
/* jshint node:true */
'use strict';
/**
* Module dependencies.
*/
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in de... | kauegimenes/jsonexport | dist/parser/csv.js | JavaScript | apache-2.0 | 9,306 |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.en');
goog.require('Blockly.Msg');
Blockly.Msg.ADD_COMMENT = "Add Comment";
Blockly.Msg.AUTH = "Please authorize this app to enable your work to be saved and to allow it to be shared by you.";
Blockly.Msg.CHANGE_VALUE_... | kallex/blockly | msg/js/en.js | JavaScript | apache-2.0 | 28,383 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','./ListItemBaseRenderer','sap/ui/core/Renderer'],function(q,L,R){"use strict";var T=R.extend(L);T.r... | thbonk/electron-openui5-boilerplate | libs/openui5-runtime/resources/sap/m/TreeItemBaseRenderer.js | JavaScript | apache-2.0 | 1,016 |
define(function(require) {
var ko = require('knockout');
require('ko_es5');
require('ko_postbox');
//require('/sitedesign/utils.js');
var StoreVM = function() {
var self = this;
self.jwt = misc_util.get_jwt_claims();
self.categories = [];
self.store = null;
s... | ld4apps/lda-examples | setupshop/wsgi/static/setupshop/shop/store.js | JavaScript | apache-2.0 | 2,030 |
/* eslint-disable no-unused-vars */
import React from "react";
/* eslint-enable no-unused-vars */
const BulkOptions = {
user: {
delete: {
dropdownOption: <span className="text-danger">Delete</span>,
title: "Are you sure?",
actionPhrase: "will be deleted"
}
}
};
module.exports = BulkOptio... | jcloud-shengtai/dcos-ui_CN | src/js/constants/BulkOptions.js | JavaScript | apache-2.0 | 324 |
import chalk from 'chalk';
import stamp from '../../util/output/stamp.ts';
import info from '../../util/output/info';
import error from '../../util/output/error';
import wait from '../../util/output/wait';
import rightPad from '../../util/output/right-pad';
import eraseLines from '../../util/output/erase-lines';
import... | zeit/now-cli | packages/now-cli/src/commands/teams/add.js | JavaScript | apache-2.0 | 4,215 |
FOAModel({
name: 'QIssueTileView',
label: 'QIssue Tile View',
extendsModel: 'View',
properties: [
{
name: 'browser'
},
{
name: 'issue',
type: 'QIssue'
}
],
methods: {
// Implement Sink
put: function(issue) {
if ( this.issue ) { this.issue.removeListener(... | shepheb/foam | apps/quickbug/ui/QIssueTileView.js | JavaScript | apache-2.0 | 1,025 |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 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/simulate/iter/awun/lib/main.js | JavaScript | apache-2.0 | 9,301 |
/**
* jQuery ligerUI 1.2.0
*
* http://ligerui.com
*
* Author daomi 2013 [ gd_star@163.com ]
*
*/
(function ($)
{
$.fn.ligerTab = function (options)
{
return $.ligerui.run.call(this, "ligerTab", arguments);
};
$.fn.ligerGetTabManager = function ()
{
return $.ligerui.run.call(t... | zj793039327/Jframework | source/java/web/component/ligerui/js/ligerTab.js | JavaScript | apache-2.0 | 30,179 |
import { enableLogger, expectWarn, expectNoWarn } from './../../../services/Logger.mock';
import { Iframe } from './Iframe';
describe('html.Iframe', () => {
it('should work ', () => {
const props = { type: 'Iframe', src: '#' };
enableLogger(() => { Iframe({ props, context: {} }); });
expectNoWarn();
})... | webcerebrium/ec-react15-lib | src/editable/html/media/Iframe.test.js | JavaScript | apache-2.0 | 674 |
"use strict";
var gulp = require('gulp');
require('require-dir')('./tasks');
var common = require('./tasks/common');
require('web-component-tester').gulp.init(gulp);
var args = require('yargs').argv;
var version = '0.3.0';
gulp.task('default', function() {
console.log('\n Use:\n gulp <clean|gwt[ --gwt-pretty]|t... | shahrzadmn/vaadin-grid | gulpfile.js | JavaScript | apache-2.0 | 1,867 |
/**
--| ADAPTIVE RUNTIME PLATFORM |----------------------------------------------------------------------------------------
(C) Copyright 2013-2015 Carlos Lozano Diez t/a Adaptive.me <http://adaptive.me>.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | AdaptiveMe/adaptive-arp-javascript | adaptive-arp-js/src_units/ContactEmailType.js | JavaScript | apache-2.0 | 2,940 |
"use strict"
var ReactWeb = require("react");
var models = require("../../models/common");
class App extends ReactWeb.Component {
render(){
var data = JSON.stringify(models.Data.movieData);
return (
<div>
hello web: {data}
</div>
)
}
}
exports.App... | agtorre/lifeapp | client/lib/views/web/App.js | JavaScript | apache-2.0 | 328 |
var Tletherlynk = {};
Tletherlynk.Midi = ( function( window, undefined ) {
var midi = null; // global MIDIAccess object
var thisid = null;
function Init(){
// //printout = document.getElementById("midistatus");
console.log("Hello midi")
if (navigator.requestMIDIAccess){
// n... | Traderlynk/Etherlynk | communicator/extension/js/apc.midi.js | JavaScript | apache-2.0 | 2,570 |
/**
* Copyright IBM Corp. 2016, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const { defineTest } = require('jscodeshift/dist/testUtils');
defineTest(__dirname, 'size-prop-update');
| carbon-design-system/carbon-components | codemods/transforms/__tests__/size-prop-update-test.js | JavaScript | apache-2.0 | 300 |
/*eslint no-undef:0*/
/*eslint no-unused-vars:0*/
(function($) {
//
// This demo uses Animate.css, the collection of excellent CSS animations
// https://daneden.github.io/animate.css/
//
$.fn.extend({
animateCss: function (animationName, cb) {
var animationEnd = "webkitAnimatio... | suewonjp/DNDX.JS | demo/index.js | JavaScript | apache-2.0 | 2,625 |
var buf1 = new Buffer("Buffer Buffer Buffer!!!");
var len = buf1.length;
// new buffer as slice of old
var buf2 = buf1.slice(19,len);
console.log(buf2.toString());
buf2.fill("*",0,4);
console.log(buf2.toString());
console.log(buf1.toString()); | Dr762/NodeJSBase | basics/buf_modify.js | JavaScript | apache-2.0 | 246 |
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 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
*
* http://www.apache.org/li... | Minoli/carbon-apimgt | features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/Documents/DocumentsTable.js | JavaScript | apache-2.0 | 5,936 |
var init={
verifyCode:'',
loadinfo:function(obj){
},
createCode:function(obj){
code = "";
var codeLength = 4;//验证码的长度
var random = new Array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R',
'S','T','U','V','W','X','Y','Z');//随机数
for(var i = 0;... | yangleo/cloud-github | openstack_dashboard/static/dashboard/js/login.js | JavaScript | apache-2.0 | 2,073 |
'use strict';
var base = require('../_base');
module.exports = function(warp){
return base.defineModel(warp, 'SnippetFlow', [
base.column_varchar_20('flow_type'),
base.column_id('snippet_id', { index: true }),
base.column_id('user_id'),
base.column_varchar_50('name'),
base.column_varchar_100('brief'),
ba... | kittqiu/snippet-fibula | www/model/snippet/snippet_flow.js | JavaScript | apache-2.0 | 793 |
/**
@Name:layui.form 表单组件
@Author:贤心
@License:LGPL
*/
layui.define('layer', function(exports){
"use strict";
var $ = layui.jquery
,layer = layui.layer
,hint = layui.hint()
,device = layui.device()
,MOD_NAME = 'form', ELEM = '.layui-form', THIS = 'layui-this', SHOW = 'layui-... | zhang-li-mark/psas | src/main/webapp/res/layui/lay/modules/form.js | JavaScript | apache-2.0 | 10,721 |
angular.module('app.layouts')
.controller('PublicLayoutController', function(
$rootScope,
$scope,
$mdSidenav,
$state,
$log,
$Configuration,
$mdDialog,
$mdToast,
$stateParams,
$timeout,
$galeLoading,
$Identity
)
{... | dmunozgaete/Widul-Web | app/views/layouts/public.js | JavaScript | apache-2.0 | 851 |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/*jslint node: true */
'use strict';
// Variables
const _ = require('lodash'),
async = require('neo-async');
// Export module
module.exports = {
/**
* Configure database
*
* @param database
*/
setup: function (database)... | eq-inc/eq-user | lib/index.js | JavaScript | apache-2.0 | 2,220 |
/*! Pts.js is licensed under Apache License 2.0. Copyright © 2017-current William Ngan and contributors. (https://github.com/williamngan/pts) */
import { Util } from "./Util";
import { Geom, Num } from "./Num";
import { Pt, Group } from "./Pt";
import { Mat } from "./LinearAlgebra";
let _errorLength = (obj, param = "ex... | williamngan/pts | dist/es2015/Op.js | JavaScript | apache-2.0 | 36,070 |
/* Inicializacion en espanol para la extensionn 'UI date picker' para jQuery. */
/* Traducido por Vester (xvester@gmail.com). */
jQuery(function($){
$.datepicker.regional['es'] = {
closeText: 'Cerrar',
prevText: '<Ant',
nextText: 'Sig>',
currentText: 'Hoy',
monthNames: ['Enero','Febrero','Marzo','A... | ignaciofuentes/school | app/assets/javascripts/jquery.ui.datepicker-es.js | JavaScript | apache-2.0 | 923 |
/*
* Copyright 2016 - 2017 Anton Tananaev (anton@traccar.org)
*
* 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 b... | awaissattar001/mtrack | traccar-web/web/app/view/Statistics.js | JavaScript | apache-2.0 | 2,738 |
/*globals oasp*/
describe('Module: \'app.offer-mgmt\', Service: \'offers\'', function () {
'use strict';
var contextPath = '/oasp-app/', $httpBackend, offers;
beforeEach(module('app.offer-mgmt', function ($provide) {
$provide.value('currentContextPath', oasp.mock.currentContextPathReturning(context... | oasp-forge/bht-2017-RideSharing-Server | samples/server/src/main/client/app/offer-mgmt/offers.service.spec.js | JavaScript | apache-2.0 | 2,425 |
import {default as React,Component} from 'react';
import { render } from 'react-dom';
import Select2 from 'react-select2-wrapper';
import { dataOperation } from '../../service/DataOperation';
import { ErrorModal } from '../../others/ErrorModal';
import {codemirrorOptions, closeError, isJson} from '../../others/helper';... | appbaseio/gem | app/mappingContainer/importSettings/JsonImport.js | JavaScript | apache-2.0 | 3,589 |
/**
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* http://blockly.googlecode.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/LICEN... | tobyk100/blockly-trunk | blocks/variables.js | JavaScript | apache-2.0 | 3,058 |
var AWS = require('aws-sdk');
// Create an S3 client
var sqs = new AWS.SQS({region:"us-east-1"});
var params = {
QueueNamePrefix: 'yun'
};
sqs.listQueues(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
}); | Tony607/aws_node | sqsListQueues.js | JavaScript | apache-2.0 | 314 |
'use strict';
const { debugLogger } = require('@terascope/utils');
const api = require('../../lib/api');
describe('startWorkers foundation API', () => {
const context = {
sysconfig: {
terafoundation: {
log_level: 'debug'
}
},
name: 'terafoundation'
... | jsnoble/teraslice | packages/terafoundation/test/apis/startWorkers-spec.js | JavaScript | apache-2.0 | 1,923 |
/**
* standard gulp build file for browser client projects
*/
'use strict';
var gulp = require('gulp'),
path = require('path'),
gutil = require('gulp-util'),
del = require('del'),
gulpif = require('gulp-if'),
plumber = require('gulp-plumber'),
concat = require('gulp-concat'),
uglify = re... | darrylwest/websocket-database-service | gulpfile.js | JavaScript | apache-2.0 | 1,333 |
/**
* @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/streams/node/split/test/test.decode.js | JavaScript | apache-2.0 | 1,685 |
var path = require('path');
var webpack = require('webpack');
var merge = require('lodash.merge');
var _ = require('lodash');
var StatsWriterPlugin = require("webpack-stats-plugin").StatsWriterPlugin;
var ExtractTextPlugin = require("extract-text-webpack-plugin");
const DEBUG = !process.argv.includes('--release');
con... | mortondev/rapport | tools/webpack/prod.config.js | JavaScript | apache-2.0 | 4,067 |
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... | rovats/waltz | waltz-ng/client/survey/services/survey-instance-store.js | JavaScript | apache-2.0 | 6,299 |
/**
* @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/assert/is-uint8clampedarray/examples/index.js | JavaScript | apache-2.0 | 2,167 |
var structnd__opt__dnssl =
[
[ "nd_opt_dnssl_len", "structnd__opt__dnssl.html#a7203fc7c273b4988ca8b4a9bad5d7f74", null ],
[ "nd_opt_dnssl_lifetime", "structnd__opt__dnssl.html#a76ee23870cd053b228cf3901093c6b03", null ],
[ "nd_opt_dnssl_reserved", "structnd__opt__dnssl.html#a1dd5d537f85a304ceb904b52ed63ba12"... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structnd__opt__dnssl.js | JavaScript | apache-2.0 | 429 |
import Ember from 'ember';
const { Route } = Ember;
export default Route.extend({
titleToken() {
return this.i18n.t('Notification Logs');
},
model() {
return [
{
receivedAt : new Date(),
action : 'Invitation For Papers',
title : 'Invitation to Submit Papers for ev... | anu-007/open-event-frontend | app/routes/admin/reports/system-logs/notification-logs.js | JavaScript | apache-2.0 | 1,230 |
(function(){/**
* Used by `trimmedLeftIndex` and `trimmedRightIndex` to determine if a
* character code is whitespace.
*
* @private
* @param {number} charCode The character code to inspect.
* @returns {boolean} Returns `true` if `charCode` is whitespace, else `false`.
*/
function isSpace(charCode) {
return ((c... | durwasa-chakraborty/navigus | .demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/zip-stream/node_modules/lodash/internal/isSpace.js | JavaScript | apache-2.0 | 658 |
'use strict'
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | apigee/cloud-foundry-apigee | apigee-cf-service-broker/helpers/mgmt_api.js | JavaScript | apache-2.0 | 7,042 |
var fs = require('fs');
var path = require('path');
var Sequelize = require('sequelize');
var config = require(__dirname + './../config/database');
var sequelize = new Sequelize(config.postgres.db, config.postgres.username,
config.postgres.password, { host: config.postgres.host, dialect: 'postgres', a... | ianjuma/morpheus | models/index.js | JavaScript | apache-2.0 | 813 |
/*
* Copyright 2015 NamieTown
* http://www.town.namie.fukushima.jp/
* 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... | codefornamie/namie-tablet-html5 | www_dev/app/modules/view/common/index.js | JavaScript | apache-2.0 | 973 |
"use strict";
var Macaroon = require("./Macaroon");
var CaveatPacket = require("./CaveatPacket");
var CaveatPacketType = require("./CaveatPacketType");
var MacaroonsConstants = require("./MacaroonsConstants");
var Base64Tools = require("./Base64Tools");
var MacaroonsDeSerializer = (function () {
function MacaroonsD... | nitram509/macaroons.js | lib/MacaroonsDeSerializer.js | JavaScript | apache-2.0 | 7,135 |
import assert from 'assert';
import { jsdom } from 'jsdom';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import PaperCheckbox from '../src/paper-checkbox';
describe('PaperCheckbox', () => {
before(() => {
global.document = jsdom('<!doctype html><html><body></body></html>');
gl... | scienceai/paper-checkbox | test/test.js | JavaScript | apache-2.0 | 5,962 |
/**
* @fileoverview Externs for sprintly API.
* @externs
*/
/**
* @const
* @type {Object}
*/
var Sprintly = {};
/**
* https://sprintly.uservoice.com/knowledgebase/articles/98355-products
* @interface
*/
Sprintly.Product = function() {};
/**
* @type {boolean}
*/
Sprintly.Product.prototype.admin;
/**
* @... | yathit/sprintly-service | externs/sprintly-api.js | JavaScript | apache-2.0 | 2,497 |
var metas = document.getElementsByTagName('meta');
var i;
if (navigator.userAgent.match(/iPhone/i)) {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
}
}
document.addEventListener("gesturestart", gestu... | google/abpackage | docs/javascripts/scale.fix.js | JavaScript | apache-2.0 | 570 |
/*
* Licensed to Cloudkick, Inc ('Cloudkick') under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Cloudkick licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not us... | cloudkick/cast | lib/cast-client/parser.js | JavaScript | apache-2.0 | 2,438 |
const {Helpers, DBH} = require('./helpers.js');
const md5 = require('js-md5');
const {Dil,Genelleme} = require("./language.js");
const Locks = {};
const IdFields = {
bakteriler: ["CinsAdi", "TurAdi", "SubTur"],
}
global.Lock = (id) => new Promise(res => {
Locks[id] = res;
});
global.Unlock = (id,val) => {
if(... | occ55/Mikrobiyoloji | yedek/core.js | JavaScript | apache-2.0 | 11,683 |
// Inner Modules
var UI = {};
var Global = {};
// Initial
Global.venueModel = Alloy.createModel("venue");
Global.venueId;
Global.args = arguments[0] || {};
UI = function(){
return{
setViewUserOptions: function(){
},
setVenueInfoView: function(currentVenue){
if(_.isEmpty(currentVenue) || isNaN(currentVe... | inasacu/thepista_mobile | app/controllers/venue/venue_detail.js | JavaScript | apache-2.0 | 2,685 |
import Ember from 'ember';
import service from 'ember-service/inject';
import PatientIconClassNames from '../mixins/patient-icon-class-names';
export default Ember.Component.extend(PatientIconClassNames, {
classNames: ['patient-summary'],
store: service(),
patient: null,
currentAssessment: null,
selectedRis... | intervention-engine/frontend | app/components/patient-summary.js | JavaScript | apache-2.0 | 1,263 |
define(function() {
// This code was written by Tyler Akins and has been placed in the
// public domain. It would be nice if you left this header intact.
// Base64 code from Tyler Akins -- http://rumkin.com
var Base64 = (function () {
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/... | rwth-acis/ROLE-SDK | services/roleUUPrototype/src/main/webapp/script/xmpp/strophe.js | JavaScript | apache-2.0 | 170,022 |
var structOvsFlowPut =
[
[ "actions", "structOvsFlowPut.html#ad97ea8cbeafd204e136aa82c6ec2b298", null ],
[ "actionsLen", "structOvsFlowPut.html#a7d4dea38a2ae23c571f256e6103ca58e", null ],
[ "dpNo", "structOvsFlowPut.html#a7f0a986091afae06ec70dcce58e23157", null ],
[ "flags", "structOvsFlowPut.html#a1f29... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structOvsFlowPut.js | JavaScript | apache-2.0 | 440 |
var React = require('react/addons'),
Router = require('react-router'),
serialPort = require('serialport');
var Preferences = React.createClass({
mixins: [Router.Navigation],
getInitialState: function () {
return {
selectedPort: ''
};
},
handleGoBackClick: function () {
this.goBack();
... | clearbucketLabs/SteveApp | src/components/Preferences.react.js | JavaScript | apache-2.0 | 2,011 |
import PropTypes from 'prop-types';
import React from 'react';
import { ButtonGroup } from 'react-bootstrap';
import classNames from 'classnames';
import Action from './Action';
import OverlayTrigger from '../OverlayTrigger';
import Inject from '../Inject';
function getButtonGroupProps(props) {
const buttonGroupProps... | Talend/ui | packages/components/src/Actions/Actions.component.js | JavaScript | apache-2.0 | 2,392 |
define([
'services/AuthAPI',
], function (
AuthAPI,
) {
return class PermissionService {
static isPermittedGetInfo(sourceKey, conceptId) {
return AuthAPI.isPermitted(`vocabulary:${sourceKey}:concept:${conceptId}:get`);
}
static isPermittedGetRC(sourceKey) {
return AuthAPI.isPermitted(`cdmresults:${sour... | anthonysena/Atlas | js/pages/concept-sets/PermissionService.js | JavaScript | apache-2.0 | 365 |
// Derived from:
// https://www.gamefaqs.com/ps4/835628-persona-5/faqs/74769
// https://www.gamefaqs.com/ps4/835628-persona-5/faqs/74765
const personae = [
{'arcana': 'Chariot', 'level': 3, 'name': 'Agathion', },
{'arcana': 'Chariot', 'level': 10, 'name': 'Slime', },
{'arc... | arantius/persona-fusion-calculator | data5.js | JavaScript | apache-2.0 | 35,212 |
/**
* Copyright 2021 The Google Earth Engine Community 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | google/earthengine-community | samples/javascript/apidocs/ee-geometry-point-buffer.js | JavaScript | apache-2.0 | 1,271 |
(function() {
'use strict';
function SearchPanelController(BingGeoCoderService, SceneService, PathControls, Messagebus, $window, toastr, THREE, proj4) {
this.query = '';
this.hasGeoLocation = 'geolocation' in $window.navigator;
this.clear = function() {
this.query = '';
};
this.onLocati... | NLeSC/ahn-pointcloud-viewer | app/scripts/searchbox/searchbox.controller.js | JavaScript | apache-2.0 | 2,469 |
var app = angular.module("Gallery", ["ngRoute"]);
app.config(function($routeProvider) {
$routeProvider
.when("/", {
templateUrl: "home-page"
})
.when("/photo/:photoId", {
templateUrl: "photo-page"
});
}); | oprohonnyi/presentation_src | ng-training/2nd meetup/app/main.js | JavaScript | apache-2.0 | 220 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.once = once;
function once(proto, name, descriptor) {
if (!descriptor.value) {
throw new ArgumentError();
}
var done = false;
var value = null;
var fn = descriptor.value;
descriptor.value = function () {
if (do... | hansl/zenjs | lib/lib/annotations.js | JavaScript | apache-2.0 | 569 |
/**
* TenantWorkerObject
* provides API function wrapper for all calls the the Tenant services
*/
function TenantWorkerObject() {
var _endpoint = "../../../api/tenant.svc/";
var _ajax = new AJAX();
var _lastResult = null;
this.GetAllTenants = _getAllTenants;
this.AddTenant = _addTenant;
function _get... | Hevelian/hevelian-identity-web | src/main/webapp/scripts/hevelian/objects/TenantWorkerObject.js | JavaScript | apache-2.0 | 854 |
import {GestureEventListeners} from '@polymer/polymer/lib/mixins/gesture-event-listeners.js';
import * as Gestures from '@polymer/polymer/lib/utils/gestures.js';
import './contextMenuConnector.js';
window.Vaadin.Flow.Legacy.GestureEventListeners = GestureEventListeners;
window.Vaadin.Flow.Legacy.Gestures = Gestures;
| opencirclesolutions/dynamo | dynamo-frontend-export/node_modules/@vaadin/flow-frontend/contextMenuConnector-es6.js | JavaScript | apache-2.0 | 319 |
import Component from '@glimmer/component';
/**
* Draws tiles.
*
* @param { hash } def - section definition
* ```javascript
* {
* label: 'Actions',
* description: 'Please choose an action',
* maxcol => 4, // maximum tiles per row (optional, default: maximum according to browser window)
* a... | openxpki/openxpki | core/htdocs_source/app/pods/components/oxi-section/tiles/component.js | JavaScript | apache-2.0 | 1,815 |
/**
* Created by jeffstern on 7/9/14.
* Modified by Barbara Groh on 6/23/15.
*/
// This is the new way of creating JavaScript classes. It's not really a function.
function Location(title, instagram, year) {
this.title = title;
this.instagram = instagram;
this.year = year;
}
// A list of all 14 Pixar mov... | barbaragroh/barbaragroh.github.io | mobile/socialmediacode.js | JavaScript | apache-2.0 | 6,241 |
/**
* ApiError - Base Error class
*
* @author Jefferson Sofarelli<jmsofarelli@gmail.com>
* @author Christopher Will<dev@cwill-dev.com>
* @date 07-09-2013
*/
/**
* Constructor
*
* @param {String} msg Error message
* @inherits Error https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error
*/... | cwilldev/express-api | common/error.js | JavaScript | apache-2.0 | 1,249 |
'use strict';
describe('Service: constant', function () {
// load the service's module
beforeEach(module('ubirchAdminCrudApp'));
// instantiate service
var constant;
beforeEach(inject(function (_constant_) {
constant = _constant_;
}));
it('should do something', function () {
expect(!!constant)... | ubirch/ubirch-admin-ui | test/spec/services/constant.js | JavaScript | apache-2.0 | 344 |
import Ember from 'ember';
import ScrollAreaActionContext from 'ember-cli-nf-graph/utils/nf/scroll-area-action-context';
/**
A component that emits actions and events when scrolled or resized.
@namespace components
@class {nf-scroll-area}
*/
export default Ember.Component.extend({
/**
The tag name of the compone... | abarax/ember-cli-nf-graph | app/components/nf-scroll-area.js | JavaScript | apache-2.0 | 4,579 |
"use strict";
var fs = require("fs");
var path = require("path");
var env = process.env.NODE_ENV || "development";
var controllers = {};
fs
.readdirSync(__dirname)
.filter(function(file) {
return (file.indexOf(".") !== 0) && (file !== "index.js");
})
.forEach(function(file) {
v... | josegomezr/HAngulorRating | controllers/index.js | JavaScript | apache-2.0 | 456 |
define(["rdflib-pg-extension"], function(rdflibPg) {
// TODO how to externalize this store configuration???
var fetcherTimeout = 4000;
// $rdf.Fetcher.fetcherWithPromiseCrossSiteProxyTemplate = "https://www.stample.io/srv/cors?url=";
$rdf.Fetcher.fetcherWithPromiseCrossSiteProxyTemplate = "http://local... | read-write-web/react-foaf | js/scripts/globalRdfStore.js | JavaScript | apache-2.0 | 775 |
/**
* @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 requir... | osric-the-knight/foam | js/foam/graphics/webgl/flat/Object.js | JavaScript | apache-2.0 | 5,891 |
var app_token = process.argv[2];
var private_key = process.argv[3];
var Ziggeo = require("../index.js");
var ZiggeoSdk = new Ziggeo(app_token, private_key);
console.log('Start fetching video tokens ');
// 'limit' will limit how much index operation will fetch the videos. default 50 max 100
ZiggeoSdk.Videos.index({li... | Ziggeo/ZiggeoNodeSdk | demos/video_index.js | JavaScript | apache-2.0 | 614 |
/*
Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/has",["require","module"],function(g,h){var a=g.has||function(){};a.add("dom-addeventlistener",!!docume... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojo/has.js | JavaScript | apache-2.0 | 1,254 |
(function() {
'use strict';
angular.module('app.components')
.directive('footerContent', FooterContentDirective);
/** @ngInject */
function FooterContentDirective() {
var directive = {
restrict: 'AE',
replace: true,
scope: {},
link: link,
templateUrl: 'app/components/foot... | dtaylor113/manageiq-ui-self_service | client/app/components/footer/footer-content.directive.js | JavaScript | apache-2.0 | 773 |
alert("dom.js wurde geladen!") | hasselbach/ec2016-ein-leben-ohne-notesclient | JavaFX/src/ec2016/demo05/application/dom.js | JavaScript | apache-2.0 | 30 |
Titanium.UI.setBackgroundImage('bg.png');
//creating a complete group for footer navigation
/*var tabGroup = Titanium.UI.createTabGroup();
//first tab is for home
var homeWindow = Titanium.UI.createWindow({
title:'Phoughts',
url:'phoughtsList.js',
backgroundImage : 'bg.png',
navBarHidden:true
});
va... | crystal520/fb | Resources_phinkit/home.js | JavaScript | apache-2.0 | 1,418 |
/* =============================================================
* bootstrap-collapse.js v2.3.2
* http://twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | jwestbrook/bootstrap-prototype | js/bootstrap-collapse_prototype.js | JavaScript | apache-2.0 | 6,440 |
/*************************************************
* Copyright (c) 2015 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
/**
* This is the list definition for the notification templates list
* off of the settings page
*/
export default ['i18n', function(i18n){
ret... | wwitzel3/awx | awx/ui/client/src/notifications/notificationTemplates.list.js | JavaScript | apache-2.0 | 4,120 |
import React from 'react'
import PropTypes from 'prop-types'
import {compose} from 'recompose'
import Table from 'react-bootstrap/lib/Table'
import {FormattedMessage} from 'react-intl'
import mapKeys from 'lodash/mapKeys'
import camelCase from 'lodash/camelCase'
import AccountLink from './shared/AccountLink'
import F... | chatch/stellarexplorer | src/components/TradeTable.js | JavaScript | apache-2.0 | 5,322 |
define(["dojo/_base/declare",
"dojo/_base/lang",
"dojo/Deferred",
"dojo/request"],
function(declare, lang, Deferred, dojoRequest) {
var oThisClass = declare(null, {
constructor: function(args) {
lang.mixin(this,args);
},
appendAccessToken: function(url) {
var acc... | usgin/geoportal-server-catalog | geoportal/src/main/webapp/app/context/AppClient.js | JavaScript | apache-2.0 | 3,687 |
const qiniu = require("qiniu");
const proc = require("process");
var bucket = 'if-pbl';
var accessKey = proc.env.QINIU_ACCESS_KEY;
var secretKey = proc.env.QINIU_SECRET_KEY;
var mac = new qiniu.auth.digest.Mac(accessKey, secretKey);
var options = {
scope: bucket,
}
var putPolicy = new qiniu.rs.PutPolicy(options);
v... | wkmnet/admin-frontend | node_modules/qiniu/examples/resume_upload_simple.js | JavaScript | apache-2.0 | 1,192 |
var app = angular.module("application", ['ngRoute']);
app.config(['$routeProvider', '$locationProvider',
function($routeProvider, $locationProvider) {
$routeProvider.when('/', {
templateUrl: '/public/html/views/home.html',
controller: 'homeController'
});
$routeProvider.... | pollend/BonAppeSEEKServer | server/public/js/main.js | JavaScript | apache-2.0 | 687 |