Skip to content

Instantly share code, notes, and snippets.

View jwoolston's full-sized avatar

Jared Woolston jwoolston

  • CA, United States
View GitHub Profile
@jwoolston
jwoolston / gist:6260008
Created August 18, 2013 05:18
Using shared preferences listener.
public class MyApp extends Application { //This is the Android Application object...
//if your app exists, so does it, and you are guarenteed only one
private String mPrefA;
private String mPrefB;
private mPrefsChanged = false; //Guarded by "this"
@Override
public void onCreate() {
public abstract class AA {
//Some abstract class
}
public class A extends AA {
//Some concrete class
}
public abstract class AB {
protected List<AA> mList;
import sun.misc.Unsafe;
import java.util.Arrays;
import java.util.Random;
/**
* @author mh
* @since 12.02.11
*/
public class StringSearcher {
#!/usr/bin/env node
// Copyright 2011, Tim Branyen @tbranyen <[email protected]>
// Dual licensed under the MIT and GPL licenses.
// Script to detect cursewords in commit messages and provide the
// offending commit sha's.
// vim: ft=javascript
var git = require( 'nodegit' );
var curses = [ 'removed', 'inappropriate', 'swear', 'words' ]
@jwoolston
jwoolston / Fxaa3_11.h
Created August 21, 2016 22:01
NVIDIA FXAA 3.11 by TIMOTHY LOTTES
/*============================================================================
NVIDIA FXAA 3.11 by TIMOTHY LOTTES
------------------------------------------------------------------------------
COPYRIGHT (C) 2010, 2011 NVIDIA CORPORATION. ALL RIGHTS RESERVED.
------------------------------------------------------------------------------
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED