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
# -*- coding: utf-8 -*- | |
# Copyright (c) 2010 John Hobbs | |
# | |
# http://github.com/jmhobbs/googlecode-irc-bot | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 unittest | |
from itertools import cycle | |
## get a list in chunks | |
## if we run out of items in the list, start again from the beginning | |
class Chunker(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
#!/bin/bash | |
:(){ echo "Checking for iOS 5: `date`"; curl -s -L http://phobos.apple.com/version | grep Restore | grep iPhone | grep 5.0 > /dev/null && say "I O S 5 IS NOW AVAILABLE. GO GET YOUR DOWNLOAD ON, KID" || echo "Nothing yet..." && sleep 30 && :; };: |