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 "Services.h" | |
int main(int argc, char *argv[]) { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
Services *service = [[Services alloc] init]; | |
NSRegisterServicesProvider(service, @"AccentuateUsService"); | |
NS_DURING [[NSRunLoop currentRunLoop] run]; | |
NS_HANDLER | |
NS_ENDHANDLER |
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
/* | |
Copyright 2010 Spearhead Development, L.L.C. <http://www.sddomain.com/> | |
[GPLv3 license information redacted for brevity, included at end of post.] | |
*/ | |
#import "Services.h" | |
int main(int argc, char *argv[]) { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
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
# Change to import the proper model object | |
from package import models | |
# Leave alone | |
from django.db.models.base import ModelBase | |
from django.contrib import admin | |
from inspect import getmembers | |
for model in getmembers(models): | |
if type(model[1]) == ModelBase: # model[1] is the actual object |
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
# Michael A. Schade, www.mschade.me | |
URL = 'http://www.ksdk.com/weather/severe_weather/cancellations_closings/default.aspx' | |
closings = { | |
'School': [], | |
'Business': [], | |
} | |
def get_closings(): |
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 XMonad | |
import XMonad.Config.Xfce | |
main = xmonad xfceConfig |
NewerOlder