I hereby claim:
- I am marcus on github.
- I am marxus (https://keybase.io/marxus) on keybase.
- I have a public key ASBw5U3jaLdqJDBRd2zpPpAMDnuOuLNke_FCzLDX9ljaQwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
set smoothscroll | |
let scrollduration = 150 | |
let mapleader = "," | |
let barposition = "bottom" | |
let searchlimit = 100 |
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"], |
require 'open-uri' | |
# url dsl -- the ultimate url dsl! | |
# | |
# You just can't beat this: | |
# | |
# $ irb -r url_dsl | |
# >> include URLDSL | |
# => Object | |
# >> http://github.com/defunkt.json |
mkdir -p /tmp/chrome-mac | |
cd /tmp/chrome-mac | |
CHROME_VERSION=$(curl http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST) | |
curl http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/$CHROME_VERSION/chrome-mac.zip > chrome-mac.zip | |
osascript <<EOF | |
tell application "Chromium" | |
quit | |
end tell | |
EOF | |
unzip chrome-mac |
strings = [] | |
directories = Dir['views/**/*'] | |
directories.each do |d| | |
if d.match(/\.ejs\z/) && !d.match(/help/) | |
File.open(d) { |file| | |
file.each do |l| | |
brackets = l.match(/>([^<]+)</) | |
brackets.captures.each do |m| | |
if m.to_s.length > 5 | |
strings.push(m) |
# wget --user-agent="" -e robots=off --wait 1 -r -l inf -k -nc http://toneway.com/songs | |
filenames = Dir.open('songs').entries.map{|f|"songs/#{f}"} | |
filenames.each{|file| | |
if file.length > 9 | |
File.open("#{file}") { |file| | |
file.each do |l| | |
fname = l.match(/flashvars:"file=(.+)&display/) | |
if fname |
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={}) |