Skip to content

Instantly share code, notes, and snippets.

--- 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
#!/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
@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) $ "
"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
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
// 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
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 resolution;
uniform float time;
vec2 rand(vec2 pos)
{
return fract((pow(pos+2.0, pos.yx + 1.0) * 22222.0));
#ifdef GL_ES
precision mediump float;
#endif
// modified by @hintz
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {
#ifdef GL_ES
precision mediump float;
#endif
// Posted by Trisomie21 : 2D noise experiment (pan/zoom)
// failed attempt at faking caustics
uniform float time;
uniform vec2 resolution;