Bruno Antunes sardaukar

View gist:9154697
1 2 3 4 5 6 7 8 9 10
function love.load()
-- our tiles
tile = {}
for i=0,3 do -- change 3 to the number of tile images minus 1.
tile[i] = love.graphics.newImage( "tile"..i..".png" )
end
 
-- the map (random junk + copy and paste)
map={
{ 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0},
View .osx
1 2 3 4 5 6 7 8 9
#!/usr/bin/env bash
 
# ~/.osx — http://mths.be/osx
 
# Ask for the administrator password upfront
sudo -v
 
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
View programming-achievements.md

Learn a variety of programming paradigms

  • Write a program in assembly language
  • Write an application in a functional language
  • Write an application in an object-oriented language
  • Write an application in a prototype-based language
  • Write an application in a logic programming language
  • Write an application using the Actor model
  • Write an application in Forth
  • Write an application in Lua
View gist:8598858
1 2 3 4
def on_subdomain name, &block
rack_test_session.instance_variable_set :@default_host, "#{name}.example.org"
yield
end
View Gemfile
1 2 3
source 'https://rubygems.org'
 
gem 'nokogiri'
View gist:1724049
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
### BEGIN INIT INFO
#
# Provides : resque-env
# Required-Start :
# Required-Stop :
# Default-Start : 2 3 4 5
# Default-Stop : 0 1 6
# Short-Description : Resque worker via init.d (assumes you have Ruby, and a plugin to allow wildcards in queue names)
# Description : see Short-Description, brah
Something went wrong with that request. Please try again.