Call A Function
This simple generator function is used to call a function X times per second.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Call a function/method X times per second Download |
In functional programming, currying is a way to bind arguments with a function and wait for the rest of the arguments to show up later. You "curry in" the first few parameters to a function, giving you a function that takes subsequent parameters as input and calls the original with all of those...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (54): Associating parameters with a function 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 |
Sometimes inside a decorator that creates a function with a generic (*args, **kwargs) signature, you want to access a value passed for a particular parameter name to a wrapped function, but don't know whether that value will be passed as a positional or keyword argument, or whether the wrapped...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Finding the value passed to a function by name Download |
This simple m-file plots the Soft Handover probability as a function of the Soft Handover Threshold value used in the UTRA Soft Handover Algorithm. The relationship has been dertived by taking the ratio between the Cell area where Soft Handovers are enabled and the total Cell area.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (46): Soft Handover Probability as a function Download |
Computes the nth moment mean of a function (needs more implentation).m = moment(x, y, n)m = nth moment of yx = domainy = datan = nth moment == 1 by defaultm = int(x^n * y) / int(y)where int is integral over all x integral is calculated using trapezium rule
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Moments of a function Download |
Safely and easily call functions that may not be available (such as those provided by a plugin that gets deactivated).Assuming you had something like this in a template:If you deactivated the plugin that provided list_cities(), your site would generate an error when that template is accessed.You...
Platforms: PHP
License: Freeware | Size: 10 KB | Download (49): Safe Function Call for WordPress Download |
This function decorates a function with tail call optimization. It does this by throwing an exception if it is it's own grandparent, and catching such exceptions to fake the tail call optimization. This function fails if the decorated function recurses in a non-tail contexif the de />
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (56): Tail Call Optimization Decorator Download |
This function can extract a inner function from a class or a function. It may be useful when writing a unit test code.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Extract a inner function from a class Download |
When a DLL takes a long time to run, things go silent. It can look like the program has crashed even when it is running along just fine. The Matlab waitbar() function can be used in Matlab, but a waitbar is not available in C. However, Matlab can be called from C, so the user can still be...
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (40): Call a waitbar from within a DLL written in C Download |
Devel::CallerItem is an Perl object representing a function call from the stack of function calls. SYNOPSIS Usage: require Devel::CallerItem; $call = Devel::CallerItem->from_depth($depth) || return; $passed_arguments_ref = $call->argument_list_ref(); $callpack = $call->pack();...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (113): Devel::CallerItem Download |
RPyC stands for Remote Python Call, a pun over remote procedure call. It is completely transparent and symmetrical. It is inspired by the work of eyal lotem (pybuild.sf.net) on pyinvoke, and was made for two purposes: Learning the lowlevel of the python language attempting to improve pyinvoke...
Platforms: *nix
License: Freeware | Size: 30.72 KB | Download (94): Remote Python Call Download |
With this Mod, you can enable oder disable the phpBB "Call-Home" Function in Admin Control Panel
Platforms: Windows, *nix, PHP, BSD
License: Freeware | Download (55): Disable phpBB Call-Home Download |
This script defines a simple but useful class that emulates a function to gracefully permit latent assignment. In other words, you can use the emulating class as a valid function in assignments with the ability to later associate a function to perform the actual operations.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Function emulation using __call__ Download |
This script contains a function that finds out the gcd(a,b)(great common divisor of a and b) as a linear conbination of a anb b, ax by=gcd(a,b).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Extended great common divisor function Download |
This simple m-file plots the Soft Handover probability as a function of the Soft Handover Threshold value used in the UTRA Soft Handover Algorithm. The relationship has been dertived by taking the ratio between the Cell area where Soft Handovers are enabled and the total Cell area.
Platforms: Matlab
License: Freeware | Size: 10 KB | Download (44): Soft Handover Probability as a funiction of the Soft Handover Threshold Download |
MolMass is a function for calculating the molar weight of a substance given in form of a chemical formula.Function call: MM = MolMass(substance)Substance is a string of the chemical formula of a substance.Example: MM = MolMass('Fe2(SO4)3');Substance can also be a vector of substances opened by...
Platforms: Matlab
License: Freeware | Size: 102.4 KB | Download (46): Molecular Weight Calculator Function Download |
This script contains a function that takes in an arbitrary string and converts it into its raw string equivalent. It is very useful when a user needs to input text and you want the raw equivalent to be used and not the processed version.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Convert a string into a raw string Download |
This script contains a function to check on the occurence of a set of characters.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (64): Checking whether a string contains a set of chars Download |
protect_utf8 is a function decorator that can prevent naive functions from breaking UTF-8. If the wrapped function takes a string, and that string happens to be valid UTF-8, converts it to a unicode object and call the wrapped function. If a conversion was done and if a unicode object was...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): ProtectUTF8 Download |