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
class AutoOp | |
include Cinch::Plugin | |
listen_to :join | |
listen_to :message, :method => :add | |
def listen(m) | |
op_users = bot.config.config['channels'][m.channel]['operators'] | |
m.channel.op(m.user) if op_users.include?(m.user.nick) | |
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
# prettier way of doing this? this is within a case on the player update | |
@fsm.have_all_mats if @fsm.got_all_mats? | |
@fsm.need_more_mats unless @fsm.got_all_mats? |
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
class Markovgen | |
include Cinch::Plugin | |
listen_to :message | |
@markov_switch = false | |
@markovbot = Markov.new | |
def listen(m) | |
reject = /http[s?]|www|.com|.net|.biz|/ |
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
class Markov | |
def initialize | |
@firsts = [] | |
@data = {} | |
end | |
def add(statement) | |
words = statement.split | |
if words.length > 2 |
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
package ch1; | |
public class MyFirstApp { | |
public static void main(String[] args) { | |
System.out.println("Hello, world."); | |
} | |
} |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<title>hark, a webpage.</title> | |
<link rel="stylesheet" type="text/css" href="web.css" /> | |
<style type="text/css"> | |
p { | |
color: red; |
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
System.out.println |
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
function log() { | |
var i, message = []; | |
for (i = 0; i < arguments.length; i++) { | |
message.push(arguments[i]); | |
} | |
$('pre').append(message.join(' ') + '\n'); | |
} |
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 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
09.27.12 | |
1. Refactored Mob Attacks and Mob Movement to EntityActions so that I can override behavior per mob. | |
2. Added MobList in LevelManager to keep multiple instances of same mob. | |
3. Mobs spawn at .6 second intervals. | |
4. Bat and Spider spawn 40% of the time. Cultist 20%. |