Skip to content

Instantly share code, notes, and snippets.


Michael Duane Mooring mikeumus

Block or report user

Report or block mikeumus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mikeumus / deep-search.js
Last active Sep 17, 2018
WiP - Find a value and the deep path to it in a object.
View deep-search.js
function pullKeys(obj, results, path) {
var breadcrumb = path;
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
// path = breadcrumb ? breadcrumb ? path : prop : path;
// console.log('\n\n path: \n', path, '\n\n');
if (typeof obj[prop] === "object") {
path = path ? breadcrumb ? breadcrumb += `.${prop}` : path += `.${prop}` : prop;
pullKeys(obj[prop], results, path);
} else {
mikeumus / styles.less
Last active Aug 16, 2018
atom editor styles
View styles.less
* Your Stylesheet
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
View .hyper.js
plugins: [
mikeumus /
Created Apr 28, 2018
missing rc packages needed
meteor npm install --save @babel/runtime simpl-schema react lodash accounting-js later i18next react-router-dom react-router history path-to-regexp query-parse immutable react-dom handlebars nodemailer-wellknown node-fetch sharp connect body-parser connect-route libphonenumber-js transliteration slugify node-geocoder fibers deep-diff prerender-node cors express apollo-server-express ramda cuid es6-error graphql-tools graphql-iso-date graphql moment shopify-api-node authorize-net braintree paypal-rest-sdk stripe shippo flatten-obj twilio nexmo
mikeumus / Uncaught Error: Cannot find module 'http'
Created Apr 26, 2018
Reaction Commerce 1.11.0 upgrade error: Uncaught Error: Cannot find module 'http'
View Uncaught Error: Cannot find module 'http'
modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:241 Uncaught Error: Cannot find module 'http'
at makeMissingError (modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:241)
at require (modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:251)
at format-record.js (modules.js?hash=a6871893979f0726a13eee26eb39fd11ef2cb057:113177)
at fileEvaluate (modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:353)
at require (modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:248)
at index.js (modules.js?hash=a6871893979f0726a13eee26eb39fd11ef2cb057:113108)
at fileEvaluate (modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:353)
at require (modules-runtime.js?hash=9f9bb5e055614ddf4eb3e743737b7a5b3cfd9d34:248)
at main.js (modules.js?hash=a6871893979f0726a13eee26eb39fd11ef2cb057:48886)
mikeumus / Products.json
Last active Mar 9, 2018
Trying to import a product and it's many options.
View Products.json
{ "_id" : "Faux-Wood-Blinds", "title" : "Faux Wood Blinds", "shopId" : "J8Bhq3uTtdgwZx3rz", "ancestors" : [], "createdAt" : Date( 1396558012411 ), "description" : "Moisture Resistant\nHot and steamy? Faux wood is great for bathrooms, kitchens, and garages.\nSuper Durable\nDoes your home feel like a circus sometimes? Scratch and moisture-resistant PVC can stand up to almost anything.\nBudget Friendly, On a budget? No worries. For the same look, faux wood blinds cost less than real wood blinds. Easy to Clean, An easy wipe down is all that's needed to make your oh-so-pretty blinds sparkle.", "handle" : "example-product", "hashtags" : [ "rpjCvTBGjhBi2xdro", "cseCBSSrJ3t8HQSNP" ], "price" : { "range" : "12.99 - 19.99", "min" : 12.99, "max" : 19.99 }, "isVisible" : true, "isLowQuantity" : false, "isSoldOut" : false, "isBackorder" : false, "metafields" : [ { "key" : "Material", "value" : "Cotton" }, { "key" : "Quality", "value" : "Excellent" } ], "pageTitle" : ".", "type" : "simple", "updatedAt" : Date( 151303495747
mikeumus / table-test-helper.go
Last active Feb 13, 2018
An attempt at a helper function for table driven tests in go.
View table-test-helper.go
package gopol
import (
// "fmt"
// "io"
// "log"
// "bytes"
// "fmt"
// "log"
// "bufio"
mikeumus / .bashrc
Last active Dec 20, 2017
Mikeumus' .bashrc scripts
View .bashrc
function gitRe() {
git st
git co develop
git pl origin develop
# Assumes Jest
function deJ() {
node --debug-brk ./node_modules/bin/jest.js -i --watch
mikeumus /
Last active Aug 31, 2018
A script to run on new mahcines to setup git aliases -
# Run this script like this:
# curl | sh
cat > ~/.gitconfig <<EOF
name = mikeumus
email =
co = checkout
View ng-cli-v1.0.3+_ERROR
Uncaught RangeError: Maximum call stack size exceeded
at http://localhost:9000/portal/assets/dist/vendor.bundle.js:124400:56
at Array.forEach (native)
at DirectiveResolver._mergeWithPropertyMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:124400:39)
at DirectiveResolver.resolve (http://localhost:9000/portal/assets/dist/vendor.bundle.js:124381:29)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:125095:64)
at CompileMetadataResolver._getEntryComponentMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:125804:45)
at http://localhost:9000/portal/assets/dist/vendor.bundle.js:125131:59
at (native)
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (http://localhost:9000/portal/assets/dist/vendor.bundle.js:125131:22)
You can’t perform that action at this time.