An increasing part of the population is overweight and obese in Australia. Two main factors are the cause of this:
- less physical exercise
- more high-energy foods are consumed
I would like to concentrate in my nudge challenge of the food consumption
_snippets: snippets | |
ln -s $(shell pwd)/$< $(HOME)/.vim/snippets | |
.vimrc: vimrc | |
mkdir -p $(HOME)/.vim | |
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
ln -s $(shell pwd)/$< $(HOME)/$@ | |
install: .vimrc snippets | |
vim +PluginInstall +qall |
# The default hostname to display in the shell prompt. Maybe override this | |
# later for specific hosts. | |
# http://www.gentoo.org/doc/en/zsh.xml | |
# remove "/" from WORDCHARS to that path segments are considered as words | |
# when editing the command line. | |
DISABLE_AUTO_UPDATE="true" | |
WORDCHARS=${WORDCHARS:s@/@} | |
export ZSH=$HOME/.oh-my-zsh |
# check if a mail has interesting content for me based on a keyword | |
# search | |
SHELL=/bin/sh | |
PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin:/usr/sbin" | |
TESTDIR=/tmp/procmailtest | |
MAILDIR=${TESTDIR} | |
LOGFILE=${TESTDIR}/Proctest.log | |
LOGABSTRACT=all | |
VERBOSE=yes |
[buildout] | |
find-links = | |
http://dist.plone.org | |
http://download.zope.org/ppix/ | |
http://download.zope.org/distribution/ | |
http://effbot.org/downloads | |
parts = zope2 | |
instance | |
fixup |
#!/usr/bin/env python | |
# Manages links to a project directory | |
import optparse | |
import os.path | |
import sys | |
DEFAULTHOME = os.path.join(os.environ['HOME'], 'projects') | |
-- most things copied from: | |
-- http://haskell.org/haskellwiki/Xmonad/Config_archive/31d1's_xmonad.hs | |
import XMonad | |
import qualified XMonad.StackSet as W | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.EwmhDesktops | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.ManageHelpers |
#!/bin/bash | |
# | |
# Rename to `post-checkout`, make it executable and stick it into .git/hooks/ | |
# | |
PREVIOUS_HEAD=$1 | |
NEW_HEAD=$2 | |
BRANCH_SWITCH=$3 | |
NEW_BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
if [[ $NEW_BRANCH =~ bug_[[:digit:]]+ ]] |
{-# LANGUAGE TemplateHaskell #-} | |
import Test.QuickCheck | |
import Test.QuickCheck.All | |
import Data.List | |
import Data.List.Split | |
-- | |
-- since lists are homogenous, we'll need something which can resemble | |
-- a tree | |
-- |
#!/usr/bin/env /usr/bin/python3 | |
# | |
# Follows links from a main page and downloads subsequent links config. | |
# The script was written for a specific site, so don't wonder why all | |
# selectors are hard coded. | |
# | |
from lxml import html | |
from lxml import etree | |
import requests | |
import sys |