Skip to content

Instantly share code, notes, and snippets.

View tbartelmess's full-sized avatar
🐶
EventLoopFuture<Void>

Thomas Bartelmess tbartelmess

🐶
EventLoopFuture<Void>
View GitHub Profile
// ==========================================================================
// Project: DesktopTimecard
// Copyright: ©2011 My Company, Inc.
// ==========================================================================
/*globals DesktopTimecard */
/** @namespace
My cool new app. Describe your application.
# Project: Controlpanel
# Copyright: ©2011 My Company, Inc.
# ===========================================================================
config :marketcircle,
:required => ['sproutcore/empty_theme'],
:theme_name => 'mc-theme',
:test_required => ['sproutcore/testing'],
:debug_required => ['sproutcore/debug']
@tbartelmess
tbartelmess / gist:861353
Created March 8, 2011 23:24
Syslogger for django
import syslog
from #YOUAPP# import settings
class SysLogging:
def __init__(self, facility, prefix=None):
self.facility = facility
if prefix:
syslog.openlog(prefix)
def _logit(self, priority, message):
syslog.syslog(self.facility | priority, '%s' % (message))