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.) |
I hereby claim:
To claim this, I am signing this object:
| for (var i = 1; i <= 2014; i++) { | |
| console.log(i + ' Andy Stott - "Faith in Strangers"'); | |
| } |
| { | |
| "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"} | |
| } |
| // given this object: | |
| var origObj = { | |
| first_name: 'test', | |
| last_name: 'user', | |
| email_address: '[email protected]', | |
| otherThing: 1234, | |
| oneOtherThing: 5678 | |
| }; | |
| // what's the best/coolest way to get: |
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),| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| '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' |
| local benqDisplay = "BenQ LCD" | |
| local defaultDisplay = "Color LCD" | |
| local padding = 20 | |
| -- disable animation | |
| hs.window.animationDuration = 0 | |
| -- Quick if/else helper function | |
| function fif(condition, if_true, if_false) | |
| if condition then return if_true else return if_false end |