Skip to content

Instantly share code, notes, and snippets.

View btran's full-sized avatar

Bryan Tran btran

  • Orlando Florida
View GitHub Profile
# Based off of http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Unity_2D
#
# /usr/share/xsessions/xmonad.desktop
[Desktop Entry]
Encoding=UTF-8
Name=XMonad
Comment=Lightweight tiling window manager
Exec=xmonad
Icon=xmonad.png
@btran
btran / gist:1329559
Created November 1, 2011 01:00
Set xmonad for multiple desktop environments on the same Ubuntu box
main :: IO ()
main = do
myEnvironment <- getEnv "DESKTOP_SESSION"
if myEnvironment == "xmonad-gnome"
then xmonad $ gnomeConfig
else xmonad $ xfceConfig
@btran
btran / rspec-syntax-cheat-sheet.rb
Created January 18, 2012 02:57 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")