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('gigsecApp') .controller('GigResignupController', function($scope, $uibModalInstance, entity, GigSignup) { $scope.gig = entity.gig; $scope.gigSignup = entity.signup; $scope.clear = function() { $uibModalInstance.dismiss('cancel'); }; v...
clamped/gigsec
src/main/webapp/scripts/app/entities/gigSignup/gigSignup-resignup-dialog.controller.js
JavaScript
apache-2.0
840
/** * DO NOT EDIT THIS FILE as it will be overwritten by the Pbj compiler. * @link https://github.com/gdbots/pbjc-php * * Returns an array of curies using mixin "triniti:boost:mixin:search-sponsors-request:v1" * @link http://schemas.triniti.io/json-schema/triniti/boost/mixin/search-sponsors-request/1-0-0.json# */...
triniti/schemas
build/js/src/manifests/triniti/boost/mixin/search-sponsors-request/v1.js
JavaScript
apache-2.0
342
//// [classImplementsClass6.ts] class A { static bar(): string { return ""; } foo(): number { return 1; } } class C implements A { foo() { return 1; } } class C2 extends A {} var c: C; var c2: C2; c = c2; c2 = c; c.bar(); // error c2.bar(); // should error //// [classImplemen...
freedot/tstolua
tests/baselines/reference/classImplementsClass6.js
JavaScript
apache-2.0
1,078
import React from "react"; import {waitForElementToBeRemoved, wait} from "@testing-library/react"; import render from "../../../helpers/testHelper"; import baseProps from "../../../stories/helpers/baseProps"; import Component from "./index"; import BridgeMapMock from "mocks/cards/BridgeMap.mock"; it.skip("should rende...
Thorium-Sim/thorium
src/components/views/BridgeMap/BridgeMap.test.js
JavaScript
apache-2.0
9,710
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.22/esri/copyright.txt for details. //>>built define("esri/tasks/RouteParameters","dojo/_base/declare dojo/_base/lang dojo/_base/json dojo/has ../kernel ../lang ../graphicsUtils ./NATypes".split(" "),function(c...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/tasks/RouteParameters.js
JavaScript
apache-2.0
4,459
/** * myCarousel */ angular.module(PKG.name+'.directives').directive('myCarousel', function myCarouselDirective ($interval) { return { restrict: 'AC', link: function (scope, element, attrs) { element.addClass('my-carousel'); var currentSlide = 1, allSlides = element.find('section'),...
gaarf/ng-wpwebz
app/js/directives/carousel/carousel.js
JavaScript
apache-2.0
1,441
TornadoFaces.declareWidget('List', function() { var widget; function isFunction(functionToCheck) { var getType = {}; return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; } this.init = function() { widget = this; widget.items = widge...
edvin/tornadofaces
tornadofaces/src/main/resources/META-INF/resources/tornadofaces/list.js
JavaScript
apache-2.0
1,913
/* * Copyright 2015 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 in wr...
kalyanreddyemani/opencga
opencga-catalog/src/main/resources/mongodb-indexes.js
JavaScript
apache-2.0
1,357
emailForm = function() { var remite = prompt("Introduzca correo de contacto: "); document.getElementById("remite").value; if (remite != '' && remite != null && nombre != '' && nombre != null && telefono != '' && telefono != null) { itemsString = ""; esubtotal = 0; egastos = 0; etotal = 0; for(...
Kamillu/kamillu.github.io
emailform.js
JavaScript
apache-2.0
2,020
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides class sap.ui.model.odata.ODataAnnotations sap.ui.define(['./AnnotationParser', 'jquery.sap.global', 'sap/ui/Device', 'sap...
SuicidePreventionSquad/SeniorProject
resources/sap/ui/model/odata/ODataAnnotations-dbg.js
JavaScript
apache-2.0
21,015
var app = { initialize: function() { this.bind(); this.run(); }, bind: function() { var self = this; document.getElementById("page-request-form").addEventListener('submit', function(e) { var address = document.getElementById("page-request-address"); se...
phonegap/emulate.phonegap.com
public/js/index.js
JavaScript
apache-2.0
3,293
/** * Copyright 2013-2018 the original author or authors from the JHipster project. * * This file is part of the JHipster project, see https://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 L...
sohibegit/generator-jhipster
generators/common/index.js
JavaScript
apache-2.0
7,756
/* * #%L * %% * Copyright (C) 2017 BMW Car IT GmbH * %% * 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 app...
bmwcarit/wscpp
test/js/echo.test.js
JavaScript
apache-2.0
2,988
// fieldFiltering.js // ------------------------------------------------------------------ // // Logic for filtering fields (include or exclude) from a JSON hash. // There is one public method that gets exposed. // // function applyFieldFilter(action, obj, fields) {...} // // @action : 'include' or 'exclude' // ...
apigee/apigeelint
test/fixtures/resources/sample-proxy-with-issues/response-shaping/apiproxy/resources/jsc/fieldFiltering.js
JavaScript
apache-2.0
6,685
/** * List Component: Basic Usage */ import React from 'react'; import NavList from '../NavList'; import NavListSection from '../../NavListSection'; import NavListItem from '../../NavListItem'; export default () => ( <div> <NavList> <NavListSection label="Settings" activeLink="#organization"> <N...
folio-org/stripes-components
lib/NavList/stories/BasicUsage.js
JavaScript
apache-2.0
1,277
/** * Copyright 2016 Henning Treu * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
htreu/OpenHAB-HomeKit-Bridge
lib/SitemapParser.js
JavaScript
apache-2.0
2,139
var _ = require("underscore"), Util = require("../lib/util.js"), rethinkdb = require("rethinkdb"); var defaultOptions = { host : "localhost", port : 28015, dbName : "test", tableName : "user" } var initializeOptions = function( options ){ if(!_.isNull(options) && _.isObject(options)){ return _.extend(defaul...
aaroneast1/user-service
lib/user-db.js
JavaScript
apache-2.0
2,710
/** * Copyright (c) 2016 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 ...
trustedanalytics/console
app/ui/app/applications/application/register/ApplicationRegisterHelpers.js
JavaScript
apache-2.0
1,639
/** * @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/weibull/variance/test/test.js
JavaScript
apache-2.0
3,156
/* Copyright 2015, 2016 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, sof...
aperezdc/matrix-react-sdk
src/components/views/login/CaptchaForm.js
JavaScript
apache-2.0
4,640
import './scss/root-theme.scss';
mschile/terra-core
packages/terra-legacy-theme/src/index.js
JavaScript
apache-2.0
33
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
RaghavendraSingh/lens
lens-ui/app/adapters/AdhocQueryAdapter.js
JavaScript
apache-2.0
7,880
// This file is part of BenchExec, a framework for reliable benchmarking: // https://github.com/sosy-lab/benchexec // // SPDX-FileCopyrightText: 2019-2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 const path = require("path"); module.exports = { webpack: function override(confi...
dbeyer/benchexec
benchexec/tablegenerator/react-table/config-overrides.js
JavaScript
apache-2.0
1,815
/** 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"...
weexext/ucar-weex-core
tools/weex-tools/lib/src/platforms/platforms.js
JavaScript
apache-2.0
5,032
'use strict'; describe('Main view End-2-End', function() { var brickTable beforeEach(function() { browser.get("http://cfalguiere.github.io/Presentations/2014/DemoBrickInventory/"); brickTable = element.all(by.repeater('brick in bricksList')) }) describe('When Main view appears', function(...
cfalguiere/Protractor-Firefox-Headless-Docker
testproject/test/e2e/e2e-test.js
JavaScript
apache-2.0
445
module.exports = (req, res) => res.json(req.query)
zeit/now-cli
packages/now-cli/test/dev/fixtures/test-zero-config-rewrite/api/echo/[id].js
JavaScript
apache-2.0
51
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: '確認', clear: '清空' }, datepicker: { now: '現在', today: '今天', cancel: '取消', clear: '清空', confirm: '確認', selectDate: '選擇日期', selectTime: '選擇時間', startDate: '開...
zengguoyu/sample
sample-site/src/main/webapp/assets/static/element-ui/lib/locale/lang/zh-TW.js
JavaScript
apache-2.0
2,528
(function () { 'use strict'; angular .module('hz.dashboard', [ 'hz.dashboard.launch-instance' ]) .config(config); config.$inject = ['$provide', '$windowProvider']; function config($provide, $windowProvider) { var path = $windowProvider.$get().STATIC_URL + 'dashboard/'; $provide.cons...
xinwu/horizon
openstack_dashboard/static/dashboard/dashboard.module.js
JavaScript
apache-2.0
364
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var visitor_1 = require("graphql/language/visitor"); var ts_invariant_1 = require("ts-invariant"); var storeUtils_1 = require("./storeUtils"); function getDirectiveInfoFromField(field, variables) { if (field.directives && field.directives....
mrtequino/JSW
graphql/server1/node_modules/apollo-utilities/lib/directives.js
JavaScript
apache-2.0
2,897
var CMLog=Packages.com.planet_ink.coffee_mud.core.Log; CMLog.infoOut(getParms()); mob().tell("Done.");
bozimmerman/CoffeeMud
resources/examples/LogWrite.js
JavaScript
apache-2.0
106
"use strict"; const helper = require("../../../helper.js"); const mw = helper.requireModule('./mw/cors/index'); const assert = require('assert'); describe("Unit test for: mw - cors", function () { let req = { "soajs": { "registry": { "serviceConfig": { "cors...
soajs/soajs.controller
test/unit/mw/cors/index.js
JavaScript
apache-2.0
1,346
/* * ! ${copyright} */ sap.ui.define([ "sap/ui/mdc/field/FieldInfoBase", "sap/ui/thirdparty/jquery", "sap/ui/model/BindingMode", "sap/ui/model/json/JSONModel", "sap/ui/mdc/link/Log", "sap/base/Log", "sap/ui/mdc/link/Panel", "sap/ui/mdc/link/PanelItem", "sap/ui/layout/form/SimpleForm", "sap/ui/core/Title", ...
SAP/openui5
src/sap.ui.mdc/src/sap/ui/mdc/Link.js
JavaScript
apache-2.0
21,194
import {createActions} from 'redux-actions'; export default createActions({ LOAD_FORM_DATA: () => ({}), MERGE_DISPLAY: display => ({display}), RESET_DATA: () => ({}), SET_FORM_DATA: csv => ({csv}), });
gamerson/liferay-blade-samples
yarn-workspace/modules/redux-store/src/actions.js
JavaScript
apache-2.0
207
class ProfileService { constructor($http, $state, $rootScope, $q, TabsService, AddressService) { this.$http = $http this.$state = $state this.$rootScope = $rootScope this.$q = $q this.TabsService = TabsService this.AddressService = AddressService this.username = 'User' this.profile_set...
mithuntantri/zigfo
client/web/static/js/services/profile_service.js
JavaScript
apache-2.0
4,229
/*! * ${copyright} */ // Provides control sap.ui.webc.main.DateRangePicker. sap.ui.define([ "sap/ui/webc/common/WebComponent", "./library", "sap/ui/core/EnabledPropagator", "sap/ui/core/library", "./thirdparty/DateRangePicker", "./thirdparty/features/InputElementsFormSupport" ], function(WebComponent, library,...
SAP/openui5
src/sap.ui.webc.main/src/sap/ui/webc/main/DateRangePicker.js
JavaScript
apache-2.0
9,981
defineSuite([ 'DataSources/PolygonGeometryUpdater', 'Core/ApproximateTerrainHeights', 'Core/Cartesian3', 'Core/Color', 'Core/Ellipsoid', 'Core/GeometryOffsetAttribute', 'Core/JulianDate', 'Core/Math', 'Core/CoplanarPolygonGeometry', 'Core/C...
soceur/cesium
Specs/DataSources/PolygonGeometryUpdaterSpec.js
JavaScript
apache-2.0
17,520
//// [emitClassDeclarationWithThisKeywordInES6.ts] class B { x = 10; constructor() { this.x = 10; } static log(a: number) { } foo() { B.log(this.x); } get X() { return this.x; } set bX(y: number) { this.x = y; } } //// [emitClassDeclarationWithT...
freedot/tstolua
tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.js
JavaScript
apache-2.0
568
/** * @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/nanvariancewd/lib/ndarray.js
JavaScript
apache-2.0
2,365
/** * @license Apache-2.0 * * Copyright (c) 2020 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
stdlib-js/stdlib
lib/node_modules/@stdlib/blas/ext/base/dcusumpw/test/test.ndarray.js
JavaScript
apache-2.0
7,412
//// 0. Describe this demo window.demoDescription = "Draw three kinds of grids: with fixed size cells, with flexible size cells, and with cell sizes based on grid's rows and columns. Resize the browser window to update grid layouts."; //// 1. Define Space and Form var colors = { a1: "#ff2d5d", a2: "#42dc8e", a3: "#...
williamngan/pt
demo/grid.generate.js
JavaScript
apache-2.0
2,324
var markers = []; var marker_icons = []; var lat_lon_to_marker = {}; var selected_marker_icons = []; var selected_marker, selected_icon; var map; var start_date = 1850; var end_date = 2000; var FEEDBACK_URL = 'http://www.oldnyc.org/rec_feedback'; var mapPromise = $.Deferred(); function thumbnailImageUrl(photo_id) { ...
luster/oldnyc
viewer/static/js/viewer.js
JavaScript
apache-2.0
16,202
SVGCalendar = function (root_width, root_height, i_options) { var DEFAULTS = { start_date: new Date()// Date : default is today //--- end_date , end_date: null// Date : default is today , day_num: null// int : active when end_date is null , week_num: 4// int : active when en...
cocuh/SVG-Table
src/svg-calendar.js
JavaScript
apache-2.0
5,972
// Copyright 2012 Traceur 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 applicable law or agreed ...
rwaldron/traceur-compiler
src/semantics/VariableBinder.js
JavaScript
apache-2.0
7,968
document.addEventListener('DOMContentLoaded', function() { var YouTubeButton = document.getElementById('YouTube'); YouTubeButton.addEventListener('click', function() { chrome.tabs.getSelected(null, function(tab) { d = document; var f = d.createElement('form'); f.action = 'http://youtube.com'...
CoCaBoJangLeS/ExtensionWizards
pip_extension/popup.js
JavaScript
apache-2.0
1,120
layui.define(['layer', 'carousel'], function (exports) { var $ = layui.jquery; var layer = layui.layer; var carousel = layui.carousel; // 添加步骤条dom节点 var renderDom = function (elem, stepItems, postion) { var stepDiv = '<div class="lay-step">'; for (var i = 0; i < stepItems.length; i+...
chenghao/haoAdmin
static/assets/module/step-lay/step.js
JavaScript
apache-2.0
3,640
Ext.define('PF.view.PizzaShopMap', { extend:'PF.view.EsriMap', xtype:'pizzashopmap', config:{ // Override some config which the base EsriMap will use... basemapLayer:"http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer", mapHeight:"140px", // And provide a bit of our own. ...
Esri/sencha-touch-map-checkin-js
app/view/PizzaShopMap.js
JavaScript
apache-2.0
1,651
'use strict'; /** * Vertex segment. * @exception {Error} Messages.CONSTRUCT_ERROR * * @class VtxSegment * * @param {Vertex} startVertex Optional. start vertex. * @param {Vertex} endVertex Optional. end vertex. */ var VtxSegment = function(startVertex, endVertex) { if (!(this instanceof VtxSegment)) { t...
Gaia3D/mago3djs
src/mago3d/geometry/VtxSegment.js
JavaScript
apache-2.0
4,096
/** * Copyright 2020 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 law ...
GoogleChromeLabs/tooling.report
tests/hashing/subtests/hash-ignores-parent-dirs/rollup/rollup.config.js
JavaScript
apache-2.0
788
// If you want your component to be able to change your global state, follow the pattern below import React from 'react'; import { Link, browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { selectAllProduct, selectAllProductFailed, selectAllProductSuccess, countAllProducts, countAllPro...
andy1992/react-redux-crud
public/src/containers/products/Pagination.js
JavaScript
apache-2.0
9,726
(function ($) { function doSearch() { var url = '/v0.1/search/?q=' + document.getElementsByName('q')[0].value; window.location.assign(url); } $(document).ready(function() { $('#searchbox_demo').on('submit', function(e) { e.preventDefault(); doSearch(); ...
istio/istio.io
archive/v0.1/js/search.js
JavaScript
apache-2.0
1,210
/****************************************************************************** Slack integration *******************************************************************************/ 'use strict'; var _ = require('underscore'), request = require('request'), logger = require('../../server/logger'); var fruum_usern...
fruum/fruum
plugins/slack/server.js
JavaScript
apache-2.0
4,439
//rest-client.js var _pulse = require('request'); var _internal = require('./conf/conf.json'); var _conf = require('../param.json'); var exports = module.exports = {}; var pulseAPI = _conf.pulseAPI; exports.call = function( apiContext, callback) { //console.log("Calling External API"); var cal...
jcaldeir/pulse-workload-wizard
plugin/rest-client.js
JavaScript
apache-2.0
945
//新人有礼页 // 初始化 var common = require('../common/common.js'); $(document).on('pageInit','.gift_for_new', function(e, id, page) { if (page.selector == '.page') { return false; } document.title = '新人有礼'; var init = new common(page); var lazyload = init.lazyLoad; var ApiBaseUrl = init.ge...
psychokiller666/heishi
app/modules/components/gift_for_new/gift_for_new.js
JavaScript
apache-2.0
12,382
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n...
LADOSSIFPB/nutrif
nutrif-web/lib/angular/i18n/angular-locale_en-lc.js
JavaScript
apache-2.0
2,590
console.warn( "THREE.Reflector: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/index.html#manual/en/introduction/Import-via-m...
webmaster444/webmaster444.github.io
other/mypointcloud/three/examples/js/objects/Reflector.js
JavaScript
apache-2.0
7,153
import React, { Component } from 'react'; import { Modal, Row, Col, FormGroup, FormControl, Button } from 'react-bootstrap'; import md5 from 'md5'; import api from './../api'; import Error from './../Error'; export default class Login extends Component { constructor(props) { super(props); t...
MarceloProjetos/react-router-node-red
src/login/index.js
JavaScript
apache-2.0
2,549
var searchData= [ ['call',['call',['../select2_8js.html#aed63747d658b9ef1878fda471c519855',1,'select2.js']]], ['cleardropdownalignmentpreference',['clearDropdownAlignmentPreference',['../select2_8js.html#a720684602e142b73d3f2c3bc8a9abfa6',1,'select2.js']]], ['clearsearch',['clearSearch',['../select2_8js.html#a0da...
zwmcfarland/MSEF
doxygen documentation/search/functions_3.js
JavaScript
apache-2.0
1,310
docsearch({ apiKey: '6c42f30d9669d8e42f6fc92f44028596', indexName: 'docs-ray', appId: 'LBHF0PABBL', inputSelector: '#search-input', debug: false, });
ray-project/ray
doc/source/_static/js/docsearch.js
JavaScript
apache-2.0
169
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2010, Ajax.org B.V. * 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 sou...
wso2/carbon-analytics
components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/editor/commons/lib/ace-editor/mode/ruby_highlight_rules.js
JavaScript
apache-2.0
15,221
var interfaceorg_1_1onosproject_1_1net_1_1flow_1_1StoredFlowEntry = [ [ "setBytes", "interfaceorg_1_1onosproject_1_1net_1_1flow_1_1StoredFlowEntry.html#abcee4c5061efc787a287d076123efd1d", null ], [ "setLastSeen", "interfaceorg_1_1onosproject_1_1net_1_1flow_1_1StoredFlowEntry.html#acb36228a788838ba7138144b79c4aa...
onosfw/apis
onos/apis/interfaceorg_1_1onosproject_1_1net_1_1flow_1_1StoredFlowEntry.js
JavaScript
apache-2.0
725
// test for comments in templates test('comments', 8, function() { var template = '{!this won\'t show up!}'; equal(whiskers.render(template, {}), '') var template = '{!!}'; equal(whiskers.render(template, {}), '') var template = '{!this won\'t show up\neither!}'; equal(whiskers.render(template, {}), '') ...
brad-langshaw/project2
node_modules/whiskers/test/browser/test-comments.js
JavaScript
apache-2.0
879
var platform = require('platformSupport'); var alloyAnimation = require('alloy/animation'); var screenWidth ; if(OS_IOS){ screenWidth = platform.getScreenWidth(); }else{ screenWidth = platform.convertDptoPx(platform.getScreenWidth()); } var screenHeight ; if(OS_IOS){ screenHeight = platform.getScreenHeight(); }else...
Plexsim/citytourApps
app/lib/animation.js
JavaScript
apache-2.0
2,022
/** * Select pages and assembly(optional) */ qx.Class.define("ncms.pgs.PagesSelector", { extend: qx.ui.tabview.TabView, properties: { /** * Page selected. * Event data: { * id : {Number} Page ID, * name : {String} Page name, * accessMask : {String} ...
Softmotions/ncms
ncms-engine/ncms-engine-qx/src/main/qooxdoo/classes/ncms/pgs/PagesSelector.js
JavaScript
apache-2.0
6,806
import mysql from 'mysql2/promise'; import * as Rx from "rxjs"; export default class MysqlPool { constructor({config}){ this._config = config; } getPool(){ return Rx.Observable.of(mysql.createPool({ ...this._config.mysql })); } }
UnexpectedSoftware/openMarket
src/openMarket/infrastructure/service/MysqlPool.js
JavaScript
apache-2.0
260
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import TrackList from '../../components/TrackList'; import Header from '../../components/Header'; import DropdownField from '../../components/Fields/DropdownField'; import FilterField from '../../componen...
jaedb/Iris
src/js/views/Library/Tracks.js
JavaScript
apache-2.0
8,097
/* eslint-disable */ var webpack = require('webpack'); var path = require('path'); var PATHS = { CONTEXT: __dirname, BUILD: path.join(__dirname, 'dist') }; module.exports = { context: PATHS.CONTEXT, entry: './playground', output: { path: PATHS.BUILD, filename: 'bundle.js', chunkFilename: '[name]...
lystable/redocs
examples/the-full-works/playground.webpack.config.js
JavaScript
apache-2.0
863
(function () { 'use strict'; angular.module('components.provider') .controller('ProvidersController', Controller); /** @ngInject */ function Controller() { var ctrl = this; ctrl.$onChanges = onChanges; ctrl.doEvent = doEvent; function onChanges(changes) { if (changes.providers) { ...
boozallen/projectjellyfish
app/assets/javascripts/app/components/provider/providers/providers.controller.js
JavaScript
apache-2.0
546
var config, _ = require('underscore'), https = require('https'), futils = require('./fhutils'), fhutils; module.exports = function(cfg) { config = cfg; fhutils = new futils(config); return call; }; // // $fh.call() : Call back to millicore from our Node.js code. // NOT a public function but may be one da...
feedhenry/fh-mbaas-api
lib/call.js
JavaScript
apache-2.0
2,043
var obj_a = { a: "hi", b: "no", c: { h: { j:0, k:1 }, i: { j:0, k:1 }, }, d: [0, 1, 2], e: [0, 1, 2], f: ["a","b","c"], g: ["a","b","c"], x: 1, }; var obj_b = { a: "hi", b: "no", c: { h: { j:0, k:1 }, i: { j:0, k:1 }, }, ...
aaronstarov/kindred.web
source/_/core/objects.test.js
JavaScript
artistic-2.0
3,138
var searchData= [ ['time',['time',['../group__lib__time.html',1,'']]], ['thread',['thread',['../group__thread.html',1,'']]] ];
alexeyk13/mkernel
doc/html/search/groups_74.js
JavaScript
bsd-2-clause
131
UserSettings = new Mongo.Collection( 'user-settings' ); UserSettings.allow({ insert: function () { return true }, update: function () { // TODO move this server side. Only allow the owner to edit return true } });
MantarayAR/pingr-io
src/both/collections/user-settings.js
JavaScript
bsd-2-clause
234
var Jsonix = require('../jsonix').Jsonix; module.exports = { "Type": function(test) { test.equal(true, Jsonix.Util.Type.isString('abc')); test.equal(false, Jsonix.Util.Type.isString(1)); test.equal(false, Jsonix.Util.Type.isString(null)); test.equal(false, Jsonix.Util.Type.isString(undefined)); // test.equ...
wmakeev/jsonix
nodejs/scripts/tests/util.js
JavaScript
bsd-2-clause
1,785
/** * Module : neoui-pagination * Author : Kvkens(yueming@yonyou.com) * Date : 2016-08-03 08:45:49 */ import {BaseComponent} from 'tinper-sparrow/js/BaseComponent'; import {extend} from 'tinper-sparrow/js/extend'; import {addClass,wrap,css,hasClass,removeClass,closest} from 'tinper-sparrow/js/dom'; import {each}...
iuap-design/iuap-design
js/neoui-pagination.js
JavaScript
bsd-2-clause
13,439
// This file was procedurally generated from the following sources: // - src/dstr-binding/obj-ptrn-prop-obj-init.case // - src/dstr-binding/default/cls-decl-meth-dflt.template /*--- description: Object binding pattern with "nested" object binding pattern using initializer (class expression method (default parameter)) e...
sebastienros/jint
Jint.Tests.Test262/test/language/statements/class/dstr-meth-dflt-obj-ptrn-prop-obj-init.js
JavaScript
bsd-2-clause
2,859
/* * WHEEL (Workflow in Hierarchical distributEd parallEL) * * Copyright (c) 2016-2017 Research Institute for Information Technology(RIIT), Kyushu University. All rights reserved. * Copyright (c) 2016-2017 Advanced Institute for Computational Science, RIKEN. All rights reserved. */ "use strict"; var __extends = (...
RIIT-KyushuUniv/WHEEL
app/serverUtility.js
JavaScript
bsd-2-clause
27,569
'use strict'; var react = require('react') , document = require('./components/document'); module.exports.renderView = function renderView(req, res, props) { var html = react.renderComponentToString(document(props)); res.end(html); }
accosine/spandex
lib/views.js
JavaScript
bsd-2-clause
241
// This file was procedurally generated from the following sources: // - src/annex-b-fns/global-existing-global-init.case // - src/annex-b-fns/global/block.template /*--- description: Variable binding is left in place by legacy function hoisting. CreateGlobalVariableBinding leaves the binding as non-enumerable even if ...
sebastienros/jint
Jint.Tests.Test262/test/annexB/language/global-code/block-decl-global-existing-global-init.js
JavaScript
bsd-2-clause
1,234
db.addUser('admin','admin');
EqualExperts/Tayra
distribution-template/demo/createAdmin.js
JavaScript
bsd-2-clause
29
/** * Copyright 2013 - Eric Bidelman * * 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 ...
alpine9000/BitMachine
external/idb.filesystem.js
JavaScript
bsd-2-clause
30,058
// basic protocol helpers var symbolExists = typeof Symbol !== 'undefined'; var protocols = { iterator: symbolExists ? Symbol.iterator : '@@iterator' }; function throwProtocolError(name, coll) { throw new Error("don't know how to " + name + " collection: " + coll); } function fulfillsProtocol...
milosh86/transducers.js
transducers.js
JavaScript
bsd-2-clause
20,596
'use strict'; /** * Karma unit tests. */ describe('<%= componentName %>Service', function(){ var <%= componentName %>service; beforeEach(module('<%= appName %>.<%= moduleName %>')); beforeEach(inject(function($injector) { service = $injector.get('<%= componentName %>'); })); });
urecio/generator-angular-scalable
generators/service/templates/services/%component-name%.service.spec.js
JavaScript
bsd-2-clause
299
// Generated by CoffeeScript 1.3.3 var binding, exports, leveldb; leveldb = exports = module.exports = require('./leveldb/handle'); binding = require('./leveldb.node'); leveldb.version = '0.6.2'; leveldb.bindingVersion = "" + binding.majorVersion + "." + binding.minorVersion; leveldb.Batch = require('./leveldb/bat...
maxogden/node-leveldb
lib/index.js
JavaScript
bsd-2-clause
1,340
var app = angular.module("pinguApp", []); console.log("Fired up angular ...");
avalikarvamus/pinguinvoice
app/static/scripts/pinguApp.js
JavaScript
bsd-2-clause
80
//Wrapped in an outer function to preserve global this (function (root) { var amdExports; define([], function () { (function () { // by tauren // https://github.com/Modernizr/Modernizr/issues/191 Modernizr.addTest('cookies', function () { // Quick test if browser has cookieEnabled host property if (navigator.coo...
noahpeters/iffy
sample/www/js/lib/Modernizr/feature-detects/cookies.js
JavaScript
bsd-2-clause
626
(function() { var imageLoaderExample, myapp, oflib, window; oflib = require('lib/of'); oflib._.extend(this, oflib); imageLoaderExample = (function() { function imageLoaderExample() { this.bikers = new ofImage; this.gears = new ofImage; this.tdf = new ofImage; this.tdfSmall = new ofIm...
codeboost/JOpenFrameworks
bin/imageLoaderExample.js
JavaScript
bsd-2-clause
2,556
var config = { apiKey: "AIzaSyCVr8kNbA_47LwbKBesa4PzggiQoMtD6nA", authDomain: "absen-143db.firebaseapp.com", databaseURL: "https://absen-143db.firebaseio.com", projectId: "absen-143db", storageBucket: "absen-143db.appspot.com", messagingSenderId: "993994713726" }; firebase.initializeApp(config); var date = new Date(),...
christoga/schoolkit
js/absen.js
JavaScript
bsd-2-clause
3,385
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: The Date.prototype has the property "getFullYear" esid: sec-properties-of-the-date-prototype-object es5id: 15.9.5_A10_T1 description: The Date.prototype has the property "getF...
sebastienros/jint
Jint.Tests.Test262/test/built-ins/Date/prototype/S15.9.5_A10_T1.js
JavaScript
bsd-2-clause
466
/* * L.GeoJSON turns any GeoJSON data into a Leaflet layer. */ L.GeoJSON = L.FeatureGroup.extend({ initialize: function (geojson, options) { L.setOptions(this, options); this._layers = {}; if (geojson) { this.addData(geojson); } }, addData: function (geojson) { var features = L.U...
perliedman/Leaflet
src/layer/GeoJSON.js
JavaScript
bsd-2-clause
6,642
// This file was procedurally generated from the following sources: // - src/dstr-assignment/array-elem-put-prop-ref-user-err.case // - src/dstr-assignment/error/assignment-expr.template /*--- description: Any error raised as a result of setting the value should be forwarded to the runtime. (AssignmentExpression) esid:...
sebastienros/jint
Jint.Tests.Test262/test/language/expressions/assignment/dstr-array-elem-put-prop-ref-user-err.js
JavaScript
bsd-2-clause
884
goog.provide('ol.layer.Group'); goog.require('ol'); goog.require('ol.asserts'); goog.require('ol.Collection'); goog.require('ol.Object'); goog.require('ol.events'); goog.require('ol.events.EventType'); goog.require('ol.extent'); goog.require('ol.layer.Base'); goog.require('ol.obj'); goog.require('ol.source.State'); ...
wet-boew/openlayers-dist
src/ol/layer/group.js
JavaScript
bsd-2-clause
6,217
/** * Datasets module includes some standard toy datasets. In addition, this module also includes various * random sample generators that can be used to build artificial datasets of controlled size and complexity. * @module datasets * @example <caption>Asynchronous loading</caption> * var...
blazs/qminer
nodedoc/datasetsdoc.js
JavaScript
bsd-2-clause
2,300
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {$} from 'chrome://resources/js/util.m.js'; import {GetSsrcFromReport, SsrcInfoManager} from './ssrc_info_manager.js'; /** * Maintains the s...
nwjs/chromium.src
content/browser/webrtc/resources/stats_table.js
JavaScript
bsd-3-clause
5,855
import instanceCreate from './instanceCreate'; import instanceGet from './instanceGet'; import instanceCommitGet from './instanceCommitsGet'; export default { init(app) { app.post('/api/instances', instanceCreate); app.get('/api/instances/:instanceId', instanceGet); app.get('/api/:instanceId/commits/ta...
openAgile/CommitStream.Web
src/app/api/instances/es6/instancesController.js
JavaScript
bsd-3-clause
370
// This is the base browser library for dy.js. It is all that is needed in the // browser for modules written for dy.js to work. // // In development you'd probably also want to include the dy/ext/reload // extension to add dynamic reloading functionality. However, in production // this is the *only* code you need (pl...
dirk/dy.js
dy.js
JavaScript
bsd-3-clause
1,289
var logging = require('logging'); var Events = function(options) { options = options || {}; }; Events.prototype.on = function(event, fn) { var _this = this; _this._events = _this._events || {}; _this._events[event] = this._events[event] || []; _this._events[event].push(fn); }; Events.prototype.off = function...
Harvard-ATG/wordmapper
src/js/events.js
JavaScript
bsd-3-clause
1,563
describe("module:ng.directive:ngBindTemplate",function(){var a;beforeEach(function(){a=browser.rootEl,browser.get("./examples/example-example14/index-jquery.html")}),it("should check ng-bind",function(){var a=element(by.binding("salutation")),b=element(by.model("salutation")),c=element(by.model("name"));expect(a.getTex...
infrabel/docs-gnap
node_modules/gnap-theme-gnap-angular/js/angular/docs/ptore2e/example-example14/jquery_test.min.js
JavaScript
bsd-3-clause
555
/*global FormplayerFrontend */ FormplayerFrontend.module("Layout.Views", function (Views, FormplayerFrontend, Backbone, Marionette) { Views.ProgressView = Marionette.ItemView.extend({ template: "#progress-view-template", initialize: function(options) { this.progressMessage = options.p...
qedsoftware/commcare-hq
corehq/apps/cloudcare/static/cloudcare/js/formplayer/layout/views/progress_bar.js
JavaScript
bsd-3-clause
1,052
import 'normalize.css'; import React from 'react'; import ReactDOM from 'react-dom'; import Coordinate2DWidget from 'paraviewweb/src/React/Widgets/Coordinate2DWidget'; const height = 100; const width = 100; ReactDOM.render( React.createElement(Coordinate2DWidget, { height, width, onChange: console.log...
Kitware/paraviewweb
src/React/Widgets/Coordinate2DWidget/example/index.js
JavaScript
bsd-3-clause
386
/*! cropit - v0.4.5 <https://github.com/scottcheng/cropit> */ (function webpackUniversalModuleDefinition(root, factory) { if (typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("jquery")); else if (typeof define === 'function' && define.amd) define(["jque...
Junaid-Farid/staylance-new
frontend/web/js/jquery.cropit.js
JavaScript
bsd-3-clause
72,151
jsonp({"fullName":'Deferrable.prototype.then',"source":'Deferrable.js',"sourceFile":'data/source/Deferrable.js.html#Deferrable-prototype-then',"summary":'<p>\u5b9a\u4e49\u5f53\u524d\u4efb\u52a1\u6267\u884c\u5b8c\u6210\u540e\u7684\u56de\u8c03\u51fd\u6570\u3002</p>\n',"params":[{"type":'Deferrable',"name":'callback',"su...
jplusui/jplusui.github.com
resources/cookbooks/jplusui-full-api/data/api/Deferrable.prototype.then.js
JavaScript
bsd-3-clause
604