Skip to content

Instantly share code, notes, and snippets.

View bcj's full-sized avatar

Brendan Curran-Johnson bcj

View GitHub Profile
@bcj
bcj / gist:548b3038b7794dca86b4
Created February 23, 2015 15:22
Arbitrary call order in Julia
function join_function(a, b :: Union(String, Char))
# Julia's is a bit too permissive on types
join(a, b)
end
list = [1, 2, 3]
separator = ", "
macro call(symbol_a, symbol_b, symbol_c)
a, b, c = eval(:( $symbol_a, $symbol_b, $symbol_c))
@bcj
bcj / imessage
Created February 10, 2014 06:03
Stopping iMessage from ruining you life
=======================================
If you switch from an iPhone to a non-Apple device, Apple will punish you by making texts from iPhone users silently fail to deliver. This is a guide to preventing this from happening to you (or if it's already too late, ending the madness).
I haven't yet switched/I still have my iPhone
=============================================
Then, there is still time. You can make this transition painless. On your iPhone, open the `Settings` app, and scroll down until you see an item labeled `Messages`. Tap on `Messages` and you will be taken to the messages-related settings. The first item should be labeled `iMessages`. Its slider is probabbly green with a little `1`. If it is, tap the slider so that it is turned off (all white with a little `0` on the right-hand side). With `iMessage` turned off, it should be safe to switch to a new phone. These instructions assume you are running iOS 7.
I no longer have my iPhone