Skip to content

Instantly share code, notes, and snippets.

// How to upgrade your users passwords in the DB without their intervention
//
// SHA-1 isn't strong enough to hash passwords with, but lots of people have a
// whole bunch of SHA-1'd passwords because they thought it was. You could use
// bcrypt or scrypt, but maybe in two years' time someone will tell you that's
// also not strong enough, and you'll want to upgrade.
//
// This sample demonstrates how you can remove weak password hashes from your
// user database, without needing the user to enter their password.
@erickedji
erickedji / mice.css
Created July 27, 2010 10:52 — forked from jeffkreeftmeijer/mice.css
OMG! Mouses! (from the extremely well designed http://jeffkreeftmeijer.com/2010/experimenting-with-node-js/)
.mouse{
position: absolute;
background-image: url('../images/cursor.png');
width: 15px;
height: 22px;
z-index: 100;
}
@erickedji
erickedji / get_barcode_from_image.js
Created June 10, 2010 06:01 — forked from tobitailor/get_barcode_from_image.js
A javascript barcode scanner!
/*
* Copyright (c) 2010 Tobias Schneider
* This script is freely distributable under the terms of the MIT license.
*/
(function(){
var UPC_SET = {
"3211": '0',
"2221": '1',
"2122": '2',
@erickedji
erickedji / rlsp.rb
Created November 9, 2009 11:54 — forked from h0rs3r4dish/rlsp.rb
#!/usr/bin/ruby
RLSP_VERSION = "1.4.1"
class Lambda
attr_accessor :args, :body
def initialize(args=[],body="")
@args = (args.class == Array) ? args : [args]
@body = body
end