This file contains 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
import os | |
from os.path import join as pj | |
import functools.partial | |
import logging | |
logger = logging.getLogger('my.module') | |
def getAlerts(ids, default = []): |
This file contains 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
# I found this is a blog post several weeks ago and meant to share but have since lost the article. | |
# Two simple defines we can use in code to better determine what is going on without doing None checks | |
Omitted = object() | |
Undefined = object() | |
# ---- Usage ---- # | |
# Admittedly,this is contrived but think of case where you can | |
# call a function with or without a value and None is allowed. |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<!-- see http://download.priority5.com/tm_frame.html for how this looks in IE --> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
<!-- | |
Example using Googles detection library | |
http://www.chromium.org/developers/how-tos/chrome-frame-getting-started#TOC-Detecting-Google-Chrome-Frame-and-Prompting-to-Install | |
--> | |
</head> |