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 |
|---|---|---|---|---|---|
namespace('net').REST = new (function REST() {
/*
Here we need to leverage RequestWorker and stack our requests by id.
Then, we need to get our Frame model to load images via this method
as well, bruh.
*/
var _serial = 0;
var _requests = {};
var _thread = new Worker('js/net/RequestWorker.js');
_thread.add... | hamizmz/Devengo-Prototype | js/net/REST.js | JavaScript | apache-2.0 | 1,702 |
var AdminPage = function() {
return {
initDataProfileParam: function(b) {
var a = $("#btn-profile-param");
a.hide();
$("input[data-profile-param],radio[data-profile-param],select[data-profile-param]", b).each(function() {
var f = $(this);
if (f.attr("data-profile-param-done")) {
return this
... | travelersun/common | infrastructure/platform-api-gateway/src/main/resources/static/admin/app/page.js | JavaScript | apache-2.0 | 26,558 |
// Import RBM library
importJS('RBM-0.0.2');
importJS("TaskController-0.0.1");
function isSameColor(c1, c2, diff) {
if (diff == undefined) {
diff = 20;
}
if (Math.abs(c1.r - c2.r) > diff) {
return false;
}
if (Math.abs(c1.g - c2.g) > diff) {
return false;
}
if (Math.abs(c1.b - c2.b) > diff) {... | r2-studio/robotmon-scripts | scripts/com.r2studio.LoopYT/index.js | JavaScript | apache-2.0 | 6,904 |
var fs = require('fs');
//Read Data file
var input = fs.createReadStream('./WDI_Data.csv');
// var input = fs.createReadStream('./simpledata.csv');
var aggregatorpr = require('../aggrprovider');
var accumulator = require("../accumulatorprovider");
var TimeAccumulator = new accumulator("time");
TimeAccumulator.... | stackroute/LogAggregatorRT | tattvaserver/datafunctionlib/testSamples/start.js | JavaScript | apache-2.0 | 1,712 |
extend(FolderIcon, Icon);
function FolderIcon(data, view){
var icon = this;
FolderIcon.superConstructor.call(this, data, view);
icon.element.addClass("folder_icon");
icon.holder.addClass("fa fa-folder");
} | Mino/MinoDB | default_plugins/browser_server/public_src/pages/BrowserPage/Browser/Icon/FolderIcon/FolderIcon.js | JavaScript | apache-2.0 | 212 |
/*
* Copyright 2011 2012 2013 Darko Pantić (pdarko@myopera.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | An-dz/ExtendTube | lib/update.js | JavaScript | apache-2.0 | 2,543 |
'use strict';
angular.module('letsgo')
.controller('ParentController', ['$scope', '$rootScope', '$modal', 'Auth', 'AUTH_EVENTS', 'USER_ROLES',
function ($scope, $rootScope, $modal, Auth, AUTH_EVENTS, USER_ROLES) {
// this is the parent controller for all controllers.
// Manages auth... | Loniks/LetsGo | src/main/webapp/js/parentController.js | JavaScript | apache-2.0 | 1,852 |
var
// Modules
config = require('./config'),
$ = require('gulp-load-plugins')({pattern: config.load_plugins, lazy: false}),
filelist = require('./lib/filelist'),
taskfiles = filelist("./gulpfile.js/tasks/**/*.js")
for (var i in taskfiles) {
var
taskfile = taskfiles[i],
taskname = taskfile.basen... | mirkoferraro/wp-skeleton | gulpfile.js/index.js | JavaScript | apache-2.0 | 1,443 |
/*
* Copyright 2012 Amadeus s.a.s.
* 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... | rishipatel/ariatemplates | src/aria/widgets/form/Textarea.js | JavaScript | apache-2.0 | 1,770 |
define([ "com", "jquery", "../model/space", "../model/bundle", "../feature/widget", "../ui/ui",
"handlebars!./widgets", "handlebars!./widget" ], function(
com, $, space,bundle, widgetFeature, ui, template, widgetTemplate) { return {
interfaces : [ "http://purl.org/role/ui/Panel#",
... | rwth-acis/ROLE-SDK | services/roleUUPrototype/src/main/webapp/script/role/panel/widgets.js | JavaScript | apache-2.0 | 5,413 |
import React from 'react';
import PropTypes from 'prop-types';
import FormField from '../../components/FormField';
const FormNumber = (props) => {
const { error, field, formTemplateField, onChange } = props;
const { remaining } = formTemplateField;
let min = formTemplateField.min || 0;
let max = formTemplateF... | ericsoderberg/pbc-web | ui/js/pages/form/FormNumber.js | JavaScript | apache-2.0 | 2,330 |
import {HttpClient, json} from "aurelia-fetch-client";
import {AureliaCookie} from 'aurelia-cookie';
export class Days{
mondayCorrect;
tuesdayCorrect;
wednesdayCorrect;
thursdayCorrect;
fridayCorrect;
saturdayCorrect;
sundayCorrect;
isCompletedCorrect;
days() {
if(this.monday == ... | aettelv/ESTLINGO | Estlingo/src/days/days.js | JavaScript | apache-2.0 | 4,227 |
'use strict';
var Promise = require('bluebird');
var sinon = require('sinon');
var request = require('supertest');
var chai = require('chai');
var TestsHelper = require('./../support/TestsHelper');
var fakeApp = require('./../support/fake-app');
var DevicesM... | gaastonsr/pill-dispenser | test/controllers/DevicesController.test.js | JavaScript | apache-2.0 | 10,556 |
/*
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | yext/closure-templates | javascript/soyutils_velog.js | JavaScript | apache-2.0 | 13,728 |
'use strict';
/* js wirte for teain
* design and code by Yuzo
*/
/* App Module */
var teaApp = angular.module('tea', [
'ngRoute',
'ngAnimate',
'teaControllers'
]);
teaApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'part... | Preffer/teain | js/script.js | JavaScript | apache-2.0 | 9,850 |
/*!
* Copyright 2013 Apereo Foundation (AF) Licensed under the
* Educational Community License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... | Coenego/Hilary | node_modules/oae-telemetry/lib/api.js | JavaScript | apache-2.0 | 17,415 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/dists/laplace/ctor/lib/ctor.js | JavaScript | apache-2.0 | 10,994 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/asset-registries/Icons'], function (Icons) { 'use strict';
const name = "sys-back";
const pathData = "M256 0q53 0 99.5 20T437 75t55 81.5 20 99.5q0 52-20 98.5T437 436t-81.5 55-99.5 20q-52 0-98.5-20T76 436t-55-81.5T1 256q0-53 20-99.5T76 75t81.5-55T256 0zm0 460q42 0 79... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/v5/sys-back.js | JavaScript | apache-2.0 | 870 |
$axure.loadDocument({
"configuration":{
"showPageNotes":true,
"showPageNoteNames":false,
"showAnnotations":true,
"linkStyle":"b",
"linkFlowsToPages":true,
"linkFlowsToPagesNewWindow":true,
"hideAddress":false,
"preventScroll":false,
"useLabels":false,
"enabledViewIds":[],
... | yicold/axure-case | jzb/嘉禾良木-兼职邦-后台V1.0/data/document.js | JavaScript | apache-2.0 | 50,354 |
'use strict';
angular.module('LTBApp.managementmessgs', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/managementMessages/:stackid', {
templateUrl: path_root + 'modules/messages/management-messages.html',
controller: 'ManagementMssgsCtrl',
controll... | learning-layers/LTB-Tilestore | app/www/modules/messages/management-messages.js | JavaScript | apache-2.0 | 4,396 |
var CONST = require('../../const');
/**
* the Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its width and its height.
*
* @class
* @memberof PIXI
* @param x {number} The X coordinate of the upper-left corner of the rectangle
* @param y {number} The Y... | google/web-bsd-hunt | third_party/src/github.com/pixijs/pixi.js/src/core/math/shapes/Rectangle.js | JavaScript | apache-2.0 | 4,715 |
/*!
Copyright (C) 2016 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
(function (can, $) {
can.Control('GGRC.Controllers.SummaryWidget', {
defaults: {
model: null,
instance: null,
widget_view: GGRC.mustache_path + '/base_objects/summary.musta... | andrei-karalionak/ggrc-core | src/ggrc/assets/javascripts/controllers/summary_widget_controller.js | JavaScript | apache-2.0 | 5,229 |
// pages/index/index.js
Page({
data:{
items: []
},
onLoad:function(options){
var that = this;
wx.request({
url: getApp().data.serverurl+'/wxapp/rest/micclass',
data:options.id,
method:"POST",
header: {
'content-type': 'application/json'
},
success: functi... | zzsoszz/weixinmicro-demo | pages/index/index.js | JavaScript | apache-2.0 | 1,067 |
'use strict';
var webpack = require('webpack')
var path = require('path')
var env = process.env.NODE_ENV
var config = {
module: {
loaders: [
{
test: /\.es6$/,
loader: 'babel-loader',
include: [
path.resolve(__dirname),
]
},
{
test: /\.js$/,
... | davidrios/light-components | demo/webpack.config.js | JavaScript | apache-2.0 | 799 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/dists/laplace/median/lib/median.js | JavaScript | apache-2.0 | 1,381 |
var term = require("ringo/term");
var shell = require("ringo/shell");
var fs = require("fs");
var log = require("ringo/logging").getLogger(module.id);
var semver = require("../utils/semver");
var registry = require("../utils/registry");
var packages = require("../utils/packages");
var {Resolver, Resolved} = require("..... | grob/rp | lib/commands/install.js | JavaScript | apache-2.0 | 7,618 |
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var graphql_1 = require("graphql");
var TransformCompositeFields_1 = __importDefault(require("./TransformComposit... | BigBoss424/portfolio | v8/development/node_modules/graphql-tools-fork/dist/wrap/transforms/TransformObjectFields.js | JavaScript | apache-2.0 | 1,518 |
<%#
Copyright 2013-2017 the original author or authors from the StackStack project.
This file is part of the StackStack project, see http://www.jhipster.tech/
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.
Yo... | siliconharborlabs/generator-jhipster | generators/client/templates/angularjs/src/main/webapp/app/admin/user-management/_user-management-dialog.controller.js | JavaScript | apache-2.0 | 2,292 |
/*
* Context.js
* Copyright Jacob Kelley
* MIT License
*/
var context = context || (function () {
var options = {
fadeSpeed: 100,
filter: function ($obj) {
// Modify $obj, Do not return
},
above: 'auto',
preventDoubleContext: true... | edvin/tornadofaces | tornadofaces/src/main/resources/META-INF/resources/tornadofaces/context.js | JavaScript | apache-2.0 | 5,687 |
$(function () {
//$('.pilotlogopicker').selectpicker();
pilotclasstable = $('#TablePilotClass').DataTable({
columns: [
{
data: "PilotClass",
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
$(nTd).html("<a hr... | flyvfr/lessontrack | lessonweb/lessonweb/Assets/js/PilotClassManagement.js | JavaScript | apache-2.0 | 8,793 |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | vin/dashboard | src/app/frontend/index_module.js | JavaScript | apache-2.0 | 5,878 |
DiabloCalc.simMapping = {
status: {
chilled: "Chilled",
frozen: "Frozen",
blinded: "Blinded",
stunned: "Stunned",
slowed: "Slowed",
knockback: "Knockback",
charmed: "Charmed",
feared: "Feared",
rooted: "Immobilized",
},
targetOptions: {
distance: {var: "targetDistance", nam... | d07RiV/d3planner | scripts/data/simbuffs.js | JavaScript | apache-2.0 | 45,006 |
var bridge_8h =
[
[ "bridge_exit", "bridge_8h.html#aee52c3b15199f08771ccb4d9b9979169", null ],
[ "bridge_get_memory_usage", "bridge_8h.html#a97dce0636ece5f5275ada723ad0ef4c1", null ],
[ "bridge_init", "bridge_8h.html#ada9a681447681bff7cc117b31fe4ae48", null ],
[ "bridge_run", "bridge_8h.html#af7ffe31faf... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/bridge_8h.js | JavaScript | apache-2.0 | 435 |
/**
* Copyright 2015-2021 OpenCB
*
* 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... | opencb/jsorolla | src/webcomponents/family/family-create.js | JavaScript | apache-2.0 | 9,302 |
'use strict';
var Backbone = require('backbone'),
Pod = require('../models/pod');
var Pods = Backbone.Collection.extend({
model: Pod,
url: '/pods/'
});
module.exports = Pods;
| mulleady1/podsy | static/js/collections/pods.js | JavaScript | apache-2.0 | 190 |
// 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 in ... | googleapis/nodejs-bigquery | samples/browseTable.js | JavaScript | apache-2.0 | 2,811 |
import React, { PropTypes } from 'react'
import Linkify from 'linkifyjs/react'
import classes from './AutolinkedText.scss'
export default class AutolinkedText extends React.Component {
static propTypes = {
text: PropTypes.string.isRequired
}
render () {
const options = {
attributes: {
rel:... | ks888/LambStatus | packages/frontend/src/components/common/AutolinkedText/index.js | JavaScript | apache-2.0 | 478 |
import Enum from '@gdbots/pbj/Enum.js';
export default class SearchAppsSort extends Enum {
}
SearchAppsSort.configure({
UNKNOWN: 'unknown',
RELEVANCE: 'relevance',
CREATED_AT_ASC: 'created-at-asc',
CREATED_AT_DESC: 'created-at-desc',
UPDATED_AT_ASC: 'updated-at-asc',
UPDATED_AT_DESC: 'updated-at-desc',
... | gdbots/schemas | build/js/src/gdbots/iam/enums/SearchAppsSort.js | JavaScript | apache-2.0 | 407 |
/*
* 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... | puckey/dance-tonite | src/utils/padNumber.js | JavaScript | apache-2.0 | 650 |
/**
* @param {number[]} nums1
* @param {number} m
* @param {number[]} nums2
* @param {number} n
* @return {void} Do not return anything, modify nums1 in-place instead.
*/
var merge = function(nums1, m, nums2, n) {
if (n) {
let mIndex = m-1, nIndex = n-1;
let curIndex = nums1.length-1;
while (curInd... | hijiangtao/LeetCodeOJ | src/merge-sorted-array/res.js | JavaScript | apache-2.0 | 621 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | lukmajercak/hadoop | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/serializers/yarn-app-log.js | JavaScript | apache-2.0 | 1,409 |
class AttachmentNodeView extends NodeViewImpl {
constructor(node) {
super(node);
this.SVG_NS = 'http://www.w3.org/2000/svg';
this.titleText = new TextElement(node.title);
this.titleText.fitSize(228);
this.dimension = new Point(249, 90);
}
displayData() {
var ... | time-flies/node-tree | view/AttachmentNodeView.js | JavaScript | apache-2.0 | 3,437 |
var structif__notifier =
[
[ "aux", "structif__notifier.html#afdc6b1b7e88da6626ca332b633860804", null ],
[ "cb", "structif__notifier.html#ae72471d10cd2eeddc59d3a462ca98f9f", null ],
[ "notifier", "structif__notifier.html#ad73f889dbfe14fcba7e5bfc7587199ae", null ],
[ "notifier", "structif__notifier.html#... | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structif__notifier.js | JavaScript | apache-2.0 | 365 |
$(function() {
function redraw()
{
var el = $('#myCanvas')[0];
var width = $('#width').val();
var height = $('#height').val();
var wc = $('#widthcol').val();
var ratio = (height / width);
el.height = ratio * el.width;
var widthcol = (el.width / width) * wc;
var ctx = el.getContext('2d');
//... | thriqon/fotobuch.jonasw.de | js/app.js | JavaScript | apache-2.0 | 979 |
var thirdPartyString = "Party time!";
var anotherThirdPartyString = "Yes!";
function hello() {
console.log("this is a javascript file");
}
hello();
| spotify/lingon | tests/system/basic/fixtures/index.js | JavaScript | apache-2.0 | 154 |
// Example menu.
document.write(
'<div class="evo-box evo-content-index">'
+ '<script src="../js/include-evothings-logo.js"></script>'
+ '<a href="../examples/hello-world.html">Hello World</a><br/>'
+ '<a href="../examples/cordova-basic.html">Cordova Basic</a><br/>'
+ '<a href="../examples/hue-lights.html">Philip... | applekao/bluejuice | documentation/js/include-example-menu.js | JavaScript | apache-2.0 | 1,595 |
var express = require('express');
var app = express();
app.use(express.static(__dirname + '/'));
app.get('/',function(req,res){
res.sendfile('landing.html');
});
app.get('/home',function(req,res){
res.sendfile('index2.html');
});
var port = 80
app.listen(port, function(){
}) | danaress/con | app.js | JavaScript | apache-2.0 | 284 |
function Contact(response, connection) {
var data = response;
var performContactsFunction = function() {
if (data.contactinfo === 'name') {
Ti.Contacts.showContacts({
selectedPerson : function(e) {
var fields = [];
if (e.person.fullName) {
fields.push({
name : 'FULLNAME',
value... | neerup/firstProject | app/lib/Contact.js | JavaScript | apache-2.0 | 4,966 |
/* eslint-disable global-require */
module.exports = [
require('./v4'),
require('./v5'),
];
| r-spacex/SpaceX-API | routes/launches/index.js | JavaScript | apache-2.0 | 97 |
/**
* Created by Jo on 2017/8/30.
*/
import React, { Component, PropTypes } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ListView,
Dimensions,
ActivityIndicator,
Modal,
AsyncStorage,
DeviceEventEmitter,
} from 'react-native';
// 获取屏幕尺寸
const {w... | jo-liu/GD | app/ht/GDHt.js | JavaScript | apache-2.0 | 13,325 |
/* global __filename */
import { getLogger } from 'jitsi-meet-logger';
import { parseSecondarySSRC, SdpTransformWrap } from './SdpTransformUtil';
import SDPUtil from './SDPUtil';
const logger = getLogger(__filename);
/**
* Begin helper functions
*/
/**
* Updates or inserts the appropriate rtx information for prim... | adambowles/lib-jitsi-meet | modules/xmpp/RtxModifier.js | JavaScript | apache-2.0 | 8,282 |
/************************************************/
/* IPB3 Javascript */
/* -------------------------------------------- */
/* acp.rss.js - RSS Form javascript */
/* (c) IPS, Inc 2008 */
/* -------------------------------------------- */
/* Author: Brandon Farber */
/*******************************... | XR-s/Do-an-Sar- | forum/admin/applications/forums/js/acp.rss.js | JavaScript | apache-2.0 | 1,187 |
var a04191 =
[
[ "Length", "a04191.html#aec4db97b1c2821754a9413e4b1eabd6a", null ],
[ "NumBL", "a04191.html#adc5429a5fc5177e515af3e58fbe7092d", null ],
[ "NumCN", "a04191.html#af747879e0e7f290f9397e2812fa43fb5", null ],
[ "Rx", "a04191.html#a3b493419f1ae76f1adb1dbfa2c8df099", null ],
[ "Ry", "a04191... | stweil/tesseract-ocr.github.io | 4.0.0/a04191.js | JavaScript | apache-2.0 | 732 |
/**
* Desc
* @description Holp You Do Good But Not Evil
* @copyright Copyright 2014-2015 <ycchen@iwshop.cn>
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chenyong Cai <ycchen@iwshop.cn>
* @package Wshop
* @link http://www.iwshop.cn
*/
requirejs(['jquery', 'ut... | chenyongze/iwshop | static/script/Wdmin/settings/autoresponse.js | JavaScript | apache-2.0 | 2,202 |
import React, { Component } from 'react';
import { TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { Actions, ActionConst } from 'react-native-router-flux';
import { Container, Header, Title, Content, Text, Button, Icon, Left, Body, Right, List, ListItem,Thumbnail,Footer,Fab,View,... | aditya-simplecrm/iosReactAppNoresha | js/components/home/index.js | JavaScript | apache-2.0 | 6,118 |
define('crm/Views/_MetricDetailMixin', ['module', 'exports', 'dojo/_base/declare', './MetricWidget'], function (module, exports, _declare, _MetricWidget) {
Object.defineProperty(exports, "__esModule", {
value: true
});
var _declare2 = _interopRequireDefault(_declare);
var _MetricWidget2 = _interopRequireD... | Saleslogix/argos-saleslogix | src-out/Views/_MetricDetailMixin.js | JavaScript | apache-2.0 | 3,316 |
//var gzippo = require('gzippo');
var express = require('express');
var logger = require('morgan');
var bodyParser = require('body-parser');
var app = express();
var library = require('./services/routes/library');
module.exports = app;
app.use(logger('combined'));
// parse application/json
app.use(bodyParser.json())... | PheMA/phema-library | library.js | JavaScript | apache-2.0 | 559 |
var pc = require("../..");
var pixi = require("pixi.js");
var extend = require("xtend/mutable");
var pixiDocument = require("../common/documents/pixi");
var pixiElements = require("./elements/pixi");
pc.compile = require("../../compile/default");
pc.modifiers = {
range: funct... | kevoree-modeling/plugin_template | paperclip/examples/bunnies/index.js | JavaScript | apache-2.0 | 2,096 |
(function () {
'use strict';
angular.module('app.auth', [
'directives.inputMatch',
'ngMessages',
'satellizer',
'ui.router',
'app.config',
'exceptionless',
'exceptionless.analytics',
'exceptionless.auth',
'exceptionless.autofocus',
'exceptionless.notification',
'exceptio... | exceptionless/Exceptionless.UI | src/app/auth/auth.js | JavaScript | apache-2.0 | 2,070 |
/**
* @license
* Copyright 2016 E2EMail 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... | e2email-org/e2email | chrome/app.js | JavaScript | apache-2.0 | 7,812 |
/**
Given two strings S and T, determine if they are both one edit distance apart
*/
/**
* @param {string} s
* @param {string} t
* @return {boolean}
*/
var isOneEditDistance = function(s, t) {
for (let i = 0; i < Math.min(s.length, t.length); i++) {
if (s.charAt(i) !== t.charAt(i)) {
if (s.l... | hustbill/learn-node | codeleet-js/lc-js-ref/One Edit Distance.js | JavaScript | apache-2.0 | 685 |
export default {
'namespaced': true,
'state': {
'dialogVisible': false,
'defaultParameters' : null,
},
'getters': {
'dialogVisible': function(state) {
return state.dialogVisible
},
'defaultParameters': function(state) {
return state.default... | DiamondLightSource/SynchWeb | client/src/js/modules/types/em/store/processing-module.js | JavaScript | apache-2.0 | 970 |
var searchData=
[
['option_5fnames',['OPTION_NAMES',['../aureport-options_8c.html#acbb8d7317488e374bbb2fcc2d31027d9',1,'OPTION_NAMES(): aureport-options.c'],['../ausearch-options_8c.html#acbb8d7317488e374bbb2fcc2d31027d9',1,'OPTION_NAMES(): ausearch-options.c']]],
['origflags',['origflags',['../ev__wrap_8... | onosfw/apis | audit/apis/search/defines_6f.js | JavaScript | apache-2.0 | 382 |
function renderPuzzle(dim)
{
this.dim = dim;
this.div_width = 100.0/this.dim;
this.getDivHTML = function(id)
{
width = this.div_width.toString();
id = id.toString();
var html = '<div class="square" style="width: ' + width + '%; padding-bottom: ' + width + '%">' +
'<div class="content">' +
... | MayankAgarwal/ai_apps | assets/js/render.js | JavaScript | apache-2.0 | 1,331 |
var should = require('should');
var assert = require('assert');
var util = require('util');
var log = util.debuglog('test');
var ba = require('../../index.js');
describe('basicpush', function () {
var testHost = 'dev.bridgeit.io';
var testAccount = 'bridgeit_demo';
var testRealm = 'context.chat';
var ... | bridgeit/bridgeit-adapters | test/core/basicpush-test.js | JavaScript | apache-2.0 | 4,320 |
// modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... | stdlib-js/www | public/docs/api/latest/@stdlib/ndarray/base/sub2ind/benchmark_bundle.js | JavaScript | apache-2.0 | 926,667 |
/*
jQWidgets v4.5.0 (2017-Jan)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
let jqxScrollView = React.createClass ({
getInitialState: function () {
return { value: '' };
},
componentDidMount: function () {
let options = this.manageAttributes();... | dhawal9035/WebPLP | src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxscrollview.js | JavaScript | apache-2.0 | 5,707 |
var ap_policyDataObject = (function() {
function voObjectConstruction()
{
var data={};
data.datasource = "";
data.policy_domain_code = "";
data.commodity_domain_code = "";
data.commodity_class_code = "";
data.policy_type_code = [];
data.policy_measure_cod... | FENIX-Platform-Projects/amis-services-policy-data-input | src/main/webapp/js/common/policyDataObject.js | JavaScript | apache-2.0 | 1,445 |
module.exports = {
extends: 'airbnb-base',
globals: {
document: true,
chrome: true,
fetch: true,
},
rules: {
'max-len': [
'error',
{
ignoreComments: true,
ignoreTrailingComments: true,
ignoreUrls: true,
ignoreStrings: true,
code: 100,
},
... | thiagoribeir015/spotify-control-chrome-extension | .eslintrc.js | JavaScript | apache-2.0 | 335 |
(function () {
var footerController = function ($scope, $location) {
$scope.isActive = function (route) {
return route === $location.path();
};
};
footerController.$inject = ['$scope', '$location' ];
angular.module("codename").controller("footerController", footerContro... | grogdj/codename | codename-html5/app/controllers/footerController.js | JavaScript | apache-2.0 | 334 |
/* eslint-disable import/no-webpack-loader-syntax, import/no-unresolved */
import debug from 'debug';
import { size, each, includes, isEqual } from 'lodash';
import { fromJS, is as isDeepEqual, List as makeList, Map as makeMap,
OrderedMap as makeOrderedMap, Set as makeSet } from 'immutable';
import ActionTypes from ... | paulbellamy/scope | client/app/scripts/reducers/root.js | JavaScript | apache-2.0 | 25,263 |
/*
* Copyright (c) 2016 Internet of Protocols Alliance (IOPA)
*
* 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 ... | iopa-io/iopa-http | src/middleware/iopaHTTP.js | JavaScript | apache-2.0 | 3,719 |
/*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | datastax/nodejs-driver | test/unit/tokenizer-tests.js | JavaScript | apache-2.0 | 5,847 |
var _ = require('underscore');
var Type = require('./Type');
var Client = require('mariasql');
var handler = {
//Logical and Grouping Operators
chk: function(query, op, dataType) {
var property = query.modelObject.getPropertyByName(op.values[0]);
var name = Client.escape(property.getMappedName());
var result ... | sbirk1983/cushy-data-mariadb | QueryOp.js | JavaScript | apache-2.0 | 6,964 |
/**
* Created by rikoizz on 16-7-8.
*/
var db = require('../database/index');
var course = db.models.course;
var student_belongsto_course = db.models.student_belongsto_course;
var teacher_belongsto_course = db.models.teacher_belongsto_course;
var getAllCourses = function(){
return course.findAll();
};
var getC... | Courseplusplus/Courseplusplus | models/provider/course/index.js | JavaScript | apache-2.0 | 2,069 |
/**
* @class ConfigurationDaoTests
* @classdef test configurations for various environments
*
* @author: darryl.west@raincitysoftware.com
* @created: 3/22/14 12:09 PM
*/
var should = require('chai').should(),
MockLogManager = require('node-commons' ).mocks.MockLogManager,
DataSourceFactory = require('node... | darrylwest/platform-mvc | code-generation/test/dao/ConfigurationDaoTests.js | JavaScript | apache-2.0 | 5,089 |
import React from 'react'
import './Login.scss'
import {
ButtonArea,
Button,
Cell,
CellHeader,
CellBody,
Dialog,
Form,
FormCell,
Input,
Toast,
Footer,
FooterText
} from 'react-weui/build/packages';
import {Redirect} from 'react-router-dom'
class Login extends React.Compo... | templatetools/trace | app/src/routes/login/Login.js | JavaScript | apache-2.0 | 3,755 |
// Copyright (c) 2011+, HL7, Inc & The MITRE Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, t... | jpgtama/fhir-learning | fhir_server/app/models/list.js | JavaScript | apache-2.0 | 3,146 |
'use strict';
var AbstractClientResource = require('./../abstract-client-resource');
/**
* No-Op callback
*/
function noop() {}
/**
* CaseExecution Resource
* @class
* @memberof CamSDK.client.resource
* @augments CamSDK.client.AbstractClientResource
*/
var CaseExecution = AbstractClientResource.extend();
/**... | lightswitch05/camunda-bpm-sdk-js | lib/api-client/resources/case-execution.js | JavaScript | apache-2.0 | 1,329 |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
/**
* @module
* @description
* Entry point to i18n
*/
__export(require('./src/i18n/message'));
__export(require('./src/i18n/xmb_serializer'));
__export(require('./src/i18n/message_extractor'));
__export(re... | tzerb/Learning | WebApplication3/src/WebApplication3/jspm_packages/npm/dist/js/cjs/i18n.js | JavaScript | apache-2.0 | 391 |
#!/usr/bin/env node
var express=require('express');
var app = express();
var port = process.env.PORT || 8080;
app.get('/', function (req, res) {
res.send( { Portada: true } );
});
app.get('/proc', function (req, res) {
res.send( { Portada: false} );
});
app.listen(port);
console.log('Server running at http:... | JJ/trabajando-con-paas | src/express-min.js | JavaScript | artistic-2.0 | 345 |
/**
* Title New Year Chaos
* URL https://www.hackerrank.com/challenges/new-year-chaos
*
* Author Norman Gamage <norman.gamage@gmail.com>
* Version 1.0
* Last Update 2016 June 06
*/
function main() {
// Methods
let shift = function (arr, s, e) {
let tmp = arr[s];
... | norman-gamage/hackerrank | __old__/Algorithms/JavaScript/Implementation/new-year-chaos.js | JavaScript | artistic-2.0 | 1,445 |
var chat = {
jq: jQuery.noConflict(true)
};
chat.jq.extend(chat, {
el:
{
login: chat.jq('#login'),
username: chat.jq('#username'),
chatroom: chat.jq('#chatroom'),
messages: chat.jq('#messages'),
users: chat.jq('#users'),
message: chat.jq('#message'),
},
socket: io.connect('192.168.0.20'),
current... | loic-sharma/chat | public/assets/js/chatroom.js | JavaScript | bsd-2-clause | 2,516 |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... | hichameyessou/blip | app/components/donatebanner/donatebanner.js | JavaScript | bsd-2-clause | 3,639 |
/**
* Constructor for secureStorage facade for application interaction with
* localStorage or sessionStorage.
*
* @param {String} encKey Hexadecimal string for encryption key, 256 bits.
* @param {sessionStorage} storage Optional, defaults to localStorage. sessionStorage may be
* specified if data does not nee... | RichardRoda/AFCEALocalStorageSecurity | common/SecureLocalStorage.js | JavaScript | bsd-2-clause | 3,281 |
var path = require('path')
var concat = require('concat-stream')
var buff = require('multibuffer')
var bops = require('bops')
var protobuf = require('protocol-buffers')
var docUtils = require(path.join(__dirname, '..', '..', 'lib', 'document'))
module.exports.rowKeys = function(test, common) {
test('rowKeys returns ... | jbenet/dat | test/tests/crud.js | JavaScript | bsd-2-clause | 8,883 |
var searchData=
[
['db_5fschema',['DB_SCHEMA',['../class_able_polecat___version.html#a3dabb8ef8d3bd6fa02733c41a6235316',1,'AblePolecat_Version']]],
['ddl',['DDL',['../interface_able_polecat___query_language___statement_interface.html#a7210fa9cc6bbea915e94014e1e01f76d',1,'AblePolecat_QueryLanguage_StatementInterface... | kkuhrman/AblePolecat | usr/share/documentation/html/search/variables_4.js | JavaScript | bsd-2-clause | 840 |
import md5 from 'md5';
import { Base64 } from 'js-base64';
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) {
symbols = symbols.filter(function (sym) {
retur... | imgix/imgix-core-js | dist/index.esm.js | JavaScript | bsd-2-clause | 16,224 |
define(function () {
function Version(major, minor, patch) {
this.major = major;
this.minor = minor;
this.patch = patch;
}
Version.TOKENIZER = new RegExp(
"^" +
"([0-9]+)" + // major
"(?:" +
"[\\._-]([0-9]+)" + // minor
")?" +
"(?:" +
"[\\._-]([0-9]+)" + ... | bramstein/stateofwebtype | src/js/version.js | JavaScript | bsd-2-clause | 2,380 |
tar = Npm.require('tar'); | peerlibrary/meteor-tar | server.js | JavaScript | bsd-2-clause | 25 |
var stream = require('stream');
var util = require('util');
var Transform = stream.Transform;
util.inherits(StringifyStream, Transform);
function StringifyStream(stream) {
Transform.call(this, { objectMode: true });
if(stream) {
this._stream = stream;
this._stream.pipe(this);
}
}
StringifyStream.prototype._... | essdot/satellite-streams | stream-classes/stringify-stream.js | JavaScript | bsd-2-clause | 471 |
(function(){
'use strict()';
var MODULE = 'crossroads.core';
/* The Volunteer Service */
angular.module(MODULE).factory('VolunteerApplication', require('./volunteerApplication.service'));
/* The Adult Application */
angular.module(MODULE).controller('KidsClubAdultApplicationController',
require('.... | crdschurch/crds-corejs | app/components/volunteer_applications/index.js | JavaScript | bsd-2-clause | 5,156 |
// Copyright 2019 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Unicode property escapes for `Script=Shavian`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v12.... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/RegExp/property-escapes/generated/Script_-_Shavian.js | JavaScript | bsd-2-clause | 1,430 |
import Translation from './Translation';
const TranslationRoute = [
{
path: 'translation',
name: 'translation',
component: Translation
}
];
export default TranslationRoute;
| mshossain110/LaravelAdmin | resources/assets/admin/src/components/Translation/route.js | JavaScript | bsd-2-clause | 208 |
/**
* A JavaScript project for accessing the accelerometer and gyro from various devices
*
* @author Tom Gallacher <tom.gallacher23@gmail.com>
* @copyright Tom Gallacher <http://www.tomg.co>
* @version 0.0.1a
* @license MIT License
* @options frequency, callback
*/
(function (root, factory) {
if (typeof defin... | wushuyi/induction-background | assets/libs/gyro.js/gyro.js | JavaScript | bsd-2-clause | 6,405 |
var _ = require('underscore');
var TableNameUtils = require('../../helpers/table-name-utils');
var memo = {};
var OPTIONAL_OPTS = [
'querySchemaModel',
'layerDefinitionModel',
'tokens'
];
var defaults = {
tableName: true,
columnsName: true,
keywords: true
};
module.exports = {
init: function (opts) {
... | splashblot/dronedb | lib/assets/javascripts/cartodb3/editor/editor-hints/factory-hints.js | JavaScript | bsd-3-clause | 2,010 |
import React from 'react';
import PropTypes from 'prop-types';
import LogoItem from "./logo-item";
import ItemsList from "./items-list/items-list";
import EntryNode from './entry-node';
import './styles/navbar-styles.css';
import './styles/navbar-media-queries.css';
const NavbarDesktop = ({handleSignOut, activeUser, p... | vFujin/HearthLounge | src/containers/layout/navbar/navbar-desktop.js | JavaScript | bsd-3-clause | 660 |
//v.3.6 build 131108
/*
Copyright DHTMLX LTD. http://www.dhtmlx.com
To use this component please contact sales@dhtmlx.com to obtain license
*/
/**
* @desc: radio editor
* @returns: dhtmlxGrid cell editor object
* @type: public
*/
function eXcell_ra_str(cell){
if (cell){
this.base = eXcell_ra;
... | arvindjha304/aadinathportal | public/dhtmlxgrid/sources/excells/dhtmlxgrid_excell_ra_str.js | JavaScript | bsd-3-clause | 1,682 |
var users = angular.module('UsersModule',[]);
users.controller('UsersController',function($scope){
$scope.message="Mick mtaki";
/*$scope.createUser=function(users){
$scope.datas=angular.copy(users);
}*/
});
| mtaki/BongoERP | public/js/controllers/users-controller.js | JavaScript | bsd-3-clause | 233 |
/* @flow */
import type { LambdaContext, LambdaCallbackFunc } from './FlowTypes';
import App from './App';
exports.handler = async (event: Object, context: LambdaContext, callback: LambdaCallbackFunc) => {
try {
const app = new App();
const result = await app.runAsync();
callback(null, result);
} catch... | channl/create-lambda-app | packages/lambda-scripts/template/src/index.js | JavaScript | bsd-3-clause | 355 |