Skip to content

Instantly share code, notes, and snippets.


Devin Rhode devinrhode2

Block or report user

Report or block devinrhode2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
devinrhode2 / npmProcessNextTickErrorsWithAnyNPM_command
Created Feb 2, 2012
process.nextTick errors with any use of npm
View npmProcessNextTickErrorsWithAnyNPM_command
$ npm -v
throw e; // process.nextTick error, or 'error' event on first tick
Error: No such module
at Object.<anonymous> (/usr/lib/node_modules/npm/lib/utils/config-defs.js:5:21)
at Module._compile (module.js:444:26)
at Object..js (module.js:462:10)
at Module.load (module.js:351:31)
devinrhode2 / jsdoc-samples
Created Feb 17, 2012
sample jsdoc annotations pulled from some of google's sample chrome extensions
View jsdoc-samples
Ripped apart jsDoc stuff from
Here's the best stuff you should know about:
* @license MIT style, use however you wish.
* @fileoverview Some utilities.
* @author (Devin Rhode)
View Email input placeholders.
for's coming soon landing page, on a specific issue generally
applicable to anyone on the web looking to use this input & placeholder design
Problem: email placeholder text gets cut off with different zoom levels,
and surely mobile has some inconsistencies. Also, when you click in to type
an email, your cursor is overlapping the placeholder text
<!-- Add this to the top of your code -->
<style type="text/css">
devinrhode2 / express-filesystem-based-routing
Created Feb 29, 2012
File system based routing within express
View express-filesystem-based-routing
In express app.js, remove all app.get routings, and put this:
app.get('*', function(req, res) {
file = req.params[0].substr(1, req.params[0].length);
console.log('requesting: ' + file);
res.render(file, {locals: {
request: req,
params: req.query
}}); //in your .jade file, variables request and params are available.
devinrhode2 / gitissue
Created Mar 5, 2012
git issue on nodester
View gitissue
having problems with git with my node app on nodester (similar to heroku).
I did a force push to nodester, and I believe it merged my
server.js file with the starter server.js file,
resulting in an error on the <<<<<HEAD line git adds.
tried git push --force nodester master a few times, along with
git pull nodester master, and git fetch nodester master
What's more, when I do git fetch nodester master, I get:
* branch master -> FETCH_HEAD
devinrhode2 / githell
Created Mar 5, 2012
remote repo has unmerged files, push doesn't change site.
View githell
$ git init drtest
Initialized empty Git repository in /Users/rangetutoring/Desktop/drtest/.git/
$ cd drtest
$ nodester app info devinrhode2
nodester info Gathering information about: devinrhode2
nodester info devinrhode2 on port 14777 running: true (pid: 4858)
nodester info gitrepo:
nodester info appfile: server.js
$ git remote add nodester
$ git remote
devinrhode2 / What do I do?
Created Mar 8, 2012
Friend asks, what do I do?
View What do I do?
"Wtf do you do"
**Devin Rhode**
"That is a great question! This has been my task for the past week and... I'm either going to do a tech startup company... or probably work at stumbleupon, or another cooler company using making the rails for node (if they get funding). Or another company, who knows. Could work on, this ad network, .... million jobs out in cali for programmers.
So, I don't know what I do. Day to day I've been learning a new framework/toolset for making web apps called Node.js. I need a job though.
Fun fact: after having a few lime chips you gave me during summer program, I've been buying them basically every time I go grocery shopping."
devinrhode2 / js-on-document_start
Created Mar 14, 2012
Chrome extensions, injecting javascript on document_start
View js-on-document_start
//In your manifest.json, this is sample code for running a content script on 'document_start'
"content_scripts": [
"all_frames": false,
"js": [ "start.js", "main.js" ],
"matches": [ "*://**" ], //over match urls, you can be more precise in start.js
"run_at": "document_start"
devinrhode2 / case4stylus
Created Mar 27, 2012
my case for stylus (compile to css)
View case4stylus
body {
border-radius: 5px; //this auto expands to include -webkit- and -moz- border radii
//as you see, comments are more natural.
opacity: 0.5; //this auto-expands to include the IE filter, whatever it is.
//use a variable:
$color = gray;
View framing_is_fucking_hard.
I can either
1. Not give the frame top navigation permission, but ensure navigation occurs by intercepting requests, and making them occur in scout, in the frame. If the frame needs to take over the top frame, if can postMessage up and I can handle it intelligently.
2. Wrap all javascript in a spoofer, so it doesn't think it's in a frame. ...Still potentially has the issue of _top targeted links. onBeforeRequest can detect this, and point back to frame navigation.
You can’t perform that action at this time.