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 $box = $('.box');
var F = {};
F.getMousePos = function(e, $relaveDom) {
var x = 0;
var y = 0;
if (!e) {
var e = window.event;
}
if (e.pageX || e.pageY) {
x = e.pageX;
y = e.pageY;
}
else if (e.clientX || e.clientY) {
x = e.clientX + document.body.scrollL... | comlewod/document | pages/lab_test/xian.js | JavaScript | bsd-3-clause | 8,132 |
/*!
* jQuery JavaScript Library v2.2.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:23Z
*/
(function( global, factory ) {
if ( typeof module ==... | gorobetssergey/dashboard | vendor/bower/jquery/dist/jquery.js | JavaScript | bsd-3-clause | 257,566 |
'use strict';
angular.module('27th.common.services.alert', [])
.service('alertService', class {
constructor($rootScope) {
this.alerts = [];
this.$rootScope = $rootScope;
}
success(msg) {
this.alerts.push({ type: 'success', message: msg });
th... | brainling/27thvfw | src/common/client/services/alert-service.js | JavaScript | bsd-3-clause | 900 |
/* @flow */
import * as React from "react";
import { nest } from "d3-collection";
import { scaleLinear } from "d3-scale";
import TooltipContent from "../tooltip-content";
const parentPath = (d, pathArray) => {
if (d.parent) {
pathArray = parentPath(d.parent, [d.key, ...pathArray]);
} else {
pathArray = ["r... | jdfreder/nteract | packages/transform-dataresource/src/charts/hierarchical.js | JavaScript | bsd-3-clause | 3,353 |
/*
* Copyright (c) 2013, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE.txt file for terms.
*/
/*jslint nomen:true, node:true */
'use strict';
var core = require('./core');
module.exports = {
describe: {
summary: 'Compile dust templ... | yahoo/locator-dust | lib/plugin.js | JavaScript | bsd-3-clause | 2,981 |
/**
* +--------------------------------------------------------------------+
* | This HTML_CodeSniffer file is Copyright (c) |
* | Squiz Australia Pty Ltd ABN 53 131 581 247 |
* +--------------------------------------------------------------------+
* | IMPORTANT: Your... | burnworks/HTML_CodeSniffer-ja | Standards/Section508/Sniffs/C.js | JavaScript | bsd-3-clause | 1,711 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//var MODAL = $("#modalProducto");
var URL = Define.URL_BASE;
window.onload=function(){
//toastr.error("Ingresaaaaaaaaa");
... | jhonsfran/Coffee_market | public/js/Controllers/socialcoffee.js | JavaScript | bsd-3-clause | 2,907 |
// Plugin for using a local directory as a Library. Generates the payload for
// an AssetList REST endpoint consisting of asset models as well as pagination
// helpers.
var _ = require('underscore'),
fs = require('fs'),
url = require('url'),
path = require('path'),
querystring = require('querystring'),
... | makinacorpus/tilemill | server/library-directory.js | JavaScript | bsd-3-clause | 3,711 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Network drop-down implementation.
*/
cr.define('cr.ui', function() {
/**
* Creates a new container for the drop down menu ... | loopCM/chromium | chrome/browser/resources/chromeos/login/network_dropdown.js | JavaScript | bsd-3-clause | 12,950 |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Bam=e()}}(function(){var define,module,exports;return... | Bockit/bam | dist/bam.js | JavaScript | bsd-3-clause | 24,391 |
(function ()
{
"use strict";
angular.module('BuDirectives', []).
directive('bindHtmlWithJs', ['$sce', '$parse', function ($sce, $parse)
{
/**
* It removes script tags from html and inserts it into DOM.
*
* Testing:
* html += '<script>alert(1234)</script><script type="text/javascript">alert(1234... | makc45/blog | web/js/directive_bind_html_with_js.js | JavaScript | bsd-3-clause | 3,009 |
var NAVTREEINDEX1 =
{
"classcrossbow_1_1basic__string.html#acd8734bee97210a1c2600ce3c56cef95":[2,0,0,5,98],
"classcrossbow_1_1basic__string.html#acdd883ec84ff972ef30486f4af448ce0":[2,0,0,5,54],
"classcrossbow_1_1basic__string.html#ace46e4e9d1a632317c6584597deaa789":[2,0,0,5,29],
"classcrossbow_1_1basic__string.html#ad1... | tellproject/homepage-generator | api/navtreeindex1.js | JavaScript | bsd-3-clause | 24,314 |
var Backbone = require('backbone'),
$ = require('jquery'),
lang = require('../lang'),
template = require('../templates/nav.hbs')
module.exports = Backbone.View.extend({
events: {
'click .js-nav': 'navigate'
},
initialize: function (options) {
this.$el.html(template({
... | akileh/fermpi | front/views/nav.js | JavaScript | bsd-3-clause | 1,413 |
import Subject from "parsers/Subject";
describe("parsers/Subject", () => {
it("should split valid subject lines into object hash", () => {
let subject = "type(scope): summary summary summary";
let pull = { commits: [{ commit: { message: subject } }] };
expect((new Subject()).parse(pull)).toEqual({
... | radify/PR.js | spec/parsers/Subject.js | JavaScript | bsd-3-clause | 988 |
/******************************************************/
/* Funciones para manejo de datos del home */
/******************************************************/
var endpoint = 'http://localhost/RelemancoShopsWeb/api/web/v1/';
var rootURL = "/RelemancoShopsWeb/frontend/web";
var comercioMarkers = [];
var mark... | DRIMTIM/RelemancoShopsWeb | frontend/web/js/relemanco/site.js | JavaScript | bsd-3-clause | 6,678 |
(function($){
$(function(){
$('#zen-gallery a').lightBox({
fixedNavigation:true,
imageLoading: 'zen-gallery/images/lightbox-btn-loading.gif',
imageBtnClose: 'zen-gallery/images/lightbox-btn-close.gif',
imageBtnPrev: 'zen-gallery/images/lightbox-btn-prev.gif',
imageBtnNext: 'zen-gallery/images/l... | silverstripe-australia/council-demo | zen-gallery/javascript/zengallery.js | JavaScript | bsd-3-clause | 366 |
// Generated by CoffeeScript 1.3.3
(function() {
var CMinion, Minion, port, restify, server;
restify = require("restify");
CMinion = require("../../minion");
Minion = new CMinion();
server = restify.createServer();
server.use(restify.queryParser());
server.get("/", function(req, res) {
res.send(... | thegoleffect/hapi-benchmarking | lib/servers/restify/helloworld.js | JavaScript | bsd-3-clause | 552 |
/*
* Copyright (C) 2012-2018 Doubango Telecom <http://www.doubango.org>
* License: BSD
* This file is part of Open Source sipML5 solution <http://www.sipml5.org>
*/
// http://tools.ietf.org/html/draft-uberti-rtcweb-jsep-02
// JSEP00: webkitPeerConnection00 (http://www.w3.org/TR/2012/WD-webrtc-20120209/)
// JSEP01: web... | DoubangoTelecom/sipml5 | src/tinyMEDIA/src/tmedia_session_jsep.js | JavaScript | bsd-3-clause | 31,502 |
// varinput.js
// Javascript routines to handle variable rendering
// $Id: //dev/EPS/js/varinput.js#48 $
function inspect()
{
form1.xml.value = '1';
SubmitFormSpecial('table');
}
// global variable used for items that submit on change or selection
var autosubmit = '';
var autopublish = '';
var workspaceByPass = f... | danenrich/d3_training | js/varinput.js | JavaScript | bsd-3-clause | 8,742 |
var _ = require('underscore');
module.exports = function () {
beforeEach(function () {
spyOn(_, 'debounce').and.callFake(function (func) { return function () { func.apply(this, arguments); }; });
this.geometryView.render();
});
describe('when the model is removed', function () {
it('should remove e... | splashblot/cartodb.js | test/spec/geo/geometry-views/shared-tests-for-multi-geometry-views.js | JavaScript | bsd-3-clause | 826 |
module("support", {teardown: moduleTeardown});
var computedSupport = getComputedSupport(jQuery.support);
function getComputedSupport(support) {
var prop,
result = {};
for (prop in support) {
if (typeof support[prop] === "function") {
result[prop] = support[prop]();
} else ... | malvinder/glscode | vendor/bower-asset/jquery/test/unit/support.js | JavaScript | bsd-3-clause | 8,655 |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in m... | endlessm/chromium-browser | third_party/devtools-frontend/src/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createWatchProgram.js | JavaScript | bsd-3-clause | 15,691 |
/*
*Resize the graph container
*/
function resizegraph(){
var windowHeight = $( window ).innerHeight();
$("#stacked").css('min-height',(windowHeight * 0.35) );
}
//From facebook
window.fbAsyncInit = function(){
FB.init({
appId: facebook_api_key, status: true, cookie: true, xfbml: true });
};
(functio... | opennorth/ovc-vdm | static/js/main.js | JavaScript | bsd-3-clause | 33,353 |
var _ = require('underscore')
module.exports = function (cdb) {
(function () {
var Layers = cdb.vis.Layers;
/*
* if we are using http and the tiles of base map need to be fetched from
* https try to fix it
*/
var HTTPS_TO_HTTP = {
'https://dnv9my... | Stonelinks/cartodb-lite | src/vis/layers.js | JavaScript | bsd-3-clause | 5,195 |
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 50; // 50 seconds
describe('marker_selection_test', function () {
it('all_aml', function (done) {
var dataset;
var referenceDataset;
var promises = [];
promises.push(morpheus.DatasetUtil.read('test_files/all_aml_train.gct').done(function (d) {
dataset = ... | cmap/morpheus.js | jasmine/spec/marker_selection_test.js | JavaScript | bsd-3-clause | 2,522 |
module.exports = function Clock() {
// TODO
} | MantarayAR/paugme-pack-circuits | src/circuit-components/active-components/clock.js | JavaScript | bsd-3-clause | 47 |
/**
* View abstract class
*
* @author Mautilus s.r.o.
* @class View
* @abstract
* @mixins Events
* @mixins Deferrable
*/
function View() {
Events.call(this);
Deferrable.call(this);
this.construct.apply(this, arguments);
};
View.prototype.__proto__ = Events.prototype;
View.prototype.__proto__.__proto__ = De... | wdoganowski/inio-tvapp | framework/view.js | JavaScript | bsd-3-clause | 12,630 |
'use strict';
describe('Registry', function() {
describe('create()', function() {
it('name', function() {
let blot = Registry.create('bold');
expect(blot instanceof BoldBlot).toBe(true);
expect(blot.statics.blotName).toBe('bold');
});
it('node', function() {
let node = document.c... | quilljs/parchment | test/unit/registry.js | JavaScript | bsd-3-clause | 4,631 |
/*--------------------------------------------------------
* Copyright (c) 2011, The Dojo Foundation
* This software is distributed under the "Simplified BSD license",
* the text of which is available at http://www.winktoolkit.org/licence.txt
* or see the "license.txt" file for more details.
*----------------... | winktoolkit/wink | ui/xyz/opener/js/opener.js | JavaScript | bsd-3-clause | 12,838 |
var class_app_store_1_1_templates_1_1_info_page =
[
[ "InfoPage", "dc/dec/class_app_store_1_1_templates_1_1_info_page.html#aacc915c912d65ce33fa9e7e52c6be216", null ],
[ "Connect", "dc/dec/class_app_store_1_1_templates_1_1_info_page.html#ad34ee8cdb8ff2d76fed2cad1bc2aa1a1", null ],
[ "Connect", "dc/dec/class_... | BuildmLearn/BuildmLearn-Store | WP/doc/DOxygen_HTML/dc/dec/class_app_store_1_1_templates_1_1_info_page.js | JavaScript | bsd-3-clause | 2,950 |
import propertyTest from '../../helpers/propertyTest'
propertyTest('DTEND', {
transformableValue: new Date('1991-03-07 09:00:00'),
transformedValue: '19910307T090000'
})
| angeloashmore/ics-js | test/unit/properties/DTEND.js | JavaScript | isc | 175 |
module.exports = function(environment) {
var ENV = {
modulePrefix: 'dummy',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
EXTEND_PROTOTYPES: false,
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'wit... | arenoir/ember-collection | tests/dummy/config/environment.js | JavaScript | mit | 1,177 |
/**
* Created by fengyuanzemin on 17/2/15.
*/
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import * as mutations from './mutations';
Vue.use(Vuex);
const state = {
isShow: false,
msg: '出错了',
isBig: true,
token: localStorage.getItem('f-token'),
init: false
};
expor... | fengyuanzemin/graduation | frontend/src/store/index.js | JavaScript | mit | 389 |
/*global describe, it, expect, require*/
const nodeToBox = require('../../../src/core/layout/node-to-box');
describe('nodeToBox', function () {
'use strict';
it('should convert node to a box', function () {
expect(nodeToBox({x: 10, styles: ['blue'], y: 20, width: 30, height: 40, level: 2})).toEqual({left: 10, style... | mindmup/mapjs | specs/core/layout/node-to-box-spec.js | JavaScript | mit | 802 |
//= require redactor-rails/plugins/clips
//= require redactor-rails/plugins/fontcolor
//= require redactor-rails/plugins/fontfamily
//= require redactor-rails/plugins/fontsize
//= require redactor-rails/plugins/fullscreen
//= require redactor-rails/plugins/table
//= require redactor-rails/plugins/textdirection
//= requ... | lawrrn/redactor | vendor/assets/javascripts/redactor-rails/plugins.js | JavaScript | mit | 353 |
import webpack from "webpack"
import { spawn } from "child_process"
import appRootDir from "app-root-dir"
import path from "path"
import { createNotification } from "./util"
import HotServerManager from "./HotServerManager"
import HotClientManager from "./HotClientManager"
import ConfigFactory from "../webpack/Confi... | sebastian-software/edgestack | src/hotdev/HotController.js | JavaScript | mit | 4,927 |
"use strict";
exports.__esModule = true;
// istanbul ignore next
var _createClass = (function () {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ("value"... | patelsan/fetchpipe | node_modules/babel-core/lib/transformation/file/index-compiled.js | JavaScript | mit | 22,758 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SyncDisabled = props =>
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.2... | AndriusBil/material-ui | packages/material-ui-icons/src/SyncDisabled.js | JavaScript | mit | 728 |
// Generated by CoffeeScript 1.6.3
(function() {
var Stl, stl_parser;
stl_parser = require('../parser/stl_parser');
Stl = (function() {
function Stl() {}
return Stl;
})();
Stl.PovRay = (function() {
function PovRay() {}
PovRay.prototype._povHeaders = function(name) {
return "#decla... | cubehero/stljs | lib/to/povray.js | JavaScript | mit | 1,910 |
ace.define("ace/snippets/apache_conf",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "";
exports.scope = "apache_conf";
});
(function() {
ace.require(["ace/snippets/apache_conf"], function(m) {
if (ty... | NPellet/jsGraph | web/site/js/ace-builds/src-noconflict/snippets/apache_conf.js | JavaScript | mit | 519 |
// @flow
var React = require('react')
var {assign} = require('lodash')
import {Source, emptySource} from './model/source'
import {displayIf, Colors} from './style'
// but get the images at 2x resolution so they can be retina yo
// or just get the photos at that ratio
// 200x320 x2
// 150x240
// 100x160
// Blank Imag... | seanhess/serials | web/app/cover.js | JavaScript | mit | 2,205 |
define([
'jquery',
'underscore',
'backbone',
'views/AdminView',
'authentication',
'models/Beach'
], function ( $, _, Backbone, AdminView, Authentication, BeachModel) {
var AdminRouter = Backbone.Router.extend({
routes: {
'admin' : 'index... | alex-driedger/Nurdles | clients/web/js/routers/AdminRouter.js | JavaScript | mit | 1,209 |
const labels = {
collectionFilterLabels: {
edit: {
name: 'Event name',
event_type: 'Type of event',
address_country: 'Country',
uk_region: 'UK Region',
organiser: 'Organiser',
start_date_after: 'From',
start_date_before: 'To',
},
},
}
module.exports = labels
| uktrade/data-hub-fe-beta2 | src/apps/events/labels.js | JavaScript | mit | 314 |
(function ($) {
var smileys = [
":(",
":)",
":O",
":D",
":p",
":*",
":-)",
":-(",
":-O",
":-D"
],
extras = {
"<3": true,
"<3": true
},
smileParts = {
"O": "middle-mouth",
"D": "middle-mouth",
"d": "middle-mouth",
"p": "low-mouth",
"*": "high-mouth",
"-":... | daltonrowe/daltonrowe.github.io | smileys/js/smileys.js | JavaScript | mit | 2,469 |
/*
* jQuery UI 1.7.2
*
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* http://docs.jquery.com/UI
*/
(function($) {
var _remove = $.fn.remove,
isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9... | nazar/wasters | public/javascripts/jquery/ui/tabs.js | JavaScript | mit | 32,986 |
//@flow
var x = 42;
x = "true";
var y = 42;
if (x) {
y = "hello world";
}
(42: string); // should still have some errors!
| mroch/flow | tests/constrain_writes_dir/excluded/test.js | JavaScript | mit | 127 |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BeachAccess = props =>
<SvgIcon {...props}>
<path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95-3.9... | AndriusBil/material-ui | packages/material-ui-icons/src/BeachAccess.js | JavaScript | mit | 579 |
/*
A proxy for observing object state changes.
var obj={person:'Eddie',age:22};
_o.onUpdate(obj,{
age:function(value){
if(value>this.oldValue)
console.log('Happy birthday, Peter!')
},
person:function(value){
console.log(this.oldValue+' is now '+value);
}
});
_o(obj).person='Peter';
//> Eddie is... | ytiurin/observingproxy | observing-proxy.js | JavaScript | mit | 9,561 |
module.exports={A:{A:{"2":"J C G E B A TB"},B:{"2":"D X g H L"},C:{"2":"1 2 3 RB F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r PB OB"},D:{"2":"1 2 7 9 F I J C G E B A D X g H L M N O P Q R S T U V W t Y Z a b c d e f K h i j k l m n o p q v w x y z s r DB SB AB BB... | asrar7787/Test-Frontools | node_modules/caniuse-lite/data/features/css-has.js | JavaScript | mit | 743 |
{
var x = f;
x = items[0];
x = items[1];
}
| stas-vilchik/bdd-ml | data/2043.js | JavaScript | mit | 49 |
import xhr from './lib/xhr';
class ShowsModel {
constructor() {
this.shows = [];
}
fetch(cb) {
xhr('https://raw.githubusercontent.com/dashersw/erste.js-demo/master/src/static/data/shows.json', (err, data) => {
this.shows = data.slice(0, 20);
cb(this.shows);
... | korayguney/veteranteam_project | src/shows-model.js | JavaScript | mit | 368 |
export default function calculateScore (subject, chosenId, time) {
const isCorrectAnswer = subject.id === chosenId
let score
if(isCorrectAnswer) {
if(time < 7) {
score = 3
} else {
// Needs review
score = .9 + (2 * (1/subject.seenCount))
}
} else {
// Degrees of failure
sco... | johnloy/wat-namegame | lib/calculate-score.js | JavaScript | mit | 401 |
import { createRouter, createWebHistory } from "vue-router/dist/vue-router.esm.js";
import Home from "./views/Home.vue";
const routerHistory = createWebHistory("/");
let router = createRouter({
history: routerHistory,
routes: [
{ path: '/', component: Home, name: '' },
{ path: '/who', component: Ho... | senei/senei.github.io | router/router.js | JavaScript | mit | 680 |
'use strict';
var crypto = require('crypto');
exports.typeOf = function(obj) {
var classToType;
if (obj === void 0 || obj === null) {
return String(obj);
}
classToType = {
'[object Boolean]': 'boolean',
'[object Number]': 'number',
'[object String]': 'string',
'[object Function]': 'function... | CxyYuan/luyoutec_lanyou5_2 | node_modules/leanengine/lib/utils.js | JavaScript | mit | 2,089 |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M17 3H3v18h18V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"
}), 'SaveSharp'); | oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/SaveSharp.js | JavaScript | mit | 278 |
import fulfillQuery from '../../../src/webserver/db/fulfillQuery' // eslint-disable-line
describe('webserver/db/fulfillQuery', () => {
it('should work')
})
| esex/esex | test/webserver/db/fulfillQueryTest.js | JavaScript | mit | 159 |
'use strict';
var Foundationify = (function () {
// Initalize product image gallery function on product pages
function initProductImages() {
// Define the scope
var $productImages = $('#product-images', 'body.product');
// Select the thumbnails
var $thumbs = $('ul img', $productImages);
if ($thumbs.len... | Leland/foundationify | src/scripts/main.js | JavaScript | mit | 1,229 |
"use strict";
var SourceLine_1 = require("../source/SourceLine");
var Prop_1 = require("../entities/Prop");
var Method_1 = require("../entities/Method");
var MethodKind_1 = require("../kind/MethodKind");
var ProgramError_1 = require("../errors/ProgramError");
var ClassDefn_1 = require("../define/ClassDefn");
var Struct... | 01alchemist/parallel-js | src/modules/turbo.js/compiler/services/DefinitionService.js | JavaScript | mit | 7,225 |
/* eslint-env mocha */
import { Controller } from '../'
import assert from 'assert'
import { equals } from './'
import { state, props } from '../tags'
describe('operator.equals', () => {
it('should go down path based on props', () => {
let count = 0
const controller = Controller({
state: {
foo:... | garth/cerebral | packages/node_modules/cerebral/src/operators/equals.test.js | JavaScript | mit | 1,570 |
module.exports = function(EmailAddress) {
};
| soltrinox/vator-api-dev | common/models/email-address.js | JavaScript | mit | 46 |
import { create } from 'ember-cli-page-object';
import leadershipCollapsed from 'ilios-common/page-objects/components/leadership-collapsed';
import overview from './overview';
import header from './header';
import leadershipExpanded from './leadership-expanded';
const definition = {
scope: '[data-test-program-detail... | jrjohnson/frontend | tests/pages/components/program/root.js | JavaScript | mit | 468 |
version https://git-lfs.github.com/spec/v1
oid sha256:07e25b6c05d06d085c2840d85f2966476dc38544be904c978d7c66dbe688decb
size 4672
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.8.1/cldr/nls/pt/gregorian.js.uncompressed.js | JavaScript | mit | 129 |
/**
* Copyright 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule relayUnstableBatchedUpdates
*
* @format
*/
'use strict';
module.exports = require('react-dom').unstable_batchedUpdate... | amiechen/amiechen.github.io | node_modules/relay-runtime/lib/relayUnstableBatchedUpdates.js | JavaScript | mit | 322 |
// support CommonJS, AMD & browser
/* istanbul ignore next */
if (typeof exports === T_OBJECT)
module.exports = riot
else if (typeof define === 'function' && define.amd)
define(function() { return (window.riot = riot) })
else
window.riot = riot
})(typeof window != 'undefined' ? window : void 0);
| xtity/riot | lib/browser/wrap/suffix.js | JavaScript | mit | 320 |
/*
$(document.body).ready(function() {
FormKit.install();
FormKit.initialize(document.body);
});
Inside Ajax Region:
$(document.body).ready(function() {
FormKit.initialize( div element );
});
*/
var FormKit = {
register: function(initHandler,installHandler) {
$(FormKit).bind('for... | c9s/FormKit | assets/formkit/formkit.js | JavaScript | mit | 703 |
// webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: [
'vue-style-loader',
{
loader: 'css-loader',
options: { importLoaders: 1 }
},
'postcss-loader'
]
}
]
}
}
| JosefFriedrich-nodejs/baldr | src/vue/components/modal-dialog/webpack.config.js | JavaScript | mit | 300 |
/**
* Validates the inputted Firebase reference.
*
* @param {Firebase} firebaseRef The Firebase reference to validate.
*/
var _validateFirebaseRef = function(firebaseRef) {
var error;
if (typeof firebaseRef === "undefined") {
error = "no \"firebaseRef\" specified";
}
else if (firebaseRef instanceof Fire... | lauradhamilton/firegrapher | src/firegrapherUtils.js | JavaScript | mit | 6,936 |
/**
* @module kat-cr/lib/fetch
* @description
* Wraps request in a Promise
*/
/**
* The HTTP response class provided by request
* @external HTTPResponse
* @see {@link http://github.com/request/request}
*/
"use strict";
const request = (function loadPrivate(module) {
let modulePath = require.resolve(module)... | raypulver/kat-cr | lib/fetch.js | JavaScript | mit | 1,846 |
/**
* Method to set dom events
*
* @example
* wysihtml.dom.observe(iframe.contentWindow.document.body, ["focus", "blur"], function() { ... });
*/
wysihtml.dom.observe = function(element, eventNames, handler) {
eventNames = typeof(eventNames) === "string" ? [eventNames] : eventNames;
var handlerWrapper,
... | Voog/wysihtml | src/dom/observe.js | JavaScript | mit | 1,440 |
import { includes } from './array_proxy'
/**
* Given a record and an update object, apply the update on the record. Note
* that the `operate` object is unapplied.
*
* @param {Object} record
* @param {Object} update
*/
export default function applyUpdate (record, update) {
for (let field in update.replace)
... | geoapi/crowdclarify | node_modules/fortune/lib/common/apply_update.js | JavaScript | mit | 891 |
#!/usr/bin/env node
var logger = require('../lib/logger')('test-logger');
var config = require('../lib/config');
var count = 1;
setInterval(function() {
logger.debug(count);
logger.info(count);
count += 1;
}, 1000);
| oakfire/oak-site | test/test-logger.js | JavaScript | mit | 230 |
/**
* Parse an array of chromsizes, for example that result
* from reading rows of a chromsizes CSV file.
* @param {array} data Array of [chrName, chrLen] "tuples".
* @returns {object} Object containing properties
* { cumPositions, chrPositions, totalLength, chromLengths }.
*/
function parseChromsizesRows(data) {... | hms-dbmi/4DN_matrix-viewer | app/scripts/utils/parse-chromsizes-rows.js | JavaScript | mit | 887 |
'use strict';
/**
* Module dependencies
*/
var hbs = require('express-hbs');
function content(options) {
return new hbs.handlebars.SafeString(this.html || '');
}
module.exports = content;
// downsize = Tag-safe truncation for HTML and XML. Works by word! | Robinyo/Vardyger | core/server/helpers/content.js | JavaScript | mit | 263 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/NoteTwoTone.js | JavaScript | mit | 675 |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const _ = require("underscore")
const path = require("path")
const jade = require("jade")
const fs = require("fs")
const mo... | joeyAghion/force | src/desktop/apps/editorial_features/test/components/venice_2017/templates.test.js | JavaScript | mit | 2,842 |
module.exports = require('../lib/')
.extend('faker', function() {
try {
return require('faker/locale/zh_CN');
} catch (e) {
return null;
}
});
| etzJohn/speedboost | node_modules/json-schema-faker/locale/zh_CN.js | JavaScript | mit | 179 |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ retu... | hugonasciutti/Exercises | webpack/4/bin/app.bundle.js | JavaScript | mit | 271,260 |
var webpack = require("webpack"),
HtmlWebpackPlugin = require("html-webpack-plugin"),
ExtractTextPlugin = require("extract-text-webpack-plugin"),
CopyWebpackPlugin = require("copy-webpack-plugin"),
helpers = require("./helpers");
const exercisePath = process.env.exercise;
var plugins = [
new webpack.optimize.Co... | DEV6hub/Angular4-Course-Files | exercise/config/webpack.exercise.js | JavaScript | mit | 1,853 |
import React, { Component, PropTypes } from 'react';
import DatePicker from 'material-ui/lib/date-picker/date-picker';
import * as layouts from '../../store/db_layouts.js';
function fmtDate( dt ) {
return dt.toLocaleDateString();
}
const CompFormDate = (props) => {
const f = props.field;
const curr_dat... | yabadabu/react-playground | src/components/form/CompFormDate.js | JavaScript | mit | 1,011 |
/*
RequireJS 2.2.0 Copyright jQuery Foundation and other contributors.
Released under MIT license, http://github.com/requirejs/requirejs/LICENSE
*/
var requirejs, require, define;
(function(ga) {
function ka(b, c, d, g) {
return g || ""
}
function K(b) {
return "[object Function]" === Q.call... | rlaj/tmc | source/mas/js/libs/require-min.js | JavaScript | mit | 33,384 |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 3.7c-.66 0-1.2.54-1.2 1.2v1.51l2.39 2.39.01-3.9c0-.66-.54-1.2-1.2-1.2z" opacity=".3" /><path d="M19 11h-1.7c0 .58-.1 1.13-.27 1.64l1.27 1.27c.44-.88.7-1.87.7-2.91zM4.41 2.86L3... | lgollut/material-ui | packages/material-ui-icons/src/MicOffTwoTone.js | JavaScript | mit | 685 |
/*global console: false, creatis_carpenterStorage_replaceContentFromStorage: false */
$(function () {
function initDesktop() {
$("#accordion").accordion({
collapsible: true,
active: localStorage.selectedCarpenter ? false : true,
});
// Kontaktseite Suche
$... | BROCKHAUS-AG/contentmonkee | MAIN/Default.WebUI/App_Themes/default/js/jquery-ui.searchflyout.js | JavaScript | mit | 5,088 |
import { create, visitable } from 'ember-cli-page-object';
import accountSetup from 'code-corps-ember/tests/pages/components/payments/account-setup';
export default create({
visit: visitable(':organization/:project/settings/donations/payments'),
accountSetup
});
| code-corps/code-corps-ember | tests/pages/project/settings/donations/payments.js | JavaScript | mit | 268 |
'use strict';
/* main App */
var app = angular.module('submitConformationcontroller', []);
app.controller('confirmationCtrl', ['$scope', function($scope){
$scope.volunteerList = ["Joop Bakker", "Dirk Dijkstra", "Sterre Hendriks",
"Hendrik Jacobs", "Hans Heuvel", "Jaap Beek", "Jan-Jaap Dijk",
"Marleen Jansen", "... | iamlalit/olympia-volunteer | app/organization/confirmation/confirmationController.js | JavaScript | mit | 886 |
// Copyright (c) 2012, Event Store LLP
// 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 of condit... | Narvalex/Eventing | src/Sample/Inventory.Server/EventStore/Prelude/1Prelude.js | JavaScript | mit | 8,499 |
'use strict';
var R6MStatsOpData = (function(R6MLangTerms, undefined) {
var WARNING_THRESHOLD = 20,
opStats = {
attackers: [],
defenders: [],
sortInfo: {
field: null,
rank: null,
isDescending: null
}
};
var getAveragesTotals = function getAveragesTotals(opRo... | capajon/r6maps | dev/js/stats/stats.operators.data.js | JavaScript | mit | 6,671 |
var React = require('react');
var Router = require('react-router');
var whenKeys = require('when/keys');
var EventEmitter = require('events').EventEmitter;
var { Route, DefaultRoute, RouteHandler, Link } = Router;
var API = 'http://addressbook-api.herokuapp.com';
var loadingEvents = new EventEmitter();
function getJS... | winkler1/react-router | examples/async-data/app.js | JavaScript | mit | 3,295 |
//= require ./core/monocle
//= require ./compat/env
//= require ./compat/css
//= require ./compat/stubs
//= require ./compat/browser
//= require ./compat/gala
//= require ./core/bookdata
//= require ./core/factory
//= require ./core/events
//= require ./core/styles
//= require ./core/formatting
//= require ./core/reade... | joseph/Monocle | src/monocore.js | JavaScript | mit | 752 |
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const fs = jest.genMockFromModule('fs');
const mockFiles = new Map();
function __setMockFiles... | bookman25/jest | packages/jest-config/src/__mocks__/fs.js | JavaScript | mit | 584 |
'use strict';
module.exports = {
up: function(queryInterface, Sequelize) {
return queryInterface.createTable('Profiles', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
first_name: {
type: Sequelize.STRING
... | bigkangtheory/wanderly | back/migrations/20170131224205-create-profile.js | JavaScript | mit | 897 |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _interopR... | toke182/react-redux-experiment | node_modules/redux-devtools/lib/react/JSONTree/JSONStringNode.js | JavaScript | mit | 2,907 |
import falcor from 'falcor';
import _ from 'lodash';
import * as db from 'lib/db';
import { has } from 'lib/utilities';
const $ref = falcor.Model.ref;
export default [
{
// get featured article
route: "issues['byNumber'][{integers:issueNumbers}]['featured']",
get: pathSet =>
new Promise(resolve =... | thegazelle-ad/gazelle-server | src/lib/falcor/routes/issues/by-number.js | JavaScript | mit | 12,136 |
import React, {PropTypes} from 'react'
import styles from './Form.css'
export default React.createClass({
propTypes: {
username: PropTypes.string.isRequired,
onLogout: PropTypes.func
},
render() {
return (
<div className={styles.forms}>
<section>
<label>当前用户:</label>
... | simongfxu/sync-editor | app/components/LoginStatus.js | JavaScript | mit | 667 |
(function() {
'use strict';
angular
.module('echarliApp')
.factory('Activate', Activate);
Activate.$inject = ['$resource'];
function Activate ($resource) {
var service = $resource('api/activate', {}, {
'get': { method: 'GET', params: {}, isArray: false}
});... | dilosung/ad-manage | ad_manage/static/js/app/services/auth/activate.service.js | JavaScript | mit | 358 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/AlignVerticalCenterOutlined.js | JavaScript | mit | 536 |
// conf.js
exports.config = {
seleniumServerJar: "./node_modules/protractor/selenium/selenium-server-standalone-2.45.0.jar",
specs: ["test/e2e/*.scenarios.coffee"],
baseUrl: "http://localhost:3000",
capabilities: {
"browserName": "chrome"
},
framework: "mocha"
}
| doug-wade/generator-koa-angular | app/templates/protractor.conf.js | JavaScript | mit | 279 |
/* Magic Mirror
* Log
*
* This logger is very simple, but needs to be extended.
* This system can eventually be used to push the log messages to an external target.
*
* By Michael Teeuw https://michaelteeuw.nl
* MIT Licensed.
*/
(function (root, factory) {
if (typeof exports === "object") {
if (process.env.J... | Tyvonne/MagicMirror | js/logger.js | JavaScript | mit | 2,418 |
/**
* Dummy file for grunt-nodemon to run node-inspector task
*/
| rorymadden/angular-neo4j | node-inspector.js | JavaScript | mit | 67 |
'use strict';
var a = 0;
var b = 1;
var x = a;
var y = b;
console.log( x + y ); | Victorystick/rollup | test/form/skips-dead-branches-g/_expected/cjs.js | JavaScript | mit | 81 |
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"2":"C p x J L N I"},C:{"2":"0 1 2 3 4 5 6 8 9 YB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y WB QB"},D:{"1":"0 1 2 3 4 5 6 8 9 J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y KB aB FB... | friendsofagape/mt2414ui | node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js | JavaScript | mit | 845 |