This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
""" | |
Piss quick script to dump all of LCBO | |
""" | |
import sys | |
import urlparse | |
import requests | |
import lxml.html |
This file contains hidden or 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 | |
# -*- coding: utf8 -*- | |
import re | |
from collections import namedtuple | |
import requests | |
BukkitPluginUser = namedtuple('BukkitPluginUser', [ | |
'name', |
This file contains hidden or 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 | |
# -*- coding: utf8 -*- | |
import re | |
import sys | |
import getopt | |
from jawa import JarFile, ConstantMethodRef, ConstantInterfaceMethodRef | |
_method_types = (ConstantMethodRef, ConstantInterfaceMethodRef) |
This file contains hidden or 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
@classmethod | |
def shorten(cls, url): | |
# Make sure the URL hasn't already been shortened, since github | |
# may does this in the future for web hooks. Better safe than silly. | |
if re.search(r'^https?://git.io', url): | |
return url | |
# Only github URLs can be shortened by the git.io service, which | |
# will return a 201 created on success and return the new url | |
# in the Location header. |
This file contains hidden or 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
class JawaEditorPanel(wx.Panel): | |
""" | |
Constructs the right panel which contains the viewer window. | |
""" | |
def __init__(self, *args, **kwargs): | |
super(JawaEditorPanel, self).__init__(*args, **kwargs) | |
self._notebook = notebook = wx.aui.AuiNotebook( | |
self, | |
wx.ID_ANY, style=( | |
wx.EXPAND | |
This file contains hidden or 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
20:50 Starting query in Freenode with papna | |
20:50 > I would rather not annoy kloeri | |
20:50 > Disclaimer, everything said here will be public | |
20:50 > Agreed? |
This file contains hidden or 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
20:50 Starting query in Freenode with papna | |
20:50 > I would rather not annoy kloeri | |
20:50 > Disclaimer, everything said here will be public | |
20:50 > Agreed? |
This file contains hidden or 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> | |
<key>Foreground Color</key> | |
<dict> | |
<key>Red Component</key> | |
<real>0.776470588235294</real> | |
<key>Blue Component</key> | |
<real>0.482352941176471</real> |
This file contains hidden or 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 | |
# -*- coding: utf8 -*- | |
""" | |
An example showing how to create a "Hello World" class from scratch. | |
""" | |
from jawa import ClassFile | |
from jawa.assemble import assemble | |
if __name__ == '__main__': | |
cf = ClassFile.create('HelloWorld') |
This file contains hidden or 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 sys | |
from datetime import datetime | |
from collections import namedtuple | |
Message = namedtuple('Message', [ | |
'title', | |
'description', | |
'location', | |
'added', |