My recipe for setting up Xmonad on Ubuntu GNU/Linux is here.
What is xmonad? Read this page to learn.
Some of these instructions were adapted from the Source Matters Blog. But I also depart from those instructions in certain ways.
javascript:(function(){ | |
if(top.document == document) { | |
var msg = document.getElementById("canvas_frame"); | |
if(msg){ | |
subjectEl = msg.contentDocument.getElementsByClassName("hP"); | |
subject = subjectEl[0].innerText; | |
bodyEl = msg.contentDocument.getElementsByClassName("adP"); | |
body = bodyEl[0].innerText; |
## Setup java | |
if [ `uname -m` == 'x86_64' ]; then | |
PATH="/usr/lib64/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib64/jvm/java-7-oracle/" | |
else | |
PATH="/usr/lib/jvm/java-7-oracle/jre/bin/" | |
JAVA_HOME="/usr/lib/jvm/java-7-oracle/" | |
fi |
My recipe for setting up Xmonad on Ubuntu GNU/Linux is here.
What is xmonad? Read this page to learn.
Some of these instructions were adapted from the Source Matters Blog. But I also depart from those instructions in certain ways.
For setting up Xmonad on OS X Lion, click here.
Install Xmonad with sudo apt-get install xmonad
.
The following settings are adapted with modifications from http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Ubuntu_Oneiric.
Put this configuration in /usr/share/xsessions/xmonad-gnome-session.desktop
:
# Based on @berenm's pull request https://github.com/quarnster/SublimeClang/pull/135 | |
# Create the database with cmake with for example: cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. | |
# or you could have set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in your CMakeLists.txt | |
# Usage within SublimeClang: | |
# "sublimeclang_options_script": "python ${home}/code/cmake_options_script.py ${project_path:build}/compile_commands.json", | |
import re | |
import os | |
import os.path |
f(v0, v1) = v0*v1 | |
g(v2, v3, v4) = f(v2, v3) | |
h(v5, v6) = g(v5, v6, 0) + g(v5, v6, 1) | |
h.root() // h is output, so this is implicit | |
// this means: | |
[allocate h] | |
for all v6: | |
for all v5: | |
h[v5,v6] = g(v5,v6,0) + g(v5,v6,1) |
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
;by doppelganger ([email protected]) | |
;This file is provided for your own use as-is. It will require the character rom data | |
;and an iNES file header to get it to work. | |
;There are so many people I have to thank for this, that taking all the credit for | |
;myself would be an unforgivable act of arrogance. Without their help this would | |
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
ccache is a compiler cache. It speeds up recompilation of C/C++ code by caching previous compilations and detecting when the same compilation is being done again. This often results in a significant speedup in common compilations, especially when switching between branches. This page is about using ccache on Mac with clang and ninja build system. If you want to use Xcode, please refer to the old CCacheMac page.
In order to use ccache with clang, you need to use the current git HEAD, since the most recent version (3.1.9) doesn't contain the patch needed for using chromium style plugin.
To install ccache with [homebrew](http://mxcl.
# define some aliases | |
alias m="git checkout master" | |
alias mp="git checkout master && git pull" | |
alias ci="git commit" | |
alias c="git checkout" | |
alias co="git checkout" | |
alias b="git checkout -b" | |
alias pr="git push mine && hub pull-request" | |
alias uncommit="git log -1 && git reset HEAD^1" |
#!/usr/bin/env python | |
# | |
# Very basic example of using Python and IMAP to iterate over emails in a | |
# gmail folder/label. This code is released into the public domain. | |
# | |
# RKI July 2013 | |
# http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
# | |
import sys | |
import imaplib |