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 |
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
# 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
/* | |
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
#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
#import <Cocoa/Cocoa.h> | |
@interface Services : NSObject { | |
} | |
- (void)accentuate:(NSPasteboard *)pboard | |
userData:(NSString *)data | |
error:(NSString **)error; | |
@end |
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" | |
@implementation Services | |
- (void)accentuate:(NSPasteboard *)pboard | |
userData:(NSString *)data | |
error:(NSString **)error { | |
NSString *text; | |
NSArray *types; | |
types = [pboard types]; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<!-- ...Source above redacted for brevity --> | |
<key>CFPlugInUnloadFunction</key> | |
<string></string> | |
<!-- new material --> | |
<key>LSBackgroundOnly</key> |
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
/* | |
This file is part of Accentuate.us. | |
Accentuate.us is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
Accentuate.us is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
try { // Old addon manager | |
let gExtensionManager = Components.classes[ | |
"@mozilla.org/extensions/manager;1"] | |
.getService(Components.interfaces.nsIExtensionManager); | |
let version = gExtensionManager.getItemForID( | |
"[email protected]").version; | |
Charlifter.Lifter.init(version); | |
} catch(err) { // New addon manager | |
Charlifter.Util.log(err); | |
Components.utils.import("resource://gre/modules/AddonManager.jsm"); |
OlderNewer