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 template from './filterGraphicButton.html';
import controller from './filterGraphicButton.controller';
import './filterGraphicButton.styl';
let filterGraphicButtonComponent = {
restrict: 'E',
bindings: {
controlType: '@',
label: '@',
labelIcon: '@',
onChange: '&',
onRemove: '&'
},
te... | linnovate/replay | client/app/components/filterForm/filterGraphicButton/filterGraphicButton.component.js | JavaScript | apache-2.0 | 412 |
/**
* Appcelerator Common Library for Node.js
* Copyright (c) 2012 by Appcelerator, Inc. All Rights Reserved.
* Please see the LICENSE file for information about licensing.
*/
var i18n = require('./i18n')(__dirname),
__ = i18n.__,
__n = i18n.__n;
exports.lpad = function (s, len, ch) {
var pre = '',
ns = Stri... | KenanSulayman/node-appc | lib/string.js | JavaScript | apache-2.0 | 1,617 |
var $mongoose = require('mongoose'),
Schema = $mongoose.Schema;
var ContentPropertySchema = new Schema({
name: {
type: String,
default: '',
trim: true,
required: true
},
format: {
type: String,
default: 'plaintext'
},
value: {
type: String... | icompuiz/node-toastycms | server/models/contentProperty.js | JavaScript | apache-2.0 | 468 |
/*
* Copyright 2014,2015 Open Networking Laboratory
*
* 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 applicab... | kuangrewawa/onos | web/gui/src/main/webapp/app/view/topo/topo.js | JavaScript | apache-2.0 | 10,533 |
'use strict';
const { ConvictSchema } = require('@terascope/job-components');
class Schema extends ConvictSchema {
build() {
return {};
}
}
module.exports = Schema;
| terascope/teraslice | examples/ops/processors/summarize/schema.js | JavaScript | apache-2.0 | 184 |
import find from 'core-js-pure/features/array/find.js';
import { expect, util } from 'chai';
import {
_features,
internal as adagio,
adagioScriptFromLocalStorageCb,
getAdagioScript,
storage,
spec,
ENDPOINT,
VERSION,
RENDERER_URL
} from '../../../modules/adagioBidAdapter.js';
import { loadExternalScrip... | mcallari/Prebid.js | test/spec/modules/adagioBidAdapter_spec.js | JavaScript | apache-2.0 | 56,790 |
var User = require('../models/users');
exports.index = function(req, res) {
if (req.isAuthenticated()) {
User.get( req.user.id ).run(function(error, result) {
if (result == null) {
res.status(404).json({ "Error": "User Not Found" });
}
if (error) {
res.status(500).json({ "erro... | ianjuma/errand-Machine | routes/index.js | JavaScript | apache-2.0 | 961 |
var searchData=
[
['ellipsoid',['Ellipsoid',['../class_ilwis_1_1_ellipsoid.html',1,'Ilwis']]],
['end',['end',['../class_ilwis_1_1_feature_iterator.html#acef4b571c41d938641455adfd893495f',1,'Ilwis::FeatureIterator::end() const '],['../class_ilwis_1_1_feature_iterator.html#ab4dbd0d388a5e90277fdbd767b65f9f1',1,'Ilwis:... | ridoo/IlwisCore | CPPAPI/search/all_65.js | JavaScript | apache-2.0 | 1,504 |
var express = require('express');
var jwt = require("jwt-simple");
var moment = require("moment");
var datejs = require("safe_datejs");
var jalali_moment = require("moment-jalaali");
var router = express.Router();
var Database = require('../database/database').Database;
var logger = require('../utility/logger');
var ta... | majidiust/sms-gateway | routes/sms.js | JavaScript | apache-2.0 | 5,128 |
/*!
* Copyright 2015 Geoscience Australia (http://www.ga.gov.au/copyright.html)
*/
/**
* This version relies on 0.0.4+ of explorer-path-server as it uses the URL for intersection on the artesian basin plus the actual KML
*/
/*!
* Copyright 2015 Geoscience Australia (http://www.ga.gov.au/copyright.html)
*/
/**
* ... | Tomella/fsdf-elvis | source/icsm/tempelevation/elevation.js | JavaScript | apache-2.0 | 10,340 |
describe('enyo.RelationalModel', function () {
// convenience mechanism for quicker reference of the constructor
var Relational = enyo.RelationalModel;
describe('methods', function () {
// convenience mechanism for quicker reference of the prototype
var proto = Relational.prototype,
// the primary mo... | zefsolutions/enyo | tools/mocha-tests/tests/RelationalModel.js | JavaScript | apache-2.0 | 29,763 |
/**
* Module dependencies.
*/
require('./db');
var express = require('express');
var routes = require('./routes');
var http = require('http');
var path = require('path');
var app = express();
var Title = require('./models/Title');
// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', path.... | thomasttvo/turner-coding-challenge | app/turner/app.js | JavaScript | apache-2.0 | 1,243 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/ndarray/base/min-view-buffer-index/examples/index.js | JavaScript | apache-2.0 | 1,781 |
var express = require("express");
var LISTEN_PORT = 3000;
var app = express();
var jade = require('jade');
var main = jade.compileFile("./templates/main.jade", {});
// respond with "hello world" when a GET request is made to the homepage
app.get('/', function(req, res) {
res.set('Content-Type', 'text/html');
... | vvvy/uiserver-node | index.js | JavaScript | apache-2.0 | 455 |
module.exports = function writeWS(ws, code, header, body) {
ws.send(JSON.stringify({
code: code,
header: header,
body: body
}));
}; | ratanasv/first | server/lib/writeWS.js | JavaScript | apache-2.0 | 139 |
config = require('./config.json');
var request = require('request');
function obtainAuthorization(){
var appId = config.appID;
var bsApiUrl = config.bsApiUrl;
var options = {
method: 'POST',
url: config.identityServiceUrl,
json: true,
headers: {
Authorization: '... | twistedSynapse/Utiler | Telerik/test.js | JavaScript | apache-2.0 | 690 |
var React = require('react'),
ReactDOM = require('react-dom');
function initMarker(ref, width, height, refX, refY, orient) {
var node = ReactDOM.findDOMNode(ref);
node.setAttribute('markerWidth', width);
node.setAttribute('markerHeight', height);
node.setAttribute('refX', refX);
node.setAttribute('refY', refY);
... | dlockhart/web-caching-presentation | src/markers.js | JavaScript | apache-2.0 | 667 |
//>>built
define("dojox/widget/rotator/Wipe",["dojo/_base/lang","dojo/_base/fx","dojo/dom-style"],function(g,m,h){function n(a,b,c,e){var d=[0,b,0,0];3==a?d=[0,b,c,b]:0==a?d=[c,b,c,0]:1==a&&(d=[0,0,c,0]);null!=e&&(d[a]=2==a||1==a?e:(a%2?b:c)-e);return d}function k(a,b,c,e,d){h.set(a,"clip",null==b?"auto":"rect("+n(b,c,... | wanglongbiao/webapp-tools | Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/widget/rotator/Wipe.js | JavaScript | apache-2.0 | 808 |
/*
* ../../../..//extensions/a11y/mathmaps/en/units/other.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
*
* http://w... | GerHobbelt/MathJax | extensions/a11y/mathmaps/en/units/other.js | JavaScript | apache-2.0 | 1,019 |
import { setPropertiesFromJSON } from '../../json-helper';
/**
* Generated class for shr.entity.IsActiveIngredient.
*/
class IsActiveIngredient {
/**
* Get the value (aliases boolean).
* @returns {boolean} The boolean
*/
get value() {
return this._boolean;
}
/**
* Set the value (aliases boo... | standardhealth/flux | src/model/shr/entity/IsActiveIngredient.js | JavaScript | apache-2.0 | 1,216 |
var a04894 =
[
[ "MaxX", "a04894.html#a97ec24e7216ebc33a31f3256da8cb9fb", null ],
[ "MaxY", "a04894.html#a234e71657fee11b6e618385cf002e61d", null ],
[ "MinX", "a04894.html#a56623b6372391170e5737ef98a888a97", null ],
[ "MinY", "a04894.html#a1c64669f5607f5c02fb8c0ea8c0291ff", null ]
]; | stweil/tesseract-ocr.github.io | 4.0.0-beta.1/a04894.js | JavaScript | apache-2.0 | 300 |
/*
* Copyright (C) 2010-2016 Marvell International Ltd.
* Copyright (C) 2002-2010 Kinoma, 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.... | Kinoma/KPR-examples | basic-checkbox/src/buttons.js | JavaScript | apache-2.0 | 6,256 |
/**
* Message bus
*
* Extremely lightweight message bus
*
* Does not use DOM facilities as those tend to be slow
*
* @author: jldupont
*/
/* global mbus */
(function(document) {
function Mbus() {
this.subs = {};
this.queue = [];
this.in_post = false;
this.debug = true;
... | jldupont/prolog.js | demo/app/scripts/mbus.js | JavaScript | apache-2.0 | 2,007 |
/*
Copyright 2013 Thomas Endt <tmo26@gmx.de>
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
*/
'use strict';
'require baseclass';
return basecl... | tobiaswaldvogel/luci | applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/uptime.js | JavaScript | apache-2.0 | 650 |
export class ProbeDetailsCtrl {
/** @ngInject */
constructor($scope, $injector, $location,$timeout, $q, backendSrv, contextSrv, alertSrv) {
var self = this;
this.contextSrv = contextSrv;
this.backendSrv = backendSrv;
this.alertSrv = alertSrv;
this.$location = $location;
this.$timeout = $tim... | zzphamvanthanhzz/raintank-worlping-app | src/components/probe/probe_details.js | JavaScript | apache-2.0 | 3,745 |
// tracks which runs we have made this week
var config = require('../config');
var http = require('http');
var Colour = require('../colour');
function downloadMonthData(time) {
return new Promise((accept, reject) => {
let url = config.runningapi + '/' + time.month + '/' + time.year;
let ... | lutas/unicorn-house-calendar | services/runs.js | JavaScript | apache-2.0 | 2,248 |
/*
* Copyright (C) 2013-2016 Benjamin Gould, and others
*
* 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 ... | bgould/thriftee | examples/src/main/js/app.js | JavaScript | apache-2.0 | 8,997 |
(function() {
'use strict';
angular.module('LetsVAN.core', [
'ui.router',
'ngMessages',
'ui.utils.masks',
'ngMask',
'angular.viacep',
'ui.bootstrap',
'firebase',
'angular-md5',
'ngNotify',
'ng-sweet-alert',
'ngAnimate',
... | WetechProject/redesigned-octo-dollop | app/app.core.js | JavaScript | artistic-2.0 | 418 |
/**
* Кнотроллер элемента sub.
*
* @author dew1983@mail.ru <Suvorov Andrey M.>
*/
Ext.define(
'FBEditor.editor.element.sub.SubElementController',
{
extend: 'FBEditor.editor.element.AbstractStyleElementController'
}
); | Litres/FB3Editor | Frontend/app/editor/element/sub/SubElementController.js | JavaScript | bsd-2-clause | 245 |
import React from 'react'
import ReactDOM from 'react-dom'
import HelloWorld from './HelloWorld'
import './index.css'
ReactDOM.render(
<HelloWorld />,
document.getElementById('root')
)
| sharkspeed/dororis | packages/javascript/reactjs/react-getstart/helloworld/src/index.js | JavaScript | bsd-2-clause | 194 |
/**
* @module ol/Object
*/
import {getUid, inherits} from './index.js';
import ObjectEventType from './ObjectEventType.js';
import Observable from './Observable.js';
import Event from './events/Event.js';
import {assign} from './obj.js';
/**
* @classdesc
* Abstract base class; normally only used for creating subcl... | planetlabs/ol3 | src/ol/Object.js | JavaScript | bsd-2-clause | 6,329 |
'use strict';
var frames = require('../../lib/frames'),
builder = require('buffer-builder'),
constants = require('../../lib/constants'),
tu = require('./../testing_utils'),
expect = require('chai').expect,
DeliveryState = require('../../lib/types/delivery_state'),
AMQPError = require('../../li... | vunvulear/IoTHomeProject | nodejs-grovepi-azureiot/node_modules/amqp10/test/unit/frames.test.js | JavaScript | bsd-2-clause | 29,072 |
L.Line3 = class extends L.Layer {
constructor (geojson) {
super();
this._defaultColor = Color.parse(L.Line3.DEFAULT_COLOR);
this._origin = [0, 0];
this._width = 0;
this._height = 0;
this._offset = [0, 0];
this._cam = [0, 0, 450];
this._data = [];
this._renderData = [];
... | kekscom/L.Line3 | src/index.js | JavaScript | bsd-2-clause | 6,610 |
"use strict";
#define unimpl(x) cpu.debug.unimpl(x)
var
table16 = [],
table32 = [],
table0F_16 = [],
table0F_32 = [];
v86.prototype.table16 = table16;
v86.prototype.table32 = table32;
v86.prototype.table0F_16 = table0F_16;
v86.prototype.table0F_32 = table0F_32;
#define op(n, code) table16[n] = ... | Godning/v86 | src/instructions.macro.js | JavaScript | bsd-2-clause | 60,248 |
/**
* An implementation of Google Maps' MVCArray.
* @see https://developers.google.com/maps/documentation/javascript/reference
*/
goog.provide('ol.Collection');
goog.provide('ol.CollectionEvent');
goog.provide('ol.CollectionEventType');
goog.require('goog.array');
goog.require('goog.events.Event');
goog.require('... | yinxiaomei/ol3 | src/ol/collection.js | JavaScript | bsd-2-clause | 5,744 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The Date.prototype.setUTCFullYear property "length" has { ReadOnly,
DontDelete, DontEnum } attributes
esid: sec-date.prototype.setutcfullyear
es5id: 15.9.5.41_A3_T3
... | sebastienros/jint | Jint.Tests.Test262/test/built-ins/Date/prototype/setUTCFullYear/S15.9.5.41_A3_T3.js | JavaScript | bsd-2-clause | 697 |
var kwfExtend = require('kwf/extend');
var onReady = require('kwf/on-ready');
var getKwcRenderUrl = require('kwf/get-kwc-render-url');
var statistics = require('kwf/statistics');
Kwf.EyeCandy.List.Plugins.ActiveListener.LargeContentAjax = kwfExtend(Kwf.EyeCandy.List.Plugins.Abstract, {
init: function() {
t... | kaufmo/koala-framework | Kwf_js/EyeCandy/List/Plugins/ActiveListener/LargeContentAjax.js | JavaScript | bsd-2-clause | 7,088 |
/* global define */
define([
'jquery',
'underscore',
'backbone',
'marionette',
'../result-details'
], function($, _, Backbone, Marionette, details) {
var ResultDetailsModal = Marionette.Layout.extend({
id: 'result-details-modal',
className: 'modal hide',
template: 'va... | chop-dbhi/varify | varify/static/js/src/ui/modals/result.js | JavaScript | bsd-2-clause | 1,044 |
if (typeof print !== 'function') {
print = console.log;
}
| nginx/njs | test/harness/compatPrint.js | JavaScript | bsd-2-clause | 62 |
const router = require('express').Router()
const User = require('../models/User')
const { Joi, celebrate, errors } = require('celebrate')
const auth = require('../auth')
const webPassword = require('../../common/webPassword')
// const loginUserSchema = Joi.object({
// username: Joi.string().required(),
// password... | ruslan2k/web-password | server/controllers/groupController.js | JavaScript | bsd-2-clause | 610 |
var Stomp = require('stompjs')
, SockJS = require('sockjs-client');
module.exports = me = {};
me.connect = function() {
//var sock = new SockJS('http://localhost:15674/stomp');
var sock = new SockJS('http://192.168.99.100:15674/stomp');
var client = Stomp.over(sock);
client.debug = null
//client.connect('... | TomWieschalla/Masterprojekt-WS15-16-MMI-IoT | iot-frontend/lib/public/js/rabbit.js | JavaScript | bsd-2-clause | 576 |
var Jsonix = require('../jsonix').Jsonix;
module.exports =
{
"XMLDOM" :
{
"Without prefix" : function(test)
{
var xmldom = require('xmldom');
var di = new (xmldom.DOMImplementation)();
var doc = di.createDocument();
var element = doc.createElementNS('urn:test', 'test');
element.setAttributeNS('htt... | wmakeev/jsonix | nodejs/scripts/tests/xml.js | JavaScript | bsd-2-clause | 5,078 |
export default {
"index": 1,
"lineNumber": 1,
"column": 2,
"message": "Unexpected token ."
}; | eslint/espree | tests/fixtures/ecma-features/jsx/invalid-leading-dot-tag-name.result.js | JavaScript | bsd-2-clause | 109 |
#!/usr/bin/env node
var Nightwatch = require('nightwatch');
var browserstack = require('browserstack-local');
var bs_local;
try {
process.mainModule.filename = "./node_modules/nightwatch/bin/nightwatch"
// Code to start browserstack local before start of test
console.log("Connecting local");
Nightwatch.bs_lo... | sandoche2k/zonemaster-gui | scripts/selenium/local.runner.js | JavaScript | bsd-2-clause | 1,059 |
var sweet = require("./lib/sweet");
var expect = require("expect.js");
describe("compile", function() {
it("should fail to match inside a delimiter when not all subpatterns match", function() {
expect(function() {
sweet.compile("macro m { case ($p (,) ...) => { 'wrong' } }\n m (1,2 'bad')");
... | mathiasbynens/sweet.js | test/test_bad_patterns.js | JavaScript | bsd-2-clause | 358 |
/**
* @module ol/interaction/DragZoom
*/
import {inherits} from '../index.js';
import {easeOut} from '../easing.js';
import _ol_events_condition_ from '../events/condition.js';
import {createOrUpdateFromCoordinates, getBottomLeft, getCenter, getTopRight, scaleFromCenter} from '../extent.js';
import DragBox from '../i... | planetlabs/ol3 | src/ol/interaction/DragZoom.js | JavaScript | bsd-2-clause | 2,355 |
import Immutable from 'immutable';
const initialState = new Immutable.List();
export default function requests(state = initialState, action) {
if (action.type === 'SET_REQUESTS' && action.requests) {
return Immutable.fromJS(action.requests);
}
return state;
}
| mdboop/francis | src/reducers/Requests.js | JavaScript | bsd-2-clause | 271 |
/* <copyright>
</copyright> */
var Montage = require("montage").Montage,
Component = require("montage/ui/component").Component;
var ComponentBlueprintTest3 = exports.ComponentBlueprintTest3 = Component.specialize( {
templateDidLoad: {
value: function() {
//console.log("Component Blueprint ... | DigitalSismo/popcorn | node_modules/montage/test/meta/component-blueprint-test/component-blueprint-test-3.reel/component-blueprint-test-3.js | JavaScript | bsd-3-clause | 980 |
module.exports = function(router, dispachter){
return router;
} | fex-team/yog2-kernel | example/app/home/router.js | JavaScript | bsd-3-clause | 67 |
$("#field2 .check").html("<img src='/assets/admin/not.png'>");
$("#show-last-item").html("<h1 style='text-align:center;margin-top:150px;font-size:3em;'>Erro na leitura do SKU:<span class='red'><%= @last_entry %></span></h1>");
$("#stock_items").val("<%= @old_value %>");
$("#stock_items").focus(); | DekaFugihara/spree_stock_boxes | app/views/spree/admin/stock_boxes/box_insert_error.js | JavaScript | bsd-3-clause | 299 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.5.1.1_A1_T9;
* @section: 15.5.1.1;
* @assertion: When String is called as a function rather than as a constructor, it performs a type conversion;
* @description: Call Str... | luboid/ES5.Script | TestScripts/sputniktests/tests/Conformance/15_Native_ECMA_Script_Objects/15.5_String_Objects/15.5.1_The_String_Constructor_Called_as_a_Function/S15.5.1.1_A1_T9.js | JavaScript | bsd-3-clause | 1,050 |
var searchData=
[
['sound_20and_20music',['Sound And Music',['../group___audio.html',1,'']]],
['script_20entry_20points',['Script Entry Points',['../group___script_entry.html',1,'']]]
];
| puretekniq/batterytech | doc/BatteryTech Engine/doxygen/html/search/groups_73.js | JavaScript | bsd-3-clause | 191 |
/**
* the user has some base layers saved
*/
cdb.admin.UserLayers = cdb.admin.Layers.extend({
url: function() {
return '/api/v1/users/' + this.user.id + '/layers';
}
});
cdb.admin.User = cdb.core.Model.extend({
urlRoot: '/api/v1/users',
defaults: {
avatar_url: 'http://cartodb.s3.amazonaws.com/sta... | comilla/map | lib/assets/javascripts/cartodb/models/user.js | JavaScript | bsd-3-clause | 2,985 |
define([
// should not depend on any other module?
]
,function () {
'use strict';
return {
init: init
}
function init(nga, admin, moduleMenu, moduleBaseApiUrl, entityMap){
var entityName = 'phone-contact-records';
var entity = nga.entity(entityName)
.baseApiU... | ace-han/onedegree | admin/static/admin/friend/constants/phoneContactRecordEntity.initializer.js | JavaScript | bsd-3-clause | 3,951 |
baseURL = './'; addTag('base', {href: './'}); window.discussionConfigs = {active:false, shortName:'false', url:'false', dev:false}; | adrexia/silverstripe-flowchart | js/thirdparty/jsPlumb/node_modules/grunt-docular/node_modules/docular/lib/webapp/documentation/docular-configuration.js | JavaScript | bsd-3-clause | 133 |
var a00203 =
[
[ "ADT", "a00203.html#a3eda8e832302b01dbbbaf55f742914ca", null ],
[ "Potentials", "a00203.html#a9765260313d922c2b8feb976089f52ec", null ],
[ "Potentials", "a00203.html#a3086f766807fdfdc53ba6e6b55451f48", null ],
[ "Potentials", "a00203.html#a5aab8730c80a7070ac1f295b9ab66e5d", null ],
... | devbharat/gtsam | doc/html/a00203.js | JavaScript | bsd-3-clause | 698 |
/**
* @format
*/
import 'react-native';
import React from 'react';
import Root from '../src/index';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<Root />);
});
| archriss/react-native-snap-carousel | example/__tests__/index.js | JavaScript | bsd-3-clause | 274 |
var searchData=
[
['ener_2ec',['ener.c',['../da/d20/ener_8c.html',1,'']]],
['ener_2eh',['ener.h',['../dd/dca/ener_8h.html',1,'']]]
];
| FHedin/mc_LJ | doc/html/search/files_0.js | JavaScript | bsd-3-clause | 138 |
import * as types from './types';
const initialState = {
signIn_email: "",
signUp_firstStep: "",
signUp_secondStep: "",
signUp_username: "",
signUp_email: "",
signUp_confirmEmail: "",
signUp_password: "",
signUp_confirmPassword: "",
signUp_avatar: "",
tos: false,
};
export default function(state=i... | vFujin/HearthLounge | src/redux/entry/reducer.js | JavaScript | bsd-3-clause | 1,049 |
'use strict';
/*
* Controllers
*/
var webShopControllers = angular.module('WebShopControllers', []);
// General navigation controller
webShopControllers.controller('NavigationCtrl', ['$scope', '$location',
function($scope, $location) {
$scope.navigate = function(url) {
$location.path(url);
... | webappar/webshop | src/main/webapp/shop/app/js/controllers.js | JavaScript | bsd-3-clause | 5,819 |
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs"),
port = process.argv[2] || 18089;
http.createServer(function(request, response) {
var Response = {
"200":function(file, filename){
var extname = path.extname(filename);
var header =... | Asratec/VSidoConnServer | VSidoWeb/debug/WebServer.js | JavaScript | bsd-3-clause | 1,401 |
"use strict";
function *evil() {
var monkeyBase = 128584;
while(true) {
yield "🙈";
yield "🙉";
yield "🙊";
}
}
module.exports.evil = evil;
| rgbkrk/emojiterator | index.js | JavaScript | bsd-3-clause | 186 |
define(
//begin v1.x content
{
"dateFormatItem-yyyyMMMEd": "E, d. M. y G",
"dayPeriods-format-wide-pm": "odp.",
"dateFormatItem-MMMEd": "E, d. M.",
"days-standAlone-wide": [
"neděle",
"pondělí",
"úterý",
"středa",
"čtvrtek",
"pátek",
"sobota"
],
"dateFormatItem-Gy": "y G",
"dayPeriods-format-wide-a... | kitsonk/expo | src/dojo/cldr/nls/cs/islamic.js | JavaScript | bsd-3-clause | 2,313 |
var searchData=
[
['effort',['effort',['../group__ADMB.html#gab0d5c57650055811ec2f768328d2a9c8',1,'pella-t.tpl']]]
];
| johnrsibert/tpl2dox | pella-t/dox/html/search/variables_65.js | JavaScript | bsd-3-clause | 120 |
requirejs.config({
paths: {
app: '/js/app',
lib: 'lib',
text: '../../lib/text'
}
}); | alxkolm/kicker | web/js/common.js | JavaScript | bsd-3-clause | 116 |
import * as babelJest from "babel-jest";
import jestPreset from "babel-preset-jest";
import { transform as babelTransform } from "@babel/core";
import babelIstanbulPlugin from "babel-plugin-istanbul";
import { readFileSync, existsSync } from "fs";
import { createHash } from "crypto";
import path from "path";
const r... | newsuk/times-components | packages/jest-configurator/src/source-loader.js | JavaScript | bsd-3-clause | 1,997 |
define([
"jquery",
"../core/logger",
"../utils",
"../registry",
"jquery.fullcalendar"
], function($, logger, utils, registry) {
"use strict";
var log = logger.getLogger("pat.fullcalendar");
var fullcalendar = {
name: "fullcalendar",
trigger: ".pat-fullcalendar",
... | Patternslib/require-experimental-build | src/pat/fullcalendar.js | JavaScript | bsd-3-clause | 7,706 |
// Karma configuration
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '..',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['jasmine'],
// list of... | evanj/js-module-experiments | browser/browser.conf.js | JavaScript | bsd-3-clause | 1,530 |
$(function(){
if($.fn.ajaxlinks) {
var defaultConfig = {
load_to: '#content',
load_from: '#content',
loader: '<span class="ajax-loader"></span>',
use_sammy: true,
goto_top: true,
add_scripts: true,
ajaxify_content: true
};
var newConfig = ajaxConfig || {};
var config = $.... | sternoru/goscalecms | goscale/static/goscale/js/goscale.ajax.js | JavaScript | bsd-3-clause | 391 |
import SubjectFormat from "rules/SubjectFormat";
describe("rules/SubjectFormat", () => {
it("should validate formatted single-line messages", () => {
let message = "feat(state): a feature";
let pull = { commits: [{ commit: { message } }] };
expect((new SubjectFormat()).check(pull)).toBe(true);
});
... | radify/PR.js | spec/rules/SubjectFormat.js | JavaScript | bsd-3-clause | 816 |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.7.3
build: 3.7.3
*/
YUI.add('plugin', function (Y, NAME) {
/**
* Provides the base Plugin class, which plugin developers should extend, when creating custom plugi... | giros/alloy-ui | build/plugin/plugin.js | JavaScript | bsd-3-clause | 8,165 |
// TODO ECharts GL must be imported whatever component,charts is imported.
import '../../echarts-gl';
import Line3DSeries from './Line3DSeries';
import Line3DView from './Line3DView';
export function install(registers) {
registers.registerChartView(Line3DView);
registers.registerSeriesModel(Line3DSeries);
... | ecomfe/echarts-x | src/chart/line3D/install.js | JavaScript | bsd-3-clause | 1,729 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2012, 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... | appcubator/jsonbrowser | node_modules/brace/mode/lisp.js | JavaScript | bsd-3-clause | 4,900 |
/*
---
description: Adds twitter.com capabilites to Chorus
license: BSD-style
authors:
- Gerard Paapu
requires:
- Chorus
provides: [Chorus.FriendFeed]
*/
(function (Chorus){
var FriendfeedStatus = new Class({
'Extends': Chorus.Status,
'initialize': function (id, username, avatar, date, text, u... | sharkbrainguy/Chorus-Mootols | Source/Chorus.FriendFeed.js | JavaScript | bsd-3-clause | 2,131 |
import React from 'react';
const LoadingLemma = () => (
<div className="comment-outer comment-lemma-comment-outer">
<article className="comment lemma-comment paper-shadow">
<div className="lemma-loading">
<div className="lemma-loading-top" />
<div className="lemma-loading-bottom" />
</div>
</articl... | CtrHellenicStudies/Commentary | src/components/loading/LoadingLemma/LoadingLemma.js | JavaScript | bsd-3-clause | 402 |
import React from 'react';
import Button from "../../../../../../../../components/buttons/button";
const InnerRightContainer = () => (
<div className="inner inner__right">
<Button type="submit--light" text="Submit"/>
</div>
);
export default InnerRightContainer; | vFujin/HearthLounge | src/containers/pages/create-deck/after-class-selection/right-container/content-assets/deck-description/save-deck-assets/about-deck-inner-right-container.js | JavaScript | bsd-3-clause | 285 |
function FileUploader(id,url,o)
{
var uploader = new plupload.Uploader(
{
runtimes : 'html5,flash,silverlight,html4',
browse_button : 'pickfiles'+id,
container: document.getElementById('container'+id),
url : url+'file/add',
flash_swf_url : '../js/Moxie.swf',
silverlight_xap_url : '../js/Moxie.xap',
f... | bartbresse/MGMT | public/js/fileupload.js | JavaScript | bsd-3-clause | 1,926 |
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
InspectorTest.log('Checks that console message storage doesn\'t exceed limits');
InspectorTest.addScript(`
function generateEmptyMessages(n) {
for (v... | RPGOne/Skynet | node-master/deps/v8/test/inspector/runtime/console-messages-limits.js | JavaScript | bsd-3-clause | 1,351 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | udnisap/react-native | Libraries/Text/TextStylePropTypes.js | JavaScript | bsd-3-clause | 2,369 |
import jQuery from 'jquery';
import plugins from './plugins';
const csrfCookieName = window.csrfCookieName || 'sc';
// setup jquery for CSRF tokens
function getCookie(name) {
let cookieValue = null;
if (document.cookie && document.cookie !== '') {
let cookies = document.cookie.split(';');
for (let i = 0;... | jean/sentry | src/sentry/static/sentry/app/index.js | JavaScript | bsd-3-clause | 5,025 |
/**
* Pimcore
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.pimcore.org/license
*
* @copyright Copyright (c) 2009-2013 pimcore GmbH (http://w... | PatidarWeb/pimcore | pimcore/static/js/pimcore/element/notes.js | JavaScript | bsd-3-clause | 13,921 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | cdlewis/react-native | Libraries/Components/Keyboard/KeyboardAvoidingView.js | JavaScript | bsd-3-clause | 5,885 |
window.CheckBoxWidget = ( function() {
"use strict";
// widgetInfo is a json object with the following attributes
//
// id:
// just an identifier/name for this widget
//
// options:
// an array of options to be listed as checkboxes, each option
// has the following ... | harturch/easyinterface | clients/web/js/checkboxwidget.js | JavaScript | bsd-3-clause | 2,330 |
// flow-typed signature: fab19979b6b943bd172a4ace0f3a0550
// flow-typed version: b942841feb/webpack_v4.x.x/flow_>=v0.104.x
import * as http from 'http';
import fs from 'fs';
declare module 'webpack' {
declare class $WebpackError extends Error {
constructor(message: string): WebpackError;
inspect(): string;
... | zpao/qrcode.react | flow-typed/npm/webpack_v4.x.x.js | JavaScript | isc | 18,813 |
import Reflux from 'reflux';
import groupBy from 'lodash/collection/groupBy';
import ThreadStore from './ThreadStore';
import CurrentThreadStore from './CurrentThreadStore';
let CurrentMessageStore = Reflux.createStore({
init() {
this.listenTo(ThreadStore, this.threadsChanged);
this.listenTo(CurrentThreadSt... | kalmyk/gyper-app | routes/Chat/stores/CurrentMessageStore.js | JavaScript | mit | 754 |
// @flow
import Forms from "../../../../@primitives/UI/forms";
type ISavePaymentCheckBox = {
savedAccount: Object,
savePayment: Function,
shouldSaveState: boolean,
schedule: Object,
transactionType: string,
};
/* eslint-disable max-len */
const SavePaymentCheckBox = ({
savedAccount,
savePayment,
shoul... | NewSpring/apollos-core | imports/components/giving/checkout-views/fieldsets/shared/SavePaymentCheckBox.js | JavaScript | mit | 987 |
var insights = require('../lib/insights.js');
var nrql = 'SELECT max(timestamp) - min(timestamp) FROM PageView SINCE 1 month ago FACET session LIMIT 1000';
var configId = config.get('configArr')[0];
insights.query(nrql, configId, function(error, response, body) {
var facets = body.facets;
var totalTime = 0;
for... | kenahrens/newrelic-api-test-js | scripts/sessionduration.js | JavaScript | mit | 705 |
var util = require('util');
var Exception = require('./Exception');
//////////////////
// Ctor
//////////////////
function ConfigurationFileNotReadableException() {
Exception.apply(this, ['The configuration file is not readable.']);
}
util.inherits(ConfigurationFileNotReadableException, Exception);
module.expo... | amoussard/sftp-deployment | lib/exceptions/ConfigurationFileNotReadableException.js | JavaScript | mit | 365 |
import {
Attachment,
BufferResolvable,
Channel,
ClientOptions,
ClientUserGuildSettings,
ClientUserSettings,
Collection,
Console,
DiscordDMChannel,
DiscordGroupDMChannel,
DiscordGuild,
DiscordMessage,
DiscordTextChannel,
DiscordUser,
DiscordVoiceChannel,
Emoji,
GuildMember,
MessageCol... | splodingsocks/FlowTyped | definitions/npm/klasa_v0.3.x/flow_v0.104.x-/klasa_v0.3.x.js | JavaScript | mit | 49,531 |
/**
* @name packages task
* @desc
*/
module.exports = function(grunt){
grunt.registerTask('bamboo',function(){
var tasks = [
'clean:bower',
'bower:install',
'bowercopy',
'clean:bamboo'
];
grunt.task.run(tasks);
});
}; | EnzoMartin/King-game-explorer | tasks/bamboo.js | JavaScript | mit | 302 |
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
cssnano = require('gulp-cssnano'),
rename = require('gulp-rename'),
babel ... | phuptqn/wpTwig | app/themes/wpTwig/gulpfile.js | JavaScript | mit | 3,150 |
/*
* UI 控制界面的转换
* 海涛
* 2014-12-26
*/
var bpUI = new function () {
var _self = this;
//点击退出按钮后清除cookie并退出(需修改)
_self.logOut = function (btn) {
$(btn).click(function () {
document.cookie = 'user=' + ';expires=' + new Date(0);
document.location.href = '/manage';
});
};
//登陆后默认左侧列表点击后的效果
_self.... | Red-forest/test | public/manage/js/backspace_574b0e7.js | JavaScript | mit | 4,717 |
(function () {
var Ipc = require('ipc');
var _nextSessionId = 1000;
var _replyCallbacks = {};
var _channel2replyInfo = {};
require('../share/ipc-init');
// Messages
Ipc.on('editor:sendreq2core:reply', function replyCallback (args, sessionId) {
'use strict';
var key = '' + sessionId;
var cb = _replyCal... | jarradh/nucliasm | page/ipc-init.js | JavaScript | mit | 9,065 |
import {StyleSheet} from 'react-native'
import { Metrics, Colors } from '../../Themes/'
export default StyleSheet.create({
navButtonLeft: {
marginLeft: Metrics.baseMargin,
backgroundColor: Colors.transparent,
width: Metrics.icons.medium
}
})
| lukabers/ignite | ignite-base/App/Navigation/Styles/NavItemsStyle.js | JavaScript | mit | 259 |
import React, {Component} from 'react'
import Empty from './Empty'
import {isUUID} from '../utils/utils'
import {isValidProps} from './utils'
import Immutable from 'immutable'
function isDiffDict(myId, myClass, current, next, prompt) {
var currentKeys = Object.keys(current).filter(eachKey => isValidKey(eachKey, curr... | g0v/AgriMed | src/components/CommonComponent.js | JavaScript | mit | 5,124 |
ace.config.setModuleUrl('ace/ext/beautify', require('file-loader!./src-noconflict/ext-beautify.js'))
ace.config.setModuleUrl('ace/ext/elastic_tabstops_lite', require('file-loader!./src-noconflict/ext-elastic_tabstops_lite.js'))
ace.config.setModuleUrl('ace/ext/emmet', require('file-loader!./src-noconflict/ext-emmet.js... | NPellet/jsGraph | web/site/js/ace-builds/webpack-resolver.js | JavaScript | mit | 22,611 |
/*
* File: scripts.js
* Author: David Tran
* References: Rob Percival from Udemy
* https://www.udemy.com/complete-web-developer-course/
*/
// Sets the background image's height to the window's height
$(".contentContainer").css("min-height", $(window).height());
| davidlamt/PersonalWebsite | projecttest/portfolio/MyApp/scripts.js | JavaScript | mit | 267 |
L.Storage.BaseAction = L.ToolbarAction.extend({
initialize: function (map) {
this.map = map;
this.options.toolbarIcon = {
className: this.options.className,
tooltip: this.options.tooltip
};
L.ToolbarAction.prototype.initialize.call(this);
if (this.opt... | gislite/maplet | static/jslib/src/Leaflet.Storage/src/js/leaflet.storage.controls.js | JavaScript | mit | 34,745 |
describe("Player", function() {
var player;
var song;
beforeEach(function() {
player = new Player();
song = new Song();
jasmine.addMatchers({
toBePlaying: function () {
return {
compare: function (actual, expected) {
var player = actual;
ret... | mucsi96/gulp-jasmine-livereload-task | test/jasmine-jshint/spec/PlayerSpec.js | JavaScript | mit | 1,864 |
'use strict';
var assert = require('assert');
var suites = [];
var running = false;
var suite = function (name) {
assert(!running, 'Suite started after runAll: ' + name);
var tests = [];
suites.push({
'name': name,
'callback': function (mocha) {
tests.forEach(function (args) ... | fritzo/puddle | puddle-editor/source/lib/puddle-syntax-0.1.2/lib/test.js | JavaScript | mit | 902 |