brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/
is a symlink to /usr/local/Cellar/redis/x.y.z
(e.g., 2.8.7
)
#! /usr/bin/env python | |
import os | |
import tempfile | |
import shutil | |
import tarfile | |
import sys | |
import subprocess | |
import optparse |
/* FitbitDownload.gs | |
This script will access your Fitbit data via the Fitbit API and insert it into a Google spreadsheet. | |
The first row of the spreadsheet will be a header row containing data element names. Subsequent rows will contain data, one day per row. | |
Note that Fitbit uses metric units (weight, distance) so you may wish to convert them. | |
Original script by [email protected] | |
Original instructional video by Ernesto Ramirez at http://vimeo.com/26338767 | |
Modifications by Mark Leavitt (PDX Quantified Self organizer) www.markleavitt.com | |
Further Modifications by Christian Stade-Schuldt blog.tafkas.net | |
Here's to your (quantified) health! |
--- | |
version: 1 | |
disable_existing_loggers: False | |
formatters: | |
simple: | |
format: "%(name)-20s%(levelname)-8s%(message)s" | |
handlers: | |
console: | |
class: logging.StreamHandler | |
level: DEBUG |
# To Setup: | |
# 1) Save the .git-completion.bash file found here: | |
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash | |
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect: | |
# Git branch bash completion | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
# Add git completion to aliases |
Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv
instead. If you are looking for the previous version of this document, see the revision history.
$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9
/* Gobal settings */ | |
var calId = "YOUR_CALENDAR_ID"; | |
var alertEmail = 'YOUR_EMAIL_ADDRESS'; | |
var sheetName = 'Holiday'; | |
/* | |
* FIXME: handle rows being deleted from the spreadsheet - right now they will | |
* stay in the calendar if that happens | |
*/ |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> body { font-family: sans-serif; } </style> | |
<body> | |
<script src="require.js"></script> | |
<script> | |
require.config({ | |
paths: { | |
d3: "http://d3js.org/d3.v3.min" | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.