This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"spot_categories": [ | |
{ | |
"name": "Architecture & Buildings", | |
"image_url": "http://static.gowalla.com/categories/13-standard.png", | |
"url": "/categories/13", | |
"spot_categories": [ | |
{ | |
"name": "Bridge", | |
"image_url": "http://static.gowalla.com/categories/128-standard.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Cocoa accessibility framework for intercepting Spotlight user input. */ | |
#import <Cocoa/Cocoa.h> | |
#import <AppKit/NSAccessibility.h> | |
static CFStringRef kSpotlightBundleIdentifier = CFSTR("com.apple.spotlight"); | |
static void SpotlightCallback(AXObserverRef observer, | |
AXUIElementRef element, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Calculates the binary huffman code for the given characters and their frequencies." | |
from copy import copy | |
freqs = {'a': 20, 'b': 10, 'c': 12, 'd': 5, 'e': 15, 'z': 65 } | |
class Node: | |
def __init__(self, ch='', freq=-1, code=None): |