Skip to content

Instantly share code, notes, and snippets.

randall@Mixmaxs-Macbook-Pro ~/Workspace/bull $ mocha --timeout=10000
Cluster
- should process each job once
- should process delayed jobs in correct order
- should process delayed jobs scheduled at the same timestamp in correct order (FIFO)
connection
1) should recover from a connection loss

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

tmux cheatsheet

start new session:

tmux new -s base
tmux attach -t base

kill other clients:

tmux detach -a

tobacco - heavy makeup
bjork - virus (hudmo rmx)
subjan stevens - impossible soul
  • fix bugs

  • rename virtualhost

  • implement copy questions from lessons

  • refactors

  • document project

  • fix server permissions, filesystem structure, and config file locations

# Dynamically load virtualenvwrapper functions to reduce shell startup
# time.
#
# Copyright 2012 Aron Griffis <aron@arongriffis.com>
# Released under the GNU GPL v3
#######################################################################
# Python virtualenvwrapper loads really slowly, so load it on demand.
if [[ $(type -w workon) != "workon: function" ]]; then
virtualenv_funcs=( workon deactivate mkvirtualenv )
@randallm
randallm / gist:c551d93a1e46c59a04f5
Last active August 29, 2015 14:05
PollEv 1.1.0 Changelog
  • GA and MathJax are now loaded separately from the base router's start(), and they should load even if one of the downloads fails part way through. They also no longer block loading of the app on bad network connections
  • GA is fixed and should report pageviews again
  • Font is now Source Sans Pro globally
  • New footer with "New Poll" and "Refresh" icons, dynamically shows and hides when it is relevant on different views and when the response history is opened/closed
  • New modal dialogs that replace (but don't override) window.alert and window.confirm
  • Offline.js offline detection that handles both network disconnections and slow networks (the latter being harder to detect and slightly more finnicky by nature)
  • Corrects titles on /:presenter pages to always show ':presenter's presentation'
  • Fixes app auto-login when app is started with network off
  • Adds clickable image creation functionality
@randallm
randallm / gist:7e46a092cabcb536673d
Last active August 29, 2015 14:05
Things to go over with kyle
  • development deets in readme
  • isCordovaApp
  • router.coffee for base router in assets (start() is for mobile only)
  • ios and android debugging
  • ci test for weird paths (will reassign if prs take longer than expected)
  • caveats
GIT REBAE
var togglePause = function() {
var mpdState;
mpd.send('status', function(response) {
mpdState = response.state;
});
console.log(mpdState);
}