Skip to content

Instantly share code, notes, and snippets.

View JRJurman's full-sized avatar

Jesse Jurman JRJurman

View GitHub Profile
@JRJurman
JRJurman / django-install.md
Last active September 10, 2015 01:27 — forked from kocsenc/osx-django.md
Installing Django

Install Django on OS X or Windows

For OSX

Django can be tricky to install on OS X if you don't use the appropriate tools. I am using OS X 10.10 but any lower version should work.

NOTE: I assume you have NOT tried to install Python 3 in some other way, if so delete as much as you can (DO NOT DELETE PYTHON 2, THIS IS REQUIRED FOR YOUR SYSTEM TO RUN PROPERLY).

  1. Install homebrew by running the following:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  2. brew doctor This will show you if everything is gucci. If it's not cool, then attempt to fix the issues.
#birthday.rb
birthdays_taken = []
doubles = false
while( !doubles ) do
if birthdays_taken.include?(y=rand(365))
doubles = true
end
birthdays_taken << y
end