Skip to content

Instantly share code, notes, and snippets.

@jamiely
jamiely / gist:10117075
Created April 8, 2014 12:29
Programming Books
http://cs.brown.edu/~sk/Publications/Books/ProgLangs/2007-04-26/
<!DOCTYPE html />
<html>
<head>
<style>
#board2 {
border: 1px black solid;
display: inline-block;
}
#board2 .cell {
  1. Install Vim
  2. Find Vim Home via :echo $HOME
  3. Put _gvimrc in that location: https://gist.github.com/jamiely/6436529
  4. Install vundle in $HOME\vimfiles\bundle\vundle
  5. Use the following vundle options:
  • Note to call vundle#rc with the following path call vundle#rc("~/vimfiles/bundle")
@jamiely
jamiely / _gvimrc
Created September 4, 2013 12:54
For use on windows
# Windows-specific
color desert " Default to desert as a last resort
color Tomorrow-Night-Bright
set guifont=Inconsolata:h20
" Creates a right-hand margin
:set colorcolumn=80
@jamiely
jamiely / setup.md
Last active December 20, 2015 23:09

Windows Setup

  1. Install Chocolatey.

  2. Install programs using Chololatey

    cinst GoogleChrome
    cinst ConsoleZ
    cinst virtualbox

cinst vagrant

ruby -run -e httpd . -p 5000
@jamiely
jamiely / probability.rb
Last active December 16, 2015 23:21 — forked from nmische/probability.rb
input = "If you are self-motivated, wow, this world is tailored for you. The boundaries are all gone. But if you're not self-motivated, this world will be a challenge because the walls, ceilings and floors that protected people are also disappearing. That is what I mean when I say \"it is a 401(k) world.\" Government will do less for you. Companies will do less for you. Unions can do less for you. There will be fewer limits, but also fewer guarantees. Your specific contribution will define your specific benefits much more. Just showing up will not cut it. - T. Friedman".downcase
pair = "ou"
third = "r"
pairs = (0..input.length-2).inject({}) do |h,i|
key, val = input[i,2], input[i + 2]
h[key] = {} unless h[key]
h[key][val] = (h[key][val] || 0) + 1 if val
h
end

Intro

I wanted to try out the MonoGame framework, which allows for creating cross-platform games based on the XNA API. It wasn't straightforward for me to run a Mac example (on OS X Mountain Lion). There were a number of steps I had to go through to get things working, including combing through forum posts. The official instructions didn't seem to work, or I couldn't find the most recent instructions. It's for situations like these I wish I had the foresight to journal my progress so that others don't get tripped up. Here are instructions I followed in case someone finds them useful.

Steps

  1. Install Xamarin Studio and the specified dependencies (mono, gtk+).
  2. Install the MonoGame project template for Xamarin Studio
  3. Install XCode from the Mac App Store.