Skip to content

Instantly share code, notes, and snippets.

I'm looking for an artist to collaborate on a simple identicon generator.

An identicon is a icon that is generated based on a key. The key could be a username, email or whatever, any combination of words, numbers, or other characters. Once the generator has a key it will generate a random image. The same key will always give the same image and very similar keys will give vastly different results.

It's probably easier to show than tell so here's an example. http://identicon.net/ They are using basic shapes and colors but I was thinking it would be neat to stitch together something cooler.

That's where you come in. I'm looking for someone who can make a bunch of layers that can be stitched together, moved, rotated, colorized, etc. to make a cool looking icon. It's up to you what it makes, could be a silhouette, scene, abstract image, whatever you want.

## create a RObject wrapped array of user models
users = new RObject [
{ id: 'a', name: 'Rob' }
{ id: 'b', name: 'Bob' }
{ id: 'c', name: 'Jack' }
{ id: 'd', name: 'Jill' }
]
## create a RObject wrapped array of blog models
blogs = new RObject [
@Rob-ot
Rob-ot / asyncissogreat.md
Created November 22, 2013 19:11
async.memoize saves the day!

Say you have some code like this:

functiongetData (cb) {
  console.log("doing long async operation")
  http.get('/user', cb)
}

getData(function(err, data) {
@Rob-ot
Rob-ot / example.coffee
Created October 26, 2013 19:50
Fun with __proto__
# To run:
# npm install -g coffee-script
# npm install usage
# coffee example.coffee
# Let me know if you know of a more memory efficient way that is compatible with IE
_ = require 'lodash'
assert = require 'assert'
usage = require 'usage'
# 140 characters is not enough to express a thought
Even if I tweeted `140 characters is not enough to express a thought` people wouldn't know what I mean.
What I mean is thoughts need some explanation to be meaningful.
### 140 characters is just enough to say something and have it be translated into something you
don't mean
I think this makes twitter fertile soil for making people taking things you say the wrong way or out
of context. When we are over that 140 character limit we start to take out phrases like `I think` or
Hypothesis: Success is a curse for failure
Someone who succeeds the first time doesn't understand exactly why. They know everything they did combined was good but they don't understand why.
Someone who fails many times will eventually completely understand what works and what doesn't and every little piece that works and doesn't.
Someone that just keeps doing the same thing because it worked for them in the past is doomed to fail because they stop learning from mistakes.
In order to succeed we must fail.
@Rob-ot
Rob-ot / example
Last active December 17, 2015 11:59
repl.coffee!?
rob@rob-desktop:~/Projects/repl$ coffee repl.coffee
rob@rob-desktop:~/Projects/repl$ ls()
node_modules,package.json,repl.coffee
rob@rob-desktop:~/Projects/repl$ cd "node_modules"
/home/rob/Projects/repl/node_modules
rob@rob-desktop:~/Projects/repl/node_modules$ ls()
.bin,coffee-script
rob@rob-desktop:~/Projects/repl/node_modules$ cd ".."
/home/rob/Projects/repl
rob@rob-desktop:~/Projects/repl$ ls()
@Rob-ot
Rob-ot / gist:5127588
Last active December 14, 2015 18:09
Internet Achievements

I have been noticing an emergence on the Internet lately. There are certain things on my various internet profiles like reddit and youtube that show that "I was there" when some internet event happen. For example I am still subscribed to this youtube channel https://www.youtube.com/user/cadiesingularity which was part of Googles 2009 April fools joke, this gem shows that I participated in the "2009 internet April fools day". Another is this tweet I retweeted a long time ago, https://twitter.com/Wolfire/status/13804312082 a small piece of history when the first Humble Indie Bundle hit $1 million, I was there for that. Another example is the comments on reddit I made about SOPA, that is now part of history. These "Internet Achievements" are fun to look at and remember back when those things happen, and are fun to show off too. It would be cool to explore this concept in with a website that records these events.

@Rob-ot
Rob-ot / gist:5011770
Created February 22, 2013 08:33
Why are you scared of change?
Here are some of the reasons I am scared of change. Maybe you can relate:
1. I am scared of change because I am too lazy to try something new.
2. I am scared of change because I am afraid I am being taken advantage of.
3. I am scared of change because I may waste resources trying something new that is not very good.
4. I don't want to change and I don't want to share why because I am afraid I may be talked into changing.
@Rob-ot
Rob-ot / commonerror.md
Last active December 14, 2015 00:29
An idea for standard errors in Node.js

The idea is that we could have standard error types that are not tied to anything.

These errors can be used thought the app including external libraries.

Specific errors types can be handled easily to achieve different behavior.

HTTP middleware would be included to easily translate error types into relevent HTTP status codes.

Some error type ideas: InvalidParameter(s) = HTTP 400