Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Asking good questions is always the first step.

James Tsang wtzeng1

🎯
Asking good questions is always the first step.
View GitHub Profile
@Norod
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: https://forums.developer.apple.com/thread/110227
# Keywords:
# Uninstall, Remove, Wipe, Delete, Xcode, Xcode 10
# Assuming everythig is installed in the default path
@tchen
tchen / main.py
Created May 31, 2017
Tornado JSON request body
View main.py
# 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\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@justinabrahms
justinabrahms / .pdbrc.py
Created Jul 23, 2014
default pdbpp to start with sticky enabled
View .pdbrc.py
import pdb
class Config(pdb.DefaultConfig):
sticky_by_default = True
You can’t perform that action at this time.