Skip to content

Instantly share code, notes, and snippets.

View justinxreese's full-sized avatar
:shipit:
hello

Justin Reese justinxreese

:shipit:
hello
View GitHub Profile
@jkutner
jkutner / gist:8457ecf8479d9f5f8472
Last active August 29, 2015 14:08
Javascript and Ebola

There was a time when Javascript was confined to the browser, much like Ebola was confined to a laboratory. The lab, like the browser, was a dangerous place. One could only enter after donning protective gear in the same way one must use JQuery. But those days are gone.

Ebola has escaped the lab. It's infected thousands of people in West Africa and literally billions of people in the United States. Likewise, Javascript has escaped the browser and runs on our servers and threatens our children.

It's too late to stop Ebola, but it's not too late to stop Javascript. All we need is a Javascript vaccine...

@jeffkreeftmeijer
jeffkreeftmeijer / bassie.png
Created April 11, 2011 12:01
Colored image blob detection
bassie.png
@uasi
uasi / vim.rb
Created November 30, 2010 16:46
Vim formula for Homebrew (EDIT: recent versions of official Homebrew distribution includes one)
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.682'
def features; %w(tiny small normal big huge) end
require 'sinatra/base'
run Sinatra.new {
get('/') do
content_type "text/plain" # you can also use Rack::ContentType
# with Sinatra except here we want
# more control since Sinatra gives it
# to us. Rack::ContentType sets the
# Content-Type on every route/url for
# the current mapping.