User contributions

From CodeCodex

Search for contributions
 
 
     
  

  • 19:34, 24 June 2008 (diff | hist) . . (+1,657). . N Quadratic Solver(New page: // Quadratic Solver for PHP by Gazza 2004-03-21 // Useage: for 3x^2 + 4x + 5 = 0, use quadratic(3, 4, 5, 'root1') and quadratic(3, 4, 5, 'root2'), // or simply just quadratic(3, 4, 5, 'bot...)
  • 19:33, 24 June 2008 (diff | hist) . . (+384). . N Random Choices: Flip a Coin(New page: // get the current server time in seconds $now_seconds = date("s"); // see if it's even or odd if(($now_seconds - (2 * floor($now_seconds/2))) == 0) { // the number is even } else {...)
  • 19:32, 24 June 2008 (diff | hist) . . (+1,263). . N ExpRand(New page: <?php $min_val = 3; $max_val = 20; $average_val = 5; $loops = 0; while ($loops < 100) { $total += exprand($min_val, $max_val, $average_val); $loops ++; } $average = $total/$loop...)
  • 19:31, 24 June 2008 (diff | hist) . . (+1,380). . N Simple Algebra Problem Solver(New page: <? ################################################################################################### # This is a stupid little script I wrote in a few minutes just to see if I could figu...)
  • 19:30, 24 June 2008 (diff | hist) . . (+932). . N Random Quote Generator(New page: <html> <head> <title>Random Quote Generation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <font color="...) (current)
  • 19:30, 24 June 2008 (diff | hist) . . (+569). . N Disk Space Finder(New page: <html> <body> <?php $disktotal = Disk_Total_Space("C:/"); $disktotalKB = ($disktotal / 1000); $disktotalMB = ($disktotalKB / 1000); $disktotalGB = ($disktotalMB / 1000); $diskspace = Disk_...) (current)
  • 19:29, 24 June 2008 (diff | hist) . . (+1,073). . N Mt array rand(New page: <?php /* mt_array_rand - adapted from fake_array_rand func by zak@php.net */ copyleft (c) 2002 Will Fischer <wfischer@silverfisch.net>: function mt_array_rand($array, $num_req = 1) {...)
  • 19:28, 24 June 2008 (diff | hist) . . (+510). . N Calculate the greatest common denominator(New page: // You can see a demo here: // http://www.freephpcalculator.tk/ // License: free to do whatever you want with the code // even using it function bcgcd ($value1, $value2) { if ($value1 <...)
  • 19:27, 24 June 2008 (diff | hist) . . (+1,042). . N Random Number by Hour, Day, Month(New page: function seed_random ($how = 'total') { switch ($how) { case hour: // Sets A Random Number For The Hour $time = time(); $today = mktime(0, 0, (int)date("H", $time), (int)date...)
  • 19:27, 24 June 2008 (diff | hist) . . (+105). . N Percentage(New page: <?php Function percentage($int1, $int2) { $per = $int1 / $int2; $res = $per * 100; return $res; } ?>)
  • 19:26, 24 June 2008 (diff | hist) . . (+1,427). . N Get Prime Function(New page: <?php // floor and count added /*killabunny@seductive.com added the following: /* Took the square root out of the loop (it was a bottleneck to calculate it every time) /* Optimized the ...)
  • 19:25, 24 June 2008 (diff | hist) . . (+2,318). . N Convert Between Numeric Bases(New page: <? /**************************************** convertBase($number, $originalBase, $destinationBase); Author: Chris Heald Email: cheald45@hotmail.com Creation date: 1/16/02 L...)
  • 19:24, 24 June 2008 (diff | hist) . . (+1,624). . N Pythagorean Triple Generator(New page: <form action='<?=$_SERVER['PHP_SELF']?>' method='post'> <table> <tr> <td colspan='3' class='header'>Pythagorean Triple Generator</td> </tr> <tr> <td col...)
  • 19:23, 24 June 2008 (diff | hist) . . (+2,366). . N Kramers Rule(New page: Format:<br> Ax + By = E<br> Cx + Dy = F<br> Where A-F = already known numbers preceding variables<br> and x-y = the variables you're want to find the value of. <? function calc($a, $b, $c,...)
  • 19:23, 24 June 2008 (diff | hist) . . (+1,534). . N Augumented Matrixes(New page: <? function dlimin($a, $b, $c, $d, $e, $f, $g, $h, $i, $j, $k, $l){ $ans[0] = ($a*$f*$k)+($b*$g*$i)+($c*$e*$j)-($i*$f*$c)-($j*$g*$a)-($k*$e*$b); $ans[1] = ($d*$f*$k)+($b*$g*$l)+($c*$h*$j...)
  • 19:22, 24 June 2008 (diff | hist) . . (+3,707). . N Decimal to roman converter(New page: <?PHP /* Decimal <--> Roman 1.1 Written by: Rasmus Rimestad Email: rasmusr@online.no Homepage: http://dikt.cjb.net Written: XXIV.VII.MMI This file includes two functions string dec2rom...)
  • 19:21, 24 June 2008 (diff | hist) . . (+856). . N Fibonacci Sequence(New page: calculates two strings to a new string ... calc("1234", "1234") -> "2468": function calc($a, $b){ $result = "";//final result $len_1 = strlen($a); $len_2 = strle...)
  • 19:20, 24 June 2008 (diff | hist) . . (+1,183). . N Skewness, Kurtosis and average statistical function(New page: <?php In this code fraction, there r 3 function that run on mean or average and skewness and kurtosis. Program by : dhiranuntk@hotmail.com Date : Feb.18,2001: function mean(&$ar...)
  • 19:19, 24 June 2008 (diff | hist) . . (+379). . N Prime Numbers(New page: <? $f= 1000; $no=0; function int($num){ $g = gettype($num); if($g == "integer"){ return $num; } else { return "0"; } } for($b=2;$b<$f;$b++){ for($...)
  • 19:18, 24 June 2008 (diff | hist) . . (+1,038). . N Significant Figures(New page: function sigfigs($number,$sigfigs,$dec=".",$noround=false) { print "\$number = $number\n"; print "\$sigfigs = $sigfigs\n"; if ($sigfigs < 1) { die("You have specified a...)
  • 19:16, 24 June 2008 (diff | hist) . . (+8,616). . N Convert measurements(New page: <? // if you've got a PHP image, put the path here. Otherwise, you can just use the words PHP. $php_link = "<img border=\"0\" src=\"../images/php-small-white.gif\" align=\"texttop\" hspace...)