Skip to content

Instantly share code, notes, and snippets.

// Procedural Tiles // Based on http://www.iquilezles.org/www/articles/smoothvoronoi/smoothvoronoi.htm
#ifdef GL_ES
precision mediump float;
#endif
const vec2 mouse = vec2(50,50);
const vec2 resolution = vec2(100,100);
const float time = 0.0;
// Expensive Noise
diff -rN old-sb-toolchain-extras/meta/device_tools/Makefile new-sb-toolchain-extras/meta/device_tools/Makefile
12c12,13
< TOOLS = fakeroot sbrsh strace gdbserver gdb
---
> #TOOLS = fakeroot sbrsh strace gdbserver gdb
> TOOLS = fakeroot sbrsh strace gdb
22c23,24
< device-tools: build-fakeroot build-sbrsh build-strace build-gdbserver
---
> #device-tools: build-fakeroot build-sbrsh build-strace build-gdbserver
"Trailing whitespace stuff
function ShowSpaces(...)
let @/="\\v(\\s+$)|( +\\ze\\t)"
let oldhlsearch=&hlsearch
if !a:0
let &hlsearch=!&hlsearch
else
let &hlsearch=a:1
end
return oldhlsearch
@rgngl
rgngl / .bashrc
Created January 29, 2010 09:04 — forked from tekkub/.bashrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
PS1="\w\$(parse_git_branch) $ "
#!/bin/bash
# reads file names from the file provided in the parameter and
# excludes them from the svn commit.
# Üstün Ergenoglu - 2009 - e g o _at_ u s t u n dot fi
if [ $# -lt 1 ]
then
echo "usage: $0 "
exit 1;
fi
--- ack-grep-1.88/Ack.pm 2009-02-07 21:41:53.000000000 +0200
+++ ack-grep-1.88-ustun/Ack.pm 2009-12-08 09:46:55.169029564 +0200
@@ -522,6 +522,7 @@
/#.+#$/ - Emacs swap files
/[._].*\.swp$/ - Vi(m) swap files
/core\.\d+$/ - core dumps
+ /(moc_).*\.cpp$/i - Qt moc generated files
=cut