Skip to content

Instantly share code, notes, and snippets.

View theevocater's full-sized avatar
🐈‍⬛

Jake Kaufman theevocater

🐈‍⬛
View GitHub Profile
@theevocater
theevocater / gist:adb46e28387c0c2f2845
Created January 9, 2015 23:51
Annoyed that homebrew's version of macvim can't be found by spotlight? I have a fix!
brew linkapps
osascript -e "tell app \"Finder\" to make new alias file at POSIX file \"/Applications\" to POSIX file \"$(stat -f%Y /Applications/MacVim.app)\"" && rm /Applications/MacVim.app;
@theevocater
theevocater / compile_weirdness.rs
Last active August 29, 2015 14:06
I was messing around with closures and ran into an odd problem with lifetimes and borrowing.
// these two I just don't understand why neither works.
fn it_does_not_works() -> String {
let mut output_string = String::new();
let do_a_thing: || -> () = | | {
output_string;
};
do_a_thing();
return output_string;