Skip to content

Instantly share code, notes, and snippets.

View twoelevenjay's full-sized avatar
🏠
Working from home

Leon Francis Shelhamer twoelevenjay

🏠
Working from home
View GitHub Profile
@JamieMason
JamieMason / watch.rb
Created September 26, 2012 08:16
Watch a folder for changes to files, then reload Chrome
#!/usr/bin/env ruby
require 'tempfile'
require 'fileutils'
# Signals
trap("SIGINT") { exit }
# Setup
TARGET_FOLDER = ARGV[0]
TARGET_URL = ARGV[1]