View lol.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function rgb_rand() | |
{ | |
$r1 = mt_rand(0,255); | |
$r2 = mt_rand(0,255); | |
$r3 = mt_rand(0,255); | |
return 'rgb('.$r1.', '.$r2.', '.$r3.')'; | |
} | |
?> |
View ar.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre><?php | |
$ar = array( | |
array(103,105,108), | |
array(53,231,451), | |
array(103,12,32), | |
array(623,125,156) | |
); | |
$count = 0; | |
foreach($ar as $i) |
View kaasschaaf.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Count from 1 to 100, | |
* for every multiple of 3, echo "Kaas" | |
* for every multiple of 5, echo "Schaaf" | |
*/ | |
function kaasschaaf() | |
{ | |
$output = ''; | |
for($c = 1; $c <= 100; $c++) |
View autoloader.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
** @file autoloader.inc.php | |
** @author immeëmosol (programmer dot willfris at nl) | |
** @date 2010-12-06 | |
** Created: lun 2010-12-06, 14:05.13 CET | |
** Last modified: lun 2010-12-06, 15:19.01 CET | |
**/ | |
$classes_directory = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'classes'; |
View autoload.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Autoloader | |
*/ | |
function mb_autoload($class_name) | |
{ | |
require_once('classes/'.$class_name.'.class.php'); | |
} |
View IfException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file IfException.php | |
* @author | |
* - immeëmosol (programmer dot willfris at nl) | |
* @date 2011-09-22 | |
* Created: ĵaŭ 2011-09-22, 02:14.46 CEST | |
* Last modified: ĵaŭ 2011-09-22, 05:02.52 CEST | |
**/ |
View gist:1324320
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP OOP | |
Team | |
- Mathijs | |
- Stefan | |
- Farid | |
- Ertugrul | |
- Bahtiyar | |
- Danny | |
- Fons |
View View.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* View class. | |
* | |
* | |
*/ | |
class View | |
{ | |
protected $data = array(); | |
View hide-jimmy-wales.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Jimmy Wales. | |
// @match http://*.wikipedia.org/* | |
// ==/UserScript== | |
(function() { | |
var banner = document.getElementById('siteNotice'); | |
banner && banner.style.display = 'none'; | |
}()); |
View Punt.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Punt | |
*/ | |
var Punt = function( x, y ) | |
{ | |
this.x = x || 0; | |
this.y = y || 0; | |
this.distance = function( punt ) | |
{ |
OlderNewer