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 |
|---|---|---|---|---|---|
/**
* A 16 color C64 inspired palette.
* @constant
* @type {Array}
*/
export const PALETTE_C64 = [
'#000',
'#fff',
'#8b4131',
'#7bbdc5',
'#8b41ac',
'#6aac41',
'#3931a4',
'#d5de73',
'#945a20',
'#5a4100',
'#bd736a',
'#525252',
'#838383',
'#acee8b',
'#7b73de',
... | photonstorm/lazer | src/create/palettes/C64.js | JavaScript | mit | 336 |
// streamlabeller.js
// Add logging preceded by a slogan to a child process
// © Harald Rudell 2012 MIT License
;[
logSocket, logChild,
].forEach(function (f) {exports[f.name] = f})
// log joint output for a child process
function logChild(child, slogan, write) {
if (child) {
logSocket(child.stdout, slogan, write)... | haraldrudell/nodegod | lib/master/streamlabeller.js | JavaScript | mit | 1,898 |
'use strict';
var Parser = (function() {
function Parser(data) {
this.data = data;
}
Parser.prototype.getData = function() {
return this.data;
};
Parser.prototype.getCompetitionEvents = function(competitionName) {
var events;
var competitions = this.data.Sportsbet.Competition;
for (var i in comp... | antonio-fazari/sportsbet-javascript | js/parser.js | JavaScript | mit | 2,070 |
define('com.magadanski.Player', function () {
// TODO: custom controls and fullscreen
var utils = inc('com.magadanski.utils', true);
var TypeException = inc('com.magadanski.exceptions.TypeException', true);
var that = {};
var text = '';
var subtitleClass = 'subtitles';
function Player(p) {
that =... | magadanskiuchen/subogen | v3/js/subs-api.js | JavaScript | mit | 5,944 |
/*
* This file is part of the BusinessCarouselBundle and it is distributed
* under the GPL LICENSE Version 2.0. To use this application you must leave
* intact this copyright notice.
*
* Copyright (c) AlphaLemon <webmaster@alphalemon.com>
*
* For the full copyright and license information, please view the LICENS... | alphalemon/BusinessCarouselBundle | Resources/public/js/carousel.js | JavaScript | mit | 1,466 |
// flow-typed signature: ca32b181d6c6a442fe93aa0ed92adff1
// flow-typed version: <<STUB>>/babel-eslint_v7.2.3/flow_v0.56.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with t... | NITH-Alumni/peeps-of-nith-cra | flow-typed/npm/babel-eslint_vx.x.x.js | JavaScript | mit | 2,561 |
(function(){
/*global console */
/*global chrome */
/*global Favorites */
"use strict";
function onClickHandler(info, tab) {
if(info.mediaType == "image") {
if(info.srcUrl) {
var favorites = new Favorites();
favorites.saveFavorite(info.srcUrl);
}
}
}
chrome.contextMen... | iToto/MEMEme | js/rightclick.js | JavaScript | mit | 751 |
describe("Space.eventSourcing.Aggregate - dependency injection", function() {
beforeEach(function (){
Test.myAggregateDependency = sinon.spy();
this.app = new Test.App();
this.app.reset();
});
it("injects dependency into new aggregate", function() {
let command = new Test.CreateCustomer({
... | meteor-space/event-sourcing | tests/integration/event-sourceable-dependency-injection.js | JavaScript | mit | 1,846 |
const settings = require('electron-settings');
const json2csv = require('json2csv');
function convertToCsv(data) {
}
exports.convertToCsv = convertToCsv;
| DHkamp/chronos | app/utils/csv.utils.js | JavaScript | mit | 157 |
import AbortablePromise from "./AbortablePromise"
export {
AbortablePromise
}
| PedroPinheiro/palladium | src/utils/index.js | JavaScript | mit | 83 |
'use strict';
module.exports = require('./awsS3Route'); | astesio/api-gateway | src/api/upload/aws-s3/index.js | JavaScript | mit | 56 |
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ ret... | antpost/antpost-client | node_modules/@progress/kendo-ui/js/cultures/kendo.culture.pt-PT.js | JavaScript | mit | 3,803 |
var sizeDiv = 0, hljs, scrolli,windowHeight = $(window).outerHeight(), begin = 0, end = 0, navTop = $('.navigationFixed .top');
function getSize(){
$('.posts article > div').each(function() {
sizeDiv += $(this).outerWidth();
});
$('.posts > div').width(sizeDiv);
}
getSize();
hljs.initHighlightingOnLoad();
$('vide... | JulienHe/ghost-da-ha | content/themes/daha/assets/js/main.js | JavaScript | mit | 1,842 |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
* Copyright (C) 2015 Lukas Mayerhofer <lukas.mayerhofer@guh.guru> *
* ... | guh/guh-webinterface | src/app/containers/things/things-controller.js | JavaScript | mit | 6,097 |
/*!
* Copyright 2015 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.2.4
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
(function() {
/* eslint no-unused-va... | Mount-39/Behind-You | www/lib/ionic/js/ionic-angular.js | JavaScript | mit | 446,742 |
'use strict';
module.exports = {
description: 'Generates an integration adapter.'
};
| tomasbasham/ember-cli-analytics | blueprints/integration/index.js | JavaScript | mit | 88 |
module.exports = { prefix: 'fal', iconName: 'info', icon: [256, 512, [], "f129", "M208 368.667V208c0-15.495-7.38-29.299-18.811-38.081C210.442 152.296 224 125.701 224 96c0-52.935-43.065-96-96-96S32 43.065 32 96c0 24.564 9.274 47.004 24.504 64H56c-26.467 0-48 21.533-48 48v48c0 23.742 17.327 43.514 40 47.333v65.333C25.327... | dolare/myCMS | static/fontawesome5/fontawesome-pro-5.0.2/fontawesome-pro-5.0.2/advanced-options/use-with-node-js/fontawesome-pro-light/faInfo.js | JavaScript | mit | 732 |
const _ = require('lodash');
const path = require('path');
const fs = require('fs');
const nonce = require('nonce')();
const crypto = require('crypto');
const qs = require('querystring');
const jwt = require('jsonwebtoken');
var security = {};
// Sorts a JSON object based on the key value in alphabetical order
functi... | robincher/oauth2-client-openam | lib/security/security.js | JavaScript | mit | 4,700 |
function Doc(connection, handle) {
this.connection = connection;
this.handle = handle;
}
Doc.prototype.commitDraft = function(Id) {
return this.connection.ask(this.handle, 'CommitDraft', arguments);
};
Doc.prototype.createDraft = function(Id) {
return this.connection.ask(this.handle, 'CreateDraft', argu... | countnazgul/qsocks | lib/doc.js | JavaScript | mit | 21,567 |
'use strict';
var serveStatic = require('serve-static');
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
// Configurable paths for the application
va... | hypery2k/angular-pouchdb-logger | Gruntfile.js | JavaScript | mit | 7,072 |
var files = require('./angularFiles').files;
var util = require('./lib/grunt/utils.js');
var path = require('path');
module.exports = function(grunt) {
//grunt plugins
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadN... | sunhui123xx/AngularJS | Gruntfile.js | JavaScript | mit | 9,197 |
/**
* Created by ForeverW on 2017/5/9.
*/
console.log(new Date().toLocaleDateString()) | KuangPF/mySport | test/test005.js | JavaScript | mit | 89 |
(function() {
'use strict';
function setupIsotope() {
// init Isotope
var $grid = $('.grid').isotope({
itemSelector: '.grid-item',
layoutMode: 'fitRows',
});
$grid.isotope({ filter: '.art' });
$grid.isotope({ filter: '.video' });
$grid.i... | luckymichaln/NOXX-Studio | scripts/modules/isotope.js | JavaScript | mit | 675 |
const through = require('through2');
const template = require('lodash.template');
const module_template = template(
'const template = require("lodash.template");'
+ 'module.exports = template(`<%= template_data %>`);'
);
module.exports = file => {
const buffers = [];
if (!/\.tmpl$/.test(file)) {
return through(... | khdkhd/Arkanoid | tools/browserify/template.js | JavaScript | mit | 574 |
import exportValues from '../exportValues';
describe('exportValues()', () => {
afterEach(() => jest.clearAllMocks());
it('should be defined', () => {
expect(exportValues).toBeDefined();
expect(typeof exportValues).toBe('function');
});
it('should return empty object if no props', () => {
const p... | quandhz/resaga | lib/internal/hoc/helpers/__tests__/exportValues.test.js | JavaScript | mit | 1,864 |
'use strict';
module.exports = {
db: 'mongodb://localhost:' + ( process.env.MONGODB_PORT || '27017' ) + '/cookbook-dev',
port: 3001,
app: {
title: 'cookbook - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callback... | Gonnagle/cookbook | config/env/test.js | JavaScript | mit | 1,338 |
var writer = require('flush-write-stream');
var split = require('split2');
function hasChinding(log, name, value) {
return Object.getOwnPropertySymbols(log).some(symbol => {
var matches = false;
try {
matches = log[symbol].match(',"' + name + '":"' + value + '"');
}
finally {
return match... | aexmachina/lugg | test/helper.js | JavaScript | mit | 762 |
/*global describe, beforeEach, it*/
'use strict';
var assert = require('assert');
describe('boomerang generator', function () {
it('can be imported without blowing up', function () {
var app = require('../app');
assert(app !== undefined);
});
});
| gdg-x/generator-boomerang | test/test-load.js | JavaScript | mit | 262 |
'use strict';
var util = require('util');
var Base = require('./Base');
var Server;
/**
* A servers should be attached to an Evironment and contains options for each
* particular server.
*
* @param options (Object) Configuration, eg host and stuff, for the server
*
* @constructor
* @api public
*/
module.exp... | letsjs/lets | lib/Server.js | JavaScript | mit | 508 |
$(document).ready(function() {
var base_url = "http://comsci.local/";
var student_id = $("#student_id");
var student_password = $("#student_password");
var student_confirm_password = $("#student_confirm_password");
var student_prefix = $("#student_prefix");
var student_firstname = $("#student_firstname");
var... | chuckky/comsci | assets/js/student/register.js | JavaScript | mit | 2,386 |
const fa_github_alt = 'M704 1216q0 40-12.5 82t-43 76-72.5 34-72.5-34-43-76-12.5-82 12.5-82 43-76 72.5-34 72.5 34 43 76 12.5 82zm640 0q0 40-12.5 82t-43 76-72.5 34-72.5-34-43-76-12.5-82 12.5-82 43-76 72.5-34 72.5 34 43 76 12.5 82zm160 0q0-120-69-204t-187-84q-41 0-195 21-71 11-157 11t-157-11q-152-21-195-21-118 0-187 84t-6... | craigh411/vue-rate-it | glyphs/github-alt.js | JavaScript | mit | 745 |
"use strict";
debugger;
let bufferObj = new ArrayBuffer(10);
let oneObj = new Int16Array(bufferObj, 4);
console.log(oneObj.byteLength);
console.log(oneObj.length);
oneObj[1] = 22;
console.log(oneObj);
let dummy;
| leisureq/study | 29_TypedArray/arraybuffer-2.js | JavaScript | mit | 217 |
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else if (typeof exports === "object") {
factory(require("jquery"));
} else {
factory( jQuery );
}
}(function( $ ) {
/*
* Translated default messages for the jQuery validation plu... | Badalik/jquery-validation | dist/localization/messages_uk.js | JavaScript | mit | 2,060 |
import hooks from 'feathers-hooks-common';
import auth from 'feathers-authentication';
import populate from 'feathers-populate-hook';
import { required } from 'utils/validation';
import { validateHook as validate } from 'hooks';
const messagesHooks = {
before: {
all: [],
find: [],
get: [],
... | Nuriddinkhuja/photoshare | api/services/likes/hooks.js | JavaScript | mit | 558 |
import * as api from './api'
export const create = (tournamentId, body) => ({
types: [
'CREATE_ADJUDICATOR_TEST_SCORE_REQUEST',
'CREATE_ADJUDICATOR_TEST_SCORE_SUCCESS',
'CONTROLS_ERROR'
],
shouldCallAPI: () => true,
callAPI: () => api.create(tournamentId, body)
})
export const remove = (tournament... | westoncolemanl/tabbr-web | src/redux/actions/asians/adjudicatorTestScores/index.js | JavaScript | mit | 1,324 |
/**
* Copyright (C) 2011 Hakim El Hattab, http://hakim.se
*
* 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,... | bertrandkeller/conference-integrateur-leve-toi-et-concoit | js/reveal.js | JavaScript | mit | 19,172 |
'use strict';
require('./chunk-2067166f.js');
| corneliusweig/rollup | test/chunking-form/samples/chunk-import-deshadowing/_expected/cjs/main2.js | JavaScript | mit | 48 |
/*!
* Packery PACKAGED v1.1.2
* bin-packing layout library
* http://packery.metafizzy.co
*
* Commercial use requires one-time purchase of a commercial license
* http://packery.metafizzy.co/license.html
*
* Non-commercial use is licensed under the GPL v3 License
*
* Copyright 2013 Metafizzy
*/
/*!
* classie... | JustinData/AnyQuestions | app/assets/javascripts/packery.js | JavaScript | mit | 92,022 |
import {
FILE_REQUEST,
FILE_RESPONSE,
FILE_ERROR
} from './TranscribeActions';
const initialState = {
apikey: undefined,
file: undefined,
md5: undefined,
contentType: undefined
};
export default function transcribe(state = initialState, action) {
switch (action.type) {
case FILE_REQUEST:
ret... | taggun/app-benchmark | app/components/Transcribe/TranscribeReducer.js | JavaScript | mit | 836 |
define([
'underscore',
'underscoreString',
'backbone'
], function(_, underscoreString, Backbone) {
'use strict';
var SpecieModel = Backbone.Model.extend({
url: function() {
return _.str.sprintf('http://eol.org/api/pages/1.0/%s.json', this.currentSpecieId);
},
getById: function(specieId) ... | simbiotica/PA-explorer | app/scripts/models/specie_model.js | JavaScript | mit | 798 |
/**
The MIT License (MIT)
Copyright (c) 2014 mekhonoshyn
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, m... | mekhonoshyn/useful-utils | lib/DateTime.js | JavaScript | mit | 5,047 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Object/defineProperty/15.2.3.6-4-60.js | JavaScript | mit | 849 |
'use strict';
import Tether from 'tether';
var ATTR_ALIGNMENT = 'alignment';
var ATTR_ALIGNMENT_STATIC = 'alignment-static';
var ATTR_CONTAINER = 'alignment-container';
var CLASS_PREFIX_ALIGNMENT = 'aui-alignment';
var CLASS_PREFIX_SIDE = 'aui-alignment-side-';
var CLASS_PREFIX_SNAP = 'aui-alignment-snap-';
var DEFAU... | parambirs/aui-demos | node_modules/@atlassian/aui/src/js/aui/internal/alignment.js | JavaScript | mit | 4,344 |
const fs = require('fs-extra')
const MarkdownIt = require('markdown-it')
const markdownItEmoji = require('markdown-it-emoji')
const markdownItGithubHeadings = require('markdown-it-github-headings')
const markdownItHighlightJs = require('markdown-it-highlightjs')
const insertMarkdownToc = require('./insert-markdown-toc... | yuanqing/rdd | src/js/render-markdown-file.js | JavaScript | mit | 682 |
/* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Li... | jubos/meguro | deps/spidermonkey/tests/e4x/Regress/regress-355478.js | JavaScript | mit | 2,174 |
/**
* Demo of service project.
* @module apemanask
*/
'use strict'
const apemanask = require('./apemanask')
let lib = apemanask.bind(this)
lib.yesno = apemanask.yesno
module.exports = lib
| apeman-labo/apemanask | lib/index.js | JavaScript | mit | 196 |
const SHOW_NETWORK_WARNING = 'eoh/user/SHOW_NETWORK_WARNING';
const HIDE_NETWORK_WARNING = 'eoh/user/HIDE_NETWORK_WARNING';
const DEBOUNCE_SAFETY_START = 'eoh/user/DEBOUNCE_SAFETY_START';
const DEBOUNCE_SAFETY_END = 'eoh/user/DEBOUNCE_SAFETY_END';
export default {
SHOW_NETWORK_WARNING,
HIDE_NETWORK_WARNING,
... | eyeofhorus-world/eyeofhorus | src/app/agents/client/framework/ducks/network/types.js | JavaScript | mit | 370 |
import {
getBusinessObject,
is
} from 'bpmn-js/lib/util/ModelUtil';
import {
findExtension
} from '../Helper';
import {
createInputParameter,
createOutputParameter,
createTaskDefinitionWithType,
createTaskHeader,
shouldUpdate
} from '../CreateHelper';
import {
find,
isUndefined,
without
} from ... | bpmn-io/bpmn-js-properties-panel | src/provider/cloud-element-templates/cmd/ChangeElementTemplateHandler.js | JavaScript | mit | 18,673 |
// config/webpack.js
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: [
'./client/js/app.js'
],
output: {
path: './.tmp/public',
filename: 'app.js',
publicPath: ''
},
plugins: [
new HtmlWebpackPlugin({
title: 'Trai... | langateam/graphiql.io | config/webpack.js | JavaScript | mit | 1,108 |
var gulp = require('gulp'),
mocha = require('gulp-mocha'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
merge = require('merge-stream'),
obfuscate = require('gulp-obfuscate'),
zip = require('gulp-zip'),
gulpSequence = require('gulp-sequence');
gulp.task('test', function() {
return gulp.src... | WangZhechao/SHP | gulpfile.js | JavaScript | mit | 1,734 |
var jwt = Cookies.get("api_token");
$(document).ready(function () {
var base_url = $('#base_url').attr('class');
$("#bt_add").click(function () {
if($('#channel_name').val() != ""){
var method = 'POST';
if ($("#action").val() == 'edit') {
method = 'PUT';
... | cybergroupcm/drdhcbi | assets/js/setting_channel.js | JavaScript | mit | 4,758 |
import React from 'react';
export default function(dict, keyPath, params = {}) {
const html = dict.get(keyPath, params);
if (!html) {
return null;
}
if (params.__textOnly) {
return html;
}
return React.createElement("span", {dangerouslySetInnerHTML: {__html: html}});
}
| auth0/lock-passwordless | src/dict/t.js | JavaScript | mit | 293 |
// All symbols in the `Inscriptional_Pahlavi` script as per Unicode v9.0.0:
[
'\uD802\uDF60',
'\uD802\uDF61',
'\uD802\uDF62',
'\uD802\uDF63',
'\uD802\uDF64',
'\uD802\uDF65',
'\uD802\uDF66',
'\uD802\uDF67',
'\uD802\uDF68',
'\uD802\uDF69',
'\uD802\uDF6A',
'\uD802\uDF6B',
'\uD802\uDF6C',
'\uD802\uDF6D',
'\u... | mathiasbynens/unicode-data | 9.0.0/scripts/Inscriptional_Pahlavi-symbols.js | JavaScript | mit | 538 |
/*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | gotchazipc/webida-plugins-all | webida.viewer.image-viewer/ImageEditorPart.js | JavaScript | mit | 5,830 |
define(["module-b"],function(moduleB) {
return {
"speak":function() {console.log("project: foo; module: C")},
"name":"module-c",
"submodule":moduleB,
"project":"foo"
}
}) | gjurgens/mcreqjs | spec/fixtures/foo/module-c.js | JavaScript | mit | 180 |
var Boxes = $A();
var BoxBuilder = Class.create(HomeMarksApp,{
initialize: function($super,columnObj,id) {
$super();
this.build(columnObj,id);
},
build: function(columnObj,id) {
var boxId = 'box_'+ id;
var sortable = columnObj.sortableElement();
var boxHTML = DIV({id:boxId,className:'... | nick-b/homemarks | public/javascripts/homemarks/box.js | JavaScript | mit | 11,803 |
import { range } from 'config/animation.config';
/**
* Animation #5, 6, 7, Pistons
* @param {objct} Two
* @param {object} two instance of two
* @param {object} TWEEN the library for tweening
* @param {object} colors color palette
* @param {array} animations It's the stack of animations
* @param {number} [... | vibertthio/beact | src/utils/animations/patatap/piston.js | JavaScript | mit | 3,387 |
export const LOGIN_REQUEST = 'LOGIN_REQUEST';
export const LOGIN_SUCCESS = 'LOGIN_SUCCESS';
export const LOGIN_FAILED = 'LOGIN_FAILED';
export const REGISTARTION_REQUEST = 'REGISTARTION_REQUEST';
export const REGISTARTION_SUCCESS = 'REGISTARTION_SUCCESS';
export const REGISTARTION_FAILED = 'REGISTARTION_FAILED';
export... | xander9112/TodoApp | resources/assets/js/constants/User.js | JavaScript | mit | 362 |
// Use this file to change prototype configuration.
// Note: prototype config can be overridden using environment variables (eg on heroku)
module.exports = {
// Service name used in header. Eg: 'Renew your passport'
serviceName: 'Fraud & Error Service',
// Default port that prototype runs on
port: '3000',... | paulmsmith/fes-work-management | app/config.js | JavaScript | mit | 840 |
const b64toBlob = (b64Data, contentType = '', sliceSize = 512) => {
const byteCharacters = atob(b64Data)
const byteArrays = []
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
const slice = byteCharacters.slice(offset, offset + sliceSize)
const byteNumbers = new Array(slice.l... | jsreport/jsreport-xlsx | studio/b64toBlob.js | JavaScript | mit | 610 |
const path = require('path');
const webpack = require('webpack');
const LIBRARY_NAME = 'material-ui';
const baseConfig = {
entry: {
'material-ui': path.join(__dirname, '../src/index.js'),
},
output: {
path: path.join(__dirname, '../build/umd'),
library: LIBRARY_NAME,
libraryTarget: 'umd',
umd... | cherniavskii/material-ui | packages/material-ui/scripts/umd.webpack.config.js | JavaScript | mit | 1,603 |
import $ from 'jquery';
import QUnit from 'qunit';
import { assert } from '@ember/debug';
const assertElement = function(selector, type, count) {
const element = find(selector);
QUnit.assert.equal(element.length, count || 1, "element with selector '" + selector + "' not found");
const actualType = element.attr('... | nchristus/ember-cli-password-toggle | tests/helpers/input.js | JavaScript | mit | 1,559 |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
function validateNotEmpty(passedString){
return passedString !== '';
}
function validatePriorityRange(passedValue){
if(passedValue < 1 || passedValue > 5)
return false;
else
return true;
}
/**
* Task... | Sid2130/ToDoApp_MEAN_Stack | app/models/task.server.model.js | JavaScript | mit | 989 |
angular.module('cgGrid.jsonUtil', ['cgGrid.lodash'])
.factory('JsonUtil', function (_) {
function getKeys(json) {
return _.keys(json);
}
function getHeaders(size, type) {
return _.range(size)
.map(function () {
return type
})
}
function transformJsonArra... | cghr/cgGrid | src/jsonUtil/jsonUtil.js | JavaScript | mit | 819 |
// import {
// commitMutation,
// graphql,
// } from 'react-relay';
// import { ConnectionHandler } from 'relay-runtime';
// const mutation = graphql`
// mutation CreateCircleMutation($input: CreateCircleInput!) {
// createCircle(input:$input) {
// _id
// path
// type
// lastUpdated
// ... | DaveyEdwards/myiworlds | src/components/MyiWorlds/Page/Mutations/CreatePageMutation.js | JavaScript | mit | 3,564 |
'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Menuitem = mongoose.model('Menuitem'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, menuitem;
/**
* Menuitem rout... | brocktubre/MeanMenu | app/tests/menuitem.server.routes.test.js | JavaScript | mit | 6,805 |
'use strict';
angular.module('core').controller('GameboyAdvanceController', ['$scope', '$http',
function($scope, $http) {
$scope.searchGame = '';
$http.get('/modules/core/gamedb/gamedb.json').success(function(data){
$scope.gamedb = data;
});
$scope.orderProp = 'age';
}
]); | DarkRobin/finalproject | public/modules/core/controllers/gameboy-advance.client.controller.js | JavaScript | mit | 292 |
var fs = require('fs');
var heroSprites = [
'{\'{*{4{7{8{9{:{={D{E{H{I{L{M{U{V{[{\\{e{f{g{h{i{j{k{l{s!"#$%&).13469?@CDGHSTbcderu~,~-~0~1~<~A~K~L~Q~R~[~\\~a~b',
'{#{\'{*{.{3{4{7{8{9{:{={>{D{E{H{I{L{M{U{V{[{\\{e{f{g{h{i{j{k{l{s!"#$%&).13469?@CDGHSTbcderu~,~-~0~1~<~A~K~L~Q~R~[~\\~a~b',
'{#{.{3{4{7{:{={>{D{E{G{H{I{J{... | agar3s/vier | animator.js | JavaScript | mit | 2,441 |
/**
* Copyright (c) 2015
* Author : MisterKatiyar Bhalendra (MisterKatiyar.in)
* Company : Social Command (SocialCommand.in)
*/
var scmd = scmd || {};
scmd.cwd = scmd.cwd || {};
scmd.cwd.lib = scmd.cwd.lib || {};
/*Text processing lib*/
scmd.cwd.lib.text = mk.js.algos.text;
| SocialCommand/ChromeWebDeveloper | dist/js/scmd/cwd/lib/text.js | JavaScript | mit | 277 |
export { default } from 'ember-fhir/serializers/code-system-designation'; | davekago/ember-fhir | app/serializers/code-system-designation.js | JavaScript | mit | 73 |
tinymce.addI18n('ka_GE',{
"Cut": "\u10d0\u10db\u10dd\u10ed\u10e0\u10d0",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u10d7\u10e5\u10d5\u10d4\u10dc \u10d1\u10e0\u10d0\u10e3\u10d6\u10d4\u10e0\u10e1 \u10d0\u10e0 \u10d0\u10e5\u10d5\u10e1 \u10d1\u... | xixilive/tinymce4-rails | vendor/assets/javascripts/tinymce/langs/ka_GE.js | JavaScript | mit | 14,923 |
define(["backbone"], function (Backbone) {
return Backbone.View.extend({
tagName: 'div',
className: 'card solution',
initialize: function () {
},
render: function () {
this.$el.html("<h2>Ratkaisu " + this.model.get('_id') + "</h2>");
var text = $(document.createElement('p')).addClas... | anttirautanen/save-the-baltic | public/javascripts/app/views/card-solution.js | JavaScript | mit | 788 |
/*global describe, it*/
import { getExternalContractUrl } from 'embark-utils';
const assert = require('assert');
const constants = require('embark-core/constants');
describe('embark.utils', function () {
describe('#getExternalContractUrl', function () {
it('should get the right url for a https://github file', fu... | iurimatias/embark-framework | packages/embark/src/test/utils.js | JavaScript | mit | 5,305 |
var util = require('util');
var Duplex = require('stream').Duplex;
function WebSocketStream(ws) {
// Make work with or without 'new'
if (!(this instanceof WebSocketStream)) {
return new WebSocketStream(ws);
}
Duplex.call(this, {objectMode: true});
this.ws = ws;
var self = this;
ws.on('close', functi... | nicktogo/coeditor | server/WebSocketStream.js | JavaScript | mit | 819 |
var chai = require("chai");
chai.use(require("chai-as-promised"));
var expect = chai.expect;
var _ = require("lodash");
var radio = require("radio");
var main = require("./main.es6");
describe("es6", function() {
describe("ES5 functions vs ES6 arrow functions", function() {
it("regular function needs var self ... | foxdonut/js-play | client/main-test.js | JavaScript | mit | 2,858 |
var strava = require('strava-v3');
var metrics = require('../../metrics');
var normalizedMetrics = {
watts : 'power',
altitude : 'elevation'
};
function getWorkout (user, workoutId, callback) {
var params = {
access_token : user.access_token,
id : workoutId
};
strava.activities.get(par... | JasonSanford/fitviz | providers/strava/index.js | JavaScript | mit | 4,266 |
var searchData=
[
['read',['Read',['../classneblina_1_1_commands_1_1_e_e_p_r_o_m.html#afbbe5e5556c92ee6fdd67ac7639c98d4',1,'neblina::Commands::EEPROM']]],
['receive',['Receive',['../classneblina_1_1_commands_1_1_b_l_e.html#a93789e736bf7b09e91131f1c9c756c9c',1,'neblina::Commands::BLE']]],
['record',['Record',['../... | Motsai/neblina-python | docs/doxydoc/html/search/all_10.js | JavaScript | mit | 2,500 |
/**
* Created by Said-Gani on 05.11.2014.
*/
| Bobojon/maps.khujand | js/js.js | JavaScript | mit | 47 |
'use strict';
function solve(args) {
var output =new Array();
var num = +args[0];
for (var index = 1; index <= num; index++) {
output.push(index);
}
console.log.apply(console,output);
}
solve([5]) | dushka-dragoeva/TelerikSeson2016 | Web Design and UI/JS Fundamentals/06. Loops/01. Numbers/Tests/solution.js | JavaScript | mit | 231 |
'use strict';
describe('Filter: removeRandom', function () {
// load the filter's module
beforeEach(module('quiverCmsApp'));
// initialize a new instance of the filter before each test
var removeRandom;
beforeEach(inject(function ($filter) {
removeRandom = $filter('removeRandom');
}));
it('should ... | deltaepsilon/quiver-cms | test/spec/filters/remove-random.js | JavaScript | mit | 498 |
'use strict'
var util = require('./util')
class ValueType {
constructor (storageSlots, storageBytes, typeName) {
this.storageSlots = storageSlots
this.storageBytes = storageBytes
this.typeName = typeName
this.basicType = 'ValueType'
}
/**
* decode the type with the @arg location from the sto... | cdetrio/remix | src/solidity/types/ValueType.js | JavaScript | mit | 1,924 |
import React from 'react';
const noMatch = () => (
<div>404</div>
);
export default noMatch;
| t-obi/react-simple-resize | examples/NoMatch.js | JavaScript | mit | 97 |
'use strict';
PixelEditor.init({
input: document.getElementById('file-load'),
operations: document.getElementById('operations'),
original: document.getElementById('original'),
result: document.getElementById('result')
});
$(document).ready(init);
var shouldShow = true;
function init(){
materialize... | douglascarlos/PixelEditor | js/app.js | JavaScript | mit | 839 |
{
var self = this;
[1, 2, 3].find(function() {
assert.notEqual(this, self);
assert.equal(this, global);
});
[1, 2, 3].find(function() {
assert.equal(this, self);
}, self);
[1, 2, 3].find(() => assert.equal(this, self));
[1, 2, 3].find(() => assert.equal(this, self), self);
var arr = [5];
a... | stas-vilchik/bdd-ml | data/2359.js | JavaScript | mit | 448 |
module.exports = {
development: {
app: {
name: 'Passport SAML strategy example',
port: process.env.PORT || 3000
},
passport: {
strategy: 'saml',
saml: {
path: process.env.SAML_PATH || '/login/callback',
entryPoint: process.env.SAML_ENTRY_POINT || 'https://idp-test.f... | uis-no/ppm | feide/Filer ikke i bruk/config.js | JavaScript | mit | 486 |
let ASSERT = require('assert');
describe('Request Helper Specs', function () {
const RequestHelper = require('./../src/common/request.helper');
const RES = {
header: {},
end: function () {
this.endiscalled = true
},
setHeader: function (key, value) {
this... | nodejayes/acts | spec/request.helper.spec.js | JavaScript | mit | 1,348 |
module.exports = {
remote: require('./Remote')
};
| EragonJ/Kaku | tests/unit/mocks/Electron/index.js | JavaScript | mit | 52 |
/*
* Copyright (c) 2015, Joyent, Inc.
*/
var extend = require('xtend');
var h = require('./helpers');
var s_sdc = require('../lib/index.js').sdc;
var test = require('tape');
test('All sdc schemas', h.validateAll.bind(null, s_sdc));
test('fabric_cfg', function (t) {
var schema = s_sdc.sdc_app;
// baseline
h.ex... | joyent/schemas | test/tst.sdc.js | JavaScript | mit | 1,156 |
import $ from 'jquery';
import plugin from './plugin';
class Sidebar {
constructor() {
const $body = $('#body');
const $trigger = $('#trigger');
$trigger.click(() => {
$body.toggleClass('sidebar-active');
});
}
}
plugin('Sidebar', Sidebar);
| row-n/zico-oneill | assets/js/plugins/sidebar.js | JavaScript | mit | 270 |
/*!
* Neo-Chart.js
* https://github.com/WolfgangKurz/Neo-Chart
* Version: 1.0.14
*
* Copyright 2016-2018 Wolfgang Kurz
* Released under the MIT license
* https://github.com/WolfgangKurz/Neo-Chart/blob/master/LICENSE
*/
"use strict";
!function(){
var $ = function(x){ return document.querySelector(x) };
$.find ... | WolfgangKurz/Neo-Chart | src/neo-chart.js | JavaScript | mit | 18,247 |
module.exports = function(grunt) {
// 1. 定义任务
grunt.initConfig({
// 1. 读取package.json
pkg: grunt.file.readJSON("package.json"),
// 2. 初始化各个任务的配置对象
// 合并文件
concat: {
options: {
// 防止合并出错(上一个文件尾部少了分号)
separator: "... | ayqy/world | v0.5/Gruntfile.js | JavaScript | mit | 3,030 |
import React, { Component } from 'react';
//import i18n from './language';
import CloseButton from './CloseButton';
import ShowInfo from 'butter-component-show-info';
import ShowHeader from 'butter-component-show-header';
import style from './styl/theme.styl';
let ShowDetail = (props) => (
<div style={{backgrou... | buttercomponents/butter-component-show-detail | src/index.js | JavaScript | mit | 541 |
/**
* Test case for randomBool.
* Runs with mocha.
*/
'use strict'
const randomBool = require('../lib/random_bool.js')
const assert = require('assert')
it('Random bool', () => {
for (let i = 0; i < 1000; i++) {
let val = randomBool()
assert.equal(typeof val, 'boolean')
}
})
/* global it */
| okunishinishi/node-randomval | test/random_bool_test.js | JavaScript | mit | 309 |
/* globals $ */
import { remote, ipcRenderer } from 'electron';
import { servers } from './servers';
import { sidebar } from './sidebar';
import { webview } from './webview';
import tray from './tray';
import './menus';
sidebar.on('badge-setted', function () {
var badge = sidebar.getGlobalBadge();
if (proces... | ZedTheYeti/Rocket.Chat.Electron | src/scripts/start.js | JavaScript | mit | 5,546 |
var express = require('express');
var router = express.Router();
//Listar todo
router.get("/categories", function(req, res, next){
req.db.query("SELECT * FROM categories", function (err, categories){
if (err){
return next(err);
};
var metadata = {
version:0.1,
count:categories.leng... | fede29/JobifySS | routes/categories.js | JavaScript | mit | 2,243 |
#!/usr/bin/env node
const _ = require('lodash')
const fs = require('fs')
const parse = require('csv-parse')
const path = require('path')
const program = require('commander')
// const request = require('request')
const thenify = require('thenify')
const through = require('through')
const util = require('util')
const r... | AdmitHub/apiai-importer | index.js | JavaScript | mit | 6,368 |
Typograf.rule({
name: 'common/space/trimLeft',
index: 530,
handler: String.prototype.trimLeft ? function(text) {
return text.trimLeft();
} : /* istanbul ignore next */ function(text) {
return text.replace(/^[\s\uFEFF\xA0]+/g, '');
}
});
| abusabir/typograf | src/rules/common/space/trimLeft.js | JavaScript | mit | 273 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = RequestMock;
var _path = require('path');
const ENABLED = process.env.MOCK_ENABLED;
const DIR = (0, _path.resolve)((0, _path.join)(process.cwd(), process.env.MOCK_DIR || ''));
function RequestMock(path, enabled = isEn... | halojs/halo-annotation | dist/libs/requestMock.js | JavaScript | mit | 1,565 |
/*
* Copyright (C) 2012 André jr Steenveld all rights reserved
* Licensed under the MIT public license for the full license see the LICENSE file
*
*/
define([ "..", ".", "lib" ], function( chess, pieces, lib ){
pieces.Piece = lib.declare( [ ], {
// Some information about the world around us
inPlay: n... | abhishekbhalani/Chessy | script/chess/pieces/Piece.js | JavaScript | mit | 11,741 |
(function () {
'use strict';
var controller_name = "cryptonomica.controller.test";
var controller = angular.module(controller_name, []);
// https://docs.angularjs.org/api/ng/provider/$logProvider
controller.config(function ($logProvider) {
// $logProvider.debugEnabled(false);
... | Cryptonomica/cryptonomica | src/main/webapp/app/test/test.controller.js | JavaScript | mit | 2,945 |