Skip to content

Instantly share code, notes, and snippets.

View gist:131461
# 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'),
)
View gist:131679
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()
View gist:140207
conf.py
abc.txt
def.txt
makefile
_templates\
page.html
View gist:147892
In [1]: None
In [2]: None > 10
Out[2]: False
In [3]: None < 10
Out[3]: True
In [4]: None == None
Out[4]: True
View gist:147894
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
View gist:147899
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>
View gist:147906
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
View gist:147909
//#Javascript
>>> null
null
>>> null == 10
false
>>> null > 10
false
>>> null < 10
true
>>> null == null
View gist:147914
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
>>>
View gist:147915
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
You can’t perform that action at this time.