Skip to content

Instantly share code, notes, and snippets.

View dtuominen's full-sized avatar

Dylan Tuominen dtuominen

  • Minneapolis, MN
View GitHub Profile
/**
* vim: set ts=4 sw=4 tw=99 noet :
* ======================================================
* Metamod:Source Stub Plugin
* Written by AlliedModders LLC.
* ======================================================
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
/**
* vim: set ts=4 sw=4 tw=99 noet :
* ======================================================
* Metamod:Source Stub Plugin
* Written by AlliedModders LLC.
* ======================================================
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
/**
* vim: set ts=4 sw=4 tw=99 noet :
* ======================================================
* Metamod:Source Sample Plugin
* Written by AlliedModders LLC.
* ======================================================
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
/**
* vim: set ts=4 sw=4 tw=99 noet :
* ======================================================
* Metamod:Source Sample Plugin
* Written by AlliedModders LLC.
* ======================================================
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
@dtuominen
dtuominen / gist:4121194
Created November 20, 2012 21:16
json model example
""" I tried to make these as humanly readable as possible haha.. the serializer outputs a big ol nasty one line shit.
JOBS DATA STRUCTURE"""
serializers.serialize('json', Job.objects.all())
'[{"pk": 1, "model": "joblist.job",
"fields": {"store_number": "", "counter": 1,
"description": "suck dicks and cunts", "title": "cunty cunt factory",
"industry": "Banking", "company": 1, "created": "2012-11-01T04:38:21.751Z",
"modified": "2012-11-01T04:38:21.751Z", "job_code": "",
"location": "55447", "active": true, "slug": "cunty-cunt-factory",
"employment_type": true}},
" .vimrc <chrishoney@gmail.com> "
"----------------------------------------------------------------------"
" settings "
"----------------------------------------------------------------------"
" general "
"--------------------------------------"
" startup "
"---------"
" enable pathogen to load plugins from ~/.vim/bundle
" .vimrc <chrishoney@gmail.com> "
"----------------------------------------------------------------------"
" settings "
"----------------------------------------------------------------------"
" general "
"--------------------------------------"
" startup "
"---------"
" enable pathogen to load plugins from ~/.vim/bundle
" .vimrc <chrishoney@gmail.com> "
"----------------------------------------------------------------------"
" settings "
"----------------------------------------------------------------------"
" general "
"--------------------------------------"
" startup "
"---------"
" enable pathogen to load plugins from ~/.vim/bundle
" .vimrc <chrishoney@gmail.com> "
"----------------------------------------------------------------------"
" settings "
"----------------------------------------------------------------------"
" general "
"--------------------------------------"
" startup "
"---------"
" enable pathogen to load plugins from ~/.vim/bundle