Skip to content

Instantly share code, notes, and snippets.

View caseywatts's full-sized avatar
Hi, I’m Casey!

Casey Watts caseywatts

Hi, I’m Casey!
View GitHub Profile
@caseywatts
caseywatts / gist:6cf9391e7ddd25a331dafbed5cee8a8e
Created March 27, 2017 05:19
Steam + Controller on OSX via Wine
  • brew install Caskroom/cask/wineskin-winery
  • Open app "Wineskin Winery"
    • Click "Create New Blank Wrapper" and name it "WindowsSteam"
    • Right click on app "WindowsSteam" and click "show package contents"
    • Open "Wineskin" app that lives inside the "WindowsSteam" app
    • "Advanced"
    • "middle tab"
    • "winetricks"
    • "update winetricks"
  • Install dotnet45
@caseywatts
caseywatts / listenonrepeat.md
Created March 13, 2017 19:12
Listen on Repeat

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 🎉
@caseywatts
caseywatts / quicktime-hangouts-recording.md
Last active February 14, 2024 02:18
Quicktime Hangouts Recording (using soundflower for audio)

Short link to this page: caseywatts.com/quicktime

Other gists & tricks: http://caseywatts.com/gists-and-tricks

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Quicktime + Hangouts Recording

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

@caseywatts
caseywatts / stubbing-relationships-ember.md
Last active January 18, 2017 16:52
Stubbing Relationships in Model Unit Tests
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({
@caseywatts
caseywatts / 0-README.md
Last active May 20, 2022 13:49
WHAT IF you could magically have browser-sync (livereload+mobileview) on every static html project, without any setup in the project? You can 🎉🎉🎉
@caseywatts
caseywatts / 0.md
Last active May 1, 2019 14:02
heroku flip bookmarklet
@caseywatts
caseywatts / ember-test-are-any-only-present.md
Last active August 2, 2017 16:49
Test for presence of .only

UPDATE: just use this plugin lol

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 :)

@caseywatts
caseywatts / OpenCurrentImageInPixlrExpress.md
Last active May 20, 2022 13:36
OpenCurrentImageInPixlrExpress

Short link to this page: http://caseywatts.com/pixlr

Other gists & tricks: http://caseywatts.com/gists-and-tricks

Open Current Image in Pixlr Express

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)
@caseywatts
caseywatts / MediawikionHeroku.md
Last active August 16, 2022 06:28
Mediawiki on Heroku
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});