Skip to content

Instantly share code, notes, and snippets.

View bleege's full-sized avatar

Brad Leege bleege

View GitHub Profile
@rnicholus
rnicholus / gist:61e9b6d1b2cc3d9eb470
Last active August 29, 2015 14:01
MadJS File API talk links
  • [File API spec][fileapi]
  • ["File System" spec][filesystemapi]
  • [Blob interface (MDN)][blob]
  • [File interface (MDN)][file]
  • [FileReader (MDN)][filereader]
  • [Fine Uploader][fu]
  • [frame-grab.js][framegrab] (A library I'm working on that aims to do some interesting this with <video> (and video Files) using <canvas>)
  • [Widen careers][widen]
@balch
balch / README.md
Last active March 22, 2017 23:04
Balch's SDTs

Balch`s Software Design Terms

  • PE - Premature Encapsulation

The act of always creating an interface for a class that has, and will likely only ever have, one implementation

  • ID - Injectile Dysfunction

Causing code bloat via boilerplate syntax and generated classes so one can use an Inject annotation to access Application and Local scoped objects

  • RxSTD - RxJava StackTrace Dementia
@timd
timd / gist:3293993
Created August 8, 2012 10:12
Adding UIGestureRecognizer to UIWebView
Add gesture recognizer to UIWebView:
UITapGestureRecognizer *tapCatcher = [[UITapGestureRecognizer alloc] init];
[tapCatcher setNumberOfTapsRequired:1];
[tapCatcher setNumberOfTouchesRequired:1];
[tapCatcher setDelegate:self];
[tapCatcher addTarget:self action:@selector(didTapOnView)];
[self.webView addGestureRecognizer:tapCatcher];
@larrybotha
larrybotha / A.markdown
Last active April 27, 2021 09:02
Mac OS Sierra MySQL my.conf

Fixing Mac OS Sierra MySQL Woes

MySQL throwing ERROR 2006 (HY000): MySQL server has gone away?

mysql -u root -p
# enter password

mysql > SET GLOBAL max_allowed_packet=1073741824;

Debugging the Swift Toolchain

Use these steps to debug components of the Swift toolchain. This allows you to see Swift's source code from the debugger – instead of disassembly. The debugger can also provide some variable names and values. This has been initially tested with libswiftCore.dylib.

These instructions were updated as of Swift 5.2.1.

Prerequisites