Skip to content

Instantly share code, notes, and snippets.


Marcus Vorwaller marcus

Block or report user

Report or block marcus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am marcus on github.
  • I am marxus ( on keybase.
  • I have a public key ASBw5U3jaLdqJDBRd2zpPpAMDnuOuLNke_FCzLDX9ljaQwo

To claim this, I am signing this object:

View cvim.vim
set smoothscroll
let scrollduration = 150
let mapleader = ","
let barposition = "bottom"
let searchlimit = 100
marcus / get_dates.rb
Created Apr 8, 2014
Get the publication date for a bunch of books
View get_dates.rb
require "selenium-webdriver"
books = [
["One Hundred Years of Solitude", "Marquez"],
["Love in the Time of Cholera", "Marquez"],
["Sons and Lovers", "D.H. Lawrence"],
["Lady Chatterley's Lover", "D.H. Lawrence"],
["Sound and Fury", "Faulkner"],
["Grapes of Wrath","Steinbeck"],
["Tender Is The Night","Fitzgerald"],
["Rabbit Run","Updike"],
marcus /
Last active Feb 4, 2019
Pivotal Tracker Iteration Status widget for Dashing
marcus /
Created Aug 24, 2011
Add buttons to the WysiHat toolbar
WysiHat.Toolbar.ButtonSets.Simple = $A([
{ label: "Bold" }
{ label: "Underline" }
{ label: "Italic" }
{ label: "Unordered", handler: (editor) -> editor.toggleUnorderedList()}
{ label: "Ordered", handler: (editor) -> editor.toggleOrderedList()}
View url_dsl.rb
require 'open-uri'
# url dsl -- the ultimate url dsl!
# You just can't beat this:
# $ irb -r url_dsl
# >> include URLDSL
# => Object
# >>
mkdir -p /tmp/chrome-mac
cd /tmp/chrome-mac
osascript <<EOF
tell application "Chromium"
end tell
unzip chrome-mac
View get_strings.rb
strings = []
directories = Dir['views/**/*']
directories.each do |d|
if d.match(/\.ejs\z/) && !d.match(/help/) { |file|
file.each do |l|
brackets = l.match(/>([^<]+)</)
brackets.captures.each do |m|
if m.to_s.length > 5
View toneway.rb
# wget --user-agent="" -e robots=off --wait 1 -r -l inf -k -nc
filenames ='songs'){|f|"songs/#{f}"}
if file.length > 9"#{file}") { |file|
file.each do |l|
fname = l.match(/flashvars:"file=(.+)&display/)
if fname
View web.rb
module Web
require 'rubygems'
require 'open-uri'
require 'nokogiri'
# @render_options :fields=>{:default=>[:title, :href],
# :values=>[:title, :link]}
# @options :external=>false
# Displays the links from a URL
def links_in(url, options={})
You can’t perform that action at this time.