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
/** * Created by Danny on 2015/9/20 16:59. */ var ejs = require("ejs"); //模板 var string = "好高兴啊,今天我买了iphone<%= a %>s"; //数据 var data = { a : 6 }; //数据绑定 var html = ejs.render(string, data); //输出 console.log(html);
kradme/NodeJS
heima/案例/day02/案例/14.js
JavaScript
apache-2.0
260
/** * Created by dongweizhao on 17/3/1. */ //前端挡板,以便开发不依赖与后台提供服务 import Mock from 'mockjs' //测试表格 Mock.mock('/query_table_list', { 'tableData|10': [{ 'date': '@date("yyyy-MM-dd")', 'name': '@First', 'address': '上海市普陀区金沙江路 1518 弄' }] });
PorkLungsinChiliSauce/Venus
src/mock.js
JavaScript
apache-2.0
323
(function() { 'use strict'; /** * @ngdoc controller * @name eureka.cohorts.controller:TestCtrk * @description * This is the test controller for the cohorts section of the application. * @requires cohorts.CohortService */ angular .module('eureka.cohorts') .cont...
candyam5522/eureka
eureka-webapp/src/main/webapp/eureka/cohorts/views/test/test-controller.js
JavaScript
apache-2.0
8,285
/* * Copyright (c) 2015-2016 Dilvan Moreira. * Copyright (c) 2015-2016 John Garavito. * * 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/LICENS...
DilvanLab/Decisioner
grails-app/assets/javascripts/locale/bootstrap-table-vi-VN.js
JavaScript
apache-2.0
1,522
ApsContent = function () { var that = this; that.componentData = { "specComp" : { "databound": false, "extension": "Component", "group": "ScnCommunityBasics", "handlerType": "sapui5", "height": "30", "id": "DateRangeSlider", "package": "basics", "parentControl": "sap.suite.ui.commons.DateRangeSli...
bugodelnya/scn-sdk-package
src/org.scn.community.basics/res/DateRangeSlider/aps/PropertyPage.def.js
JavaScript
apache-2.0
7,163
var systemControllers = angular.module('systemControllers', ['ngRoute']); systemControllers.config(['$routeProvider', function($routeProvider) { $routeProvider. when('/system_properties', { templateUrl: '/system/properties.ng', controller: 'SystemPropertiesCtrl' }); }]); systemCont...
mchaston/OakFunds
war/system/controllers.js
JavaScript
apache-2.0
826
//// [elementWithMixedChildren.ts] ///<jsx /> <li> <img /> <img src="icon" /> Text : {myVar.text} </li>; <li> <img src="icon" /> Text : {myVar.text} </li>; <li> Text: {myVar.text} </li>; <li> hello <div /> </li>; <li> hello world <span>hello &amp;</span> hello: world <span /> <...
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/elementWithMixedChildren.js
JavaScript
apache-2.0
990
/** * This script runs the installation of the nibble software. The script * checks if it's necesary to install or reinstall the nibble and * downloads the nibble if it's necessari to (re)install. */ 'use strict'; var colors = require('colors/safe'), trycatch = require('trycatch'), exit = require('exit'),...
AdaptiveMe/npm-adaptiveme-nibble
bin/install.js
JavaScript
apache-2.0
7,064
import * as util from 'ionic/util'; import { Hammer } from 'ionic/gestures/hammer'; /** * A gesture recognizer class. * * TODO(mlynch): Re-enable the DOM event simulation that was causing issues (or verify hammer does this already, it might); */ export class Gesture { constructor(element, opts = {}) { u...
aayushkapoor206/whatshot
node_modules/ionic-framework/dist/src/es6/ionic/gestures/gesture.js
JavaScript
apache-2.0
1,667
//// [assignmentCompatBug2.ts] var b2: { b: number;} = { a: 0 }; // error b2 = { a: 0 }; // error b2 = {b: 0, a: 0 }; var b3: { f(n: number): number; g(s: string): number; m: number; n?: number; k?(a: any): any; }; b3 = { f: (n) => { return 0; }, g: (s) => { return 0; }, m: 0, }; // ok b3 = { f: (...
DickvdBrink/TypeScript
tests/baselines/reference/assignmentCompatBug2.js
JavaScript
apache-2.0
1,459
/** _enyo.Drawer_ is a control that appears or disappears based on its _open_ property. By default, the drawer appears or disappears with a sliding animation whose direction is determined by the _orient_ property. For more information, see the documentation on <a href="https://github.com/enyojs/enyo/wiki/Dr...
airspringsoftware/enyo
source/ui/Drawer.js
JavaScript
apache-2.0
3,546
import Notice from './collection'; Meteor.methods({ 'notice.create'(model, type) { const notice = new Notice(model); notice.type = type; notice.save(); }, 'notice.update'(id, model) { const notice = Notice.findOne(id); notice.title = model.title; notice.content = model.content; notice...
dououFullstack/atomic
imports/api/notices/methods.js
JavaScript
apache-2.0
389
var appLocale = {lc:{"ar":function(n){ if (n === 0) { return 'zero'; } if (n == 1) { return 'one'; } if (n == 2) { return 'two'; } if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { return 'few'; } if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { return '...
cloud3edu/code-dot-org-old
dashboard/public/apps-package/js/en_us/studio_locale.js
JavaScript
apache-2.0
27,857
/* feedback.js <http://experiments.hertzen.com/jsfeedback/> Copyright (c) 2012 Niklas von Hertzen. All rights reserved. http://www.twitter.com/niklasvh Released under MIT License */ (function( window, document, undefined ) { if ( window.Feedback !== undefined ) { return; } // log proxy function ...
KRMAssociatesInc/eHMP
ehmp/product/production/hmp-main/src/main/webapp/lib/feedback.js
JavaScript
apache-2.0
32,815
$.setData = function(model) { $.newTitle.value = model.get('name'); var duration = model.get('duration') , seconds = (duration/1000)%60 , minutes = (duration/(1000*60))%60 , hours = (duration/(1000*60*60))%24; $.hoursPicker.setSelectedRow(0, hours, false); $.minutesPicker.setSele...
tkrz/kitchentimer
app/widgets/pl.tidev.kitchentimer.optionsdialog/controllers/widget.js
JavaScript
apache-2.0
1,485
'use strict'; const _ = require('lodash'); const AlexaRequestContextAndSession = require('./alexaRequestContextAndSession').AlexaRequestContextAndSession; /** * Alexa GameEngine.InputHandlerEvent request */ class GameEngineInputHandlerEventRequest extends AlexaRequestContextAndSession { /** * Constructor...
omenocal/jovo-framework-nodejs
lib/platforms/alexaSkill/request/gameEngineInputHandlerEventRequest.js
JavaScript
apache-2.0
818
import R from 'ramda'; import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Attachment from 'material-ui-icons/Attachment'; import GridColumn from '../../../../../components/common/grid/gridColumn'; import GridRow from '../../../../../components/common/g...
unicef/un-partner-portal
frontend/src/components/partners/profile/overview/observations/observationExpand.js
JavaScript
apache-2.0
3,604
'use strict'; function errorinate(code, msg, klass) { return { error: { code: code , message: msg , class: klass }}; } function massage(type, data) { return { type: type, response: data }; } function wsMassage(type, data) { return { type: type, message: data }; } module.exports = { errorinate: err...
coolaj86/bitcrypt
lib/utils.js
JavaScript
apache-2.0
373
// the semi-colon before function invocation is a safety net against concatenated // scripts and/or other plugins which may not be closed properly. ; (function( $, window, document, undefined ) { // undefined is used here as the undefined global variable in ECMAScript 3 is // mutable (ie. it can be changed by ...
KenanSulayman/webdesktop
assets/js/desktopWindow.jquery.js
JavaScript
apache-2.0
20,495
/** * 一体机转换 * @class EditsSingleCardPanel * @extends BaseForm */ EditsSingleCardPanel = Ext.extend(BaseForm,{ url:Constant.ROOT_PATH + "/core/x/User!toSingleCard.action", constructor: function(){ EditsSingleCardPanel.superclass.constructor.call(this, { trackResetOnLoad:true, id : 'EditsSingleCar...
leopardoooo/cambodia
boss-core/src/main/webapp/pages/business/user/EditsSingleCard.js
JavaScript
apache-2.0
2,524
import intent from './intent'; import model from './model'; import view from './view'; export default function InteractiveComponent(sources) { const actions = intent(sources); const state$ = model(actions); const vtree$ = view(state$); const sinks = { DOM: vtree$ }; return sinks; }
Mercateo/component-check
examples/interactive-components/cyclejs/src/interactive-component/index.js
JavaScript
apache-2.0
301
/* Metodo ForEach() Este método destina-se a percorrer cada um dos elementos de um array e executar uma função callback. Não alterá o array original e admite um argumento obrigatório, que é uma função callback, e um argumento opcional. Este metodo é uma forma mais facil de percorrer um A...
jairorudas/stepByStepInJavaScript
portugues/4-ObjetoArray/metodoForEach.js
JavaScript
apache-2.0
4,023
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _lodash = _interopRequireDefault(require("lodash")); var _promiseToDigest = require("../../utils/promiseToDigest"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default":...
raintank/worldping-app
dist/components/config/dsUpgrade.js
JavaScript
apache-2.0
7,876
var fs = require("fs"); var http = require("http"); var path = require("path"); var url = require("url"); var querystring = require('querystring'); function CGIServer(configurationFile, port) { this.config = require(configurationFile); this.port = port; this.startServer = function() { var self = t...
ethan476/NodeCGIServerOld
src/CGIServer.js
JavaScript
apache-2.0
7,519
/* * Copyright (C) 2013 salesforce.com, 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 ...
madmax983/aura
aura-components/src/main/components/auradev/testDataProvider/testDataProviderHelper.js
JavaScript
apache-2.0
1,700
'use strict'; describe('Service: Navigator', function () { // load the service's module beforeEach(module('carbonUiApp')); // instantiate service var Navigator; beforeEach(inject(function (_Navigator_) { Navigator = _Navigator_; })); it('should do something', function () { expect(!!Navigator)....
ncthis/carbon-ui
test/spec/services/navigator.js
JavaScript
apache-2.0
343
/** * @fileoverview Node.js multer externs. */ /** * @constructor * @param {Object=} params * @return {!multer} */ function multer(params) {} /** * @param {string} arg */ multer.prototype.single = function(arg) {}; /** * @typedef {{ * filedname: string, * originalname: string, * encoding: string, ...
ViDA-NYU/genotet
server/externs/multer.js
JavaScript
apache-2.0
451
/*jslint node: true */ 'use strict'; var inherits = require('inherits'); var Argument = require('./argument'); module.exports = (function() { function ClosureArgument() { Argument.apply(this, arguments); } inherits(ClosureArgument, Argument); ClosureArgument.prototype.toGroovy = function() { return t...
shivanshuag/goodwatch
server/node_modules/grex/src/arguments/closure.js
JavaScript
apache-2.0
368
var args = arguments[0] || {}; var nend = require('net.nend'); var adView = nend.createView({ backgroundColor: 'transparent', spotId: Alloy.CFG.nend_spotId, apiKey: Alloy.CFG.nend_apikey, width: Ti.Platform.displayCaps.platformWidth, height: 50, top : 0, bottom : 0 }); $.container.add(adVi...
pktn/Stiqker
app/controllers/adView.js
JavaScript
apache-2.0
325
"user strict"; const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const secrets = require('./config/secrets'); console.log(secrets.MONGODB_URI); app.use(bodyParser.json()); // for parsing application/json app.use(bodyParser.urlencoded({ extended: true })); // for pars...
sagivo/scanr
index.js
JavaScript
apache-2.0
977
import R from 'ramda'; import { combineReducers } from 'redux'; import { groupSpecializationsByCategory } from './partnerProfileDetails'; import { getPartnerProfileSummary } from '../helpers/api/api'; import { sendRequest } from '../helpers/apiHelper'; import apiMeta, { success, } from './apiMeta'; const errorMessa...
unicef/un-partner-portal
frontend/src/reducers/agencyPartnerProfile.js
JavaScript
apache-2.0
4,073
/** * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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/licens...
neo4j/neo4j-javascript-driver
packages/bolt-connection/test/channel/node/node-host-name-resolver.test.js
JavaScript
apache-2.0
3,617
window.onload = function() { // Carousel var carouselContainer = document.querySelector('.carousel'); if (carouselContainer) { var carousel = document.querySelector('.carousel ul'); var carouselPaginationItems = document.querySelectorAll('.carousel-navigate-item'); var carouselIt...
BabylonJS/Samples
src/build/assets/js/scripts.js
JavaScript
apache-2.0
7,006
/* ============================================================================ Copyright (C) 2006-2018 Talend Inc. - www.talend.com This source code is available under agreement available at https://github.com/Talend/data-prep/blob/master/LICENSE You should have received a copy of the agreement along with thi...
Talend/data-prep
dataprep-webapp/src/app/services/search/documentation/search-documentation-module.js
JavaScript
apache-2.0
1,173
sap.ui.define(['sap/ui/core/UIComponent'], function (UIComponent) { "use strict"; var Component = UIComponent.extend("sap.ui.core.tutorial.databinding.04.Component", { metadata: { config: { sample: { iframe: "webapp/index.html", stretch: true, files: [ "webapp/view/App.view.x...
SAP/openui5
src/sap.ui.core/test/sap/ui/core/demokit/tutorial/databinding/04/Component.js
JavaScript
apache-2.0
480
"use strict"; let mongoose = require('mongoose'); var Schema = mongoose.Schema; let pokemonIcon = new Schema({ pokemonId : {type: Number}, iconGif : {data: Buffer, contentType: String}, iconPng : {data: Buffer, contentType: String}, iconSvg : {data: Buffer, contentType: String} }); pokemonIco...
PokemonGoers/PokeData
app/models/pokemonIcon.js
JavaScript
apache-2.0
425
"use strict"; // Split out to allow jest mocking module.exports = module => require.resolve(module);
BigBoss424/portfolio
v7/development/node_modules/gatsby-plugin-less/resolve.js
JavaScript
apache-2.0
101
'use strict'; angular.module('aquilaApp') .controller('LogsController', function ($scope, LogsService) { $scope.loggers = LogsService.findAll(); $scope.changeLevel = function (name, level) { LogsService.changeLevel({name: name, level: level}, function () { $scope.logger...
onpointtech/stack-reference
src/main/webapp/scripts/app/admin/logs/logs.controller.js
JavaScript
apache-2.0
382
//>>built define("dojox/editor/plugins/nls/hi/ShowBlockNodes",{showBlockNodes:"HTML \u092c\u094d\u0932\u0949\u0915 \u0918\u091f\u0915 \u0926\u093f\u0916\u093e\u090f\u0902"});
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/editor/plugins/nls/hi/ShowBlockNodes.js
JavaScript
apache-2.0
174
/** * @class * Add a Geolocation button to the map. * This class inherits from {@link deCarta.UI.MapControl}. * * @description Traffic Map Control * * @constructor * @param opt Options A list of options with which to initialize the TrafficControl. * Valid options are: * <ul> * <li>(string) posit...
erickbrittes/titanium_appcelerator
Resources/etc/decarta/js/UI/TrafficControl.js
JavaScript
apache-2.0
4,014
/** drag/drop functionality for use with jsPlumb but with no knowledge of jsPlumb. supports multiple scopes (separated by whitespace), dragging multiple elements, constrain to parent, drop filters, drag start filters, custom css classes. a lot of the functionality of this script is expected to be plugged in: ...
f-akazawa/akaz_uecdevelop
Editor/lib/katavorio-0.3.js
JavaScript
apache-2.0
23,493
$.customFileInput=function(){$("input[type=file].custom-file-input").each(function(a,c){var e=$(this); if(!e.prop("id")){e.prop("id","file_"+a) }var d="浏览"; if(e.prop("title")){d=e.prop("title") }e.wrap("<div class='file-input'></div>"); var b=$('<label for="'+e.prop("id")+'" class="btn">'+d+"</label>"); e.before...
xxs/es-shop
src/main/webapp/WEB-INF/static/comp/jquery-ui-bootstrap/js/bootstrap.file-input.min.js
JavaScript
apache-2.0
664
(function(){ var menuView, menuBgView; var toggleMenuBtn, menuOpenState = false; var iconPositions = []; var buttons = new Array(); var Initialize = function(){ menuView = Titanium.UI.createView({ width: '100%', height: 300, ...
Destinationen/App
Resources/app/lib/Menu.js
JavaScript
apache-2.0
4,730
(function(){var e="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},g="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=...
jthub/conversation-lite
lib/autotrack/autotrack.custom.js
JavaScript
apache-2.0
4,729
/** * @file libapt-mixin-view-loader.js * @desc Mixin of view loader operations * @see libapt-view.js * @group LIBAPT_VIEWS * @date 2013-06-23 * @version 0.9.x * @author Luc BORIES * @copyright Copyright (C) 2011 Luc BORIES All rights reserved. * @license Apache License Ver...
lucbories/LibApt
libapt-client-0.9.5/js/L3-views/mixins/libapt-mixin-view-loader.js
JavaScript
apache-2.0
2,110
/* * Appcelerator Titanium Mobile * Copyright (c) 2011-2014 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ describe("jss", function() { it("platform_jss_dirs", function(finish) { var test...
appcelerator/titanium_mobile_tests
suites/jss/app.js
JavaScript
apache-2.0
587
'use strict'; module.exports = require('./Dialog');
glinjy/react-native-apex-ui
src/Dialog/index.js
JavaScript
apache-2.0
54
//// [objectLiteralComputedNameNoDeclarationError.ts] const Foo = { BANANA: 'banana' as 'banana', } export const Baa = { [Foo.BANANA]: 1 }; //// [objectLiteralComputedNameNoDeclarationError.js] "use strict"; var _a; exports.__esModule = true; var Foo = { BANANA: 'banana' }; exports.Baa = (_a = {...
minestarks/TypeScript
tests/baselines/reference/objectLiteralComputedNameNoDeclarationError.js
JavaScript
apache-2.0
535
/*! Copyright (C) 2017 Google Inc. Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> */ describe('GGRC.VM.BaseTreeItemVM', function () { 'use strict'; var vm; beforeEach(function () { vm = new GGRC.VM.BaseTreeItemVM(); }); describe('initChildTreeDisplay() method', functio...
AleksNeStu/ggrc-core
src/ggrc/assets/javascripts/components/view-models/tests/tree-item-base-vm_spec.js
JavaScript
apache-2.0
2,393
var termSearchStore = Ext.create('Ext.data.Store', { fields: ['urn', 'description', 'sab', 'code'], proxy: { type: 'ajax', url: '/term/search', reader: { type: 'json', root: 'data.items' } } }); Ext.define('gov.va.hmp.admin.TermBrowserPanel', { extend : 'Ext.panel.Panel', requires : [ 'gov.va.hmp.a...
KRMAssociatesInc/eHMP
ehmp/product/production/hmp-main/src/main/js/gov/va/hmp/admin/TermBrowserPanel.js
JavaScript
apache-2.0
1,268
/* * 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-custom-job.js
JavaScript
apache-2.0
2,546
/* * Copyright 2010 Norman Heino <norman.heino@gmail.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 * * Unl...
antoniogarrote/node_raptor
test/parse.js
JavaScript
apache-2.0
2,101
var patient_record_count = 0; var records = new Array(); var technician_start_time_camp = ''; var start_camp_id = ''; var image = new Array(); var time_check_both_slot = 0; function j2s(json) { return JSON.stringify(json); } function goto_page(page) { mainView.router.load({ url: page, ignoreCa...
vzagde/fibroscan
www/js/util.js
JavaScript
apache-2.0
29,830
$(function(){ // on dom ready var cy = cytoscape({ container: document.getElementById('cy'), style: [ { selector: 'node', css: { 'content': 'data(id)', 'text-valign': 'center', 'text-halign': 'center' } }, { selector: 'edge', css: { 'targ...
leepc12/BigDataScript
src/org/bds/DagTaskTemplate.js
JavaScript
apache-2.0
1,068
module.exports = function (grunt) { grunt.initConfig({ svg2png: { all: { // specify files in array format with multiple src-dest mapping files: [ // rasterize all SVG files in "img" and its subdirectories to "img/png" { src:...
hengchih/d3svg2png
Gruntfile.js
JavaScript
apache-2.0
506
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { fetchStudents, invalidateStudents } from '../actions'; import List from '../components/List'; import Student from '../components/Student'; import Spinner from '../components/Spinner'; im...
merrettr/school-ui
src/containers/StudentPage.js
JavaScript
apache-2.0
1,216
Set.Class('classes.compile.Node', { constructor: function(name, file, start, end, line, col, type) { this.fn = name; this.file = file; this.start = start; this.end = end; this.line = line; this.col = col; this.type = type || 0; } });
zhjhxxxjh/stringL
jh/node_modules/classes/compile/Node.js
JavaScript
apache-2.0
309
// The MIT License (MIT) // Typed.js | Copyright (c) 2014 Matt Boldt | www.mattboldt.com // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation...
solomonjustin/solomonjustin.github.io
assets/js/typed.js
JavaScript
apache-2.0
16,038
/*! * Bootstrap's Gruntfile * http://getbootstrap.com * Copyright 2013-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ module.exports = function (grunt) { 'use strict'; // Force use of Unix newlines grunt.util.linefeed = '\n'; RegExp.quote = function (s...
sistcoop-bootstrapfiles/sistcoop
components/bootstrap/Gruntfile.js
JavaScript
apache-2.0
14,584
/** * @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/dasumpw/lib/main.js
JavaScript
apache-2.0
917
//// [importInTypePosition.ts] module A { export class Point { constructor(public x: number, public y: number) { } } export var Origin = new Point(0, 0); } // no code gen expected module B { import a = A; //Error generates 'var <Alias> = <EntityName>;' } // no code gen expected module C { ...
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/importInTypePosition.js
JavaScript
apache-2.0
947
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import theme from './TileHeader.scss'; function Header(props) { return ( <div className={classnames(theme['tc-tile-header'], 'tc-tile-header')}>{props.children}</div> ); } Header.propTypes = { children: PropTypes....
Talend/ui
packages/components/src/GridLayout/Tile/Header/TileHeader.component.js
JavaScript
apache-2.0
353
goog.provide('recoil.structs.table.JoinTest'); goog.require('goog.testing.jsunit'); goog.require('recoil.structs.table.Join'); goog.require('recoil.util'); goog.require('recoil.structs.table.ColumnKey'); goog.setTestOnly('recoil.structs.table.JoinTest'); var COL_A = new recoil.structs.table.ColumnKey("a"); var CO...
evaks/recoil
src/structs/table/join_test.js
JavaScript
apache-2.0
12,912
function encrypt_password(password){ var c = {"e":"10001","maxdigits":67,"n":"94f23baccdf41c9cef4ecc8600676daf821324ba90726b024fe91f850ec386f4148c4bd8eb239f14b026635612cc363baeff427a9c1d3dbf9ed509a13dc788eb"}; var h = c.maxdigits; var f = c.e; var k = c.n; setMaxDigits(h); var b = new RSAKeyPair...
zhyh1105/mytools
src/main/java/com/amos/RSA.js
JavaScript
apache-2.0
16,199
'use strict'; /** * Required modules. */ var query = require('../query') , Logger = require('devnull') , log = new Logger({ timestamp: false }); /** * Gets the answers to a set of users identified in [ids]. * * @param {Object} criteria * @param {Array} ids collection of IDs * @param {Function} callback ret...
vijeshjain/SolutionBox
node_modules/stackexchange/lib/methods/users.js
JavaScript
apache-2.0
817
/** * @fileoverview Utilities for Google sites. */ goog.provide('mbi.data.site'); goog.require('mbi.data.SiteMap'); goog.require('mbi.data.storage'); goog.require('ydn.gdata.site.Page'); goog.require('ydn.gdata.site.utils'); /** * Build sitemap of given parent entry. * @param {string} site_name * @param {mbi.d...
mbikt/mbinfo-extension
js/data/sites.js
JavaScript
apache-2.0
7,464
(function anylang_fr_he() { Anylang.addLang( { "langOrigin" : "fr", "langDestination": "he", "table" : [ { from: '¨¨¨', to: 'ֻ' }, { from: 'ou', to: 'וּ' }, { from: 'aa', to: 'ָ' }, { from: 'ee', to: 'ֶ' }, { from: /Ch|ch(?=[ .])/, to: 'ך' }, ...
lovasoa/anylang
anylang-fr-he.js
JavaScript
apache-2.0
1,937
function foo(x,y) { return arguments[0] + arguments["1"] + arguments[2]; } function foo2(x,y) { return arguments[0] + arguments["1"] + arguments[2]; } function foo3(x,y) { return arguments[0] + arguments["1"] + arguments[2]; } function foo4(x,y) { return arguments[0] + arguments["1"] + arguments[2]; } ...
keil/TbDA
test/micro/test11.js
JavaScript
apache-2.0
911
// Protractor configuration file, see link for more information // https://github.com/angular/protractor/blob/master/lib/config.ts const { SpecReporter } = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, specs: [ './retro-pa/src/mspretro-happy-path.e2e-spec.ts' ], multiCapab...
bcgov/MyGovBC-MSP
e2e/protractor.retro-pa.conf.js
JavaScript
apache-2.0
3,809
/* * 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 ...
GoogleForCreators/web-stories-wp
packages/wp-dashboard/src/components/editorSettings/editorSettings.js
JavaScript
apache-2.0
11,914
/** * @license * Blockly Demos: Block Factory * * Copyright 2017 Google Inc. * https://developers.google.com/blockly/ * * 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://w...
google/blockly-devtools
src/model/workspace_contents_set.js
JavaScript
apache-2.0
1,800
console.log('starting http server'); var fs = require('fs'); var app = require('http').createServer(handler); var io = require('socket.io')(app); var DB = { usersPath: '../server/DB/users.fdb', getUsers: function getUsers(){ fs.readFile(DB.usersPath, function(err, data){ console.log('open ...
dimaShin/fellow-traveler
server/web-server.js
JavaScript
apache-2.0
4,850
// ad hoc reversible state transforms that make it more compressable. var _ = require('./underscore_ext').default; var arrays = require('./arrays'); var to32BinStr = arr => arrays.ab2str(Uint32Array.from(arr).buffer); var from32BinStr = str => Array.from(new Uint32Array(arrays.str2ab(str))); var to16BinStr = arr => ...
ucscXena/ucsc-xena-client
js/compactData.js
JavaScript
apache-2.0
2,067
(function(){ function SearchController($scope, $state, ubGoogleApi){ var origin_input = document.getElementById('search-input'); var origin_autocomplete = new google.maps.places.Autocomplete(origin_input); function search(){ $state.go('results', { query: origin_input.value}) } $scope.search = search;...
HornyPinaple/HornyPineapple
uberfind/www/states/app/search.js
JavaScript
apache-2.0
477
/* * Copyright 2019 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
googleinterns/step43-2020
portfolio/src/main/webapp/map.js
JavaScript
apache-2.0
6,318
Clazz.declarePackage ("J.jvxl.readers"); Clazz.load (["J.jvxl.readers.IsoFxyReader"], "J.jvxl.readers.IsoFxyzReader", null, function () { c$ = Clazz.decorateAsClass (function () { this.$data = null; Clazz.instantialize (this, arguments); }, J.jvxl.readers, "IsoFxyzReader", J.jvxl.readers.IsoFxyReader); Clazz.make...
DeepLit/WHG
root/static/js/jsmol/j2s/J/jvxl/readers/IsoFxyzReader.js
JavaScript
apache-2.0
769
/*! * ${copyright} */ sap.ui.define([ 'jquery.sap.global', 'sap/ui/core/mvc/Controller', 'sap/ui/core/HTML' ], function( jQuery, Controller, HTML ) { "use strict"; return Controller.extend("sap.ui.core.sample.Html.static.Html", { onInit: function() { var oHtml = this.byId("htmlControl"); ...
olirogers/openui5
src/sap.ui.core/test/sap/ui/core/demokit/sample/Html/static/Html.controller.js
JavaScript
apache-2.0
4,896
import {Injectable, Pipe} from 'angular2/angular2'; @Pipe({ name: '<%= fileName %>' }) @Injectable() class <%= jsClassName %> { transform(v, args) { return v.toLowerCase(); } }
aayushkapoor206/whatshot
node_modules/ionic-framework/tooling/generators/pipe/pipe.tmpl.js
JavaScript
apache-2.0
190
/** * @license Apache-2.0 * * Copyright (c) 2021 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/has-bigint64array-support/test/test.cli.js
JavaScript
apache-2.0
4,064
/*! * Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com) * Code licensed under the Apache License v2.0. * For details, see http://www.apache.org/licenses/LICENSE-2.0. */ // jQuery to collapse the navbar on scroll function collapseNavbar() { if ($(".navbar").offset().top > 50) { $("...
cdimitroulas/stride_landing_page
js/grayscale.js
JavaScript
apache-2.0
5,993
var interfacebsort_1_1quick__sort = [ [ "quick_sort_vec_asc_dble", "interfacebsort_1_1quick__sort_a9d06bfc0b728876f3c7f50c508035779.html#a9d06bfc0b728876f3c7f50c508035779", null ], [ "quick_sort_vec_asc_int", "interfacebsort_1_1quick__sort_a7423c3aadc2981aec49ef587bcfb882d.html#a7423c3aadc2981aec49ef587bcfb882d...
arinrb/bsort
doc/html/interfacebsort_1_1quick__sort.js
JavaScript
apache-2.0
2,691
/* * jscripts.js * Just Press Play * * Copyright 2014 Rochester Institute of Technology * * 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/LICE...
RIT-MAGIC/JustPressPlay
JustPressPlay/Content/js/jscripts.js
JavaScript
apache-2.0
10,264
var h3= document.getElementsByClassName("h3"); var hidden= document.getElementsByClassName("hidden"); for(var i=0; i<h3.length; i++){ h3[i].index = i; hidden[i].index = i; h3[i].onclick = function(){ hidden[this.index].style.position="absolute"; hidden[this.index].style.display = "block"; } } //右边固定条(budui)...
athena-github/athena-github.github.io
xiangmu/js/shanpin--yijiuhuanxin.js
JavaScript
apache-2.0
1,482
Meteor.startup(function(){ Mapbox.load('locate', 'fullscreen'); }); Template.activity.rendered = function () { var map, marker; this.autorun(function () { if (Mapbox.loaded() && Template.currentData().location) { L.mapbox.accessToken = Config.mapbox.accessToken; if (!map) { map = L.mapbox...
GeoMakers/geomakers.org
client/templates/activities/activity.js
JavaScript
apache-2.0
2,049
import { combineReducers } from 'redux' const todoReducer = (state = {}, action) => { switch (action.type) { case "TESTE": return { ...state, user: { name: "Testão" } } default: return state ...
MarcosBessega/vootodo
Client/src/reducers/index.js
JavaScript
apache-2.0
357
var paymentService = angular.module('paymentService', []); paymentService.factory('PaymentService', ['$http',function($http){ var paymentUrlPrefix = "http://localhost:8080/businesses/"; var paymentUrlPostfix = "/pay"; var buildUrl= function(businessId){ return paymentUrlPrefix + timestamp + paymentUrlPostfix; ...
ermanno-pirotta/servicefinder-web
app/scripts/services/PaymentService.js
JavaScript
apache-2.0
490
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { function dataTransformation(_model) { return { name: _model.attributes.name, address1: _model.attributes.addr...
suresh-mobilocity/SchoolAtHand
Resources/android/alloy/controllers/SchoolDetail.js
JavaScript
apache-2.0
16,554
/** * Remember traffic sources action * */ qx.Class.define("ncms.mtt.actions.MttRememberOriginAction", { extend: qx.core.Object, implement: [ncms.mtt.actions.IMttAction], include: [qx.locale.MTranslation], statics: { getDescription: function () { return qx.locale.Manager.tr("Tr...
Softmotions/ncms
ncms-engine/ncms-engine-qx/src/main/qooxdoo/classes/ncms/mtt/actions/MttRememberOriginAction.js
JavaScript
apache-2.0
1,622
'use strict'; describe('Controller: AnnotationListCtrl', function () { var AnnotationListCtrl, scope; // Initialize the controller and a mock scope beforeEach(function() { module('quickGoFeApp'); inject(function ($controller, $rootScope) { scope = $rootScope.$new(); AnnotationLis...
ebi-uniprot/QuickGoFE
test/spec/controllers/annotations-spec.js
JavaScript
apache-2.0
1,210
//// [interfacePropertiesWithSameName3.js] var D2 = (function () { function D2() { } return D2; })(); var E2 = (function () { function E2() { } return E2; })();
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/interfacePropertiesWithSameName3.js
JavaScript
apache-2.0
196
//// [invalidInstantiatedModule.js] var M; (function (M) { var Point = (function () { function Point() { } return Point; })(); M.Point = Point; M.Point = 1; })(M || (M = {})); var M2; (function (M2) { M2.Point = 1; })(M2 || (M2 = {})); var m = M2; var p;
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/invalidInstantiatedModule.js
JavaScript
apache-2.0
320
/** * Property finder App using react-native * Find the tutorial oneline: https://www.raywenderlich.com/99473/introducing-react-native-building-apps-javascript */ 'use strict' import React, { AppRegistry, Component, StyleSheet, View, Text, NavigatorIOS, } from 'react-native'; var SearchPage = require('./se...
elhoucine/PropertyFinder
index.ios.js
JavaScript
apache-2.0
826
/** * show * * @author: fengwang * @date: 2016/11/8 22:43 * @version: 1.0 */ $(function () { //列表 function list() { $.ajax({ url: gContextPath + "/a/jxt/p/portfolio/" + $('#portfolioId').val() + "/courses/" + $('#portfolioStudentRpId').val(), type: 'post', dataT...
iclockwork/percy
web-ph/src/main/webapp/res/js/app/jxt-pub/portfolio/show.js
JavaScript
apache-2.0
12,582
'use strict'; var app = angular.module('com.module.dwForensic'); app.service('ForensicService', ['$state', 'CoreService', 'DwTrail', 'DwDomainEntityType', 'gettextCatalog', function ($state, CoreService, DwTrail, DwDomainEntityType, gettextCatalog) { this.processEdges = function (rawEdges, rawNodes) { var...
Sotera/DatawakeDepot
client/app/modules/dwForensic/services/forensic.service.js
JavaScript
apache-2.0
6,229
var mongoose = require('mongoose'); var ShortId = require('mongoose-minid'); var bcrypt = require('bcryptjs'); var Schema = mongoose.Schema; var SALT_WORK_FACTOR = 10; var PlayerSchema = new Schema({ userId: ShortId, username: String, playStatus: String, sketchbook: ShortId, joinedAt: { type: Date, d...
appsdev01/rollingpaint
server/models/room.server.model.js
JavaScript
apache-2.0
2,379
import IterableIterator from '../iteration/iterable-iterator'; import Collection from './collection'; import HashTable, {HashTableIterator} from './hash-table'; import isArray from '../utils/is-array'; import error from '../utils/error'; import forOf from '../utils/for-of'; import count from '../utils/count'; import de...
multiplex/multiplex.js
src/lib/collections/map.js
JavaScript
apache-2.0
5,125
require('angular/bower-angular-mocks:angular-mocks.js'); describe('ngFormError', function() { var element, scope, html; element = scope = null; beforeEach(function() { angular.mock.module('ngFormError'); inject(function($rootScope, $compile) { scope = $rootScope.$new(); /** <form n...
CrowdTwist/ngFormError
test/ngFormErrorSpec.js
JavaScript
apache-2.0
2,740
ngDefine('cockpit.plugin.statistics-plugin.shared-directives', function(module) { module.directive('spMenu', function(Uri){ return { restrict: 'E', templateUrl: Uri.appUri('plugin://statistics-plugin/static/app/shared/directives/views/sp-menu.html') }; }); });
camunda/camunda-cockpit-plugin-statistics
src/main/resources/plugin-webapp/statistics-plugin/app/shared/directives/spMenu.js
JavaScript
apache-2.0
290
// Copyright 2006 The Closure Library 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 requ...
redforks/closure-library
closure/goog/dom/dom.js
JavaScript
apache-2.0
108,101
function map_canvas() { var data_peak = new Array(); var data_saddle = new Array(); var polylines = new Array(); data_peak.push({ lat: 39.09944445, lng: 140.0487778, cert : true, missing : false, content:'Chyoukaizan (Shinzan)(JA/YM-001)(2234.9m) 39.09944445,140.0487778[2234.9m]' }); data_saddle.push({ lat: 39.66666...
w-ockham/SOTA-FindSummits
example/all/5840.js
JavaScript
apache-2.0
124,978