Skip to content

Instantly share code, notes, and snippets.

# Put your local settings here. This will override corresponding settings in settings.py.
# PLEASE DO NOT CHECK IN THIS FILE.
ADMINS = (
('Shabda', 'shabda@uswaretech.com'),
)
import random
class Markov(object):
def __init__(self, open_file):
self.cache = {}
self.open_file = open_file
self.words = self.file_to_words()
self.word_size = len(self.words)
self.database()
conf.py
abc.txt
def.txt
makefile
_templates\
page.html
In [1]: None
In [2]: None > 10
Out[2]: False
In [3]: None < 10
Out[3]: True
In [4]: None == None
Out[4]: True
irb(main):001:0> nil
=> nil
irb(main):002:0> nil > 10
NoMethodError: undefined method `>' for nil:NilClass
from (irb):2
from :0
irb(main):003:0> 10 > nil
ArgumentError: comparison of Fixnum with nil failed
from (irb):3:in `>'
from (irb):3
phpsh (c)2006 by Charlie Cheever and Dan Corson and Facebook, Inc.
type 'h' or 'help' to see instructions & features
New Feature: You can use the -c option to turn off coloring
php> echo(null > 10)
php> echo(null < 10)
1
php> echo(null == 10)
php> echo(null == null)
1
php>
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> print(nil)
nil
> print(nil > 10)
stdin:1: attempt to compare number with nil
stack traceback:
stdin:1: in main chunk
[C]: ?
> print(nil < 10)
stdin:1: attempt to compare nil with number
//#Javascript
>>> null
null
>>> null == 10
false
>>> null > 10
false
>>> null < 10
true
>>> null == null
Jython 2.2.1 on java1.6.0_0
Type "copyright", "credits" or "license" for more information.
>>> None
>>> None > 10
0
>>> None < 10
1
>>> None == None
1
>>>
Welcome to psql 8.3.7, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
test_psql=> select null as data;
data