This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |