This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
def ccToMap(cc: AnyRef) = | |
(Map[String, Any]() /: cc.getClass.getDeclaredFields) { | |
(a, f) => | |
f.setAccessible(true) | |
a + (f.getName -> f.get(cc)) | |
} | |
// Usage | |
case class Column(name: String, |
import json | |
from rest_framework import serializers | |
class JSONField(serializers.WritableField): | |
def to_native(self, obj): | |
return json.dumps(obj) | |
def from_native(self, value): | |
return json.loads(value) |