##Weight goal: 72kg
##Estimate in weeks: 13w
##Weeks left: 10w
######Weight: 85.0kg
Food: 80% Good Food: fish, chicken, rice, vegetables, fruits, water 2L/d
(defun my/use-eslint-from-node-modules () | |
(let ((root (locate-dominating-file | |
(or (buffer-file-name) default-directory) | |
(lambda (dir) | |
(let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" dir))) | |
(and eslint (file-executable-p eslint))))))) | |
(when root | |
(let ((eslint (expand-file-name "node_modules/eslint/bin/eslint.js" root))) | |
(setq-local flycheck-javascript-eslint-executable eslint))))) |
var pubsub = {}; | |
(function(q) { | |
var topics = {}, subUid = -1; | |
q.subscribe = function(topic, func) { | |
if (!topics[topic]) { | |
topics[topic] = []; | |
} | |
var token = (++subUid).toString(); | |
topics[topic].push({ | |
token: token, |
import React, { PropTypes } from 'react'; | |
import { TransitionMotion, spring } from 'react-motion'; | |
/** | |
* One example of using react-motion (0.3.0) within react-router (v1.0.0-rc3). | |
* | |
* Usage is simple, and really only requires two things–both of which are | |
* injected into your app via react-router–pathname and children: | |
* | |
* <RouteTransition pathname={this.props.pathname}> |