Skip to content

Instantly share code, notes, and snippets.

var questions = [
//question 1 object (index[0])
{
question: "Which of the following is a correct jQuery alternative to .addEventListener?",
answers: [
".on('click', function)",
".clickon(function)",
".addEvent(click)",
".click(addEventListener)"
@enceladus
enceladus / index.html
Created August 4, 2020 21:49
word replacer
Connecting people &amp; things <span id="word">lightly</span>
@enceladus
enceladus / booking.js
Created May 20, 2020 17:20
Adding DJ-only middleware
var { DJsOnly } = require('../services/auth0');
router.get('/', requiresAuth(), DJsOnly, function (req, res, next) {
// do stuff
});
@enceladus
enceladus / gist:9430762
Created March 8, 2014 13:42
Nodejitsu upload timeout
info: Welcome to Nodejitsu delwin
info: jitsu v0.13.14, node v0.10.16
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node server
info: Creating snapshot 0.1.0-6
warn: Snapshot is larger than 30M!
warn: This is not recommended practice.
info: Uploading: [========= ] 35%
TypeError: undefined is not a function
@enceladus
enceladus / gist:9375775
Created March 5, 2014 20:21
nodejitsu deploy error
error: Error running command deploy
error: Errors occured while starting the application
error: Error starting application. This could be a user error.
error: info: Running start for app.
error: info: Cleaning /opt/run
error: info: Fetching application snapshot...
error: info: Application snapshot fetched.
error: info: Unpacking snapshot...
error:
error: child_process.js:802
@enceladus
enceladus / about.md
Created August 15, 2011 13:03 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in.
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.