FlaskBB
A lightweight forum software in Flask
Member
offline
17 posts

Hey. This is an answer.

Heading

  1. Markdown rocks.
  2. Python is cool.

This seems cool. I should try it. I wonder if it is lightweight enough for a Raspberry Pi to run it smoothly.

#!/usr/bin/python
import MySQLdb

db = MySQLdb.connect(host="localhost",    # your host, usually localhost
                     user="john",         # your username
                     passwd="megajonhy",  # your password
                     db="jonhydb")        # name of the data base

# you must create a Cursor object. It will let
#  you execute all the queries you need
cur = db.cursor()

# Use all the SQL you like
cur.execute("SELECT * FROM YOUR_TABLE_NAME")

# print all the first cell of all the rows
for row in cur.fetchall():
    print row[0]

db.close()
#!/usr/bin/env bash
echo test | grep est | sed "s/te/TEEEEEEEE/"

for i in {1..10}; do echo $i; done

test

test

this looks awesome

this is a test

Nice test!

test

43223423

543543543

432432

test

test same topic name