Instantly share code, notes, and snippets.


Michael Duane Mooring mikeumus

View GitHub Profile
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 {
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: [
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
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)
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
View table-test-helper.go
package gopol
import (
// "fmt"
// "io"
// "log"
// "bytes"
// "fmt"
// "log"
// "bufio"
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
# 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)