Skip to content

Instantly share code, notes, and snippets.

View timbuchwaldt's full-sized avatar

Tim Buchwaldt timbuchwaldt

View GitHub Profile
user www www;
worker_processes 4;
worker_rlimit_nofile 20480;
error_log logs/error.log;
events
{
http
{
keepalive_timeout 1800;
ncache_max_size 24;
proxy_buffering off;
puts "hello from gist"
def "foo"
return "bar"
end
["items":[0,{"name":"twitgeridoo","user_url":"http:\/\/wiki.piratenpartei.de\/Benutzer:Twitgeridoo","image":"http:\/\/wiki.piratenpartei.de\/images\/thumb\/e\/ef\/Ich_bin_Pirat-Twitgeridoo.JPG\/140px-Ich_bin_Pirat-Twitgeridoo.JPG"}],[1,{"name":"Katamave","user_url":"http:\/\/wiki.piratenpartei.de\/Benutzer:Katamave","image":"http:\/\/wiki.piratenpartei.de\/images\/thumb\/f\/f2\/Pirat_katamave.jpg\/140px-Pirat_katamave.jpg"}],[2,{"name":"NineBerry","user_url":"http:\/\/wiki.piratenpartei.de\/Benutzer:NineBerry","image":"http:\/\/wiki.piratenpartei.de\/images\/thumb\/a\/a4\/NineBerryIstPirat.jpg\/140px-NineBerryIstPirat.jpg"}],[3,{"name":"Justus","user_url":"http:\/\/wiki.piratenpartei.de\/Benutzer:Justus","image":"http:\/\/wiki.piratenpartei.de\/images\/thumb\/f\/f8\/Justus_ist_auch_Pirat.png\/140px-Justus_ist_auch_Pirat.png"}],[4,{"name":"Markus Müller","user_url":"http:\/\/wiki.piratenpartei.de\/Benutzer:Billy-boy","image":"http:\/\/wiki.piratenpartei.de\/images\/thumb\/7\/7d\/Billy_boy_ist_pirat.jpg\/1
<object style="width:600;height:450"><param name="movie" value="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf?mode=embed&amp;documentId=091023132854-50faeb539db3419dac41fe6361966692&amp;documentUsername=21studios&amp;documentName=blumen_meyer-beerdigungen&amp;layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml" /><param name="allowFullScreen" value="true" /><embed src="http://static.issuu.com/webembed/viewers/style1/v1/IssuuViewer.swf" type="application/x-shockwave-flash" allowFullScreen="true" style="width:600;height:450" flashvars="mode=embed&amp;documentId=091023132854-50faeb539db3419dac41fe6361966692&amp;documentUsername=21studios&amp;documentName=blumen_meyer-beerdigungen&amp;layout=http%3A%2F%2Fskin.issuu.com%2Fv%2Flight%2Flayout.xml" /></object>
@timbuchwaldt
timbuchwaldt / file.rb
Created December 28, 2009 12:51 — forked from samsm/file.rb
Loads the latest 1500 Tweets containing couchdb and saves them to the db
# 1. Install CouchDBX. Fire it up. (OS X only.)
# 2. sudo gem install couchrest json
# 3. Think up a nice keyword.
# 4. irb
require 'couchrest'
require 'open-uri'
require 'json'
database_name = 'twitter-test'
@db = CouchRest.database!("http://127.0.0.1:5984/#{database_name}")
#include <stdio.h>
#include <math.h>
int laenge(int *A) {
int i;
int j;
for(i=49, j=0;i>=0;i=i-1) {
if (A[i]!=0) break;
else j=i;
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--
Script info: script: webscr, cmd: _login-submit, template: p/acc/validate, date: Jan 8, 2010 19:34:29 PST; country: DE, language: de_DE, xslt server:
web version: 61.0-1159064 branch: live-610_int
content version: -
pexml version: 61.0-1177733
@timbuchwaldt
timbuchwaldt / gist:926048
Created April 18, 2011 19:59
datalog.tex
\documentclass[12pt, a4paper]{scrartcl}
\usepackage{fancyhdr}
\usepackage[ngerman]{babel}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}}
def gv
g = ""
unless @left.nil?
g += @left.gv
g += "\"#{@value}\" -> \"#{@left.value}\";"
end
unless @right.nil?
g += @right.gv
g += "\"#{@value}\" -> \"#{@right.value}\";"
end