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 |
|---|---|---|---|---|---|
var Character = function() {
};
for(key in GameElement.prototype) { // copying all LivingElement prototype property into the Character property
Character.prototype[key] = LivingElement.prototype[key];
} | cedricms/in-between-taverns | app/scripts/data/elements/moveable_elements/characters/character.js | JavaScript | lgpl-3.0 | 207 |
export default function GlancesPluginAmpsController($scope, GlancesStats, favicoService) {
var vm = this;
vm.processes = [];
vm.$onInit = function () {
loadData(GlancesStats.getData());
};
$scope.$on('data_refreshed', function (event, data) {
loadData(data);
});
var loadD... | nicolargo/glances | glances/outputs/static/js/components/plugin-amps/controller.js | JavaScript | lgpl-3.0 | 1,162 |
/*!
* Copyright (c) Metaways Infosystems GmbH, 2011
* LGPLv3, http://www.arcavias.com/en/license
*/
Ext.ns('MShop.panel.plugin');
MShop.panel.plugin.ListUi = Ext.extend(MShop.panel.AbstractListUi, {
recordName : 'Plugin',
idProperty : 'plugin.id',
siteidProperty : 'plugin.siteid',
itemUiXType : '... | Arcavias/arcavias-core | client/extjs/src/panel/plugin/ListUi.js | JavaScript | lgpl-3.0 | 4,368 |
(function($) {
var cultures = $.global.cultures,
en = cultures.en,
standard = en.calendars.standard,
culture = cultures["kl-GL"] = $.extend(true, {}, en, {
name: "kl-GL",
englishName: "Greenlandic (Greenland)",
nativeName: "kalaallisut (Kalaallit Nunaat)",
lan... | Kapinko/CJAF | lib/jquery/global/globinfo/Globalization.kl-GL.js | JavaScript | lgpl-3.0 | 2,053 |
/*
* Copyright (c) 2015 Particle Industries, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your op... | ZachBergh/spark-mysql-protocol | js/server/DeviceServer.js | JavaScript | lgpl-3.0 | 10,597 |
/* globals $ */
'use strict';
angular.module('kevoreeRegistryApp')
.directive('passwordStrengthBar', function () {
return {
replace: true,
restrict: 'E',
template: '<div id="strength">' +
'<small translate="global.messages.validate.newpassword.strength">Password streng... | kevoree/kevoree-registry | src/main/webapp/app/account/password/password.directive.js | JavaScript | lgpl-3.0 | 2,823 |
define(['viz', 'parser/xdot', 'pegast'], function (viz, xdotparser, pegast) {
return {
generate: function (source) {
var xdot, result;
xdot = viz(source, { format: "xdot" });
try {
var ast = xdotparser.parse(xdot);
result = this.shapeast(ast);
} catch(e) {
throw "... | mstefaniuk/graph-viz-d3-js | src/js/transformer.js | JavaScript | lgpl-3.0 | 2,771 |
var saturian_tass17_results_xyz =
{
"0": [
[-20025.0000000000000, -0.0002925531870, 0.0010574942584, -0.0005583963756, -0.0080857727166, -0.0012324876014, 0.0015759179236],
[-19800.0000000000000, 0.0012240105417, 0.0001746518419, -0.0001711383349, -0.0013868084773, 0.0072539010861, -0.0035995548005],
[-195... | mgreter/ephem.js | test/satellites/saturnians/results.tass17.xyz.js | JavaScript | lgpl-3.0 | 186,596 |
// License: public domain - original author: Eros Lever - https://gist.github.com/ErosLever/1c555eaca5d2bc07fc73bae7c550f1f5
// Inspired by tinyxhr.js (https://gist.github.com/4706967) and empijei (https://github.com/empijei)
uxhr=(u,c,d,h,p,m)=>(K=(z,f)=>z?Object.keys(z).map(f):0,e=encodeURIComponent,x=new XMLHttpReq... | ErosLever/uXHR | uxhr.js | JavaScript | unlicense | 1,862 |
function queryTranslation(query, txt) {
translate(txt, null, function (txt) {
console.log("txt = " + txt + ", query = " + query);
if (txt) {
$(query).text(txt);
}
});
}
//google translate
function translate(text, lang, callback) {
if (!text) {
retur... | trollderius/wouldyourather_phonegap | www/~commons/modules/premium/googleTranslation.js | JavaScript | unlicense | 2,097 |
mycallback( {"_record_type": "fec.version.v7_0.TEXT", "FILER COMMITTEE ID NUMBER": "C00441410", "REC TYPE": "TEXT", "TEXT4000": "Check", "TRANSACTION ID NUMBER": "TINCA401", "_src_file": "2011/20110504/727393.fec_1.yml", "BACK REFERENCE TRAN ID NUMBER": "INCA401", "BACK REFERENCE SCHED / FORM NAME": "SA11AI"});
| h4ck3rm1k3/federal-election-commission-aggregation-json-2011 | objects/4e/5605f66d38505e3b712e7e54d1f5864c931175.js | JavaScript | unlicense | 313 |
// Get client screen and browser measurements
screenWidth = screen.width;
screenHeight = screen.height;
browserWidth = $(window).width();
browserHeight = $(window).height();
$.ajax({
type: 'GET',
url: $(location).attr('href'),
dataType: 'script',
data: { screen_width: screenWi... | jgwizdala/pokemon_on_rails | app/assets/javascripts/global.js | JavaScript | unlicense | 532 |
const request = require('request-promise');
const P = require('../../lib/patterns');
module.exports = {
fetchAll: (tickets) => {
return new Promise((resolve, reject) => {
// Tools
var stack = {};
var register = P.registrator(stack);
var accumulate = P.accumu... | ConflictingTheories/scripts | javascript/btcmon/lib/cache-btc.js | JavaScript | unlicense | 3,015 |
var interfaceorg_1_1onosproject_1_1net_1_1topology_1_1Topology =
[
[ "clusterCount", "interfaceorg_1_1onosproject_1_1net_1_1topology_1_1Topology.html#ae6bef3e1ddbaa34093159edceed94294", null ],
[ "computeCost", "interfaceorg_1_1onosproject_1_1net_1_1topology_1_1Topology.html#acc42196b9c68bda8fe8e6b096ab53a40", ... | onosfw/apis | onos/apis/interfaceorg_1_1onosproject_1_1net_1_1topology_1_1Topology.js | JavaScript | apache-2.0 | 841 |
//***STEFANO
var example_gui_properties = {
"v1" : {
"default": {
"shape": "cross",
"color": "#42f44e",
"label_color": "black",
"size": 15
},
"nodes": {
"nodemodel": {
"shape": "circle",
//"#00CC66",
"color": "#F27220",
"size": 15,
"na... | superfluidity/RDCL3D | code/static/src/projecthandler/nemo/gui_properties.js | JavaScript | apache-2.0 | 1,363 |
import React, {Component} from 'react';
import ReactPDF from 'react-pdf/build/entry.webpack';
import lecture from '../documents/Lecture_5.pdf';
//import ViewOptions from './ViewOptions';
class Presentation extends Component
{
constructor(props) {
super(props);
this.state = {file: lecture,pageIndex:... | hamzamac/Darasa | src/components/Presentation.js | JavaScript | apache-2.0 | 1,005 |
// onclick event code can only reference members of the global object...
var nodeRotateFunctions = {};
// Dummy variables to keep historygraph.js happy.
var FLAG_NAME_FILTER = 1;
var FLAG_STAMP_FILTER = 2;
var FLAG_FROM_FILTER = 4;
var FLAG_TO_FILTER = 8;
var FLAG_BRANCH_FILTER = 16;
var FLAG_PATH_FILTER = ... | glycerine/vj | src/veracity/src/server_files/ui/mergereview.js | JavaScript | apache-2.0 | 17,168 |
log('<< ui/results/TestDetailsPopover.js >>');
module.exports = getTestDescPopover;
var popover, data;
function getTestDescPopover() {
popover = Ti.UI.iPad.createPopover({
width: 750,
height: 390,
title: 'Test Details',
horizontalWrap: false,
});
popover.setData = funct... | YasKuraishi/p2p-Books | Resources/ui/results/TestDetailsPopover.js | JavaScript | apache-2.0 | 3,276 |
/*
* ../../../..//jax/output/SVG/fonts/TeX/AMS/Regular/GeneralPunctuation.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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
*
... | GerHobbelt/MathJax | jax/output/SVG/fonts/TeX/AMS/Regular/GeneralPunctuation.js | JavaScript | apache-2.0 | 1,881 |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... | better-js-logging/angular-logger2 | dist-esmodule/logging.types.js | JavaScript | apache-2.0 | 2,080 |
$(function() {
$("#contactForm input,#contactForm textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); /... | proventusbr/proventusbr.github.io | js/contact_me.js | JavaScript | apache-2.0 | 2,918 |
//Google Maps control for SAP UI5
//Copyright (C) 2014 Christian Ladrón de Guevara Reyes
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or... | christianladron/Geo_Aggs-Map | UI/src/Maps/Marker.js | JavaScript | apache-2.0 | 1,601 |
import React from 'react'
import PropTypes from 'prop-types'
import createReactClass from 'create-react-class'
import JSONLD from '../JSONLD'
import RemoveMarkup from '../../modules/RemoveMarkup'
import CollectionPageHeader from '../../layout/CollectionPageHeader'
import PageContent from '../../layout/PageContent'
impo... | ndlib/beehive | src/components/Pages/About.js | JavaScript | apache-2.0 | 2,791 |
'use strict';
import { Service } from './service';
import { View } from '../../bindings/html/view';
const service = new Service(navigator.languages || [navigator.language]);
window.addEventListener('languagechange', service);
document.addEventListener('additionallanguageschange', service);
document.l10n = new View(s... | Swaven/l20n.js | src/runtime/web/index.js | JavaScript | apache-2.0 | 339 |
var dnd = false;
function DnD() {
if (!dnd) {
$($("#hypDND").parent()).addClass('dndActive');
$('.draggable-container').show();
$('.draggable-container').css("border", "3px solid ForestGreen");
$('.draggable-container').sortable({
dropOnEmpty: true,
item... | Appleseed/portal | Master/Appleseed/WebSites/Appleseed/aspnet_client/js/DragNDrop.js | JavaScript | apache-2.0 | 1,946 |
// Copyright 2014 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... | miyucy/oppia | extensions/widgets/interactive/InteractiveMap/InteractiveMap.js | JavaScript | apache-2.0 | 2,060 |
/*
Copyright 2015 Paul Bevis
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | paulbevis/wordsearch | js/reducers/board-creator.js | JavaScript | apache-2.0 | 6,362 |
import React from 'react';
import './stylesheets/stylesheet.scss';
import {Component} from 'react';
import { Redirect, Link, BrowserRouter, Route, Switch } from 'react-router-dom'
import BASE_URL from 'globals/base_url';
import getCookie from './functions/getCookie';
import ScrollToTop from './functions/ScrollToTop... | Michael-Stewart-Webdev/annotation-tool | tagging_interface/src/App.js | JavaScript | apache-2.0 | 12,773 |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use VBAFileMapperMocker 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 ... | googleinterns/filesystem-in-appsscript | FileSystem/file_mapper_mocker_util.js | JavaScript | apache-2.0 | 7,694 |
import React from 'react';
import PropTypes from 'prop-types';
import className from 'classnames';
import { deprecated } from 'prop-types-extra';
import omitProps from '../../util/omitProps';
import css from './Card.css';
import DefaultCardHeader from './headers/DefaultCardHeader';
export default class Card extends ... | folio-org/stripes-components | lib/Card/Card.js | JavaScript | apache-2.0 | 2,355 |
/* ***** 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 so... | erangatl/carbon-analytics | components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/commons/lib/ace-editor/scrollbar.js | JavaScript | apache-2.0 | 9,391 |
import mutations from '../../assets/src/store/mutations'
describe('test mutations', () => {
it('load menu', () => {
const state = { menu: { user: [], admin: [] } }
mutations.updateMenu(state, {
user: [
{ title: '皮肤工具' },
{ title: '我的举报' },
{ title: 'Blessing\\ConfigGenerator::c... | g-plane/md-ui-for-bs | specs/store/mutations.spec.js | JavaScript | apache-2.0 | 3,890 |
function Service (base_url) {
var thisService = this;
this.base_url = base_url;
this.upload_form_data = function (successFn, progressFn, errorFn, formData) {
$.ajax({
url: thisService.base_url + "/upload",
type: 'POST',
//Ajax events
success: successFn,
error: errorFn,
... | StingraySoftware/dave | src/main/resources/static/scripts/service.js | JavaScript | apache-2.0 | 6,456 |
/**
Copyright 2015 ligaDATA
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 writ... | traytonwhite/Kamanja | trunk/SampleApplication/MiddleWareAndUI/UI/_js/events.js | JavaScript | apache-2.0 | 1,040 |
var http = require('http');
module.exports.server = null;
module.exports.initialize = function (requestHandlerCallback) {
this.server = http.createServer(requestHandlerCallback);
};
module.exports.listen = function () {
this.server.listen.apply(this.server, arguments);
};
module.exports.close = function (ca... | jzangari/rest-framework | server.js | JavaScript | apache-2.0 | 365 |
/*
The MIT License (MIT)
Copyright (c) 2016 Yoshua Wuyts
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 the rights
to use, copy, modify, merge, ... | apphub-pro/apphub-console | client/app/router.js | JavaScript | apache-2.0 | 3,935 |
/*!
* @intlify/core-base v9.1.7
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var messageResolver = require('@intlify/message-resolver');
var runtime = require('@intlify/runtime');
var messageCompiler = require('@i... | dcloudio/uni-app | packages/vue-cli-plugin-uni/packages/vue3/node_modules/@intlify/core-base/dist/core-base.cjs.prod.js | JavaScript | apache-2.0 | 26,615 |
(function() {
var fields = [ {
name: 'Blocked'
}, {
name: 'BlockedBy'
}, {
name: 'Done',
type: 'boolean'
} ];
Ext.define('App.model.CustomEvent', {
extend: 'Sch.model.Event',
fields: fields,
// Sencha Touch
config: {
fields: fields
},
block: function(userName) {
this.set({
Blocked:... | ralscha/wampspring-demos | wampspring-demo-various/src/main/resources/static/scheduler/app/model/CustomEvent.js | JavaScript | apache-2.0 | 464 |
/*jslint maxerr:1000 */
var my = {
mod : require('bencoding.android.tools')
};
(function () {
var win = Ti.UI.createWindow({
backgroundColor: '#fff', title: 'BOOT_COMPLETED Example',
barColor:'#000',layout:'vertical',fullscreen:false, exitOnClose:true
});
win.add(Ti.UI.createLab... | AppWerft/Runway-fashionBook | modules/android/bencoding.android.tools/0.31/example/BootReceiver/RecordBootTime/app.js | JavaScript | apache-2.0 | 1,028 |
// Log System
import * as logger from 'loglevel';
let log = logger.getLogger('Subscription');
class Subscription {
constructor(bus, subscriber, resource) {
let _this = this;
_this._subscriber = subscriber;
_this.resource = resource;
log.log('[SubscriptionManager.Subscription] new: ', subscriber, re... | reTHINK-project/dev-runtime-core | src/subscriptionManager/Subscription.js | JavaScript | apache-2.0 | 528 |
/*
* Copyright 2017 SideeX committers
*
* 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... | durarumin/selenium-ide | src/panel/js/hideshow.js | JavaScript | apache-2.0 | 1,876 |
// Copyright © 2014 Intel Corporation. All rights reserved.
// Use of this source code is governed by an Apache v2
// license that can be found in the LICENSE-APACHE-V2 file.
var ChildProcess = require('child_process');
var Path = require("path");
var ShellJS = require("shelljs");
var AndroidTargets = require(".... | crosswalk-project/crosswalk-app-tools | android/lib/AndroidSDK.js | JavaScript | apache-2.0 | 7,432 |
jest.mock("../src/libs/iamClient");
jest.mock("@aws-sdk/client-iam");
// Get service clients module and commands.
import 'regenerator-runtime/runtime'
import { run, params } from "../src/iam_attachrolepolicy";
import { iamClient } from "../src/libs/iamClient";
describe("@aws-sdk/client-iam mock", () => {
it("should... | awsdocs/aws-doc-sdk-examples | javascriptv3/example_code/iam/tests/iam_attachrolepolicy.test.js | JavaScript | apache-2.0 | 515 |
(function() {var implementors = {};
implementors["tokio_http2"] = ["impl<'a, 'b> <a class='trait' href='https://doc.rust-lang.org/nightly/core/str/pattern/trait.Pattern.html' title='core::str::pattern::Pattern'>Pattern</a><'a> for &'b <a class='struct' href='https://doc.rust-lang.org/nightly/collections... | lambdastackio/tokio-http2 | docs/implementors/core/str/pattern/trait.Pattern.js | JavaScript | apache-2.0 | 617 |
import * as React from 'react';
import styled from 'styled-components';
import Button from '/component/base/Button';
import Icon from '/component/base/Icon';
import Template from '/component/amp/Template';
import AccountSidebar from '/component/sidebar/AccountSidebar';
import mergeOnHandlers from '/util/mergeOnHandler... | ampproject/samples | amp-concert/src/component/partial/AccountButton/AccountButton.js | JavaScript | apache-2.0 | 1,913 |
'use strict';
var capabilityUtils = require('../lib/capability-utils'),
expect = require('must');
var defaultMatcher = capabilityUtils.defaultMatcher,
normalizeCapabilities = capabilityUtils.normalizeCapabilities;
describe('capability-utils', function() {
describe('defaultMatcher', function() {
v... | selenodium/selenodium-grid | test/capability-utils.js | JavaScript | apache-2.0 | 3,036 |
import { combineReducers } from 'redux'
const genericReducer = (sensorDataType) => {
return (state = [], { type, params }) => {
if (type === 'message' && params.cmd === 'sensor.data') {
// fixme it should be destructed somewhere else
const { type, data } = params.params
if (type === sensorDataT... | spaceshipyard/mars-rover-dispatcher | client/client/reducers/sensor-data.js | JavaScript | apache-2.0 | 469 |
function getexpirydate(e) { var o; return Today = new Date, nomilli = Date.parse(Today), Today.setTime(nomilli + 24 * e * 60 * 60 * 1e3), o = Today.toUTCString() } function setcookie(e, o, t) { cookiestring = e + "=" + escape(o) + ";EXPIRES=" + getexpirydate(t), document.cookie = cookiestring } function getcookie(e) {... | PivotalAnimal/BlueConcord.IdentityServer.EntityFrameworkCore | BlueConcord.IdentityServer.Host/wwwroot/scripts/security/cookies4.min.js | JavaScript | apache-2.0 | 511 |
import React from 'react'
import { BrowserRouter as Router, Route, NavLink, Switch, Redirect } from 'react-router-dom'
import createBrowserHistory from 'history/createBrowserHistory'
const history = createBrowserHistory()
const Home = () =>(
<h1>Home</h1>
)
const About = (props) =>(
<div>
<h1>About</h1>
{J... | gbuonc/internazionale-pwa | src/Route_test.js | JavaScript | apache-2.0 | 1,449 |
import React from 'react';
import { withInfo } from '@storybook/addon-info';
const DEFAULT_OPTIONS = {
source: false,
};
const EMPTY_COMPONENT = () => <div />;
export function getAddonOptions(components = []) {
return {
...DEFAULT_OPTIONS,
propTables: components,
};
}
function getPropTables(components,... | iCHEF/gypcrete | packages/storybook/utils/getPropTables.js | JavaScript | apache-2.0 | 550 |
import { connect } from 'react-redux';
import CastellumConfigurationView from '../../../components/castellum/configuration/view';
import { disableAutoscaling } from '../../../actions/castellum';
export default connect(
state => ({
config: (state.castellum || {})['resources/nfs-shares'],
}),
dispatch => ({
... | sapcc/elektra | plugins/shared_filesystem_storage/app/javascript/app/containers/castellum/configuration/view.js | JavaScript | apache-2.0 | 436 |
(function(){
'use strict';
/* eslint-disable angular/window-service */
window.__env = window.__env || {};
var env = {
server : window.__env.server || 'http://localhost',
c_api: window.__env.api || '/api/v1',
sizeRestriction: window.__env.sizeRestriction || 10000000,
dis... | rehans516/o2r-platform | client/app/config/config.module.js | JavaScript | apache-2.0 | 654 |
var applescript = require("applescript");
var Kaiseki = require('kaiseki');
var PARSE_APP_ID = "X9cQUkyFkubVnkM3s5RBEadjPo4lEcBwnnMv0Vjf";
var PARSE_REST_KEY = "vinuIKiTgQdSi7RDDGZGPUxaIXVaGMVl7qaKktpw";
var kaiseki = new Kaiseki(PARSE_APP_ID, PARSE_REST_KEY);
function launchStream(stream) {
var script = 'tell app... | sjunnesson/netflix_switcher | node/app.js | JavaScript | apache-2.0 | 1,359 |
export class Negociacoes {
constructor() {
this._negociacoes = [];
Object.freeze(this);
}
adiciona(negociacao) {
this._negociacoes.push(negociacao);
}
paraArray() {
return [].concat(this._negociacoes);
}
get volumeTotal() {
return this._ne... | wesleyegberto/courses-projects | frontend/webpack/projeto-webpack/client/app-src/domain/negociacao/Negociacoes.js | JavaScript | apache-2.0 | 489 |
var interfaceorg_1_1onosproject_1_1dhcp_1_1DhcpStore =
[
[ "assignIP", "interfaceorg_1_1onosproject_1_1dhcp_1_1DhcpStore.html#a1d56868ac4027b577c17ffc34a2bd72e", null ],
[ "assignStaticIP", "interfaceorg_1_1onosproject_1_1dhcp_1_1DhcpStore.html#a37b9cfd8ab400bede10c2fbf4603553c", null ],
[ "getAvailableIPs"... | onosfw/apis | onos/apis/interfaceorg_1_1onosproject_1_1dhcp_1_1DhcpStore.js | JavaScript | apache-2.0 | 1,439 |
'use strict';
(function() {
angular
.module('HangmanApp')
.controller('MainController', ['$scope', '$timeout', '$window', '$firebaseArray', 'FireHangman', MainController]);
function MainController($scope, $timeout, $window, $firebaseArray, FireHangman) {
var vm = this,
baseRe... | wpagee/angularfire-web-codelab-gdg-cola | step-03/js/main.controller.js | JavaScript | apache-2.0 | 2,023 |
const _ = require("lodash");
const REDUCER_LIST = "ReducerList";
module.exports.type = REDUCER_LIST;
/**
* @class
* @property {string} type
* @property {Array<reducer>} reducers
* @property {boolean} isEmpty
*/
function ReducerList() {
this.type = "ReducerList";
this.reducers = [];
}
module.exports.Constru... | ViacomInc/data-point | packages/data-point/lib/reducer-types/reducer-list/factory.js | JavaScript | apache-2.0 | 1,690 |
/**
* 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... | nodacho/cdh-storm | parcel/STORM-1.1.0/public/js/script.js | JavaScript | apache-2.0 | 15,859 |
/*jslint devel: true, node: true, bitwise: false, debug: false, eqeq: false,
evil: false, forin: false, newcap: false, nomen: false, plusplus: false,
regexp: false, sub: false, vars: false, undef: false, unused: false,
white: false, quotmark: single, indent: 2, maxlen: 80 */
/*global $, Alloy, alert, Ti, _, OS_IOS, OS... | shawnmelton/HackU-App | app/controllers/mapView.js | JavaScript | apache-2.0 | 6,279 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... | amarzavery/azure-sdk-for-node | lib/services/monitorManagement/lib/models/metricCriteria.js | JavaScript | apache-2.0 | 2,803 |
describe('policies.wizard.factory.trigger-model-factory', function () {
beforeEach(module('webApp'));
beforeEach(module('api/trigger.json'));
beforeEach(module('model/trigger.json'));
beforeEach(module('model/policy.json'));
var factory, UtilsServiceMock, PolicyModelFactoryMock, fakeApiTrigger, fakeTrigger, ... | danielcsant/sparta | web/test/policies/wizard/factory/trigger-model-factory.js | JavaScript | apache-2.0 | 12,841 |
/**
* Author: Ken
* Date: 22/09/2013
* Time: 23:45
*/
/*global require*/
var Contacts = require('./contacts'),
Constant = require('./constant');
function api_module() {
"use strict";
function is_array(value) {
return value &&
typeof value === 'object' &&
typeof value.len... | Watke/contact-book | server/api.js | JavaScript | apache-2.0 | 7,497 |
'use strict';
/**
* @ngdoc directive
* @name bayesview3App.directive:visualizeposterior
* @description
* # visualizeposterior
*/
angular.module('bayesview3App')
.directive('visualizeposterior', function () {
var w = 1200;
var h = 100;
var margin = 20,
width = w,
height... | bayeslife/bayesview | app/scripts/directives/visualizeposterior.js | JavaScript | apache-2.0 | 6,195 |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | zettajs/tyrell | cli/lib/packer.js | JavaScript | apache-2.0 | 1,716 |
'use strict';
const httpTestkit = require('../drivers/http-test-kit');
const server = httpTestkit.server();
describe('Local Cache Manager', () => {
before(() => server.start());
after(() => server.stop());
it('return rejected promise in case key does not exists', () => {
console.log('first stub test');
... | noamr/volunteers | test/spark/spark.spec.js | JavaScript | apache-2.0 | 329 |
const request = require('request');
const fs = require('fs');
const jimp = require("jimp");
const config = require('../config.json');
module.exports = {
getUnusualImage: function(baseImageURL,baseID,effectID,callback) {
getBaseImage();
function getBaseImage() {
if(!fs.existsSync(`./ap... | Cruzercru/Backpack-Bot | api/imageHandling.js | JavaScript | apache-2.0 | 2,529 |
$(document).ready(function()
{
var grid_data =
[
{loginName:"Thomas",firstName:"Thomas",lastName:"Tom",email:"Thomas@gmail.com",phone:"040987456", address:"Chatswood,2065"},
{loginName:"Nagi",firstName:"Nagenda",lastName:"Durru",email:"nagenda@gmail.com",phone:"0401456324", address:"St Leonards,2065"} ... | ravikumar533/Autogear | AutogearWeb/assets/autogear/js/instructor.js | JavaScript | apache-2.0 | 12,557 |
app.directive('complexPassword', function() {
return {
require: 'ngModel',
link: function(scope, elm, attrs, ctrl) {
ctrl.$parsers.unshift(function(password) {
var hasUpperCase = /[A-Z]/.test(password);
var hasLowerCase = /[a-z]/.test(password);
... | SungardAS/enhanced-snapshots | WebContent/js/directives/complexPassword.js | JavaScript | apache-2.0 | 885 |
var d3 = require("d3");
var parser = require("biojs-io-snipspector");
var vis = function(opts) {
var width = 960,
height = 500,
radius = Math.min(width, height) / 2;
var color = d3.scale.category10();
var arc = d3.svg.arc()
.outerRadius(radius - 10)
.innerRadius(radius - 150);
var pie = d3.... | biojs-edu/biojs-vis-snipspector | lib/index.js | JavaScript | apache-2.0 | 1,747 |
'use strict';
import defaultCompareFunction from './defaultCompareFunction';
import defaultInsertFunction from './defaultInsertFunction';
export default function mergesort (
arr,
{
offset = 0,
length = arr.length - offset,
maxDelta = 0, // I think maxDelta here is working more like a "percentage off".... | sciactive/libsortjs | src/mergesort.js | JavaScript | apache-2.0 | 2,491 |
"use strict";
var gulp = require('gulp');
var gutil = require('gulp-util');
var inject = require('gulp-inject');
var plumber = require('gulp-plumber');
var jsonfile = require('jsonfile');
var config = require('../config');
var handleError = require('../utils/handle-error');
gulp.task('lab--access__inject', function(... | spacedawwwg/labsite | build/lab/lab--access.js | JavaScript | apache-2.0 | 1,438 |
function __processArg(obj, key) {
var arg = null;
if (obj) {
arg = obj[key] || null;
delete obj[key];
}
return arg;
}
function Controller() {
require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments));
this.__controllerPath = "Settings/EditPro... | zabady/BofffMe_App_v.2 | Resources/iphone/alloy/controllers/Settings/EditProfile/privacyPicker.js | JavaScript | apache-2.0 | 2,953 |
import React, { Component } from 'react'
import {
StyleSheet,
ScrollView,
TouchableOpacity
} from 'react-native'
import PropTypes from 'prop-types'
import { View } from 'react-native-animatable'
import TextPingFang from './TextPingFang'
import privacys from '../constants/privacy'
import {
HEIGHT,
WIDTH,
getRes... | airingursb/two-life | src/components/PrivacyAgreement.js | JavaScript | apache-2.0 | 3,649 |
$axure.loadCurrentPage({
"url":"p1_1_1设置密码.html",
"generationDate":new Date(1438911629322.18),
"isCanvasEnabled":false,
"variables":["OnLoadVariable",
"TagName"],
"page":{
"packageId":"712ebf68399a4b9b92ed7d36f49a7e84",
"type":"Axure:Page",
"name":"P1_1_1设置密码",
"notes":{
},
"style":{
... | yicold/axure-case | jzb/嘉禾良木UE&UI-兼职邦-督导-V1.2/files/p1_1_1设置密码/data.js | JavaScript | apache-2.0 | 22,578 |
//$(function() {
$("#hor_swiper").css("height",$(window).height()-$("#botColum").height()+55);
var t = 0;
$("#yinyueBtn").bind("touchend", function() {
if (t == 0) {
$(this).attr({
"src": "img/close.png"
});
document.getElementById("bgSound").pause();
t = 1;
} else {
$(this).attr({
"src"... | linmingling/demo | zt/mnlscz/js/main.js | JavaScript | apache-2.0 | 3,690 |
// * This Script analyzes incoming websocket messages for error debug messages
// * Based on org.zaproxy.zap.extension.pscanrules.InformationDisclosureDebugErrors
// * Debug Error messages are equal to:
// * * https://github.com/zaproxy/zap-extensions/blob/main/addOns/pscanrules/src/main/zapHomeFiles/xml/debug-error-m... | secdec/zap-extensions | addOns/websocket/src/main/zapHomeFiles/scripts/templates/websocketpassive/Debug Error Disclosure.js | JavaScript | apache-2.0 | 2,954 |
'use strict';
// Load modules
const Events = require('events');
const Url = require('url');
const Http = require('http');
const Https = require('https');
const Stream = require('stream');
const Hoek = require('hoek');
const Boom = require('boom');
const Payload = require('./payload');
const Recorder = require('./reco... | concept-x/bloc-jams-angular | node_modules/wreck/lib/index.js | JavaScript | apache-2.0 | 16,113 |
define(
(require, factory) => {
const { Route } = require('pages/Route');
function routes(appModel, router) {
return {
'/feedback': new Route(() => {
appModel.activePage(this.title);
require(['feedback'], function () {
router.setCurrentView('feedback');
... | anthonysena/Atlas | js/pages/feedback/routes.js | JavaScript | apache-2.0 | 385 |
(function(doc) {
if (doc.type == "follow") {
emit(doc.created_by, {_id: doc._id});
}
})
| itteco/tadagraph | core/views/user-follows/map.js | JavaScript | apache-2.0 | 109 |
var AppDispatcher = require('../dispatcher/AppDispatcher');
var GeneratorConstants = require('../constants/GeneratorConstants');
// Define actions object
var GeneratorActions = {
// Receive inital product data
receiveProduct: function(data) {
AppDispatcher.handleAction({
actionType: FluxCartConstants.RE... | niole/Flux-Random-Number-Generator | frontend/js/actions/FluxCartActions.js | JavaScript | apache-2.0 | 1,162 |
/*
* Copyright 2022 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/adManagement/adNetwork/stories/index.js | JavaScript | apache-2.0 | 1,120 |
'use strict';
// Init the application configuration module for AngularJS application
var ApplicationConfiguration = (function() {
// Init module configuration options
var applicationModuleName = 'mean';
var applicationModuleVendorDependencies = ['ngResource', 'ngAnimate', 'ui.router', 'ui.bootstrap', 'ui.utils'];
... | jaredq/miplayer | public/dist/application.js | JavaScript | apache-2.0 | 19,224 |
"use strict";
var url = require("url");
var path = require("path");
var utils = require("../../utils");
var logger = utils.createLogger({sourceFilePath : __filename});
/**
*
* @param {RequestContext} rc
*/
module.exports=function (rc) {
var componentDirsTxt = rc.wr.getQueryParam("componentDirs") || false;
i... | OpenNTF/Web-UI-Prototyping-Toolkit | lib/cmd/project/generate-components-page.js | JavaScript | apache-2.0 | 1,985 |
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["com.copacabana.order.UserViewOrderEntryWidget"]){ //_hasResource checks added by build. Do no... | rafaelcoutinho/comendobemdelivery | war/scripts/dj/com/copacabana/order/UserViewOrderEntryWidget.js | JavaScript | apache-2.0 | 8,022 |
'use strict';
var _ = require('lodash');
_.extend(module.exports, require('./lib/clock.js'));
_.extend(module.exports, require('./lib/scheduler.js'));
| daviddenton/zeit | index.js | JavaScript | apache-2.0 | 153 |
/*globals require */
require.config({
baseUrl: '/',
paths: {
'bitstar': 'src',
'when': 'node_modules/when',
//'when': 'node_modules/when/when',
//'when/timed': 'node_modules/when/timed',
'lodash': 'node_modules/lodash/dist/lodash',
'Bacon': 'node_modules/baconjs/... | hallettj/bitable | examples/magnet-store/main.js | JavaScript | apache-2.0 | 2,076 |
OC.L10N.register(
"files_encryption",
{
"Unknown error" : "Neatpažinta klaida",
"Recovery key successfully enabled" : "Atkūrimo raktas sėkmingai įjungtas",
"Could not disable recovery key. Please check your recovery key password!" : "Neišėjo išjungti jūsų atkūrimo rakto. Prašome jį patikrinti!",
... | kebenxiaoming/owncloudRedis | apps/files_encryption/l10n/lt_LT.js | JavaScript | apache-2.0 | 4,140 |
(function(){
/**
* Module exports.
*/
module.exports = deprecate;
/**
* Mark that a method should not be used.
* Returns a modified function which warns once by default.
*
* If `localStorage.noDeprecation = true` is set, then it is a no-op.
*
* If `localStorage.throwDeprecation = true` is set, then deprecated... | durwasa-chakraborty/navigus | .demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/update-notifier/node_modules/request/node_modules/bl/node_modules/readable-stream/node_modules/util-deprecate/browser.js | JavaScript | apache-2.0 | 1,633 |
/*
* 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 ... | igor-sfdc/aura | aura-components/src/main/components/ui/tab/tabHelper.js | JavaScript | apache-2.0 | 1,030 |
// This snippet file was generated by processing the source file:
// ./auth-next/manage.js
//
// To update the snippets in this file, edit the source and then run
// 'npm run snippets'.
// [START auth_get_user_profile_modular]
import { getAuth } from "firebase/auth";
const auth = getAuth();
const user = auth.currentU... | firebase/snippets-web | snippets/auth-next/manage/auth_get_user_profile.js | JavaScript | apache-2.0 | 805 |
/*!
* -------------
* NobelDB®-Data
* -------------
* Data of NobelDB — A manually curated dedicated database of Nobel Laureates.
* ___________________________________________________________________________
*
* Grunt, http://gruntjs.com/ — The JavaScript Task Runner.
* _________________________________________... | NobelDB/NobelDB-Data | tasks/options/watch.js | JavaScript | apache-2.0 | 1,293 |
const dbManager = require('./db-manager');
function RuleCommit(id, rule, author, message, timestamp, blob, active) {
this.id = id;
this.rule = rule;
this.author = author;
this.message = message;
this.timestamp = timestamp;
this.blob = blob;
this.active = active;
}
const table = 'rule_commi... | zaragozamartin91/taller2SharedServer | model/RuleCommit.js | JavaScript | apache-2.0 | 2,174 |
import classNames from "classnames";
import PureRender from "react-addons-pure-render-mixin";
import React, { PropTypes } from "react";
import StringUtil from "../utils/StringUtil";
const METHODS_TO_BIND = ["handleReset"];
class FilterHeadline extends React.Component {
constructor() {
super(...arguments);
... | jcloud-shengtai/dcos-ui_CN | src/js/components/FilterHeadline.js | JavaScript | apache-2.0 | 2,411 |
/**
* Copyright 2013-2014 Facebook, 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 agree... | tgriesser/react | src/browser/ui/dom/components/ReactDOMImg.js | JavaScript | apache-2.0 | 1,768 |
import React from "react";
import TestRenderer from "react-test-renderer";
import { FluentBundle, FluentResource } from "@fluent/bundle";
import {
ReactLocalization,
LocalizationProvider,
Localized
} from "../esm/index.js";
test("relocalizes", () => {
const Root = ({ l10n }) => (
<LocalizationProvider l10n... | projectfluent/fluent.js | fluent-react/test/localized_change.test.js | JavaScript | apache-2.0 | 983 |
/* jshint node:true */
'use strict';
var gulp = require('gulp');
var karma = require('karma').server;
var argv = require('yargs').argv;
var $ = require('gulp-load-plugins')();
gulp.task('styles', function() {
return gulp.src([
'app/styles/less/app-green.less',
'app/styles/less/app-blue.less',
'app... | hasithalakmal/CodeAnalyser | UI/gulpfile.js | JavaScript | apache-2.0 | 4,536 |
'use strict';
//var lib = require('./components/components');
var scope = window;
scope.Polymer('euslugiinfo', {
/**
* The `noevent` event is not actually fired from here,
* we document it as an example of documenting events.
*
* @event noevent
*/
/**
* The `notitle` attribute does not yet have ... | scheibinger/euslugi.info | app/scripts/euslugiinfo.js | JavaScript | apache-2.0 | 789 |
/*
Copyright 2016 ElasticBox 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 agreed to in w... | ElasticBox/elastickube | src/ui/app/core/directives/focus.js | JavaScript | apache-2.0 | 1,345 |
var classorg_1_1onosproject_1_1vtnrsc_1_1DefaultHostRouteTest =
[
[ "testConstruction", "classorg_1_1onosproject_1_1vtnrsc_1_1DefaultHostRouteTest.html#a97dd207c616c81541acebe3117e94505", null ],
[ "testEquals", "classorg_1_1onosproject_1_1vtnrsc_1_1DefaultHostRouteTest.html#a258939e69dc06792c2a5777cf90225a6", ... | onosfw/apis | onos/apis/classorg_1_1onosproject_1_1vtnrsc_1_1DefaultHostRouteTest.js | JavaScript | apache-2.0 | 463 |
define(function () {
'use strict';
return function mapCanvasSelectedPartToImageData(canvas, data) {
var context = canvas.getContext('2d'),
imageData = context.getImageData(
data.x,
data.y,
data.width,
data.height
);... | widmogrod/js-spot-the-difference | public/js/utils/mapCanvasSelectedPartToImageData.js | JavaScript | apache-2.0 | 358 |