View listenonrepeat.md

This bookmarklet takes you from a youtube video page to the listenonrepeat page for that video

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
  • Name: yt∞ or whatever you'd like (maybe short so it stays on your bookmarks toolbar)
  • URL: javascript:(document.location.href = document.location.href.replace('youtube.com', 'listenonrepeat.com'))();
  1. When on a youtube video page, click this bookmarklet to be taken to the listenonrepeat page 🎉
View quicktime-hangouts-recording.md

Short link to this page: caseywatts.com/quicktime

Scenario: You want to talk with someone over google hangouts (like for a user study), and you want to record BOTH:

  • the system output audio (from them)
  • the microphone audio (from you)

(screenshots below in a comment)

General Setup (do this once)

View stubbing-relationships-ember.md
UPDATE: Actually, doing this with `reopen` is apparently deprecated. Back to creating actual objects for relationships -_-
don't do this below stuff

Stubbing relationships in model unit tests

// model
export default DS.Model.extend({
View 0-link.md
View 0.md

This helps flip between a page the development server and the same page on the production server.

Link to this page: http://caseywatts.com/flipit

View ember-test-are-any-only-present.md

To run a single test or category of tests in ember-mocha, you sometimes put .only() after your it or describe or context. But if this gets accidentally checked into the repository, the testing suite will erroneously pass for failures in any other test O_O.

This would be better as a jscs or eslint plugin - probably in ember-suave (which is migrating jscs to eslint right now). But short-term, this helps :)

View OpenCurrentImageInPixlrExpress.md

Link: http://caseywatts.com/pixlr

This bookmarklet is good for quickly modifying an image, such as overlaying some text.

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
  • Name: pixlr or whatever you'd like (maybe short so it stays on your bookmarks toolbar)
  • URL: javascript:(function() {this.location.href = "https://pixlr.com/express/?image=" + this.location.href})();
  1. Open an image in its own tab (like http://weknowyourdreamz.com/images/bubble/bubble-09.jpg for example)
  2. click that bookmarklet
  3. 🎉
View MediawikionHeroku.md
git clone https://github.com/caseywatts/mediawiki
heroku apps:create MYAPPNAME
echo "web: vendor/bin/heroku-hhvm-apache2" >> Procfile
curl -sS https://getcomposer.org/installer | php
php composer.phar update
# add & commit composer.lock

heroku buildpacks:add heroku/php
heroku ps:scale web=1
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View fizzbuzz.rb
def fizzbuzz(x)
# your
# code
# goes
# here
puts "(change me I am a placeholder string)"
end