Skip to content

Instantly share code, notes, and snippets.

Jeff Pamer jeffpamer

Block or report user

Report or block jeffpamer

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 mycloud.transmission.osx.text
#######################################################
## 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.)
View keybase.md

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:

View 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

@jeffpamer
jeffpamer / gist:f32b4e9b6e5aece0cfea
Last active Aug 29, 2015
Top 2014 Albums of 2014
View gist:f32b4e9b6e5aece0cfea
for (var i = 1; i <= 2014; i++) {
console.log(i + ' Andy Stott - "Faith in Strangers"');
}
@jeffpamer
jeffpamer / gist:b60387a405f84defc881
Created Feb 22, 2015
Basic vim-projectionist mappings for WT React project layouts
View gist:b60387a405f84defc881
{
"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:3eae9d46e46d472f9a2a
Last active Aug 29, 2015
Destructure Restructure Pick
View gist:3eae9d46e46d472f9a2a
// 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 / 0_reuse_code.js
Created Feb 18, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jeffpamer
jeffpamer / README.md
Last active Feb 18, 2016
Reduce boilerplate using react-redux connect decorator and reselect selectors
View README.md

When using the connect decorator (https://github.com/reactjs/react-redux) in conjunction with selectors (https://github.com/reactjs/reselect) a common pattern in your components appears:

import { connect } from 'react-redux';
import { selectCustomer } from 'stores/customer';
import { selectOrders, selectDeliveries } from 'stores/order';

@connect((state) => ({
    customer: selectCustomer(state),
    orders: selectCustomer(state),
View atom-keymap.cson
'atom-text-editor.vim-mode:not(.insert-mode)':
'space': ' '
'space p': 'fathom-finder:toggle-file-finder'
'atom-text-editor.vim-mode:not(.insert-mode)[data-grammar~="clojure"]':
'space r': 'proto-repl:toggle'
'space e': 'proto-repl:exit-repl'
'space shift-b': 'proto-repl:execute-block'
'space b': 'proto-repl:execute-top-block'
'space s': 'proto-repl:execute-selected-text'
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
You can’t perform that action at this time.