Skip to content

Instantly share code, notes, and snippets.

🐢
Turtles all the way

Marc Harter wavded

Block or report user

Report or block wavded

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
View test.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View clientapp.704bae72.js
parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"l6Kx":[function(require,module,exports) {
module.exp
View emap-sample-state.json
{"_state":{"bingKey":"AqlRkpGMghrGLhdnu26G1wuL7bUZUB3RErr4AmGzJq-0cYhzB37qSOpe0TwhBb1P","isInitialized":true,"tourActive":false,"geocode":{"address":"64701, Harrisonville, Missouri","lng":-94.33979907949315,"lat":38.64584951161476,"zoomLevel":10,"buffer":{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-94.26738463715677,38.64584951161476],[-94.26877606036102,38.63172215474074],[-94.27289685836034,38.618137704268676],[-94.27958867119861,38.60561820301196],[-94.28859433626126,38.594644768382864],[-94.29956777089033,38.585639103320226],[-94.31208727214705,38.57894729048196],[-94.32567172261912,38.574826492482636],[-94.33979907949315,38.57343506927838],[-94.35392643636717,38.574826492482636],[-94.36751088683924,38.57894729048196],[-94.38003038809596,38.585639103320226],[-94.39100382272504,38.594644768382864],[-94.40000948778768,38.60561820301196],[-94.40670130062595,38.618137704268676],[-94.41082209862527,38.63172215474074],[-94.41221352182953,38.64584951161476],[-94.41082209862527,38.659976868488
View node-ci-build.sh
# Node build script that runs cloc, cpd, lint, test and coverage for Jenkins
#
# Outside tools include:
# jscpd: npm i jscpd -g
# cloc: npm i cloc -g
# eslint: npm i eslint -g
set -x
export NODE_ENV=production
@wavded
wavded / go-ci-build.sh
Last active Nov 22, 2018
Go Jenkins CI Script - golang
View go-ci-build.sh
#!/bin/bash
# Go build script that runs cloc, cpd, lint, vet, test and coverage for Jenkins
#
# Outside tools include:
# gocov: go get github.com/axw/gocov
# gocov-xml: go get github.com/t-yuki/gocov-xml
# go2xunit: go get bitbucket.org/tebeka/go2xunit
# jscpd: npm i jscpd -g
# cloc: npm i cloc -g
View sample.js
exports.bufferOrderFile = function (req) {
const d = exports.createDeferred()
var name
const data = []
// Capture errors but intentially resolve to undefined
const captureErAndRes = er => { log.err(er); d.resolve() }
try {
View gist:3fd800289a1dff2b9b66
if (!this.props.isInitialized) {
return (
<FlexRow>
<FlexColumn>
<EMap bingKey={this.props.bingKey} active={true} />
</FlexColumn>
</FlexRow>
)
}
@wavded
wavded / gen.js
Created Apr 23, 2014
TCO in Generators
View gen.js
function* fibGen (current, next) {
yield current
yield* fibGen(next, current + next)
}
for (var num of fibGen(0,1));
// function* fibGen (current, next) {
// ^
// RangeError: Maximum call stack size exceeded
@wavded
wavded / image format test results
Created Jan 20, 2014
Map tile format r&d, based on resolutions
View image format test results
JPEG / No Imagery / Fresh Cache
250000 - 196.5k
150000 - 212.8k
100000 - 1.2m
80000 - 1.2m
50000 - 1m
35000 - 831.1k
32000 - 735.1k
25000 - 772.8k
@wavded
wavded / commands.sh
Last active Jan 3, 2016
Misc Commands
View commands.sh
# A makeshift SMTP server that logs all messages to the console
python -m smtpd -n -c DebuggingServer localhost:25
# Spotlight search results in terminal
mdfind
You can’t perform that action at this time.