Border Collies In Need Of A Home
This one line function adds up the ascii values of a string and returns the total as a checksum. Also included is a variation which returns the checksum mod 256 (so it can be used as a single byte).The same technique can be used to add up a list of numbers, or to return the average of a list...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (63): Simple string checksum Download |
When working with text, it may be necessary to change the indentation level of a block. This code will take a multiline string and add or remove leading spaces to each line so that the indentation level of the block matches some absolute number of spaces.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): Changing the indentation of a multi line string Download |
This script defines a class you could use in place of a string and it emulates a string in all practical ways except that comparisons and lookups are case insensitive. All uses of the string for assignments, however, yield the original case.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): Case Insensitive Strings Download |
This script allows you to replace a portion of a string at a given position.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (59): Replacing a portion of a string Download |
This script uses string.index(sub) function which returns a list of indices of ALL occurances of a substring in the string.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Indices of a SubString in a Given String Download |
This script shows a way to generate a list of all strings (in this case, string=list of symbols) of a given alphabet having a specified length by using list comprehensions. Strings (not the 'string' type) are frequently used in computer science; for example numbers are encoded as strings of...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Generating all strings of a given alphabet Download |
G-Cows is a software project consisting in: - definition of a scripting language designed for creation of web sites; - interpreter for the scripting language (Cows); - a makefile generator (Cows-mkgen). Cows is the interpreter for the Cows scripting language, used to parse HTML files...
Platforms: Windows, Mac, *nix, C/C++, BSD
License: Freeware | Download (58): G-Cows Download |
This script is yet another combination generator, with an extra twist: the generated combinations can be yielded in blocks of a given size. This comes useful (or necessary) when processing arbitrarily long or infinite iterables in bounded-size blocks.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Generating combinations in blocks Download |
Experience the wonders of the world with Pyramid Mahjong. This classically architected board game is fashioned to look like one the famous pyramids of Giza, and rivals it in intrigue.
This puzzle game is for mahjong solitaire experts only. So, play it if you're in need of a serious challenge....
Platforms: All
License: Freeware | Size: 5.48 MB | Download (57): Pyramid Mahjong Download |
This script uses the Internet Protocol Helper functions on Win32 and helps you to find the MAC adress of a remote computer.
Platforms: Windows, Python,
License: Freeware | Download (56): Get the MAC address of a remote computer Download |
A recursive function to get permutation of a list script allows you to make permutation on a list of objects. The script does not work on repeated items in the list.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (55): A recursive function to get permutation of a list Download |
The purpose of Input Shaping is to filter out big changes (typically steps) in the reference signal of a closed-loop system which excite all the modes of the plant causing relevant snap overshoots and oscillations in the response.The underlying working principle is to apply the step in subsequent...
Platforms: Matlab
License: Freeware | Size: 40.96 KB | Download (55): GA-tuned Input Shaper Download |
PostBooks is the free and open source ERP solution from xTuple. It is built with open source technologies such as the PostgreSQL database, and both the server and the graphical client run on Windows, Mac, and Linux. PostBooks features a fully integrated accounting system (A/R, A/P, and General...
Platforms: Mac
License: Freeware | Size: 245.5 MB | Download (55): PostBooks Installer Download |
This is a basic mod which changes the display in the shopping cart to show item subtotals in place of a list of item price, attribute price etc.
Platforms: Windows, *nix, PHP, BSD
License: Freeware | Download (54): Displaying Item subtotals in cart Download |
I needed to write a sed/awk Python equivalent for walking into a directory tree and renaming certain subdirectories, while also looking into all xml files on the way and replacing/modifying certain strings in those files.It would be nicer if someone could suggest an enhanced re.sub(regex,...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Rename subdirectories of a directory tree Download |
This scripts shows you how to obtain the name of a method or a function from within the running method/function.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Obtaining the name of a function/method Download |
This script shows a clean way of implementing a 'switch' statement in Python via a dictionary container. The dictionary is made up of known 'named states' that are tested in sequence for their current 'state'.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Using a Dictionary in place of 'switch' Download |
3D Array Factor of a 4x4 planar array antenna calculated using general formulas and then plotted in 3D format."AB" shows the excitation amplitude of the elements and "AB_phase" shows their phases.Elements are placed on the x and y axis and element factor is ignored. The code can easily be...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (52): 3D Array Factor of a 4x4 planar array antenna Download |
This simple code calculates the convex hull of a set of 2D points and generates EPS files to visualise them.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Finding the convex hull of a set of 2D points Download |
Geodes is a mac application designed to do geometry and math like you can do in front of a sheet of paper. It both includes simple figures drawing (lines, circles) and high level analytic geometry.
Platforms: Mac
License: Freeware | Size: 1.43 MB | Download (52): Geodes Download |