Skip to content

Instantly share code, notes, and snippets.

View jeffpamer's full-sized avatar

Jeff Pamer jeffpamer

View GitHub Profile
@jeffpamer
jeffpamer / gist:3eae9d46e46d472f9a2a
Last active August 29, 2015 14:21
Destructure Restructure Pick
// given this object:
var origObj = {
first_name: 'test',
last_name: 'user',
email_address: 'user@test.com',
otherThing: 1234,
oneOtherThing: 5678
};
// what's the best/coolest way to get:
@jeffpamer
jeffpamer / gist:b60387a405f84defc881
Created February 22, 2015 17:56
Basic vim-projectionist mappings for WT React project layouts
{
"client/src/js/actions/*.js": {"type": "action", "alternate": "client/src/js/stores/{}.js"},
"client/src/js/stores/*.js": {"type": "store", "alternate": "client/src/js/actions/{}.js"},
"client/src/js/components/*.js": {"type": "component"},
"client/src/js/views/*.js": {"type": "view"},
"client/src/js/mixins/*.js": {"type": "mixin"},
"README.md": {"type": "doc"}
}
@jeffpamer
jeffpamer / gist:f32b4e9b6e5aece0cfea
Last active August 29, 2015 14:11
Top 2014 Albums of 2014
for (var i = 1; i <= 2014; i++) {
console.log(i + ' Andy Stott - "Faith in Strangers"');
}
@jeffpamer
jeffpamer / alerts.md
Last active August 29, 2015 14:09 — forked from kaw2k/alerts.md

Thoughts on alerts

The basic question boils down to "Who should dictate if the alert is rendered?"

Parent controls all

In this situation, what you return from your render method is always rendered to the screen. Let's start by making a hypothetical API

Keybase proof

I hereby claim:

  • I am jeffpamer on github.
  • I am jeffpamer (https://keybase.io/jeffpamer) on keybase.
  • I have a public key whose fingerprint is 24C1 028D EB22 61AD 61C5 0316 6DB8 66A4 282F 75C4

To claim this, I am signing this object:

#######################################################
## CROSS COMPILING TRANSMISSION 2.82 FOR WD MY CLOUD ##
## MODIFIED FOR OS X HOST MACHINE ##
#######################################################
This is a guide to compile transmission 2.82 for the WD MyCloud 2/3/4 TB.
Because I didn't want to install the build tools and dependencies on my NAS I chose to
setup a cross-compiler toolchain on my x86_64 Ubuntu 12.04 machine and create a .deb package
that can be installed on the NAS. Furthermore the cross compiler can be used to compile anything for the My Cloud (printer drivers, etc.)