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
Seed.import_namespace("Gtk"); | |
Gtk.init(null, null); | |
Gtk.Container.prototype.clear = function() { | |
var container = this; | |
container.foreach(function(i) {container.remove(i)}); | |
} | |
Gtk.Container.prototype._add = Gtk.Container.prototype.add; |
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
#!/usr/bin/env python | |
import urllib2, re | |
from BeautifulSoup import BeautifulStoneSoup | |
ARTICLE_URLS = """ | |
<PUT URLS HERE, ONE PER LINE> | |
""".strip().split("\n") | |
xml = BeautifulStoneSoup(urllib2.urlopen("http://feeds.arstechnica.com/arstechnica/journals/openended")) |
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
sub _get_entries { | |
my $class = shift; | |
my %param = @_; | |
my($blog_id, $user, $pass, $num, $titles_only) = | |
@param{qw( blog_id user pass num titles_only )}; | |
my $obj_type = $param{page} ? 'page' : 'entry'; | |
my $mt = MT::XMLRPCServer::Util::mt_new(); ## Will die if MT->new fails. | |
my($author, $perms) = $class->_login($user, $pass, $blog_id); | |
die _fault(MT->translate("Invalid login")) unless $author; | |
die _fault(MT->translate("Permission denied.")) unless $perms && $perms->can_create_post; |
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
diff --git a/lib/MT/XMLRPCServer.pm b/lib/MT/XMLRPCServer.pm | |
index d627f5c..7f89547 100644 | |
--- a/lib/MT/XMLRPCServer.pm | |
+++ b/lib/MT/XMLRPCServer.pm | |
@@ -610,7 +610,14 @@ sub _get_entries { | |
my($author, $perms) = $class->_login($user, $pass, $blog_id); | |
die _fault(MT->translate("Invalid login")) unless $author; | |
die _fault(MT->translate("Permission denied.")) unless $perms && $perms->can_create_post; | |
- my $iter = MT->model($obj_type)->load_iter({ blog_id => $blog_id }, | |
+ |
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
#!/usr/bin/env python | |
import gconf | |
import myxmlrpc as xmlrpclib | |
RPC_URL = "http://write.arstechnica.com/mt-xmlrpc.cgi" | |
RPC_USER = gconf.Client().get_string("/apps/cms/username") | |
RPC_PASS = gconf.Client().get_string("/apps/cms/password") | |
RPC_BLOG = "1" | |
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: | |
import gnomekeyring | |
except: | |
gnomekeyring = None | |
... | |
# Edited version of getitem/setitem in the config.py Account class | |
# This will probably fix the gnomekeyring fallback | |
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"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<edit name="autohint" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
</fontconfig> |
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
/* | |
* Testing new GTK+ 2.16 features | |
* SegPhault (Ryan Paul) - 03/20/2009 | |
*/ | |
#include <gtk/gtk.h> | |
#include <glib/gprintf.h> | |
GtkWidget *entry; |
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
# MurrinaSegPhault v0.04 | |
# Uses Murrina Engine by Cimi | |
style "theme-default" | |
{ | |
GtkButton::default_border = { 1, 1, 1, 1 } | |
GtkButton::default_outside_border = { 2, 2, 2, 2 } | |
GtkRange ::trough_border = 0 | |
GtkPaned ::handle_size = 8 | |
GtkRange ::slider_width = 15 |
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
#!/usr/bin/env python | |
import gtk, gobject, indicate, dbus, webkit | |
from xdg.DesktopEntry import DesktopEntry | |
from mako.template import Template | |
class IndicatorInspector: | |
def __init__(self): | |
self.servers = [] | |
self.listener = indicate.Listener() |