Skip to content

Instantly share code, notes, and snippets.

@harshkn
harshkn / Roja Janeman
Created September 10, 2016 17:07
Flute Notes - Roja Janeman - Karnatic
S G R S N
S g R S N
S S G S G M D PP G(k) R
G G M G R GG MDPM G(k) R
Source : https://www.youtube.com/watch?v=3YjRdMJ24v8
@andrewmclagan
andrewmclagan / actions.js
Last active March 12, 2023 12:23
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
},
@joachimhs
joachimhs / gist:3529609
Created August 30, 2012 14:27
Ember.js rerender on window resize issue
init: function() {
var view = this;
var resizeHandler = function() {
view.rerender();
};
this.set('resizeHandler', resizeHandler);
$(window).bind('resize', this.get('resizeHandler'));
},