Skip to content

Instantly share code, notes, and snippets.

View bascht's full-sized avatar
📢
Setting all the statuses.

Sebastian Schulze bascht

📢
Setting all the statuses.
View GitHub Profile
#!/usr/bin/ruby
class SortMe
attr :foo
attr :bar
def initialize(foo, bar)
@foo = foo
@bar = bar
end
@bascht
bascht / pizza_picker.rb
Created May 25, 2011 18:10
Pizza picker
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open('http://pizza.de/order/world-of-pizza/02/framek030.htm'))
menu = doc.xpath('//td[@id="framek"]//div[2]/div/div[1]/div[1]/b').to_a
puts "# Our Menu:\n * #{menu * ", \n * "}"
puts
puts "I'd recommend *#{menu.sample.content}*."
bindkey '∫' emacs-backward-word
bindkey 'ƒ' emacs-forward-word
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
# Movement
bindkey '^P' zsh-history-substring-search-backward
bindkey '^N' zsh-history-substring-search-forward
bindkey '∫' emacs-backward-word
bindkey '' backward-char
bindkey 'ƒ' emacs-forward-word
bindkey '^F' forward-char
bindkey '^E' end-of-line
@bascht
bascht / github.com.js
Created July 19, 2011 22:06
Clean github
$('#header .logo')
.css('display', 'none');
$('#header')
.css('height', '65px');
$('#header .userbox')
.css('float', 'left');
$('#header div.topsearch')
@bascht
bascht / PalmBugs.md
Created July 27, 2011 08:36
Palm: List of Bugs

HP Veer Bugs

  • Slider bleibt an den Tasten klemmen
  • Aufweckbutton vom Slider verdeckt
  • Screen Orientation zu wabbelig
  • Lichtsensor scheinbar nur zwei Stufen

WebOS Bugs

  • Keine Uhrzeit auf dem Lock Screen
  • App Menü kaum erreichbar (Meta / Copy / Paste)
  • Navigation immer nur zurück
bascht@baschtmobil [12:28:09] [/tmp/test]
-> % echo "Alter Text" > test1.txt ?
bascht@baschtmobil [12:28:12] [/tmp/test]
-> % echo "Alter Text" > test2.txt ?
bascht@baschtmobil [12:28:16] [/tmp/test]
-> % zip test.txt.zip test*.txt ?
adding: test1.txt (stored 0%)
adding: test2.txt (stored 0%)
bascht@baschtmobil [12:28:18] [/tmp/test]
-> % rm test2.txt ?
#!/usr/bin/env ruby
git_bundles = [
"git://github.com/shemerey/vim-peepopen.git",
"git://github.com/astashov/vim-ruby-debugger.git",
"git://github.com/bascht/vim-snipmate.git",
"git://github.com/tomtom/tlib_vim.git",
"git://github.com/MarcWeber/vim-addon-mw-utils.git",
"git://github.com/scrooloose/nerdtree.git",
"git://github.com/timcharper/textile.vim.git",
…he does his own show ten hours a day
Plays poems and listens let's feelings run free
helps people talk their pain away
So if your world falls down can't see the light of day
Call this guy. Call the station today
This is radio @marcshark listen and cry
to all the others that suffer and die
this is radio @marcshark listen and cry