Skip to content

Instantly share code, notes, and snippets.

View af's full-sized avatar
🤔
...

Aaron Franks af

🤔
...
View GitHub Profile
@af
af / keybase.md
Last active August 29, 2015 13:57

Keybase proof

I hereby claim:

  • I am af on github.
  • I am af (https://keybase.io/af) on keybase.
  • I have a public key whose fingerprint is AD26 0A22 0DE0 ADCE EA2E 0786 8F43 397F 2B4F 59A6

To claim this, I am signing this object:

@af
af / .jshintrc
Created March 1, 2013 23:40
Current jshintrc settings
{
// JSHint Settings config
// See http://www.jshint.com/options/ for a full description of these (and some more) options.
//
// Comments are used liberally, even though they are not valid inside JSON. Make sure
// they are stripped out before running JSON.parse on this file.
// JSHint Running
"passfail" : false, // Stop on first error if this is true.
"maxerr" : 100, // Maximum errors before stopping.
@af
af / gist:3012614
Created June 28, 2012 17:15
Redactor image upload fix
--- a/public/js/artist_libs/redactor.js
+++ b/public/js/artist_libs/redactor.js
@@ -2993,7 +2993,10 @@ var RLANG = {
// Success
if (this.uploadOptions.success)
{
- this.uploadOptions.success(d.body.innerHTML);
+ // Remove bizarre <pre> tag wrappers around our json data:
+ var rawString = d.body.innerHTML;
+ var jsonString = rawString.match(/\{.*\}/)[0];
@af
af / gist:1718564
Created February 1, 2012 18:39
Obloq syntax highlighting for vim
" Syntax highlighting for obloq blocks. This is pretty experimental, and I can only get it
" to work with MacVim.app so far (doesn't work with command-line vim). It doesn't yet
" work for every file (not sure why). It's also probably really terrible vimscript.
"
" Supports:
" * mustache templates (highlighted as html)
" * stylus (highlighted as CSS)
" * javascript (.js and .sjs blocks)
"
" Drop the following into your .vimrc and restart MacVim.app:
@af
af / reader_user_style.css
Created November 7, 2011 01:05
User stylesheet to undo egregious Google Reader UI changes
/*
* This user stylesheet fixes most of my gripes with the new Google Reader UI.
* I'm activating it using the "Stylish" Chrome extension [1], which I believe is also available on Firefox.
* For other browsers, use any method that lets you assign custom styles for certain sites.
/*
/* Home page */
#team-messages {
margin-top:5em;
}