Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # "Understanding Python's closures". | |
| # | |
| # Tested in Python 3.1.2 | |
| # | |
| # General points: | |
| # | |
| # 1. Closured lexical environments are stored | |
| # in the property __closure__ of a function | |
| # | |
| # 2. If a function does not use free variables |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2012 François Vaux <madx+github@yapok.org> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| #!/bin/bash | |
| while : | |
| do | |
| clear | |
| git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $* | |
| sleep 1 | |
| done |
| xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1` | |
| if [ `echo -n $xcode_proj | wc -m` == 0 ] | |
| then | |
| echo "No xcworkspace/xcodeproj file found in the current directory." | |
| exit 1 | |
| fi | |
| echo "Found $xcode_proj" | |
| open $xcode_proj |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
just use GHC for OSX https://ghcformacosx.github.io
the rest of these directions are preserved for historical purposes
xcode-select --install ; brew tap homebrew/versions ; brew tap homebrew/dupes \
| #!/bin/bash | |
| # | |
| # convert-video.sh | |
| # | |
| # Copyright (c) 2013-2014 Don Melton | |
| # | |
| about() { | |
| cat <<EOF | |
| $program 2.0 of December 3, 2014 |
| CLASS_NAME = MyObject | |
| OBJS = main.o $(CLASS_NAME).o $(CLASS_NAME)Tests.o | |
| PROGRAM = a.out | |
| CFLAGS = -Wall -F$(FWPATH) | |
| LIBS = -F$(FWPATH) -framework XCTest -framework Foundation | |
| FWPATH = /Applications/Xcode.app/Contents/Developer/Library/Frameworks | |
| XCTEST = /Applications/Xcode.app/Contents/Developer/usr/bin/xctest |