Originally based on this bookmarklet. Updated to only link the issue/PR id for Github urls
- Right click bookmarks bar and click "add page"
- Change name to "Copy URL as markdown"
- Change url to
javascript:
, followed by the bookmarklet script.
#! /usr/bin/bash | |
frame_rate=2 | |
# Process command line options | |
while getopts "r:" opt; do | |
case $opt in | |
r) frame_rate=$OPTARG ;; | |
\?) echo "Usage: $0 [-r frame_rate] input_file output_file"; exit 1 ;; | |
esac |
Originally based on this bookmarklet. Updated to only link the issue/PR id for Github urls
javascript:
, followed by the bookmarklet script.Max = 100 | |
************** | |
Warming up -------------------------------------- | |
bitarray gem 189.696k i/100ms | |
using Bignum 219.494k i/100ms | |
Calculating ------------------------------------- | |
bitarray gem 6.614M (± 5.0%) i/s - 33.007M in 5.003185s | |
using Bignum 12.429M (± 7.5%) i/s - 61.897M in 5.015700s |
I hereby claim:
To claim this, I am signing this object:
# Create code and play directories | |
mkdir -p ~/code/play | |
# Install brew | |
# Might need to install XCODE command line tools | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
# Install zsh and reopen terminal | |
brew install zsh | |
chsh -s /bin/zsh |
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'ap' | |
module ImdbApi | |
BASE_URL = "http://www.deanclatworthy.com/imdb" | |
def self.search(title) |
# Originally written by Justin French (2008): | |
# http://justinfrench.com/notebook/a-custom-rake-task-to-reset-and-seed-your-database | |
# | |
# Modified to work with Rails 4. | |
desc 'Raise an error unless development environment' | |
task :safety_check do | |
raise "You can only use this in dev!" unless Rails.env.development? | |
end |
# Ruby-CSS - Stylesheets in Ruby code | |
# | |
# Usage: ruby ruby_css.rb <somefile.rcss> | |
# See test.rcss for example. | |
# | |
# Worst DSL EVER for stylesheets! DO NOT USE THIS AT WORK! ;-) | |
class Selector | |
attr_accessor :name, :properties, :children |
require 'hpricot' | |
require 'net/http' | |
require 'CGI' | |
class Place | |
attr_accessor :city, :state, :zip_code, :longitude, :latitude | |
def initialize city, state, zip_code, latitude, longitude | |
@city, @state, @zip_code = city, state, zip_code | |
@latitude, @longitude = latitude, longitude |
<!doctype html> | |
<html> | |
<head> | |
<title>My Todo List</title> | |
<style> | |
body { background: #0f0f0f; font-family: Tahoma, sans-serif; font-size: 11px; } | |
header, section, footer { display: block; } | |
#container { background-color: #eee; margin: 0 auto; width: 300px; border: 4px solid #222; } | |
header h1 { text-align: center; margin: 0; padding: 15px 0;} | |
label { display: block; padding-bottom: 5px; text-align: center; } |