I hereby claim:
- I am spicydonuts on github.
- I am spicydonuts (https://keybase.io/spicydonuts) on keybase.
- I have a public key whose fingerprint is EDC9 7025 F5A7 4824 09F6 B7A4 E996 4B5E AA32 30BB
To claim this, I am signing this object:
exports.add2Ints = function(a, b) { | |
return a + b; | |
}; |
I hereby claim:
To claim this, I am signing this object:
const Pricing = React.createClass({ | |
// ... | |
render() { | |
// ... | |
return ( | |
<div className="pricing" style={{ opacity: purchasing ? 0.25 : '' }}> | |
{purchaseError ? ( | |
<div className="purchase-complete"> | |
<h2 style={{ color: 'hsl(10, 50%, 50%)' }}>Oops!</h2> | |
<p> |
module Main where | |
import Prelude (Unit, bind, pure, show, unit, ($), (<$>), (<>)) | |
import Control.Monad.Eff (Eff) | |
import Control.Monad.Eff.Console (CONSOLE) | |
import Control.Monad.Eff.Exception (EXCEPTION) | |
import Data.Either (Either(Left, Right)) | |
import Data.Foreign (F) | |
import Data.Foreign.Class (class IsForeign, readJSON, readProp) | |
import Data.String (joinWith, split) |
// usage: | |
openToggler(getElement('#some-element'), getElement('#some-element-dropdown')); | |
// code: | |
function openToggler(clicker, target) { | |
if (!clicker || !target) return; | |
var setter = classSetter(target, 'open'); | |
var opened = false; | |
var clickHandler = function (e) { | |
opened = !opened; |
export SSHKEY=[path to ssh key] | |
export CFDOMAIN=[xyz.com] | |
mkdir -p logs | |
rm -f filelist | |
alias do_ftp='sftp -q -b - -i $SSHKEY -P 2222 $CFDOMAIN\@[email protected]' | |
echo 'ls -1' | do_ftp | grep '^logs-' | awk '{print "get " $0 " logs/ \nrm " $0}' | do_ftp |
import fetch from 'isomorphic-fetch' | |
const setupRequestOptions = (options = {}, overrideMethod) => { | |
if (overrideMethod) options.method = overrideMethod | |
if (!options.headers) options.headers = {} | |
options.credentials = 'same-origin' | |
return options | |
} | |
const setupJsonRequestOptions = (options, overrideMethod) => { |
I'm really confused about environment variables right now.
PORT=1234 node .
it ignores PORT and uses the default.PORT=1234 node .
again, it works and runs on 1234
.PORT=4321 node .
it ignores the new PORT and continues to run on 1234
.4321
.process.env
, like NODE_ENV
and the app's version number which I put there when it first startsPORT=xxxx node
and then interactively ask it what process.env.PORT
islater... omg, babel was caching the env variables in /tmp/.babel.json
and checking out new code wasn't resetting it
Babel's driving me crazy right now. 6 has been a huge pain to set up (I haven't gotten it working with this pr
module Main where | |
import Control.Monad.Eff | |
import Data.Array (replicate, (!!), updateAt) | |
import Data.Maybe.Unsafe (fromJust) | |
import Data.Nullable (toMaybe) | |
import Prelude | |
import DOM.HTML (window) | |
import DOM.HTML.Document (body) |