Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am troutowicz on github.
  • I am troutowicz (https://keybase.io/troutowicz) on keybase.
  • I have a public key ASC564bNVaHgC_aGGohzVqK4yzGYvMBXXWYy29tPMEBzOQo

To claim this, I am signing this object:

@troutowicz
troutowicz / class2stamp.js
Created June 10, 2015 16:49
ES6 class to stamp
import stampit from 'stampit';
import assert from 'assert';
/**
* Get object of non-enum properties
*/
function getNonEnum(target) {
const props = Object.getOwnPropertyNames(target);
const enumOnly = Object.keys(target);
let obj = {};
{
"color_scheme": "Packages/Babel/Monokai Phoenix.tmTheme",
"default_line_ending": "unix",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
@troutowicz
troutowicz / webpack-dev-server.js
Last active August 29, 2015 14:15
Launch wepack-dev-server without CLI. Provides ability to dynamically set server IP and port
'use strict';
/*
* Equivalent of:
*
* webpack-dev-server
* --config config/webpack/dev-server.config.js
* --progress
* --colors
* --host [IP]
#!/bin/bash
#
# tar wrapper that additionally creates a file of md5sums
#
# http://www.g-loaded.eu/2007/12/01/veritar-verify-checksums-of-files-within-a-tar-archive/
#
dest=$1
src=$2