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 socket | |
| MUTED_GROUP = 8 | |
| UNMUTED_GROUP = 7 | |
| WHO_UID = 'uaec6gN9PL9qwP5y1NGGW3D95VA=' | |
| #WHO_UID = 'BaP5bZRXx7OP59qJojvvHHxvx0w=' | |
| HOST = '127.0.0.1' | |
| PORT = 25639 | |
| def wait_for_ok(s): |
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
| 16:04:43 <duggan> N. Virginia: ami-2400984d | |
| 16:04:43 <duggan> Ireland: ami-d8d2d8ac | |
| 16:04:43 <duggan> Tokyo: ami-a361e1a2 | |
| 16:04:43 <duggan> Singapore: ami-6e703c3c | |
| 16:04:43 <duggan> Sydney: ami-4e0e9f74 | |
| 16:04:45 <duggan> Sao Paolo: ami-9d7aa180 | |
| 16:04:48 <duggan> N. California: ami-94f6dbd1 | |
| 16:04:50 <duggan> Oregon: ami-cf9206ff | |
| NB: your username goes in the user data field |
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 Point: | |
| ''' Point class for representing and manipulating x,y coordinates. ''' | |
| def __init__(self, initX, initY): | |
| '''Create a new point at the origin''' | |
| self.x = initX | |
| self.y = initY | |
| p = Point(7, 6) | |
| q = Point(8, 2) |
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
| angular.module('mainApp', ['websocketBackend']).config(function($routeProvider) { | |
| }); | |
| function NowPlayingCtrl($scope, Socket) { | |
| var that = this; | |
| $scope.state = 'stop'; | |
| Socket.on('playback_state_change', function(newState) { |
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
| elif enamyAttack == 3: | |
| time.sleep(1) | |
| print('The ' +enamyDetails[0] + ' attacks you with ' + enamyDetails[6] + ' for ' + enamyDetails[7] +' damage') | |
| playerHealth = playerHealth - int(enamyDetails[7]) | |
| if playerHealth <= 0: | |
| combotLost = True | |
| elif enamyDetails[10] !=0: | |
| playerStatus = int(enamyDetails[10]) | |
| playerTurn = 0 |
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 glob, sys, os.path | |
| from PIL import Image | |
| def getMaxFrame(folder_a, folder_b, fileext): | |
| fin_a = glob.glob(os.path.join(folder_a, "*.%s" % (fileext,))) | |
| fin_b = glob.glob(os.path.join(folder_b, "*.%s" % (fileext,))) | |
| return min(len(fin_a), len(fin_b)) | |
| def checkAllFramesExist(folder_a, folder_b, fileext, max_count): | |
| for i in range(1, max_count + 1): |
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
| [DEBUG] [root] [09/Nov/2011 15:09:31.855439] Fetching http://dev.bukkit.org/server-mods/capturethepoints/files/?api-key=FARP_LOL_REMOVED | |
| [DEBUG] [root] [09/Nov/2011 15:09:32.334803] Fetching http://dev.bukkit.org/server-mods/consolescheduler/ | |
| [DEBUG] [root] [09/Nov/2011 15:09:32.846995] Fetching http://dev.bukkit.org/server-mods/consolescheduler/files/?api-key=FARP_LOL_REMOVED | |
| [DEBUG] [root] [09/Nov/2011 15:09:36.474230] Fetching http://dev.bukkit.org/server-mods/ | |
| [DEBUG] [root] [09/Nov/2011 15:09:38.165083] Fetching http://dev.bukkit.org/server-mods/?page=15 | |
| [DEBUG] [root] [09/Nov/2011 15:09:39.301576] Fetching http://dev.bukkit.org/server-mods/spoutclock/ | |
| [DEBUG] [root] [09/Nov/2011 15:09:39.753334] Fetching http://dev.bukkit.org/server-mods/spoutclock/files/?api-key=FARP_LOL_REMOVED | |
| [DEBUG] [root] [09/Nov/2011 15:09:40.78953] Fetching http://dev.bukkit.org/server-mods/namechanger/ | |
| [DEBUG] [root] [09/Nov/2011 15:09:40.745626] Fetching http://dev.bukkit.org/server-mods/namechanger/files/?api-key=FARP_LOL_REM |
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
| f = open("vvvvvvmusic.vvv", 'rb') | |
| q = f.read() | |
| FILE_NAMES = ['0levelcomplete.ogg','1pushingonwards.ogg','2positiveforce.ogg','3potentialforanything.ogg','4passionforexploring.ogg','5intermission.ogg','6presentingvvvvvv.ogg','7gamecomplete.ogg','8predestinedfate.ogg','9positiveforcereversed.ogg','10popularpotpourri.ogg','11pipedream.ogg','12pressurecooker.ogg','13pacedenergy.ogg','14piercingthesky.ogg'] | |
| startAt = endAt = -1 | |
| musStartAt = musEndAt = -1 | |
| currentMus = 0 | |
| while True: | |
| oldStartAt = startAt |
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 os | |
| import urllib, urllib2 | |
| pasteto = 'http://paste.ubuntu.com/' | |
| pastedict = {'poster': user, 'syntax': 'python'} | |
| pastekey = 'content' | |
| def iterdir(dirn): | |
| mydir = {} | |
| for file in os.listdir(dirn): |
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
| return; | |
| } | |
| $fact = &decommify($fact); | |
| Log "Learning '$fact' '$verb' '$tidbit'"; | |
| # Change to: | |
| return; | |
| } |