As configured in my dotfiles.
start new:
tmux
start new with session name:
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
# ~/code/web:beta_directory$ git checkout master | |
# Switched to branch "master" | |
# ~/code/web:master$ git checkout beta_directory | |
# Switched to branch "beta_directory" |
Host github.com | |
User git | |
Hostname github.com | |
PreferredAuthentications publickey | |
IdentityFile /home/user/.ssh/id_rsa |
CFLAGS = -Wall -g `pkg-config --cflags libgda-4.0` | |
LDFLAGS = `pkg-config --libs libgda-4.0` | |
example: example.c | |
$(CC) -o example example.c $(CFLAGS) $(LDFLAGS) | |
clean: | |
rm -f *~ | |
rm -f *.o | |
rm -f example |
As configured in my dotfiles.
start new:
tmux
start new with session name:
var element; | |
document.addEventListener('touchstart', function(event) { | |
event.preventDefault(); | |
var touch = event.touches[0]; | |
element = document.elementFromPoint(touch.pageX,touch.pageY); | |
}, false); | |
document.addEventListener('touchmove', function(event) { | |
event.preventDefault(); | |
var touch = event.touches[0]; |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
html { | |
background: #fff; | |
margin:0; | |
padding:0; | |
} | |
body { | |
color: #233452; | |
height: 100%; | |
font-family: Verdana, Helvetica, sans-serif; | |
margin: 20px 0; |