Skip to content

Instantly share code, notes, and snippets.

Asking good questions is always the first step.

James Tsang wtzeng1

Asking good questions is always the first step.
View GitHub Profile
Norod / UinstallXcode10_x.txt
Last active Sep 24, 2020
How to completely remove Xcode 10
View UinstallXcode10_x.txt
# How to completely remove Xcode 10
# Info taken from this thread:
# Keywords:
# Uninstall, Remove, Wipe, Delete, Xcode, Xcode 10
# Assuming everythig is installed in the default path
tchen /
Created May 31, 2017
Tornado JSON request body
# An example tornado request handler that handles both JSON POST request
# bodies and x-www-form-urlencoded POST bodies.
# The benefit of JSON request bodies are more complicated and potentially
# nested dict and list data types.
# One drawback to JSON request bodies is that arguments can come in
# different types, so handlers will need to perform additional checks.
# With x-www-form-urlencoded fields, all argument values are strings, if
# they exist.
View gist:3b19447b304616f18657
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\n",
"sources" : [ "" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "" ],
justinabrahms /
Created Jul 23, 2014
default pdbpp to start with sticky enabled
import pdb
class Config(pdb.DefaultConfig):
sticky_by_default = True
You can’t perform that action at this time.