Skip to content

Commit

Permalink
Merge pull request #3 from recurly/remove-node
Browse files Browse the repository at this point in the history
Remove node
  • Loading branch information
isaachall committed Mar 24, 2014
2 parents 0b0d9e2 + e0f8e2c commit 5c75224
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 175 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
vendor
5 changes: 0 additions & 5 deletions Makefile

This file was deleted.

16 changes: 1 addition & 15 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This ID can be displayed compactly in base 36: 2cnpvvfkm56ed.
number of IDs generated per millisecond and 23 represents the number
of random bits):

<img src='doc/probability.png' alt='p(n)≈1-e^(-(n^2)/(2*2^23))' height='72' width='323'/>
<img src='https://cloudup.com/files/id7BGBwAxUt/download' alt='p(n)≈1-e^(-(n^2)/(2*2^23))' height='72' width='323'/>

IDs generated in different milliseconds cannot collide, but at a rate
of 10 IDs per millisecond (10,000 IDs per second), the probability a
Expand Down Expand Up @@ -78,20 +78,6 @@ $ gem install druuid

## Examples

### Node

``` javascript
var druuid = require('druuid');
// druuid.epoch = Date.UTC(1970, 0); // change the default (Unix) epoch

var uuid = druuid.gen();
// => <BigInt 11142943683383068069>
druuid.time(uuid);
// => Sat Feb 04 2012 00:00:00 GMT-0800 (PST)
```

### Ruby

``` ruby
require 'druuid'
# Druuid.epoch = Time.utc 1970 # change the default (Unix) epoch
Expand Down
Binary file removed doc/probability.png
Binary file not shown.
61 changes: 0 additions & 61 deletions druuid.js

This file was deleted.

23 changes: 0 additions & 23 deletions package.json

This file was deleted.

70 changes: 0 additions & 70 deletions spec/druuid_spec.js

This file was deleted.

0 comments on commit 5c75224

Please sign in to comment.