Skip to content

Instantly share code, notes, and snippets.

/root/doms/chatter-bot-api-read-only/python/chatterbotapi.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
bot1> Hi
bot2> Hello there.
bot1> Have you gotten any smarter yet?
bot2> Do I look like it?
bot1> Wel... What do you look like?
bot2> I like the way you talk. Like you.
bot1> I am doing my best not to be unpleasant.
bot2> Good gossip: you are your best not to be unpleasant.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2012.02.22 20:19:55 =~=~=~=~=~=~=~=~=~=~=~=
python chatterbotapitest.py
chatterbotapi.py:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
bot1> you're weird.
bot2> Weird Good or Weird Bad?
bot1> Good.
bot2> That's nice of you to say, .
bot1> That's nice of you to say1.
bot2> Are you getting bored? That is something I haven't heard of.
2012-04-01 01:05:59 [INFO] Starting minecraft server version 1.2.4
2012-04-01 01:05:59 [INFO] Loading properties
2012-04-01 01:05:59 [INFO] Starting Minecraft server on *:25565
2012-04-01 01:05:59 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
2012-04-01 01:05:59 [WARNING] The server will make no attempt to authenticate usernames. Beware.
2012-04-01 01:05:59 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
2012-04-01 01:05:59 [WARNING] To change this, set "online-mode" to "true" in the server.properties file.
2012-04-01 01:06:00 [INFO] This server is running CraftBukkit version git-Bukkit-1.2.4-R1.0-b2126jnks (MC: 1.2.4) (Implementing API version 1.2.4-R1.0)
2012-04-01 01:06:00 [INFO] [ScavengerHunt] Loading ScavengerHunt v1.2.1
2012-04-01 01:06:00 [INFO] [WorldEdit] Loading WorldEdit v5.3
import urllib
page = urllib.urlopen('http://dl.bukkit.org/downloads/craftbukkit/list/rb/').read()
page = page.split('\n')
h = page[402]
o = h.split(' ')
out = o[1]
import urllib
page = urllib.urlopen('http://dl.bukkit.org/downloads/craftbukkit/list/rb/').read()
page = page.split('\n')
h = page[402]
o = h.split(' ')
out = o[1]
@blha303
blha303 / consensus.py
Created May 29, 2012 00:33
consensus.py
import random
x = 0
v = "0"
int1 = 1
int2 = inp
random.seed()
while x != 1000:
v = v + "," + str(random.randint(int1,int2))
x += 1
vlist = v.split(",")
@blha303
blha303 / lyrics.py
Created September 2, 2012 08:33
Lyrics getter
import urllib,re,sys;
from BeautifulSoup import BeautifulSoup
def error():
print "Song lookup failed."
print "It is possible that:"
print "Song name not in correct format: artistname/songname"
print "Example: amateurtransplants/londonunderground"
sys.exit()
inp = str(sys.argv[1])
a = urllib.urlopen("http://www.azlyrics.com/lyrics/" + inp + ".html").read()
@blha303
blha303 / todo.php
Created September 15, 2012 15:20
PHP/MySQL todo
<?php
/*
* PHP/MySQL todo script
* by blha303 (b3@blha303.tk)
* Change $host, $user and $password to the mysql login info you want to use.
* Released under the WTF license.
*/
echo "<html>
<head><title>Things to do</title></head>
<body>
@blha303
blha303 / Game.java
Created October 13, 2012 05:46
TheCherno Rain
package com.thecherno.rain;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferStrategy;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferInt;
@blha303
blha303 / Groups.yml
Last active December 10, 2015 18:18 — forked from anonymous/Groups.yml
# Group inheritance
#
# Any inherited groups prefixed with a g: are global groups
# and are inherited from the GlobalGroups.yml.
#
# Groups without the g: prefix are groups local to this world
# and are defined in the this groups.yml file.
#
# Local group inheritances define your promotion tree when using 'manpromote/mandemote'