This program calculates the number of flushes in a number of deals of a poker hand. You can tell it to deal say 10,000 hands and see how many were flushes. This is basically my first Python program.
Poker software is helpful for the webmasters to build their site with online gaming. By using this poker game software the webmasters can run a poker site with multiple players from ten to ten thousand players. This site can also enabled to accept...
Package of games including Poker, BlackJack, Memory, Hangman, and In Between intended to keep visitors on your site. Members receive an amount of credits and earn more by playing games, viewing pages, clicking banners, and more. Rewards are set by...
This is a hack to get around the read-only nature of __closure__ on function objects. Watch your step!
Does not require multiprocessing, easy to hack, maybe not optimal but did the job for a make like tool I wrote.
I'm a hack programmer -- no formal education. So, I don't know if this is technically a "factory", "abstract factory" or something else.
It is a way to generate a class dynamically, perhaps based on run-time...
This is a quick-hack module I wrote up in a couple of hours that allows for a nicer syntax to build up struct-like binary packing and unpacking. The point was to get it to be concise and as C-like as possible. This script requires python3 for it's...
This useless hack allows normal functions to be attached to a 'ThunkSpace' which causes the function to be lazily evaluated when the thunk is referenced. It is just a experiment using closures and descriptors to try and change python function call...
this is a hack to get the "foo" module that's outside a package whithin a file of the package, when it also contains a module named "foo" (ie relative imports)
This hack allows you to add a cookie/header to a SOAPpy request. It uses a keyword args all-through to pass your own transports down to the SOAPpy core. It uses the ClientCookie module to store the cookies generated and/or to send the cookies.
Just a little bit of hack: a linear equations solver using eval and built-in complex numbers:
>>> solve("x - 2*x + 5*x - 46*(235-24) = x + 2") 3236.0
Hack a class's __init__ method without subclassing the class because a) you can't modify the original class and b) you can't modify other classes already using the first class. This is a gross hack that should only be used to work...
A hack to quickly replace multiple characters/strings in a string with characters from another string.
This applet shows the current number of FTP users at ftp.luth.se and maximum users since the last reboot. The special server running on port 7101 on ftp.luth.se is a small hack-interface to ftpcount. The counter is updated every 5 seconds.
This download contains guidelines for architecting, designing, building, reviewing, and configuring secure to build hack resilient ASP.NET Web applications across the application tiers, technology, and servers. Topics include Threats and...
OMNI is a simple online order processing script written in PERL that helps merchants and e-sellers to screen any kind of fraud and hack attempts in their order processing systems. Using this script shopping cart owners would be able to encrypt and...
There are more than 50 free password sites on the internet that get hundreds of thousands of visitors a day. They all claim to be run by hackers that hack websites for passwords. They claim that they are doing the webmasters a service by letting...
A PHP Class for processing credit card and telecheck auth requests with the surepay merchant gateway. There is no need to understand XML to use this class, it will take care of it for you. There also exists a hack for the shopping cart PHPshop to...
Board games collection. Contains:Othello;Yahtzee;Master Mind;Blip;Poker Machine;Tic-Tac-Toe;Super Memory.
There are plenty of ways to declare C-like enums in Python. This one tries to be minimalistic and with a nice syntax, (ab)using decorators.
The code is also available here: http://codespeak.net/svn/user/antocuni/hack/enum.py |