Skip to content

Instantly share code, notes, and snippets.

A beautiful bunch of bananas.

Joe Gorecki jgorecki

A beautiful bunch of bananas.
View GitHub Profile
Yousha / .gitattributes
Last active Jul 25, 2020
.gitattributes for PHP developers.
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf
mackuba /
Last active Dec 7, 2019
New stuff from WWDC 2016

Following the tradition from last year, here's my complete list of all interesting features and updates I could find in Apple's OSes, SDKs and developer tools that were announced at this year's WWDC. This is based on the keynotes, the "What's New In ..." presentations and some others, Apple's release notes, and blog posts and tweets that I came across in the last few weeks.

If for some reason you haven't watched the talks yet, I really recommend watching at least the "State of the Union" and the "What's New In" intros for the platforms you're interested in. The unofficial WWDC Mac app is great way to download the videos and keep track of what you've already watched.

If you're interested, here are my WWDC 2015 notes (might be useful if you're planning to drop support for iOS 8 now and start using some iOS 9 APIs).

OSX → macOS 10.12 Sierra

LucasRoesler /
Last active Aug 13, 2020
A Django middleware that process JSON data into the appropriate GET or POST variable. I use this with AngularJS, by default POST requests are sent as JSON instead of the urlencoded data expected by Django.
class JSONMiddleware(object):
Process application/json requests data from GET and POST requests.
def process_request(self, request):
if 'application/json' in request.META['CONTENT_TYPE']:
# load the json data
data = json.loads(request.body)
# for consistency sake, we want to return
# a Django QueryDict and not a plain Dict.
# (Above line comes out when placing in Xcode scheme)
# Inspired by original script by incanus:
# Rewritten by martijnthe:
You can’t perform that action at this time.