Skip to content

Instantly share code, notes, and snippets.

@mojombo
mojombo / comments.xml
Created January 2, 2011 01:58
XML Comments Suck
<container>
<thing />
<!--
I think this is the least horrible way to format XML comment
blocks. Even though it wastes two lines, at least it doesn't
involve tons of indenting or horribly misaligned edges.
-->
<fooblah size="10" count="alot" />
</container>
# This is a config file for ProxyMachine. It pulls the username out of
# the Git stream and can proxy to different locations based on that value
# Run with `proxymachine -c examples/git.rb`
class GitRouter
# Look at the routing table and return the correct address for +name+
# Returns "<host>:<port>" e.g. "ae8f31c.example.com:9418"
def self.lookup(name)
puts "Proxying for user #{name}"
"localhost:9418"
Sandwiches:
* Jay's Cheesesteaks (many seitan flavors)
* Ike's Place (tons of amazing veggie sandwiches)
* Toaster Oven (Potbelly's clone)
Mexican:
* Papalote (their house salsa is the best IN THE WORLD)
* El Buen Sabor (my favorite super veggie burrito)
* Taqueria Cancún (classic mission burrito; open till 2am on fri/sat, 1am other days, I think)
#include <iostream>
using namespace std;
#include "stog_pokazivaci.h"
//#include "stog_polje.h"
int kraj_rek;
bool print;
@mojombo
mojombo / FUGPL.txt
Created September 25, 2008 19:07 — forked from schacon/FUGPL.txt
The FUGPL License
===================
Free software should be truly free. The GPL and its derivatives infringe
upon the freedoms of the licensee by forcing distribution of code with
distribution of software. This license is a protest against anti-business,
anti-freedom licenses such as the GPL.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
function INTERNETS() {
# Fucking computer forgets how to connect to unsecured & WEP networks
# after going to sleep. I GET. WPA IS BETTER. SOMETIMES ITS NOT MY
# FUCKING CHOICE AND I STILL WANT INTERNET. (Reloads the wireless
# module & restarts the wireless daemon.)
sudo rmmod wl
sudo /etc/rc.d/wicd stop
sudo modprobe wl
sudo /etc/rc.d/wicd start
}

Keybase proof

I hereby claim:

  • I am mojombo on github.
  • I am mojombo (https://keybase.io/mojombo) on keybase.
  • I have a public key whose fingerprint is 2D99 08C1 7B77 D96C 626E 0957 AA61 B463 79AA F7E5

To claim this, I am signing this object:

class Bar
def self.class_name
name.split(/::/)
end
end
loop { Bar.class_name }
@mojombo
mojombo / vwilight.vim
Created January 26, 2011 03:23
vwilight.vim: A TRUE Twilight color theme for Vim
" Vim color file
" Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration)
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
Don't try this at home.