Skip to content

Instantly share code, notes, and snippets.

View nuba's full-sized avatar

Nuba Princigalli nuba

View GitHub Profile
@frederikaalund
frederikaalund / store.directive.ts
Created June 10, 2017 14:20
A Directive to Bind @angular-redux/store with both Template-driven and Reactive Forms
import { EventEmitter, Directive, Input, AfterViewInit, Output, OnDestroy } from '@angular/core';
import { NgForm, FormGroup } from '@angular/forms';
import { NgRedux } from '@angular-redux/store';
import { fromJS, is } from 'immutable';
import { AppState, ActionTypes } from '../store';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
function isSame(a: any, b: any) {
return is(fromJS(a), fromJS(b));
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active May 3, 2024 12:32
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@brianleroux
brianleroux / web-based-diagramming-tools.md
Created September 8, 2012 19:37
I asked about web based diagramming tools on twitter. Ppl answered!
@miyagawa
miyagawa / gist:1912431
Created February 26, 2012 02:53
How to represent Links in REST

How to embed HATEOAS/Link inside JSON

HTTP Headers

For HTTP headers it's quite straightforward: draft-nottingham-http-link-header defines this.

Link: <http://example.com/>; rel="previous"; titile="Previous chapter"
@mamund
mamund / gist:794419
Created January 25, 2011 02:39
JSON Link Standardization Examples
/* some suggestions on implementing hyperlinks in json */
// 5988-style (http://tools.ietf.org/html/rfc5988)
{ "link" :
{
"href" : "...",
"rel" : "...",
"hreflang" : "...",
"media" : "...",
"title" : "...",