Skip to content

Instantly share code, notes, and snippets.

View mdwheele's full-sized avatar

Dustin Wheeler mdwheele

View GitHub Profile
@mdwheele
mdwheele / gist:7171422
Created October 26, 2013 16:23
Simple Sublime Text-esque JS Filter
var items = [
'/home/user/code/folder/whatever/something/nothing/neat.js',
'/home/user/code/folder/whatever/something/nothing/great.js',
'/home/user/code/folder/whatever/something/nothing/stuff.html',
'/home/user/code/folder/whatever/something/nothing/elmo.css',
'/home/user/code/folder/whatever/something/nothing/animal.css',
'/usr/local/lib/blah',
'/foo/bar/baz/goo/blue'
];
@mdwheele
mdwheele / AssetLoader
Created November 4, 2013 00:15
LibGdx Grouped Asset Loader
public class Assets implements Disposable, AssetErrorListener {
private static final String TAG = "Assets";
private Logger logger;
private AssetManager manager;
private ObjectMap<String, Array<Asset>> groups;
public Assets(String assetFile) {
logger = new Logger(TAG, Logger.INFO);
@mdwheele
mdwheele / GameDevLinks.md
Last active December 27, 2015 08:39
GameDev Related Links
@mdwheele
mdwheele / DDD_Links.md
Last active August 29, 2015 14:00
Set of links I've accrued regarding DDD
@mdwheele
mdwheele / .gitignore
Last active May 13, 2020 19:20
Bootstrap for PHP Projects
/.idea
/node_modules
/vendor
composer.phar
composer.lock
.DS_Store
Thumbs.db
npm-debug.log
phpunit.xml
@mdwheele
mdwheele / php-friend.php
Created August 11, 2014 13:00
An example of how one might implement a pseudo-friend relationship between two PHP objects.
<?php
class SampleEntity
{
private $friend = 'SampleEntityPresenter';
protected $firstName;
protected $lastName;
public function __construct($firstName, $lastName)
.DS_Store
.idea/
@mdwheele
mdwheele / yosemite-sound-issues.md
Created October 22, 2014 00:25
Fix Yosemite Bluetooth Sound Issues
  1. Run the following in your terminal.
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool Min (editable)" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 80
defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 80