Skip to content

Instantly share code, notes, and snippets.

This Gist contains the script and generated output file for an Acer B276HUL.

The pre-generated file below is known to work with:

  • OS X Mavericks
  • OS X Yosemite
  • OS X El Capitan

For El Capitan:

  1. Restart your Mac while holding Command-R: this puts your Mac into Recovery Mode.
@rdacquisto
rdacquisto / game_loop.cpp
Created January 21, 2016 06:04 — forked from mariobadr/game_loop.cpp
A basic game loop using std::chrono
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Mario Badr
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@rdacquisto
rdacquisto / img_onError.react.js
Created December 14, 2015 18:11
Snippet to add a fallback source for an image in React.
render: function() {
var onError = function () {
this.refs.image.src = 'url to fallback image';
}.bind(this);
return (
<img onError={onError} src={src} ref="image" />
)
})
@rdacquisto
rdacquisto / trophy_count_per_game.js
Last active August 29, 2015 14:14
psnprofiles Trophy Advisor Script for finding game counts on a page. (http://psnprofiles.com/johnwilber/log?earned=unearned)
(function() {
var _games={};
$('img.trophy_image[title]').each(function(){
if(_games[this.title]) {
_games[this.title].count++;
} else {
_games[this.title]={
count: 1,
src: this.src
};