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 buf = new Buffer(256); var len = buf.write("Simply Easy Learning"); console.log("Octets written : "+ len); console.log("Partial Content : "+ buf.toString('utf8',7,11)); // from index 7 to 11(excluded) console.log("Content : "+ buf.toString()); // after index 20, will present init buffer data console.log("To...
greg65236592/nodejs-hello-world
buffer.js
JavaScript
mit
1,271
'use strict'; var through = require('through2'); var gutil = require('gulp-util'); var child_process = require('child_process'); var fs = require('fs'); var fse = require('fs-extra') var path = require('path'); var vinylRead = require('vinyl-read'); var utils = require('./utils.js'); const constants = require('./const...
kserin/gulp-cordova-builder
src/create.js
JavaScript
mit
2,886
import { STParser } from './STParser.js'; let mqttServerClients = []; export class MQTTHandle { /** * returns or creates the client for the requested Server URL * @param serverURL the MQTT URL of the selected server * @param onConnected a function to call once connected * @returns {Object...
SensorThings-Dashboard/SensorThings-Dashboard
src/SensorThingsCommunication/MQTTHandle.js
JavaScript
mit
3,945
import { combineReducers } from 'redux'; import auth from './auth'; const rootReducer = combineReducers({ auth }); export default rootReducer;
adrianhall/blog-code
RNCognito/redux/reducers/index.js
JavaScript
mit
149
var appolo = require('appolo'); module.exports = { Class : appolo.Class, Controller : require('./lib/controller/controller'), Middleware : require('./lib/middleware/middleware'), EventDispatcher :appolo.EventDispatcher, router : require('./lib/routes/router'), inject : appolo.inject, loade...
antonzy/appolo-express
index.js
JavaScript
mit
483
const dbConnection = require("./mongoConnection"); let getCollectionFn = (collection) => { let _col = undefined; return () => { if (!_col) { _col = dbConnection().then(db => { return db.collection(collection); }); } return _col; }; }; module.exports = { students: getCollectionFn("students"), te...
pwnfooj716/cs546-project
config/mongoCollections.js
JavaScript
mit
443
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
buithehoa/curva
app/assets/javascripts/application.js
JavaScript
mit
746
/** Flame.Popover provides a means to display a popup in the context of an existing element in the UI. */ Flame.Popover = Flame.Panel.extend({ classNames: ['flame-popover'], childViews: [], dimBackground: false, arrow: 'arrow', // How to use a string literal in bindAttr? handlebars: '<img {{bindAt...
ctimmerm/flame.js
views/popover.js
JavaScript
mit
2,511
var path = require('path'); /** * Transform a syntax a.b.c to a path syntax like a/b/c * * @param {String} pkg The package name to transform * @return {String} The path generated from the package */ module.exports = function(pkg) { return pkg.replace(/\./g, path.sep); };
lotaris/project-scaffolder-extras
lib/sync/filters/folderize.js
JavaScript
mit
280
/** * Created by James on 9/18/14. */ exports.authenticate = authenticate; function authenticate(req,res) { res.redirect(307,'/api?token=' + req.token); //res.send({token: req.token,expires:1418883247, stats:'/stats?token='+req.token}); }
james-gibson/agrig8
src/handlers/AuthenticationHandler.js
JavaScript
mit
251
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M5 11h2v2H5zm0 4h2v2H5zm0-8h2v2H5zm4 0h9v2H9zm0 8h9v2H9zm0-4h9v2H9z", opacity: ".3" }), h("path", { d: "M3 5v14h17V5H3zm4 12H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V7h2v2zm11 8H9v-2h9v2zm0-4...
AlloyTeam/Nuclear
components/icon/esm/view-list-two-tone.js
JavaScript
mit
369
'use strict'; function InvoiceItems (stripe) { this.createInvoiceItem = (req, res, next) => { const context = stripe.model.context(req, res, next); const customer = stripe.store.getCustomer(context.identity, req.body.customer); if (!customer) { return stripe.errors.invalidRequestError({ sta...
mdbarr/mock-stripe-server
lib/invoiceItems.js
JavaScript
mit
4,208
var github-oauth-proxy; if (typeof require !== "undefined") { github-oauth-proxy = require("../github-oauth-proxy.js"); } else { github-oauth-proxy = window.github-oauth-proxy; } var ok = function(a, msg) { if (!a) throw new Error(msg || "not ok"); }; describe('github-oauth-proxy', function() { describe('#', fu...
tmpvar/github-oauth-proxy
test/test.js
JavaScript
mit
380
/** * angular-collapse-text v0.1.0 * 2017 Armando Rocha https://github.com/ArmandoKenneth * Simple Angular directive that adds the "Read more/less" action to a piece of text * MIT License, http://www.opensource.org/licenses/MIT */ angular.module('ark.collapse-text', []) .directive('collapseText', ['$compile', function(...
ArmandoKenneth/angular-collapse-text
src/angular-collapse-text.js
JavaScript
mit
2,513
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.1-master-0b72ab9 */ !function(i,t,e){"use strict";!function(){function i(i){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(t,e){var a=t.children(),n=i.prefixer().hasAttribute(a,"ng-repeat")...
qjoignaud/ticketalert
src/Acme/BlogBundle/ApiClientBundle/Resources/public/components/angular-material/modules/js/fabActions/fabActions.min.js
JavaScript
mit
539
/* @flow */ export function normaliseNavyName(envName: string): string { return envName.replace(/\W/g, '') }
momentumft/navy
packages/navy/src/navy/util.js
JavaScript
mit
112
"use strict" const {fromJS, List} = require(`immutable`) const expect = require(`expect`) const tileLayers = require(`./tileLayers`) const {plotTile} = require(`../actions/index`) { // can plot tile to specific layers const layers = fromJS([ {width:2, height: 2, tileIndexGrid: [1, 1, 1, 1]}, {width:2, hei...
chuckrector/mappo
src/reducers/tileLayers.test.js
JavaScript
mit
987
// 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. var BaseApiUrl = "http://120.27.112.25"; var reg_chrome = /undefined|chrome\:\/\/|se\:\/\/extensions\-frame|chrome\.google/i ,//chrome相关页面地址 reg_a...
pf12345/article-save
articleChrome/js/popup.js
JavaScript
mit
5,389
/*jslint node: true, indent: 2, unused: true, maxlen: 160, camelcase: true, esversion: 9 */ const BufferReadable = require('../../../lib/util/buffer/BufferReadable'); const { Readable } = require('stream'); const assert = require('assert'); describe('BufferReadable', function(){ it('should inherit from stre...
gdaws/node-stomp
test/util/buffer/BufferReadable.js
JavaScript
mit
1,490
'use strict'; module.exports = function ( grunt ) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); // configurable paths var pkgConfig = { app: 'app', dist: 'dist' }; try { pkgConfig = require('./package.json') || pkgConfig; } catch (e) {} ...
seankenny/angularnode
Gruntfile.js
JavaScript
mit
13,553
/** * Copyright (C) 2014 Google Inc. 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 conditi...
buglloc/ios-debug-proxy-devtools
profiler/CPUProfileFlameChart.js
JavaScript
mit
20,040
// ==== UTILITIES ==== // var gulp = require('gulp') , plugins = require('gulp-load-plugins')({ camelize: true }) , del = require('del') , config = require('../config').utils ; // Totally wipe the contents of the `dist` folder to prepare for a clean build; additionally trigger Bower-related ta...
MajorDigital/ox
gulpfile/tasks/utils.js
JavaScript
mit
795
var app = new AppRouter(); Backbone.history.start();
MoonHighway/backbone-chat
ui/js/main.js
JavaScript
mit
52
// == Title.js -- Copyright (C) Stefan Goessner ======================== function Title(doc, sz) { this.element = null; // element to show title of .. Title.size = sz; // text size .. Title.scl = doc.getDocumentElement().getCurrentScale(); // scaling modified by zooming .. Title.off = doc.ge...
dojones1/parser
Title.js
JavaScript
mit
4,554
import { loadable } from 'utils/router'; import { <%= pathName %>_PATH as path } from 'constants/paths' export default { path, component: loadable(() => import(/* webpackChunkName: '<%= camelName %>' */ './components/<%= componentName %>'), ), }
prescottprue/generator-react-firebase
generators/route/templates/_index.js
JavaScript
mit
257
/*global define*/ define( [], function () { 'use strict'; // **************************************************************************************** // Dimensions & Measures // **************************************************************************************** var dimensions = { uses: "dimensions", min:...
stefanwalther/generator-sense-extension
app/templates/basic_paint/properties.js
JavaScript
mit
1,409
const EventEmitter = require('events') const SingleEmit = require('../src/main') describe('SingleEmit', () => { let event1 beforeEach(() => { event1 = new EventEmitter() }) describe('constructor', () => { it('throw if first argument is not an array or object', () => { expect(() => new SingleEmit...
wizzy25/single-emit
test/main.test.js
JavaScript
mit
5,639
export const preOrderIteration = function(node, callback){ callback(node); if (node.children){ for (var i=0; i<node.children.length; i++){ preOrderIteration(node.children[i], callback); } } } export const postOrderIteration = function(node, callback){ if (node.children){ ...
nextstrain/phyloTree
src/treeHelpers.js
JavaScript
mit
469
/** * @author Toru Nagashima <https://github.com/mysticatea> * See LICENSE file in root directory for full license. */ "use strict" const fs = require("fs") const path = require("path") const { CLIEngine } = require("eslint") const linter = new CLIEngine({ fix: true }) /** * Format a given text. * @param {string...
mysticatea/eslint-plugin-eslint-comments
scripts/lib/utils.js
JavaScript
mit
1,144
/*jshint jasmine: true, node: true */ 'use strict'; const runtimeUtils = require('../utils/runtime-test-utils'); describe('config webpack test', () => { let skyPagesConfig; beforeEach(() => { skyPagesConfig = { skyux: { mode: 'advanced' }, runtime: runtimeUtils.getDefaultRuntime() ...
blackbaud-joshlandi/skyux-builder
test/config-webpack-test.spec.js
JavaScript
mit
2,823
'use strict'; var assert = require('chai').assert; var SerialPortBinding = require('../lib/bindings'); var assign = require('object.assign').getPolyfill(); var platform; switch (process.platform) { case 'win32': platform = 'win32'; break; case 'darwin': platform = 'darwin'; break; default: p...
rhuehn/node-serialport
test/bindings.js
JavaScript
mit
11,258
module.exports = { port: '8999', theme: 'bisheng-theme-one', themeConfig: { home: '/', sitename: 'One', tagline: 'The one theme for bisheng', // navigation: [{ // title: 'BiSheng', // link: 'https://github.com/benjycui/bisheng', // }], // footer: 'Copyright and so on...', ...
lunarun/vmu
bisheng.config.js
JavaScript
mit
440
import {typeOf} from '../../../util'; const ERR = 'object.minProperties'; export class MinPropertiesValidator { static include({ minProperties }) { if (typeOf(minProperties) === 'number') { return true; } return false; } constructor({ minProperties }) { this.minProperties = minPropertie...
fd/schemata.js
src/draft4/validators/object/minproperties.js
JavaScript
mit
517
// path to define directory paths and webpack // module.exports settings object // entry set to app.js // output set to object // path set to rootpath // filename set to bundle.js // module object instructions for transpiling // loaders array containing object // test to catch js and jsx files // ...
seabassgonzalez/MERN-simple
webpack.config.js
JavaScript
mit
820
var fbp = require('..') , path = require('path'); // --- define network --- var network = new fbp.Network(); var gendata = network.defProc('./examples/components/gendata.js', 'Gen'); var reader = network.defProc('./components/reader.js', 'Read'); var copier = network.defProc('./components/copier.js', 'Copy'); var r...
jpaulm/jsfbp
examples/fbptest03.js
JavaScript
mit
750
import DomainMap from 'domain-map' import Entity from './entity' /** * Entity handler */ class EntityHandler { /** * Constructor * * @param variables with following keys * entityTypeId * Entity type id * entityClass * Entity class */ constructor(variables = {}) { this._registry = n...
tobiasrask/entity-api
src/entity/entity-handler.js
JavaScript
mit
1,591
/*jshint node:true*/ //import Ember from 'ember'; var RSVP = require('rsvp'); //var RSVP = Ember.RSVP; module.exports = { description: '', normalizeEntityName: function() {}, isDevelopingAddon: function() { return false; }, afterInstall: function() { /* return RSVP.all([ this.addPackag...
windwww/ember-k
blueprints/ember-k/index.js
JavaScript
mit
1,176
// append an svg to the body var svg = d3.select('.container').append('svg') .append('g'); var common = ['the', 'that', 'in', 'it', 'is', 'we', 'all', 'a', 'an', 'by', 'to', 'you', 'me', 'he', 'she', 'they', 'we', 'how', 'it', 'i', 'are', 'to', 'for', 'of', 'and', 'I', 'was']; function visualize(users, allWords, pa...
davis/wordgraph
public/javascripts/visualizer.js
JavaScript
mit
1,312
'use strict'; /** * @ngdoc function * @name e01App.controller:MainCtrl * @description * # MainCtrl * Controller of the e01App */ var app = angular.module('e01App'); app.controller('MainCtrl', function ($scope, $rootScope, $http) { $scope.color = ""; $scope.cartel = function() { alert("esto es un cartel")...
malaniz/cursoAngular
cl05a/app/scripts/controllers/main.js
JavaScript
mit
1,302
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" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
aurelia/templating
dist/native-modules/aurelia-templating.js
JavaScript
mit
161,267
const gulp = require('gulp'); const autoprefixer = require('gulp-autoprefixer'); const imagemin = require('gulp-imagemin'); const svgmin = require('gulp-svgmin'); const pug = require('gulp-pug') const stylus =...
devigor/wolf-boilerplate
Gulpfile.js
JavaScript
mit
2,768
var cli = module.exports; var clivas = require('clivas'); var frame = 0; var STAGE_WIDTH = 50, STAGE_HEIGHT = 50, MAX_SIZE = 2, SNOW_NUMS = 20, FPS = 1000/30; var WhiteBuffer = function(x, y, size) { this.x = Math.floor(x); this.y = Math.floor(y); this.size = size; this.vx = (Math.ra...
feb19/snowscape
lib/snowscape.js
JavaScript
mit
3,138
import {Validator as ValidatorInterface} from 'aurelia-validation'; import {Validator} from './validator'; export function configure(config) { config.container.registerInstance(ValidatorInterface, new Validator()); }
aurelia/validatejs
src/index.js
JavaScript
mit
220
/** * Wheel, copyright (c) 2017 - present by Arno van der Vegt * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ exports.RgfImage = class { pack(data) { let bytes = [data.width, data.height]; let image = data.image; for (let y = 0; y < data.height; ...
ArnoVanDerVegt/wheel
js/shared/lib/RgfImage.js
JavaScript
mit
1,952
import { sync, breaks } from '../../' import App from './App.vue' import breakjs from 'breakjs' import createLogger from 'vuex/dist/logger' import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const store = new Vuex.Store({ plugins: [createLogger({ collapsed: false })], state: {} }) // grab the default...
chrisbraddock/vuex-breakjs-sync
demo/src/main.js
JavaScript
mit
599
version https://git-lfs.github.com/spec/v1 oid sha256:013c63629630f98729da24e7a653dbf8e74aa6c9f5e851e676d00a1f08bbed61 size 5314
yogeshsaroya/new-cdnjs
ajax/libs/highcharts/4.1.4/adapters/standalone-framework.js
JavaScript
mit
129
var class_pathfinder_1_1_internal_1_1_g_u_i_1_1_mod_extensions_u_i = [ [ "UnloadContentForModExtensionListener", "class_pathfinder_1_1_internal_1_1_g_u_i_1_1_mod_extensions_u_i.html#a0c391eb2c508ca7692462cc3e5909459", null ] ];
Spartan322/Hacknet-Pathfinder
docs/html/class_pathfinder_1_1_internal_1_1_g_u_i_1_1_mod_extensions_u_i.js
JavaScript
mit
231
$(document).ready(function() { $(".wrapper").prepend( '<header class="main-header">' +'<a href="#" class="logo"><b>Advantech </b>HR</a>' +'<nav class="navbar navbar-static-top" role="navigation">' // +'<!-- Sidebar toggle button--> +'<a href="#" class="sidebar-toggle" data-toggle="...
ChenYuHsin/Admin-HR
sidebar.js
JavaScript
mit
13,718
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); 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 ('v...
markfinger/webpack-build
lib/wrappers/Wrapper.js
JavaScript
mit
11,271
import _ from 'lodash'; import actions from '../actions'; export const staticActions = (flux) => { const result = {}; _.mapKeys(actions, (action, key) => { result[key.toLowerCase()] = flux.getActions(key.toLowerCase()); }); return result; }; export default { componentWillMount() { ...
gzoreslav/panda-iso
shared/mixins/fluxActions.js
JavaScript
mit
378
/** * Created by casperlai on 2016/6/30. */ /* eslint-disable */ module.exports = { '基隆市': {'仁愛區': '200', '信義區': '201', '中正區': '202', '中山區': '203', '安樂區': '204', '暖暖區': '205', '七堵區': '206'}, '台北市': {'中正區': '100', '大同區': '103', '中山區': '104', '松山區': '105', '大安區': '106', '萬華區': '108', '信義區': '110', '士林區': '111', '北投...
CasperLaiTW/vue-twzipcode
src/data.js
JavaScript
mit
8,205
class QQ { static createOptions($target, $link) { const nameStr = $.trim($target.find('.figure_title a').text()) || $.trim($target.find('.result_title em').text()) || $.trim($target.find('a .title_inner').text()); //const bookName = JD.formatBookname(...
blurm/chrome-rating
js/controller/qq.js
JavaScript
mit
883
var CDP = require("chrome-remote-interface"); var fs = require("fs"); // NOTE: the code above doesn't work on Windows // and it doesn't support interactive stdin input (which is ok for our scenario) var dir = fs.readFileSync("/dev/stdin").toString(); var options = { host: process.env.CHROME_HOST || 'localhost', p...
Mogztter/opal
lib/opal/cli_runners/chrome.js
JavaScript
mit
3,246
var menudata={children:[ {text:"Main Page",url:"index.html"}, {text:"Namespaces",url:"namespaces.html",children:[ {text:"Namespace List",url:"namespaces.html"}, {text:"Namespace Members",url:"namespacemembers.html",children:[ {text:"All",url:"namespacemembers.html",children:[ {text:"a",url:"namespacemembers.html#index_...
spg63/cppcommon
docs/menudata.js
JavaScript
mit
3,761
export const addTask = (text, duration) => { return { type: 'ADD_TASK', id: nextTaskId++, text, duration: duration, completed: false } } export const setDurationFilter = (duration) => { return { type: 'SET_DURATION_FILTER', duration } } export const toggleTask = (id) => { return {...
mejarc/i-got-time
src/actions/task.js
JavaScript
mit
359
'use strict'; angular.module('gc.searchResults', [ 'gc.customerStatus', 'gc.searchResultsController', 'ngGcCurrencySymbolFilter', 'ng-gc-search-results-template.html', 'templates/ng-gc-search-results-bills-template.html', 'templates/ng-gc-search-results-customers-template.html', 'templates/ng-gc-search-r...
gocardless/ng-gc-components
ng-gc-search-results-directive/ng-gc-search-results-directive.js
JavaScript
mit
818
TestCase("DataGridBody Class", { setUp: function() { this.dataGridBody = app.test.dataGridBody({}); }, tearDown: function() { delete this.dataGridBody; }, "test DataGridBody Id": function() { return true; }, "test DataGridBody doc element is a div": function() { ...
bradyhouse/house
fiddles/jquery/fiddle-0026-ScrollableDatagrid/tests/DataGridBody.js
JavaScript
mit
544
"use strict"; const debug = require("debug")("bot-express:skill"); module.exports = class SkillTestBuiltinParserDate { constructor() { this.required_parameter = { test_case: { reaction: async (error, value, bot, event, context) => { bot.collect(context.con...
nkjm/bot-express
sample_skill/test-builtin-parser-date.js
JavaScript
mit
850
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Category = mongoose.model('Category'), _ = require('lodash'); /** * Create a Category */ exports.create = function(req, res) { var category = new Category(req.body); category....
devdavidkarlsson/budget-meanjs
app/controllers/categories.server.controller.js
JavaScript
mit
2,095
require.register('zepto', function (module, exports, require) { // Zepto.js // (c) 2010, 2011 Thomas Fuchs // Zepto.js may be freely distributed under the MIT license. (function (undefined) { if (String.prototype.trim === undefined) // fix for iOS 3.2 String.prototype.trim = function () { ...
contra/nova
src/modules/zepto.nova.js
JavaScript
mit
42,093
window["IEVcAWHW-oif2-4wl2-Wyqu-CaFLySebPWlT9"]([ [1, function(require, exports, module, undefined, global) { /*@=-@nathanfaucett/has@0.0.1/src/index.js-=@*/ var isNative = require(2), getPrototypeOf = require(3), isNullOrUndefined = require(4); var nativeHasOwnProp = Object.prototype.hasOwnProperty, base...
nathanfaucett/comn
test/build1/.._.._node_modules_@nathanfaucett_has_src_index.js
JavaScript
mit
7,036
// import React from 'react'; // import ReactDOM from 'react-dom'; // import Router from 'react-router/lib/Router'; // import separately to reduce bundle size // import browserHistory from 'react-router/lib/browserHistory'; // import separately to reduce bundle size // import {Provider} from 'react-redux'; // import {c...
bitmaker-software/cisco-spark-onboarding-bot
client/scripts/app.js
JavaScript
mit
1,288
// flow-typed signature: ae2f5564b3ac7fa681265195adfe33ba // flow-typed version: <<STUB>>/react-native-compass-heading_v1.0.0/flow_v0.105.2 /** * This is an autogenerated libdef stub for: * * 'react-native-compass-heading' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encour...
Vizzuality/forest-watcher
flow-typed/npm/react-native-compass-heading_vx.x.x.js
JavaScript
mit
973
(function(exports){ const API_VERSION = 0; exports.config = { currentStatus: 'loading', defaultTimeout: 3000, errorMessage: 'Could not get this monitoring variable!', millisecondsUpdateTime: 10000, apiVersion: API_VERSION, monitoringVariables: { cpuO...
lgapontes/hey-joe
public/js/properties.js
JavaScript
mit
13,110
require( "../setup" ); var model = require( "../model.js" ); var request = require( "request" ); var autohost = require( "autohost" ); var board1 = model.board1; describe( "Autohost Integration", function() { describe( "with oldest version as default", function() { var hyped, host; before( function( done ) { h...
arobson/hyped
spec/integration/autohost.spec.js
JavaScript
mit
13,518
var mongoose = require('mongoose'); module.exports = function(address, cb) { mongoose.connect(address, cb); };
sugarjs/mongoose-sugar
lib/connect.js
JavaScript
mit
117
// 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/create/15.2.3.5-4-93.js
JavaScript
mit
929
HTMLWidgets.widget({ name: 'export_widget', type: 'output', // extract bits and pieces from NY Times svg_crowbar // https://github.com/NYTimes/svg-crowbar svg_crowbar: function(svg){ var prefix = { xmlns: "http://www.w3.org/2000/xmlns/", xlink: "http://www.w3.org/1999/xlink", svg: "...
timelyportfolio/buildingwidgets
week14/lib/export_widget-binding-0.1/export_widget.js
JavaScript
mit
5,708
var expectCLI = require('./../testbase').expectCLI; var expect = require('chai').expect; describe('quotes (CLI)', function () { it('are placed where needed', function (done) { expectCLI('quotes/data.json', 'quotes/default.csv', done); }); it('can be placed everywhere', function (done) { exp...
GazonkFoo/csvwriter
test/cli/quotes.js
JavaScript
mit
1,699
'use strict'; const settings = {}, elems = {}; let folders; /* -------------------- Localization -------------------- */ function i18n(){ document.querySelectorAll('i18n').forEach( elem => elem.textContent = chrome.i18n.getMessage(elem.textContent) ); document.querySelectorAll('*[data-i18n]').forEach( e...
Dezaimasu/cute-button
js/settings.js
JavaScript
mit
8,835
/** * Created by apache on 15-11-15. */ import React from 'react'; import StarActions from '../actions/StarActions'; import StarStore from '../stores/StarStore'; class Star extends React.Component { constructor(props) { super(props); this.state = StarStore.getState(); this.onChange = this...
Toreant/monster_web
app/components/Star.js
JavaScript
mit
1,503
var dom = require('./lib/dom'); global.window = dom.window; global.document = dom.document; window.localStorage = window.localStorage || {}; window.sessionStorage = window.sessionStorage || {}; require('../src/index.js'); var app = window.h5t.app; describe("src/index.js", function () { var assert = require('...
zswang/h5tracker
test/index.js
JavaScript
mit
1,607
// Generated by CoffeeScript 1.12.6 /* * Method context constructor */ (function() { 'use strict'; var MethodContext, specRunner; specRunner = require('./runner'); MethodContext = function(code, name, dd) { this.codeModule = code; this.dd = { harness: dd.harness, instanceNames: dd.inst...
ddry/ddry
lib/spec/context.js
JavaScript
mit
711
"use strict"; /*eslint no-unused-vars: 0*/ var React = require("react"); var RawHtml = require("../RawHtml"); var defineTableProps = require("../../util/defineTableProps"); var pluckTableProps = require("../../util/pluckTableProps"); var Table = React.createClass({ // Component API propTypes: defineTableProps()...
dschnare/mighty-mail
src/lib/components/layout/Table.js
JavaScript
mit
726
import React from 'react' import { CBadge, CCard, CCardBody, CCardHeader, CCol, CDataTable, CRow } from '@coreui/react' import usersData from '../../users/UsersData' const getBadge = status => { switch (status) { case 'Active': return 'success' case 'Inactive': return 'secondary' case 'Pen...
mrholek/CoreUI-React
src/views/base/tables/Tables.js
JavaScript
mit
4,968
search_result['4215']=["topic_0000000000000A0F_events--.html","TranscriptModel Events",""];
asiboro/asiboro.github.io
vsdoc/search--/s_4215.js
JavaScript
mit
91
var fs = require('fs'); var DownmarkStream = require('..'); var highlight = require('highlight.js'); var fm = require('front-matter'); var through = require('through2'); var options = { highlight: function (code) { return highlight.highlightAuto(code).value; }, gfm: true, tables: true, breaks: true }; f...
akiva/downmark-stream
example/front-matter.js
JavaScript
mit
704
exports.port = 8848; exports.directoryIndexes = true; exports.documentRoot = __dirname; var mockup = require('./tools/mockup'); var upload = require('./tools/upload'); var cors = require('./tools/cors'); exports.getLocations = function () { return [ { location: function(request) { ...
ecomfe/edp-showcase
pc/edp-webserver-config.js
JavaScript
mit
1,814
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* Tabulator v4.6.0 (c) Oliver Folkerd */ var Fo...
cdnjs/cdnjs
ajax/libs/tabulator/4.6.0/js/modules/format.js
JavaScript
mit
23,216
import ReactMount from './byo-react-mount'; // const build = ({tag, props, childeren}) => { // console.log(tag) // let result; // if (typeof tag === 'string') { // result = document.createElement(tag); // // for (const prop of Object.keys(props)) { // switch (prop) { // ...
mauricedb/bring-your-own-react
src/byo-react-dom.js
JavaScript
mit
1,674
'use strict'; define([], function () { return { views: ['cpPain', 'rmPain', 'busRisks'], defaultView: 'cpPain', cpPain: { type: "stacked", name: "Capacity Planning Pain Points", text: "By every measure, the more mature the organization, the less the capacity planning pain points are felt. The top perf...
Planview/rmcp
app/js/chart-data.js
JavaScript
mit
16,537
NEJ.define([ '{lib}base/klass.js', '{lib}util/dispatcher/module.js', '{pro}base/module.js', '{lib}base/element.js', '{lib}base/event.js', '{lib}util/template/tpl.js', '{lib}util/template/jst.js' ], function(_k, _m, _bm, _e, _v, _t, _j, _p) { var _pro; _p._$$BlogSettingModule = _k....
xiongxin/nej-demo
src/html/blog/setting/index.js
JavaScript
mit
802
/** * incomming message * * @param param * @constructor */ var IncommingMessage = function(option) { this.gensokyo = option.gensokyo; this.server = this.gensokyo.server; this.router = option.router; this.param = option.param; this.params = option.params; this.socket = option.socket; thi...
XadillaX/gensokyo
lib/base/marisaMessage/incomming.js
JavaScript
mit
540
import nock from 'nock' import req from 'supertest' import test from 'tape' import server from '../../server' nock('http://www.newyorker.com') .get('/popular') .replyWithFile(200, './test/fixtures/popular.html') test('server', t => { req(server) .get('/') .expect(200) .expect('Content-Type', /html/)...
mmwtsn/borowitz-index
test/integration/server.js
JavaScript
mit
473
export login from './../../components/Login/loginReducer'; export github from './../../components/Github/githubReducer';
jseminck/react-native-github-feed
src/scripts/reducers/index.js
JavaScript
mit
120
var AttrMerge = require('./filters/attr_merge'); var AttrRemove = require('./filters/attr_remove'); var Brackets = require('./filters/brackets'); var CodeAttributes = require('./filters/code_attributes'); var ControlFlow = require('./filters/control_flow'); var Controls = require('./filters/controls'); var Embeddeds = ...
slm-lang/slm
lib/template.js
JavaScript
mit
3,415
var express = require('express'); var router = express.Router(); var mongo = require('mongodb').MongoClient; var winston = require('winston'); var ObjectID = require('mongodb').ObjectID; router.get('/', function (req, res, next) { mongo.connect("mongodb://localhost:27017/exercise2", function (err, db) { if (!er...
jnssterrass/MeanCourse
Exercises/exercise_02/routes/spacecrafts.js
JavaScript
mit
2,431
export function makeDetailData(chart, detailTableSettings) { //convenience mappings var major = detailTableSettings.major; var minor = detailTableSettings.minor; var vars = chart.config.variables; //Filter the raw data given the select major and/or minor category. var details = chart.population...
RhoInc/aeexplorer
src/chart/detailTable/makeDetailData.js
JavaScript
mit
1,555
/** * Our project namespace. */ project.init = function() { /* Globally cache the jQuery reference to the document to avoid repeated lookups. * This should be used as the base of all document-wide * searches where a closer context isn't available e.g. * var $someElement = $.root.find(someSelector); */ $.root...
fffunction/sassaparilla-hillary
assets/js/vendor/application.js
JavaScript
mit
620
var http = require("http"), url = require("url"), util = require("util"), dns = require("dns"), Q = require("q"), beacon = require("./lib/beacon.js"), debug = require("debug")("beacon"); // Populate the info object var info = {}; beacon.setInfo(info); // Start the server http.createServer(func...
Misakai/beacon
server.js
JavaScript
mit
472
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = ...
cdnjs/cdnjs
ajax/libs/material-ui/5.0.0-alpha.27/node/ToggleButton/ToggleButton.js
JavaScript
mit
6,845
var rate = 1; // Default exchange rate var payments = document.getElementsByClassName('valueR'); // load all payment values var selectedCurrency = 'USD'; var substactPayoneerFees = false; var pact = {}; chrome.storage.sync.get('pact', function(option){ pact = option.pact; selectedCurrency = pact.currency; if(sel...
ThomasKranitsas/tc-locale
js/pacts.js
JavaScript
mit
2,237
/* * /MathJax-v2/localization/cdo/MathMenu.js * * Copyright (c) 2009-2018 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/l...
cdnjs/cdnjs
ajax/libs/mathjax/2.7.7/localization/cdo/MathMenu.js
JavaScript
mit
840
'use strict'; var bourbon = require('node-bourbon'); var fs = require('fs-extra'); var path = require('path'); var themeUtil = require('./util'); var versionMap = require('./version_map'); var formatPath = function(filePath) { return filePath.replace(/\\/g, '/'); }; exports.createBourbonFile = function() { var opt...
kalpak44/liferay_clean_thema
node_modules/liferay-theme-tasks/lib/bourbon_dependencies.js
JavaScript
mit
1,354
/** * Created by dd on 9/4/15. */ biolog.Medications = { PREDICATE: { _id: "patient/medication", name: "medication", nameLC: "medication", description: "a medication that a person (patient) takes or has taken in the past", subjectEtypes: ["patient"], objectEtypes: ...
biologio/biolog
packages/medications/medications.js
JavaScript
mit
6,768
export default { '_id': '6086964cae4deb1b602846da', 'type': 'form', 'tags': [], 'owner': '6038bed737595d104cfc358a', 'components': [ { 'title': 'Page 1', 'label': 'Page 1', 'type': 'panel', 'key': 'page1', 'components': [ { 'breadcrumbClickable': true, ...
formio/formio.js
test/forms/wizardWithPanel.js
JavaScript
mit
2,868
'use strict'; import winston from 'winston'; import routes from './routes/core.server.routes'; function init(app) { return new Promise(function (resolve, reject) { winston.debug('Core::Init::Start'); routes.init(app) .then(function (app) { winston.verbose('Core::Init::Success'); retu...
modern-mean/modern-mean-core
modules/core/server/core.module.js
JavaScript
mit
524
const webpack = require('webpack') const config = require('./webpack.config.js') config.plugins = config.plugins.concat([ new webpack.DefinePlugin({ 'process.env':{ 'NODE_ENV': JSON.stringify('production') } }), new webpack.optimize.UglifyJsPlugin({ compress:{ warnings: true } }) ]...
caqui/caqui-pre-dev
webpack.dist.js
JavaScript
mit
453
$.noConflict(); window.addEvent("domready", function () { new FancySettings.initWithManifest(function (settings) { // If "View All Images" is checked, enable "Hide NSFW Images" jQuery('#view_all_images').on('click', toggleViewAllImages); toggleViewAllImages(); }); }); function toggleViewAllIma...
taeram/burro
src/options_custom/settings.js
JavaScript
mit
548
$(document).ready(function(){ }); $('.addPlayers').text("Add the names of the players"); $('.playerNames').submit(function() { playerName = $("input:first" ).val(); var indexNo = localStorage.length + 1; localStorage.setItem(indexNo, playerName); }); if (localStorage.length > 0 ) { var names = "" for (var...
braunsnow/bowlingScoreJS
src/Setup.js
JavaScript
mit
508