- 397g tin of sweetened condensed milk. Don't confuse this with evaporated milk.
- 200ml milk
- 1kg sugar
- A piece of butter around the size of a walnut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin | |
# Setup the prompt so that it shows the current branch when in a git directory. | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
function setup_prompts_for_git | |
{ | |
local BLUE="\[\e[0;34m\]" | |
local RED="\[\e[0;31m\]" | |
local YELLOW="\[\e[0;33m\]" | |
local PURPLE="\[\e[0;35m\]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export FLEX_HOME=/Users/mnem/Developer/Frameworks/flex/4.5.1.21328 | |
launchctl setenv FLEX_HOME $FLEX_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils | |
{ | |
/** | |
* Simple class to shuffle items in arrays using a modern Fisher–Yates shuffle as described | |
* by Richard Durstenfeld in ACM volume 7, issue 7: "Algorithm 235: Random permutation". | |
* | |
* Wikipedia: http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle | |
* | |
* | |
* Author: David Wagner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* NSMutableArray+Shuffle.h | |
* | |
* (c) Copyright 2011 David Wagner. | |
* | |
* Complain/commend: http://noiseandheat.com/ | |
* | |
* | |
* Licensed under the MIT license: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getSize(a):4 | |
getSize(b):4 | |
getSize(TestClass):880 | |
getSize(this):428 | |
getSize(a):4 | |
getSize(aa):4 | |
getSize(b):4 | |
getSize(TestClass):884 | |
getSize(this):428 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mnemlog(message): | |
import datetime | |
mnemlog = open("/Users/mnem/mnemlog","a+",0) | |
mnemlog.write(str(datetime.datetime.now()) + " " + message + "\n") | |
mnemlog.close() | |
mod = __import__("__builtin__"); | |
mod.mnemlog = mnemlog | |
mnemlog("It has been done") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################ | |
# Uncomment if you want the script to always use the scripts | |
# directory as the folder to look through | |
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPOSITORIES=`pwd` | |
IFS=$'\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Emulate pbcopy and pbpaste for copying to and from the pasteboard/clipboard | |
# | |
# via: http://whereswalden.com/2009/10/23/pbcopy-and-pbpaste-for-linux/ | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo Tilde:~ | |
echo HOME:$HOME | |
if [ `whoami` != 'root' ]; then | |
sudo $0 $* || exit 1 | |
fi |