View sample.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View last_game.rb
# Usage: ruby last_game.rb <summoner_name> <na/euw/...>
require "net/http"
require "json"
require "date"
# TODO: Insert your own key here!
@summoner_name = ARGV[0]
View basecamp_3_notification-badge_for_fluid.js
// This script is usefull if you use [Fluid App](
// with Basecamp 3. After initializing the App, go to Window -> User Scripts
// and add this script. Use `*` as pattern.
window.fluid.dockBadge = '';
setInterval(updateDockBadge, 1000);
function updateDockBadge() {
var newBadge = BC.unreads.all.length;
lftp -u <ftp_user>,<ftp_password> <ftp_host> -e "rm -rf `date --date="3 days ago" '+%Y-%m-%d_'`*; exit"
# make sure to escape % for cron:
lftp -u <ftp_user>,<ftp_password> <ftp_host> -e "rm -rf `date --date="3 days ago" '+\%Y-\%m-\%d_'`*; exit"
# shell command:
pg_dump <db_name> -U <db_user> -h <db_host> | gzip | curl -u <ftp_user>:<ftp_password> ftp://<ftp_host>/`date '+%Y-%m-%d_%H-%M'`/db_backup.sql.gz --ftp-create-dirs -T -
# if you want to execute it through cron, be sure to escape all %!
# for crontab:
pg_dump <db_name> -U <db_user> -h <db_host> | gzip | curl -u <ftp_user>:<ftp_password> ftp://<ftp_host>/`date '+\%Y-\%m-\%d_\%H-\%M'`/db_backup.sql.gz --ftp-create-dirs -T -
View Arrow-in-Hero.markdown
View nav.php
// add your navigation items accordingly
$nav_links = [
'Unternehmen' => 'unternehmen.php',
'Leistungen' => 'leistungen.php',
'Objekte' => 'objekte.php'];
<!-- ... -->
View gist:10317378
### Keybase proof
I hereby claim:
* I am cschell on github.
* I am cschell ( on keybase.
* I have a public key whose fingerprint is D5A4 78EF 6166 5BAC A6D5 E6AC 4BED 524B 758B D750
To claim this, I am signing this object:
View git-file-size-diff
. git sh-setup
args=$(git rev-parse --sq "$@")
eval "git diff-tree -r $args" | {
while read A B C D M P
case $M in
M) bytes=$(( $(git cat-file -s $D) - $(git cat-file -s $C) )) ;;
A) bytes=$(git cat-file -s $D) ;;
View acitve_record_null_relation.rb
module ActiveRecord
class Base
def self.none, @table)
# = Active Record Null Relation
class NullRelation < Relation
def exec_queries