Skip to content

Instantly share code, notes, and snippets.

Mark Luetke luetkemj

Block or report user

Report or block luetkemj

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
acarballo-cs / eslintrc
Last active Nov 17, 2018
An eslint Shareable Config for JavaScript Standard Style
View eslintrc
parser: "babel-eslint"
extends: [
browser: true
jsx: true
bahmutov / Docker shell
Last active Jan 26, 2020
A personal cheat sheet for running local Node project in a Docker container
View Docker shell
# See list of docker virtual machines on the local box
$ docker-machine ls
default * virtualbox Running tcp:// v1.9.1
# Note the host URL - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
gaearon / slim-redux.js
Last active Jan 13, 2020
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
thebyrd / example.js
Last active Dec 25, 2015
A method that will inject npm modules listed as parameters in a constructor.
View example.js
function SomeConstructor (request, npm, monk) {
// do something with the injected node modules
var instance = require('./injector')(SomeConstructor) // create a new instance with dependencies injected
View tyga.js
// Make it Nasty
function increment (i) {
i ^= (i & ~-~i) | (~i & -~i)
return i
thebyrd / magicMethod.js
Last active Dec 19, 2015
Adds jQuery style getters and setters to a given constructor function.
View magicMethod.js
Function.prototype.method = function (name, func) {
this.prototype[name] = func;
return this;
var getParamNames = function (func) {
var funStr = func.toString()
return funStr.slice(funStr.indexOf('(')+1, funStr.indexOf(')')).match(/([^\s,]+)/g)
dypsilon /
Last active Jan 20, 2020
A badass list of frontend development resources I collected over time.
View wp-query-ref.php
// This gist is now maintained on github at
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
zackthehuman / hexagons.js
Created Feb 20, 2012
Drawing a hexagonal grid with HTML canvas
View hexagons.js
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Canvas Hexagonal Map</title>
<style type="text/css">
canvas {
margin:0 auto;
ScottPhillips / .htaccess
Created Feb 2, 2012
Common .htaccess Redirects
View .htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php
#Redirect an entire site:
Redirect 301 /
#Redirect an entire site to a sub folder
Redirect 301 /
You can’t perform that action at this time.