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 |
|---|---|---|---|---|---|
/*!
* SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
* (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides class sap.ui.core.util.ExportType
sap.ui.define(['jquery.sap.global', 'sap/ui/base/ManagedObject'],
function(... | brakmic/OpenUI5_Table_Demo | Scripts/vendor/sap/resources/sap/ui/core/util/ExportType-dbg.js | JavaScript | mit | 5,814 |
AFRAME.registerComponent('follow', {
schema: {
target: {type: 'selector'},
speed: {type: 'number'}
},
init: function () {
this.directionVec3 = new THREE.Vector3();
},
tick: function (time, timeDelta) {
var directionVec3 = this.directionVec3;
// Grab position v... | HAZARDU5/aframe-workshop | examples/21/start/assets/js/components/follow.js | JavaScript | mit | 1,375 |
var conf = module.exports = {};
conf.server = {};
conf.server.port = 8080;
conf.log = {};
conf.log.level = "silly"; // silly, debug, verbose, info, warn, error
| vhiribarren/webrtc-experiments | config.js | JavaScript | mit | 163 |
function createSafeFragment( document ) {
var list = nodeNames.split( "|" ),
safeFrag = document.createDocumentFragment();
if ( safeFrag.createElement ) {
while ( list.length ) {
safeFrag.createElement(
list.pop()
);
}
}
return safeFrag;
}
var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|d... | eQuery/eQuery | src/manipulation.js | JavaScript | mit | 24,431 |
'user strict';
// <require parents>
// < use model methods for getting all Parents and one Parent then send the response back with the data>
const Parents = require('../models/parents')
function getAllParents(req, res, next) {
Parents.all()
.then(rows => res.status(200).json(rows))
.cat... | philliplewisjr/capstone2 | server/controllers/parentsCtrl.js | JavaScript | mit | 1,391 |
var chartControllerScope = null;
angular.module('core')
.controller('ChartController',['$scope', function($scope) {
chartControllerScope = $scope;
$scope.chart = null;
$scope.columns = [];
$scope.types = {};
$scope.axis = {};
$scope.axes = {};
$scope.xValues= null;
$scope.xTick = null;
$scope.n... | jre247/NutritionManager | public/modules/core/all-custom-directives/c3js-directive.js | JavaScript | mit | 11,666 |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express()... | pdottroendle/ibittroendle | ibitday/app.js | JavaScript | mit | 1,556 |
export { default } from './RedhatPlainWordmark'
| fpoumian/react-devicon | src/components/redhat/plain-wordmark/index.js | JavaScript | mit | 48 |
var
util = require('util'),
request = require('request'),
querystring = require('querystring'),
// types of requests which shouldn't use 'id' as keys, in the user data object
nonIdBasedConnection = [ 'permissions', 'picture', 'user' ],
connections,
preQueryString = /.*\?/,
toString = Object.prototype.toString,... | tmarshall/Facebook-Graph-API | main.js | JavaScript | mit | 6,152 |
/*
* Copyright (C) 2017 Alasdair Mercer
*
* 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, pub... | neocotic/yourls-api | src/util/extend.js | JavaScript | mit | 2,007 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define(["require","exports","../../../intl/date","../../../renderers/support/numberUtils"],function(k,a,d,e){Object.defineProperty(a,"__esModule",{value:!0});var f... | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/widgets/Legend/support/utils.js | JavaScript | mit | 1,135 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../../Color ../../core/has ../../core/libs/gl-matrix-2/mat2df32 ../../core/libs/gl-matrix-2/math/mat2d ../../widgets/support/widget".split(... | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/symbols/support/svgUtils.js | JavaScript | mit | 8,151 |
angular.module('sevenHillsApp', [
'ngSanitize',
'ngMessages',
'ui.router',
'ui.select',
'ngFileUpload',
'ui-notification'])
.config(function(NotificationProvider) {
NotificationProvider.setOptions({
delay: 8000... | nhtranngoc/SevenHills | public/app.js | JavaScript | mit | 3,673 |
module.exports = {
"env": {
"browser": true,
"node": true,
},
"globals": {
"chai": true,
"sinon": true,
"describe": true,
"it": true,
"beforeEach": true,
"afterEach": true,
"$": true,
"BrumJS": true
},
"extends": "eslint:recomm... | BrumJS/testing | .eslintrc.js | JavaScript | mit | 641 |
'use strict';
var Users = require('./users');
var util = require('util');
module.exports = Groups;
function Groups () {
Users.apply(this, arguments);
}
util.inherits(Groups, Users);
Groups.prototype.urlPath = 'groups';
Groups.prototype.Model = require('../models/group');
| Runnable/api-client | lib/collections/groups.js | JavaScript | mit | 279 |
const nice = require('../index.js')();
const chai = require('chai');
chai.use(require('chai-spies'));
const expect = chai.expect;
describe("Object", function() {
it("constructor", function() {
const a = nice({asd: 3});
expect(nice.fromItem(a)).to.deep.equal({asd:3});
});
it("set / get primitive", func... | nicescript/nicescript | test/object.spec.js | JavaScript | mit | 7,911 |
'use strict';
let AttributeSetter = require('./attribute_setter').AttributeSetter;
class UsBankAccountVerification extends AttributeSetter {
static initClass() {
this.StatusType = {
Failed: 'failed',
GatewayRejected: 'gateway_rejected',
Pending: 'pending',
ProcessorDeclined: 'processor_d... | braintree/braintree_node | lib/braintree/us_bank_account_verification.js | JavaScript | mit | 1,226 |
var invariant = require('react/lib/invariant');
// todo:
// here should be a variety of stuff that would normally be supplied by Less/SASS
// color conversions, math, etc.
var ConstantsHelpers = module.exports = {
hexToRGBObject(hex) {
// expand shorthand hex
if (hex.length === 4)
hex = hex + hex.char... | zenlambda/reapp-ui | lib/ConstantsHelpers.js | JavaScript | mit | 880 |
'use strict';
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const portionSchema = new Schema({
text: { type: String, required: true },
cost: { type: Number, required: true },
paid: { type: Boolean, required: true, default: false },
deleted: { type: Boolean, required: true, default: fal... | yandex-shri-minsk-2016/yummy-time | server/app/models/portion.js | JavaScript | mit | 491 |
webpackJsonp(["main"],{
/***/ "../../../../../src/$$_lazy_route_resource lazy recursive":
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncatched exception popping up in devtools
// written from Gi... | psych3/psych3.github.io | main.bundle.js | JavaScript | mit | 13,128 |
'use strict';
module.exports = {
name: 'ember-drop-zone'
};
| lozjackson/ember-drop-zone | index.js | JavaScript | mit | 63 |
const difference = ( array1, array2) => {
if (!Array.isArray(array1)) {
return []
}else if (!Array.isArray(array2)) {
return array1
}
for(var index1 in array1) {
for(var index2 in array2) {
if (array1[index1] == array2[index2]) {
array1.splice(index1, 1)
}
}
}
return array1... | Farhad33/lodash-library | lib/difference.js | JavaScript | mit | 347 |
dart_library.library('dart/convert', null, /* Imports */[
"dart/_runtime",
'dart/core',
'dart/async',
'dart/typed_data',
'dart/_internal',
'dart/collection'
], /* Lazy imports */[
], function(exports, dart, core, async, typed_data, _internal, collection) {
'use strict';
let dartx = dart.dartx;
let Cod... | cjkao/sunflower-es5-traceur | out/dev_compiler/runtime/dart/convert.js | JavaScript | mit | 110,529 |
'use strict';
const {run} = require('madrun');
module.exports = {
'test': () => 'tape test/*.js',
'watcher': () => 'nodemon -w test -w lib --exec',
'watch:test': () => run('watcher', 'npm test'),
'watch:coverage': () => run('watcher', 'npm run coverage'),
'lint': () => 'putout lib test .madrun.js'... | coderaiser/itype | .madrun.js | JavaScript | mit | 475 |
/** @jsx React.DOM */
var RadioCheckView = React.createClass({displayName: 'RadioCheckView',
render: function() {
var item = this.props.item;
var val = item.value ? item.value: item.label;
var id = ''+this.props.idx + this.props.name;
return(
React.DOM.div({className: "elem-radio-check"},
... | juancjara/react-json-to-survey | build/reactToJson.js | JavaScript | mit | 5,164 |
class ValidateObjTBLCfg {
static isValidCaption(caption) {
return (typeof caption) === 'string';
}
static isValidHeaderCell(isSetHeader) {
return (typeof isSetHeader) === 'boolean';
}
static validateData(data) {
this.objValidateData = { // 다른 함수에서도 쓰려면 this로 선언해줘야함.
isValid: false,
e... | perfectacle/tbl-maker | app/src/tests/ValidateObjTBLCfg.js | JavaScript | mit | 4,051 |
define(function(require, exports, module) {
var weekday = [];
weekday[0]= "Sunday";
weekday[1] = "Monday";
weekday[2] = "Tuesday";
weekday[3] = "Wednesday";
weekday[4] = "Thursday";
weekday[5] = "Friday";
weekday[6] = "Saturday";
var month = ['January', 'February', 'March', 'Arpil',... | louisondumont/famous-datetime-picker | src/lib/dateUtils.js | JavaScript | mit | 709 |
function saveData() {
var firstName = document.getElementById("firstName").value;
var lastName = document.getElementById("lastName").value;
var password = document.getElementById("password").value;
var dateOfBirth = document.getElementById("dateOfBirth").value;
var email = document.getElementById("email").val... | eimpec/ur-room | js/saveData.js | JavaScript | mit | 1,376 |
const fs = require("fs");
const path = require("path");
const { runLoaders } = require("loader-runner");
runLoaders(
{
resource: "./demo.txt",
loaders: [
{
loader: path.resolve(__dirname, "./loaders/demo-loader"),
options: {
name: "demo.[ext]",
},
},
path.r... | survivejs-demos/webpack-demo | run-loader.js | JavaScript | mit | 536 |
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import config, { postcss, COMMON_CSS } from './config';
export default {
entry: config.paths.demo + '/index.js',
output: {
path: config.paths.public,
filename: 'bundle.js'
},
module: {
loaders: [
{
tes... | oriolpuig/react-grid-editable | webpack/public.config.js | JavaScript | mit | 414 |
/**
* Created by taotao on 2016/10/8.
*/
const crypto = require('crypto');
const secret = '';
const hash = crypto.createHash('sha1', secret);
hash.update('mima123465')
.digest('hex');
hash.update('mima123465')
.digest('hex');
hash.update('mima123465')
.digest('hex');
console.log(hash);
var ... | luopotaotao/library | test/service/testUserService.js | JavaScript | mit | 795 |
"use strict";
exports.config = {
defaultThemePath: 'theme/default',
themePath: 'theme/default',
port: 8888,
tplFoldername: 'templates',
blogFoldernname: 'blog',
adminFoldername: 'admin',
markdownFoldername: 'markdown',
templateExtension: '.tpl',
defaultWebServerFile: 'index.html',
... | vintz/vz_blog | config/config.sample.js | JavaScript | mit | 982 |
/**
* @file mip-shenku-view 组件
* @author
*/
define(function (require) {
'use strict';
var customElement = require('customElement').create();
/**
* 第一次进入可视区回调,只会执行一次
*/
customElement.prototype.firstInviewCallback = function () {
var element = this.element;
// 姓名Id
... | mipengine/mip-extensions-platform | mip-shenku-view/mip-shenku-view.js | JavaScript | mit | 1,025 |
const vcs = require('./vcs')
let config
let password
try {
password = require('../bbpr.config').user.password
} catch (e) {
try {
password = require('../config_presets/reset').user.password
} catch (e) {
password = {}
}
}
try {
config = require(`${__dirname}/bbpr.config`)
} catch (e) {
try {
... | MichelML/bbpr | lib/normalize-config.js | JavaScript | mit | 2,533 |
export { default } from './ProtractorPlain'
| fpoumian/react-devicon | src/components/protractor/plain/index.js | JavaScript | mit | 44 |
"use strict";
import React, { Component } from 'react';
// Bootstrap
import { Table, Panel } from 'react-bootstrap';
export default class IncomeTable extends Component {
render() {
console.log('got here')
return(
<Panel>
<Table>
<thead>
<tr>
<th>Item</th>
... | codeforamerica/nyc-january-project | src/components/IncomeTable.react.js | JavaScript | mit | 542 |
(function(){function r(b,c){var a=[],f;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&a.push(encodeURIComponent(f)+"="+encodeURIComponent(c[f]||""));a.push("_="+ +new Date);b+=a.join("&");"Microsoft Internet Explorer"===window.navigator.appName&&(a=(window.navigator.userAgent||"").match(/msie (\d+\.\d)/i))&&8>pa... | derekhu0002/myresources | docments/googlechrom_debugJS/Google Chrome 调试JS简单教程_files/ac.js | JavaScript | mit | 2,722 |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import {FormGroup, FormControl, ControlLabel} from 'react-bootstrap';
import {observer, inject} from 'mobx-react';
import PropTypes from 'prop-types';
@inject('controlsStore')
@observer
export default class FixtureSelect extends Component {
... | haniotak/oscars-frontend | src/main/js/components/fixtureSelect.js | JavaScript | mit | 1,874 |
var $ = require('jquery');
var _ = require('underscore');
var template = require('../templates/goodbye.html');
var printMessage = require('./message.coffee');
printMessage('Welcome');
$('body').append(template);
| kkinnebrew/gulp-template | app/scripts/app.js | JavaScript | mit | 216 |
/**
* Prepros
* (c) Subash Pathak
* subash@subash.me
* License: MIT
*/
/*jshint browser: true, node: true*/
/*global prepros, Prepros, $, angular, _*/
prepros.factory("update", ["$http", function($http) {
"use strict";
function checkUpdate(success, fail) {
var params = {};
var os = require('os');
... | Subash/Prepros | application/app/scripts/services/update.js | JavaScript | mit | 1,417 |
var _mock_detection_8cpp =
[
[ "TEST", "_mock_detection_8cpp.html#a485d692a7ee42aa99def4eb9285deb10", null ],
[ "TEST", "_mock_detection_8cpp.html#a487d465bbfd10bcb4d869e750ed07772", null ]
]; | raviBhadeshiya/enpm808x-robotics-detection-module | doc/html/_mock_detection_8cpp.js | JavaScript | mit | 200 |
var AttachmentsLoader = function(username) {
this.username = username;
};
AttachmentsLoader.prototype = {
load_attachments: function() {
$.getJSON("/users/" + this.username + "/attachments", function(data) {
$.each(data.attachments, function(index, value) {
var li = "<li class='file'>";
... | jmflannery/unshiftme | app/assets/javascripts/attachment_loader.js | JavaScript | mit | 557 |
// Set a rails-compatible public path
__webpack_public_path__ = '/assets/' // eslint-disable-line
// Require the base CSS, basically our entry point for CSS
// If your target doesn't require CSS, you can comment this out
require('./index.css');
// Require the base JS, basically our entry point for JS
// If your targe... | nzruby/conf | source/assets/public/target.js | JavaScript | mit | 751 |
import _ from 'lodash';
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import {
Text,
View,
TouchableOpacity,
Button,
} from 'react-native';
import * as authActions from '../actions/auth';
import * as settingsActions from '../actions... | AwesomePossum446/Cordial | Cordial/app/containers/settings-container.js | JavaScript | mit | 1,326 |
const test = require("tape");
const {dissoc} = require("../");
test("dissoc", (t) => {
t.deepEqual(dissoc("b", {a: 1, b: 2, c: 3}), {a: 1, c: 3});
t.deepEqual(dissoc("a", {a: 1, b: 2, c: 3}), {b: 2, c: 3});
t.end();
});
| staydecent/wasmuth | test/dissoc.js | JavaScript | mit | 228 |
// The MIT License (MIT)
//
// Copyright (c) 2017-2021 Camptocamp SA
//
// 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
// u... | camptocamp/ngeo | src/layertree/datasourceGroupTreeComponent.js | JavaScript | mit | 6,464 |
"use strict";
exports.__esModule = true;
var UserRoles;
(function (UserRoles) {
UserRoles["basic"] = "basic";
UserRoles["premium"] = "premium";
UserRoles["editor"] = "premium";
UserRoles["admin"] = "admin";
})(UserRoles || (UserRoles = {}));
;
exports["default"] = UserRoles;
| mittal01091997/Final-Year-Project | server/models/userRoles.js | JavaScript | mit | 292 |
module.exports = {
storesGlueMixin: require('./storesGlueMixin')
};
| cirocosta/ledmatrix | src/mixins/index.js | JavaScript | mit | 70 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _toPath2 = _interopRequireDefault(require("lodash/toPath"));
var _immutable = require("immutable");
var _deepEqual = _interopRequireDefault(require("./deep... | Dans-labs/dariah | client/node_modules/redux-form/lib/structure/immutable/index.js | JavaScript | mit | 1,956 |
/**
* loader.js
* @author com.icinfo.tc.lc
* @date 2012-06-12
*/
var loader = function(){
this.version = "1.0.0";
};
// loader.prototype.constructor =
//{version: "1.0.0"};
//loader(["","",""]);
| lincong1987/foxhis-website | js/loader.js | JavaScript | mit | 212 |
describe('pan', function() {
describe('auto', jasmine.fixture.specs('pan'));
const data = {
labels: ['a', 'b', 'c', 'd', 'e'],
datasets: [{
data: [{
x: 1,
y: 3
}, {
x: 2,
y: 2
}, {
x: 3,
y: 1
}]
}]
};
describe('delta', functio... | chartjs/Chart.Zoom.js | test/specs/pan.spec.js | JavaScript | mit | 4,828 |
'use strict';
var localesStringsApp = {
'id': {
'en': {'EN': 'localesStringsApp'},
},
'Password to encrypt': {
'de': {'DE': 'Zu verschlüsselndes Passwort'},
'en': {'EN': 'Password to encrypt'},
'es': {'ES': 'Contraseña para cifrar'},
'fr': {'FR': 'Mot de passe pour chiffrer'},
},
'The (en... | daten-und-bass/cypherMe | config/locales/locales_strings_app.js | JavaScript | mit | 3,434 |
'use strict';
/* Directives */
var directives = angular.module('cosmosUI.directives', []).
directive('appVersion', ['version', function (version) {
return function (scope, elm, attrs) {
elm.text(version);
};
}])
.directive('errorBanner', function ($compile) {
//TODO: ... | kuasha/cosmos | samples/adminpanel/app/lib/cosmos/js/directives/directives.js | JavaScript | mit | 22,819 |
var baseEach = require('./baseEach');
/**
* The base implementation of `_.filter` without support for callback
* shorthands and `this` binding.
*
* @private
* @param {Array|Object|string} collection The collection to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {Arr... | gdgzdar/2048 | node_modules/karma/node_modules/lodash/internal/baseFilter.js | JavaScript | mit | 614 |
/**
* Google Chrome's "default_popup" in manifest.json is truely meaningless suck,
* and requires such a ugly work around sucks.
*/
browser.tabs.onUpdated.addListener((tabId, _chgInfo, tab) => {
if(tab.url.startsWith('https://twitter.com')) {
browser.pageAction.show(tabId);
}
});
| PrsPrsBK/prsprstwitter | resources/background_chrome.js | JavaScript | mit | 303 |
const mongoose = require('mongoose')
const Schema = mongoose.Schema;
const UserSchema = Schema({
pseudo: { type: String, lowercase: true, required: true, index: { unique: true } },
rates: { type: [Number], default: [2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5]},
average: { type: Number,... | CPerinet/generator-tartiflette | generators/app/templates/server/api/ping/schema.js | JavaScript | mit | 828 |
import * as d3 from 'd3';
const DOSELIMIT = 20;
const keys = ['shield', 'glasses', 'cabin'];
const smallerFontSize = 12;
const delay = 900;
const p = d3.precisionRound(0.1, 10);
const formatNumber = d3.format(`.${p}r`);
const paddingScale = d3.scaleOrdinal()
.domain(['years', 'months', 'weeks', 'days', 'hours'])... | DinoJay/cateract_app | src/components/vis.js | JavaScript | mit | 32,190 |
/**
* member.js
* ----------
* Representation of a single member
*/
/**
* @constructor
* @param {object} data json object containing members data
*/
function Member(data) {
this.data = data;
}
Member.prototype.getId = function() {
return this.data.id;
};
Member.prototype.getBio = function() {
return thi... | spaceinitiative/spaceinitiative | assets/js/lib/models/Member.js | JavaScript | mit | 1,026 |
;(function() {
'use strict';
angular
.module('cpZenPlatform')
.component('cdSidebarActions', {
bindings: {
save: '=',
saveVisible: '=',
saveDisabled: '=',
submit: '<',
submitVisible: '='
},
restrict: 'E',
templateUrl: '/directives/tpl/cd-sideb... | CoderDojo/cp-zen-platform | web/public/js/directives/cd-sidebar-actions/index.js | JavaScript | mit | 346 |
var Aggregation = require("../lib/aggregation");
var topic_name = "topic_1";
var st = Date.now();
Aggregation(topic_name, 0, Date.now(), function (err, results){
var ed = Date.now();
console.log("Aggregation %s, cost:%s ms, err:%s.",
topic_name,
(ed - st),
err);
if (results){
console.log(results);
}
}); | hediant/lobster | test/aggregation.js | JavaScript | mit | 318 |
import BallCollisions from './ball-collisions'
import FlagCollisions from './flag-collisions'
import SpikeCollisions from './spike-collisions'
export default class CollisionDectector {
constructor(players, flags, spikes) {
this.ballCollisions = new BallCollisions(players, flags)
this.flagCollisions = new Fla... | saylerb/game-time | lib/collision-detector.js | JavaScript | mit | 1,062 |
import { Meteor } from 'meteor/meteor';
import 'fibers';
import Future from 'fibers/future';
export function delay (invocation, ms) {
const future = new Future();
Meteor.setTimeout(function () {
future.return();
}, 500);
return future.wait();
} | gagarinjs/meteor-mocha | examples/simple/imports/api/server/methods.js | JavaScript | mit | 257 |
/*! Foodclub autocomplete jquery plugin - v0.1.0 - 2014-09-28
* https://github.com/djembuka/fc-autocomplete
* Copyright (c) 2014 Tatiana; Licensed MIT */
!function(a){a.fn.fc_autocomplete=function(){return this.each(function(b){a(this).html("awesome"+b)})},a.fc_autocomplete=function(b){return b=a.extend({},a.fc_autocom... | djembuka/fc-autocomplete | dist/jquery.fc-autocomplete.min.js | JavaScript | mit | 498 |
var path = require('path');
require(path.resolve(`${__dirname}/func`));
require(path.resolve(`${__dirname}/unit`));
| alekzonder/maf | test/index.js | JavaScript | mit | 117 |
// We only need to import the modules necessary for initial render
import CoreLayout from '../layouts/CoreLayout/CoreLayout'
import Home from './Home'
import ServiceRoute from './Service'
/* Note: Instead of using JSX, we recommend using react-router
PlainRoute objects to build route definitions. */
export con... | attdona/bota | src/routes/index.js | JavaScript | mit | 1,075 |
'use strict';
var moduleRequire;
var controllerRequire;
var templateRequire;
var serviceRequire;
var factoryRequire;
var filterRequire;
var directiveRequire;
var configurationRequire;
if (module.hot) {
require('./hmr').modifyAngular();
}
var modules = resetLoad();
angular.module('loader', modules).run(function ($t... | 1337programming/monoscope-angular-starter | src/loader.js | JavaScript | mit | 2,152 |
var Base = require('../base');
/**
* Wrapper providing access to Floating IPs
*
* @class FloatingIPs
* @static
* @see https://developers.digitalocean.com/v2/#floating-ips
*/
module.exports = function FloatingIPs() {
var client = this,
exports = {},
base = new Base(client, 'floating_ips');
/**
* List... | pauldenotter/nautical | lib/api/floating_ips.js | JavaScript | mit | 1,463 |
angular.module('app.dashboard')
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/dashboard', {
templateUrl: 'dashboard/templates/dashboard.html',
controller: 'DashboardCtrl'
});
}])
.controller('DashboardCtrl', ['$scope', '$rootScope', function($scope, $rootScope) ... | thetallweeks/whats-my-charity | app/dashboard/controllers/dashboardCtrl.js | JavaScript | mit | 364 |
import Modal from './modal.jsx'
import Confirm from './confirm.jsx'
import View from './view.jsx'
Modal.View = View
Modal.Conform = Confirm
export default Modal | fishying/fishy-admin | src/components/Modal/index.js | JavaScript | mit | 161 |
// Karma configuration
// http://karma-runner.github.io/0.12/config/configuration-file.html
// Generated on 2014-12-01 using
// generator-karma 0.8.3
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: tr... | tinkkit/tink-datepicker-angular | test/karma.conf.js | JavaScript | mit | 2,902 |
function makeArrayConsecutive2(statues) {
var arrOrdered = statues.sort(sortNumber);
var total = 0;
for (var i = 0; i < arrOrdered.length - 1; i++) {
total += arrOrdered[i + 1] - arrOrdered[i] - 1;
}
return total;
function sortNumber(a, b) {
return a - b;
}
}
| javifm86/codefights | arcade/intro/06 - makeArrayConsecutive2.js | JavaScript | mit | 309 |
var Class = require("./index.js");
var A = Class({
foo: function(a, b) {
console.log("A#foo", a, b);
return [a, b];
}
});
var B = Class({
foo: function(a, b) {
console.log("B#foo", a, b);
// this.super === C.prototype.super
// this calls B.prototype.foo
return this.super("foo", a*10, b*... | escray/sike-nodejs-class | practice/abc.js | JavaScript | mit | 1,011 |
import './add-contact-page.html';
import './add-contact-page.js';
import './edit-user-profile-page.html';
import './edit-user-profile-page.js';
import './add-stuff-page.html';
import './add-stuff-page.js';
import './add-plants-page.html';
import './add-plants-page.js';
import './add-plants-form.html';
import './add... | LetUmGrow/LetUmGrow | app/imports/ui/pages/index.js | JavaScript | mit | 1,444 |
import React from 'react';
import {
Platform,
ScrollView,
StyleSheet,
Text,
Image,
View,
TouchableWithoutFeedback,
TouchableOpacity,
NetInfo,
} from 'react-native';
import { FormLabel, FormInput, FormValidationMessage, Button, Icon } from 'react-native-elements'
import { savePurcha... | Zephyrrus/ubb | YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Client/BuyScreen.js | JavaScript | mit | 3,138 |
const moment = require("moment-timezone");
// const {inspect} = require("util");
module.exports = (Bot, client) => {
const honPat = 500;
// Check if a given user is a patron, and if so, return their info
Bot.getPatronUser = async (userId) => {
if (!userId) return new Error("Missing user ID");
... | jmiln/SWGoHBot | modules/patreonFuncs.js | JavaScript | mit | 38,288 |
import _extends from 'babel-runtime/helpers/extends';
import _typeof from 'babel-runtime/helpers/typeof';
import _uniq from 'lodash/uniq';
import _isFunction from 'lodash/isFunction';
import _isArray from 'lodash/isArray';
import _isPlainObject from 'lodash/isPlainObject';
import _isNumber from 'lodash/isNumber';
impor... | mowbell/clickdelivery-fed-test | node_modules/semantic-ui-react/dist/es/lib/factories.js | JavaScript | mit | 6,040 |
var hubiquitus = require('hubiquitus-core');
var logger = hubiquitus.logger('hubiquitus:addons:ping');
var _ = require('lodash');
var request = require('request');
var url = require('url');
var failsafe;
try {
failsafe = require('hubiquitus-failsafe');
} catch (err) {
logger.debug('Working without failsafe addon')... | hubiquitus-addons/hubiquitus-ping | index.js | JavaScript | mit | 1,274 |
var templateParser = require('src/parsers/template')
var parse = templateParser.parseTemplate
var testString = '<div>hello</div><p class="test">world</p>'
describe('Template Parser', function () {
it('should return same if argument is already a fragment', function () {
var frag = document.createDocumentFragment(... | th0r/vue | test/unit/specs/parsers/template_spec.js | JavaScript | mit | 6,535 |
module.exports = {
testEnvironment: 'node',
transform: {
'^.+\\.tsx?$': ['@sucrase/jest-plugin'],
},
transformIgnorePatterns: ['/node_modules/', '/dist/'],
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/types/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
}
| ream/ream | jest.config.js | JavaScript | mit | 305 |
'use strict';
const assert = require('assert');
const { CompoundSelector } = require('../');
describe('CompoundSelector', () => {
it('should work for simple pseudo-selectors', () => {
const selector = new CompoundSelector(':has(.test)');
assert(
selector.matches({
test: 'whatever'
})
... | ileri/object-select | lib/__tests__/compound.js | JavaScript | mit | 1,185 |
'use strict';
/**
* module requirements
*/
var request = require( 'request-as-bluebird' );
var getRequestOptions = require( './helpers/get-request-options' );
/**
* @param {Object} [user_options]
* @param {Object} [request_options]
*
* @returns {Promise.<{ body:string, response:IncomingMessage }>}
*/
function ... | dan-nl/internet-archive-metadata-api | src/read.js | JavaScript | mit | 458 |
'use strict'
let input = '1113222113'
let loops = 40
for (let a = 0; a < loops; a++) {
input = lookandsay(input.match(/(.)\1*/g))
}
console.log(input.length)
function lookandsay (input) {
let s = ''
for (let i = 0; i < input.length; i++) {
s += input[i].length + input[i][0]
}
return s
}
| davidsiekut/adventofcode | src/day10/day10.js | JavaScript | mit | 305 |
describe('Search Controller', function() {
var $location;
var $scope;
var $timeout;
beforeEach(module('movieApp'));
beforeEach(inject(function(_$controller_, _$location_,_$timeout_) {
$scope = {};
$location = _$location_;
$timeout=_$timeout_;
_$controller_('SearchController', { $scope: $scope, $location... | cmssfe/angular-js-path | angularjs-ngmock-unit-testing/movie-app/spec/movie-app/search.controller.spec.js | JavaScript | mit | 1,160 |
/**
* Login/Sign Up/Forgot Password Screen
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
ScrollView,
AsyncStorage,
TouchableOpacity,
} from 'react-native';
import FormValidat... | eventures-io/ldn-retail-demo | src/containers/auth/Forms/FormView.js | JavaScript | mit | 9,368 |
'use strict';
angular.module('myApp.home', ['ngRoute', 'firebase'])
//Declared Routes
.config(['$routeProvider', function($routeProvider){
$routeProvider.when('/home', {
templateUrl: 'home/home.html',
controller: 'HomeCtrl'
})
}])
//Home controller
.controller('HomeCtrl', ['$scope', '$l... | dani-ocean/angular_firebase | app/home/home.js | JavaScript | mit | 1,080 |
var locale = require('relative-time-format/locale/es-AR')
module.exports = {
locale: locale.locale,
// Standard styles.
long: locale.long,
short: locale.short,
narrow: locale.narrow,
// Quantifier.
quantify: locale.quantify
} | halt-hammerzeit/javascript-time-ago | locale/es-AR/index.js | JavaScript | mit | 233 |
var test = require('./test2');
test.run('wow'); | pbrandt1/quickflow | testModule.js | JavaScript | mit | 47 |
import { FETCH_WEATHER } from '../actions/index';
export default function(state = [], action) {
switch(action.type) {
case FETCH_WEATHER:
//handle payload and return a new state using the previous data
//DO NOT state.push... never manipulate apps state
//state.concat does not manipulate the cur... | murielg/react-redux | weather-app/src/reducers/reducer_weather.js | JavaScript | mit | 474 |
module.exports = {
book: {
assets: "./src",
js: [
"plugin.js"
]
}
}; | Mavrin/gitbook-plugin-jsfiddle | index.js | JavaScript | mit | 112 |
'use strict';
var path = require('path');
var gulp = require('gulp');
var conf = require('./conf');
var $ = require('gulp-load-plugins')({
pattern: [
'gulp-filter',
'gulp-inject',
'gulp-flatten',
'gulp-angular-templatecache',
'gulp-restore',
'main-bower-files',
... | bulbajackel/career-portal | build/build.js | JavaScript | mit | 3,452 |
import mapboxgl from 'mapbox-gl/dist/mapbox-gl.js';
// import MapGL from 'react-map-gl';
import React, { Component } from 'react';
import _ from 'lodash';
import { connect} from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchMapData, createMapPopUp, updateDeepstreamPopup } from '../actions/ind... | walker808/exploreMapBoxHack | src/components/pop_layer.js | JavaScript | mit | 2,938 |
Object.defineProperty(exports, "__esModule", { value: true });
var action_bar_component_1 = require("./action-bar.component");
exports.ActionBarComponent = action_bar_component_1.ActionBarComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmN... | manyvan2000/ptoc | nativescript/app/app/modules/shared/components/action-bar/index.js | JavaScript | mit | 537 |
/**
* Created by Ryan on 9/9/2015.
*/
| eldridger/Catalyst | app/actions/actionTypes.js | JavaScript | mit | 40 |
/*global describe, beforeEach, it */
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('lancelot generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
return done(err);
... | tsukasa-web/generator-lancelot | test/test-creation.js | JavaScript | mit | 837 |
/*
* File: app/controller/MyGlobalController.js
*
* This file was generated by Sencha Architect version 3.2.0.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Ext JS 5.1.x library, under independent license.
* License of Sencha Architect does not include license for Ext JS 5.1.x. Fo... | swluken/CalendarMatrix | CalendarMatrixDemo/app/controller/MyGlobalController.js | JavaScript | mit | 2,418 |
/*global cordova*/
'use strict';
var exec = cordova.require('cordova/exec'),
win = function (success) {
// do nothing, succeed quietly
};
function hide() {
var fail = function (error) {
console.log("Error hiding the web form accessory toolbar" + error);
};
exec(win, fail, "Keyboa... | don/KeyboardToolbarRemover | www/keyboard_toolbar_remover.js | JavaScript | mit | 605 |
var $form = $('#reset-email-form');
let $btn = $('#next-btn');
let validator = $form.validate({
rules: {
email: {
required: true,
es_email: true,
es_remote: {
type: 'get'
}
},
password: {
required: true,
minlength: 5,
maxlength: 20
}
}
})
$btn.click... | richtermark/SMEAGOnline | app/Resources/static-src/app/js/user/email-reset/index.js | JavaScript | mit | 407 |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = function (node) {
var $node = $(node);
var selection = window.getSelection();
var select = function select() {
if (!selection.toString()) {
if ($node[0].nodeName.toLowerCase() === 'input') {
$node.select();
... | 2947721120/jsdelivr.com | app/public/js/decorators/select.js | JavaScript | mit | 573 |
var REG = NewRegistrar("Third-Party", "NONE");
var CF = NewDnsProvider("Cloudflare", "CLOUDFLAREAPI");
// Zone and subdomain Zone:
D("foo.com", REG, DnsProvider(CF),
A("@", "10.1.1.1"),
A("www", "10.2.2.2")
);
D("bar.foo.com", REG, DnsProvider(CF),
A("@", "10.3.3.3"),
A("www", "10.4.4.4")
);
// Zone that gets... | StackExchange/dnscontrol | pkg/js/parse_tests/028-dextend.js | JavaScript | mit | 487 |
import GuideStep from '../guide-steps/src/guide-step';
/* istanbul ignore next */
GuideStep.install = function(Vue) {
Vue.component(GuideStep.name, GuideStep);
};
export default GuideStep;
| paygle/elem-ui-ext | packages/guide-step/index.js | JavaScript | mit | 193 |