Skip to content

Instantly share code, notes, and snippets.

View robatron's full-sized avatar
🤖

Rob McGuire robatron

🤖
  • Zillow
  • Seattle, WA
View GitHub Profile
@robatron
robatron / apple-internet-connection-test-page.txt
Last active August 29, 2015 14:07
The page OS X uses to test Internet connections
http://www.apple.com/library/test/success.html
@robatron
robatron / fallout-3-macbook-intel-graphics-fix.md
Last active August 29, 2015 14:12
How to run Fallout 3 on MacBook Intel graphics chipsets

I had trouble getting Steam's version of Fallout 3 to work on my MacBook Pro in Windows. The main menu would start, but the game would crash after I clicked "play", just before the intro movie.

Turns out the issue was related to my MacBook's Intel graphics chipset, an Intel Iris Graphics 5100. To get FO3 to work, I was able to use the Intel HD Graphics Bypass package to trick FO3 into thinking it's running on an Nvidia chipset.

If you're running an Intel graphics chipset, and can't get FO3 to run, this fix may work for you too:

  1. Manually download and extract the Intel HD Graphics Bypass Package
  2. Copy d3d9x.dll --> C:\Program Files (x86)\Steam\steamapps\common\Fallout 3\
  3. (Optional) Create a backup copy of C:\users\$USERNAME\Documents\my games\Fallout3\FALLOUT.ini
  4. Copy FALLOUT.INI --> C:\users\$USERNAME\Documents\my games\Fallout3\

Monday Night Movie Date

Notes about movies showing at Sundance Cinemas that we both might like

Birdman (Comedy, Comicbook)

  • Synopsis: Beetlejuice, Batman, ...Birdman?
  • Starring: Michael Keaton, Edward Norton
  • GF Highlights: Comic-themed
/**
* Get the total time for the specified timers, counting parallel time only
* once if no timers match the filter, return 0.
* @param {String} filter - 'contains'-filter by name
*/
Timer.getTotalTime = function ( filter ) {
// Sort timers by start time, ascending
var sortedTimers = _.sortBy( Timer.getTimers( filter ), 'startTime' );
@robatron
robatron / osbridge-2015-notes.md
Last active August 29, 2015 14:23
Notes for Open Source Bridge 2015
@robatron
robatron / outlook-macro-auto-bcc.vba
Last active December 18, 2015 00:59
Auto BCC the specified recipient on all sent emails in Outlook 2010.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
' Auto BCC the specified recipient on all sent emails. See "settings" below
'
' From "How to Automatically BCC in Outlook 2010" by Jack Bush, Nov. 2010
' <http://www.groovypost.com/howto/microsoft/how-to-automatically-bcc-in-outlook-2010/>
Dim objRecip As Recipient
Dim strMsg As String
Dim res As Integer
Dim BCC_ADDR As String
@robatron
robatron / passive-attach-module-pattern-example.js
Last active December 19, 2015 07:39
JavaScript Module Pattern Example with "Passive Attachment"
/** JavaScript Module Pattern Example with "Passive Attachment"
*/
(function(
win,
doc,
$,
a,
b
){
// "Passively attach" your new module to global through your namespace,

Somewhere on the page...

    /** Extend a JSON object in localStorage, as oppose to overwriting it.
    */
    var localStoreExtend = function(namespace, jsonObj){
      
        // Grab existing JSON object
        var existingObj = JSON.parse(localStorage.getItem(namespace));
        
@robatron
robatron / 1. page.less
Last active December 27, 2015 05:09
Front-End Architecture: Root LESS files and how to "parameterize" component styles.
/** Root LESS file for the page where component styles are imported.
*/
// Import components LESS file
@import "component"
// Include component style as a mixin which CAN be included outside of a directive block
.component( 'blue'; 10px );
@robatron
robatron / gist:7900886
Last active December 30, 2015 23:29
{ "question":"How does the GitHub Gist API handle JSON metadata in the description field?", "tags": ["test tag 1", "test tag 2", "test tag 3"] }
test body