Skip to content

Instantly share code, notes, and snippets.

@OiNutter
OiNutter / LICENSE.txt
Created May 26, 2011 15:36 — forked from 140bytes/LICENSE.txt
Credit Card Validation similar to the Luhn Algorithm
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Will McKenzie<www.oinutter.co.uk>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@OiNutter
OiNutter / ghfm.rb
Last active March 16, 2016 18:44 — forked from carwin/ghfm.rb
#!/usr/bin/ruby
require 'rubygems'
require 'redcarpet'
require 'albino'
class String
def make_semantic
self.downcase.strip.gsub(' ','-').gsub(/[^\w-]/,'')
end