Skip to content

Instantly share code, notes, and snippets.

@arvicco
arvicco / clojure.md
Created April 16, 2012 05:01
Setting Up Clojure on OS X

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

I appreciate the effort you've put into documenting this, but there are a number of inaccuracies here that need to be addressed. We get

@arvicco
arvicco / gist:1693889
Created January 28, 2012 10:32
AWS upload
response = post "https://github.com/#{info[:repos]}/downloads",
'file_size' => File.stat(info[:file]).size,
'content_type' => info[:content_type],
'file_name' => info[:name],
'description' => info[:description] || '',
'login' => info[:login],
'token' => info[:token]
upload = JSON.parse(response.body)
f = File.open(info[:file], 'rb')
DaemonKit::Application.running! do |config|
end
DaemonKit.logger.debug "Making some FFI calls"
require 'ffi'
module HelloWin
extend FFI::Library