Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View njj's full-sized avatar
:octocat:

Nick njj

:octocat:
  • Peerspace
  • Florida
View GitHub Profile

Keybase proof

I hereby claim:

  • I am njj on github.
  • I am njj (https://keybase.io/njj) on keybase.
  • I have a public key ASDwM-NHF5Hq1PZJ4L9PoCV_QAx1yGH8Ogl5Dlk49pkyeAo

To claim this, I am signing this object:

@njj
njj / test.blog.md
Last active September 2, 2017 03:04
blog

Foo

  • Bar
  • Baz
(map (fn [i] (+ i 2)) [1 2 3])
@njj
njj / actions.js
Created August 24, 2016 15:02 — forked from andrewmclagan/actions.js
react-redux-universal-hot-example
export function login(loginHandle, password) {
return {
types: [LOGIN_REQUEST, LOGIN_SUCCESS, LOGIN_FAILURE],
promise: (api) => api.post('/auth/login', { login: loginHandle, password }).then(response => {
setAuthCookie(response.token); // side effect pre success dispatch
return response;
}),
then: (response) => {
postLoginRedirect(browserHistory.push, response.user, response.organisation); // side effect post success dispatch
},
@njj
njj / Functional-Programming.md
Last active December 10, 2015 16:22 — forked from ktilcu/Functional-Programming.md
Functional programming is actually good for javascript developers

Rules

  • no side effects (function can't rely on anything not provided to it)
  • inputs and outputs

In Practice

  • Nested functions are always an indication of complexity

Creates Functions that are

  • Easy to read
  • Easy to reuse
@njj
njj / foo.md
Last active August 29, 2015 14:26
Whiskey!Second

Second

Bacon ipsum dolor amet shoulder kielbasa tongue turkey ball tip short loin filet mignon chicken beef ribs cupim boudin alcatra ground round. Tail capicola short ribs rump, swine kevin filet mignon fatback. Cupim porchetta jowl hamburger, pork belly flank fatback tongue chicken turducken pastrami ribeye meatloaf. Bacon t-bone short ribs, frankfurter meatball jerky beef pork chop andouille beef ribs short loin chuck. Pork chop biltong ham hock pork belly beef. Shoulder kielbasa landjaeger ball tip turkey leberkas. Meatloaf flank turducken beef cow landjaeger bresaola.

Shank bresaola spare ribs meatball frankfurter jowl tenderloin. Venison porchetta beef, strip steak short loin brisket short ribs cow alcatra bresaola kielbasa sirloin ground round jerky. Alcatra turducken pork chop, pork loin sirloin meatball leberkas spare ribs. T-bone picanha turkey, ribeye flank strip steak prosciutto tail boudin ground round.

Porchetta ham hock hamburger tongue ground round rump, andouille turkey bresaola past

@njj
njj / Whiskey!First.md
Created August 2, 2015 14:34
Whiskey!First

First

Bacon ipsum dolor amet shoulder kielbasa tongue turkey ball tip short loin filet mignon chicken beef ribs cupim boudin alcatra ground round. Tail capicola short ribs rump, swine kevin filet mignon fatback. Cupim porchetta jowl hamburger, pork belly flank fatback tongue chicken turducken pastrami ribeye meatloaf. Bacon t-bone short ribs, frankfurter meatball jerky beef pork chop andouille beef ribs short loin chuck. Pork chop biltong ham hock pork belly beef. Shoulder kielbasa landjaeger ball tip turkey leberkas. Meatloaf flank turducken beef cow landjaeger bresaola.

Shank bresaola spare ribs meatball frankfurter jowl tenderloin. Venison porchetta beef, strip steak short loin brisket short ribs cow alcatra bresaola kielbasa sirloin ground round jerky. Alcatra turducken pork chop, pork loin sirloin meatball leberkas spare ribs. T-bone picanha turkey, ribeye flank strip steak prosciutto tail boudin ground round.

Porchetta ham hock hamburger tongue ground round rump, andouille turkey bresaola pastr

@njj
njj / assets.json
Last active August 29, 2015 14:24
{
"images": [
{
"src": "../images/designs/ar.png",
"storeURL": "http://limitlessactivewear.mysimplestore.com/products/limitless-mag"
},
{
"src": "../images/designs/arrow.png",
"storeURL": "http://limitlessactivewear.mysimplestore.com/products/limitless-arrow"
},
@njj
njj / justicen-ES6.md
Last active August 29, 2015 14:23
justicen-ES6

ES6

It's about time I write a post about ES6 and the features I'm most excited about. I was an early adopter of ES6 in most of my personal projects and have been promoting it heavily at the office for quite some time. Being able to watch the progress of [TC39][TC39] has been really exiting, and I feel fortunate that they have opened up the [es-discuss][discuss] mailing list to allow people like myself to get a peek at what's going on. The newest version of JavaScript is being called "the best JavaScript we've ever had". The features we are being given are substantial, and greatly change the future of how JavaScript will be written. Thus far, from my perspective, ES6 has been mostly adopted with open arms. While a few features are being critiqued for various reasons, I'd like to use this post to highlight what I find good rather than focusing on potential bad parts (maybe another post?).

I'm going to highlight a few of the new features that I have been using thanks to awesome transpilers like [B

@njj
njj / justicen-start and finish.md
Created May 19, 2015 23:27
justicen-start and finish

Start and Finish..

Occasionally, I come up with what I believe to be a genius idea. Being a software developer I immediately go into creation mode and try to figure out how I can make this idea a reality (given that most of these ideas are around software). This is exhilarating and quite possibly the most enjoyable process I can think of. I have a healthy (or maybe unhealthy) addiction to creating things. The process of building something new is extremely exciting and I love patching together all of the beginnings of what-could-be a viable product.

This is usually where I fall short. I get so excited and start putting all the pieces together and then end up with a shell of "what-could-be". I may get really into functionality or design, or whatever, but either way it'll be decent for the most part. Then I stop, or something else catches my attention. These projects lay dormant, unfinished and full of potential.

Ironically enough (or maybe not ironic?), I've found myself r

ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$reset_color%}$fg[white]]%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN="]%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY_PREFIX="%{$fg[yellow]%}("
ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN