Skip to content

Instantly share code, notes, and snippets.

Starting server in PID 9869.
serving on http://0.0.0.0:5000
2015-04-10 15:18:02,661 INFO [sqlalchemy.engine.base.Engine][Dummy-1] SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
2015-04-10 15:18:02,661 INFO [sqlalchemy.engine.base.Engine][Dummy-1] ()
2015-04-10 15:18:02,662 INFO [sqlalchemy.engine.base.Engine][Dummy-1] SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
2015-04-10 15:18:02,662 INFO [sqlalchemy.engine.base.Engine][Dummy-1] ()
2015-04-10 15:18:02,663 INFO [sqlalchemy.engine.base.Engine][Dummy-1] BEGIN (implicit)
2015-04-10 15:18:02,664 INFO [sqlalchemy.engine.base.Engine][Dummy-1] SELECT customers.id AS customers_id, customers.name AS customers_name, customers.description AS customers_description
FROM customers
2015-04-10 15:18:02,664 INFO [sqlalchemy.engine.base.Engine][Dummy-1] ()

####WXXI Front-End Web Developer####

  • Are you a front-end webdev?
  • Passionate about free and open source software?
  • Want to work on cool web technology?
  • Enjoy having creative freedom when working on a project?
  • Want all of your code to be licensed under a copy-left license so you can show future employers exactly what you did?
  • Like the idea of being more involved in your local community?

Come work at WXXI on Yellr this summer!

ATTORNEY: What was the first thing your husband said to you that morning? WITNESS: He said, ‘Where am I, Cathy?’ ATTORNEY: And why did that upset you? WITNESS: My name is Susan!
────────
ATTORNEY: What gear were you in at the moment of the impact? WITNESS: Gucci sweats and Reeboks.
────────
ATTORNEY: Are you sexually active? WITNESS: No, I just lie there.
class CreationMixin():
@classmethod
def add(cls, session, *args, **kwargs):
with transaction.manager:
session.add(cls, *args, **kwargs)
class Labels(Base, CreationMixin):
__tablename__ = 'labels'
class Customers(Base):
__tablename__ = 'customers'
id = Column(Integer, primary_key=True)
name = Column(Unicode)
description = Column(Unicode)
accounts = references('Accounts')
comments = references('comments', backref='customers')
class Customers(Base):
__tablename__ = 'customers'
id = Column(Integer, primary_key=True)
name = Column(Unicode)
description = Column(Unicode)
class Accounts(Base):
__tablename__ = 'accounts'
create table contact (
id int primary key auto_incrementing not null,
name text,
phone text,
customer_id int,
foreign key customer_id references customer(id),
project_id int,
foreign key project_id references project(id),
account_id int,
foreign key account_id references account(id),
import os
import imp
_commands = []
files = [f for f in os.listdir('.') if os.path.isfile(f)]
for f in files:
filename, extention = os.path.splitext(f)
if filename[0:4] == '_cmd_' and extention == '.py':
mysql> select count(*) from clients where date(last_check_in_datetime) = date(now());
+----------+
| count(*) |
+----------+
| 47 |
+----------+
1 row in set (0.00 sec)
mysql> select count(*) from votes;
+----------+
<html>
<head>
<style>
body {
}
div.container {
width: 500px;
color white;
background-color: green;