Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 36

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 36

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 36

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15
Python - Source Code | DreamInCode.net
Strict Standards: Non-static method members::isLoggedIn() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 32

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 39

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method members::isDicpp() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 32

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 16

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method members::isDicpp() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 133

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 16

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ads::isAdCompatible() should not be called statically in /home/dreaminc/public_html/home/templates2/top.php on line 133
 

Code Snippets

  

Linux & UNIX Source Code

  

Python Source Code



Strict Standards: Non-static method members::isLoggedIn() should not be called statically in /home/dreaminc/public_html/home/include/class.templates.php on line 136

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 39

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method members::isLoggedIn() should not be called statically in /home/dreaminc/public_html/home/include/class.templates.php on line 31

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 39

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ads::isAdCompatible() should not be called statically in /home/dreaminc/public_html/home/include/class.templates.php on line 31


Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 117

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15
Python


Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.index.php on line 125

Strict Standards: Non-static method category::categoryChildren() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.category.php on line 2

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 129

Strict Standards: Non-static method category::categoryChildren() should not be called statically in /home/dreaminc/public_html/code/themes/tpl.category.php on line 5

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 129

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/code/themes/browse.cat.php on line 67

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method snippet::getCategorySnippets() should not be called statically in /home/dreaminc/public_html/code/themes/browse.cat.php on line 100

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 39

Strict Standards: Non-static method category::categoryChildren() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 50

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 129

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126

Strict Standards: Non-static method snippet::getSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 100

Strict Standards: Non-static method snippet::checkSnippet() should not be called statically in /home/dreaminc/public_html/home/include/include.snippet.php on line 126


  1  2  3  >  »  


Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15

Strict Standards: Non-static method category::getCategoryDetails() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 20

Strict Standards: Non-static method category::checkCategory() should not be called statically in /home/dreaminc/public_html/home/include/include.category.php on line 15
Abundant Number in Python by atik97
Submitted: March 8, 2009        Views: 2466

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Checks if a number is abundant or not.An abundant number is the number of which sum of factors(including itself) is greater than twice the number.
Submitted: May 11, 2012        Views: 527

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
A generator to model the sequence explained here: http://facstaff.bloomu.edu/ploomis/sequences.html
Submitted: November 8, 2009        Views: 6712

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
a simple and robust HTML table parser, for those time when you need to extract data from tables
Submitted: May 10, 2012        Views: 1200

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This simple function creates a generator that will yield fibonacci values!
Submitted: December 19, 2010        Views: 2292

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Wrapper code for os.walk(). Will search a given directory (subfolders optional) with include/exclude filters based on standard file filter rules (ie '*.*') and return either the full path or the name of the file
Submitted: May 5, 2012        Views: 900

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This little snippet is a function that will prompt the user to enter a value of a specific type such as int, float, etc. If the value the user types in cannot be cast to that type, the function will either print a supplied error string or the default error string created by python, it will then prompt the user to try again until the user enters a proper value. This is particularly useful with making sure the user actually submitted an int.
Submitted: May 29, 2012        Views: 347

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This class allows you to create an integer of any positive integer base.
Submitted: July 12, 2012        Views: 713

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is an example of an object oriented generator used for finding values of the Kolakoski sequence. Despite this being an object oriented generator, it still works exactly the same as any other generator would and this generator is Python2 and Python3 compatible. There are several unsolved questions regarding the Kolakoski sequence listed here: http://faculty.evansville.edu/ck6/integer/index.html Perhaps this generator will be used by the mathematician who solves some of them!
Submitted: May 10, 2012        Views: 564

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is a look and say sequence generator. Wikipedia has a nice explanation of the look and say sequence here http://en.wikipedia.org/wiki/Look-and-say_sequence This generator is a much simpler and more straightforward implementation than theirs.
Submitted: July 16, 2010        Views: 2657

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is not a full application. It's just a function to check if a number is prime number or not.
Queue Class in Python by atraub
Submitted: May 9, 2012        Views: 789

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is a full featured Queue class that uses proper naming conventions in accordance with the abstract data type "Stack". It also utilizes proper error handling.
RATS Generator in Python by atraub
Submitted: September 21, 2012        Views: 426

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
A sequence produced by the instructions "reverse, add to the original, then sort the digits." For example, after 668, the next iteration is given by so the next term is 1345. Applied to 1, the sequence gives 1, 2, 4, 8, 16, 77, 145, 668, 1345, 6677, 13444, 55778, 133345, 666677, 1333444, 5567777, 12333445, 66666677, 133333444, 556667777, 1233334444, 5566667777, 12333334444, 55666667777, 123333334444, 556666667777, 1233333334444, ...
Sierpinski carpet in Python by atik97
Submitted: April 9, 2009        Views: 3399

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Stack Class in Python by atraub
Submitted: May 5, 2012        Views: 725

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is a full featured stack class that also uses proper naming conventions in accordance with the abstract data type "Stack" as well as proper error reporting.
Submitted: July 17, 2010        Views: 2304

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This application downloads stock informations from Yahoo's Finance page.
Timing a function in Python by atraub
Submitted: May 6, 2012        Views: 780

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This is a generic function used to time another function in Python. It returns the time it took for the function to run and the results of the function if there are any.
Submitted: May 10, 2011        Views: 1564

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
This snippet interprets and excutes BrainF**k code instead of compiling it to another state.
Submitted: February 7, 2010        Views: 2184

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
For each character in any string, if the letter is capitalized, it makes it lowercase, and for any capital letters, make them lowercase.
Die Class in Python by Wigglesniff
Submitted: September 3, 2011        Views: 1074

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Creates a roll-able die.
Fibonacci Sequence in Python by atraub
Submitted: April 15, 2011        Views: 2173

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Get the first n values of a Fibonacci sequence iteratively. This example returns a list and uses Python's ability to assign multiple values in 1 statement to make the code more concise. As always, readability is emphasized.
Submitted: January 19, 2009        Views: 3466

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Find out the number of words in a given file.
Submitted: September 10, 2010        Views: 2739

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Performs the linear search algorithm.
Minimal diff in Python by jmoy
Submitted: November 19, 2009        Views: 1796

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Printing Primes in Python by raspinudo
Submitted: April 5, 2012        Views: 640

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
A function to print primes up to a given ceiling. It could be easily modified to store them in a list or whatever data structure nec.
Submitted: May 8, 2009        Views: 5748

Strict Standards: Non-static method bbcode::parse() should not be called statically in /home/dreaminc/public_html/home/include/include.tpl.func.php on line 57

Strict Standards: Non-static method bbcode::add() should not be called statically in /home/dreaminc/public_html/code/bbcode.conf.php on line 16
Basic stack and queue classes. I know there are other versions of these that have been submitted, but I felt the below snippet is well-documented and could be helpful to beginners learning to create classes.
  1  2  3  >  »  


Submit a Code Snippet and get a chance to win a </dream.in.code> 1GB Thumb Drive!



Strict Standards: Non-static method members::isDicpp() should not be called statically in /home/dreaminc/public_html/home/templates2/copyright.php on line 77

Strict Standards: Non-static method members::isMember() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 16

Strict Standards: Non-static method ipb_interface::getUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ipb_interface::checkUserId() should not be called statically in /home/dreaminc/public_html/home/include/class.member.php on line 10

Strict Standards: Non-static method ads::isAdCompatible() should not be called statically in /home/dreaminc/public_html/home/templates2/copyright.php on line 77