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 | |
return function($text){ | |
if($text == "hello"){ | |
//do hello world | |
} | |
if($text == "kill me"){ | |
//took a gun and shoot =P | |
} | |
} |
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 | |
return function($site,$nick,$user,$addr,$wildsite,$chan,$text) { | |
global $Database; | |
echo "$chan->$nick: $text\n"; | |
$text = strtolower($text); | |
$tok = explode(" ",$text); | |
$db = "{$this->Irc['Nick']}_{$this->Irc['Channel']}"; | |
mysql_select_db($db); | |
$result = mysql_query("SELECT * FROM users"); |
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
{ | |
"author": "flyingmana", | |
"repositories" : [ | |
{ | |
"source" : "svn://arbitracker.org/phpillow/trunk", | |
"fetcher" : "svn", | |
"target" : "phpillow", | |
"autoload" : | |
{ | |
"scan" : ["src/classes/"] |
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 | |
require_once 'ezc/Base/base.php'; | |
spl_autoload_register( array( 'ezcBase', 'autoload' ) ); | |
function fetch( $messageNrs , $imap){ | |
$mails = array(); | |
foreach( $messageNrs as $nr) | |
{ |
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
yaws_404_to_index_php.erl is the src for a custom 404 errormod. | |
This error mod executes the request with index.php in docroot, if the requests file does not exist in filesystem. | |
This code only works with php configured as cgi, but sure could easy extended to support fcgi, too. | |
You compile this with 'erlc' and have to place it in the ebin directory of yaws. | |
For more information look at http://yaws.hyber.org/ and https://github.com/klacke/yaws | |
In the config the "dir_listings = false" is important and also the redirect from "/data" to somewhere else, because files will be saved in this directory and it should not be accessable from the outside. |
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 | |
/** | |
a little simulation for my brother who thought, | |
you can make money with the right roulette strategy. | |
**/ | |
$budget = 1000000; | |
$games = 0; |
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
/** | |
* format dd and dt as group | |
*/ | |
hmtl{ | |
background: #f06; | |
background: white; | |
min-height: 100%; | |
} | |
.block{ | |
float:left; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<config> | |
<modules> | |
<Cotya_Performance> | |
<version>0.1.0</version> | |
</Cotya_Performance> | |
</modules> | |
<frontend> |
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
PHPUnit 3.6.10 by Sebastian Bergmann. | |
Configuration read from /work/magento/wf_magento_example/taf/phpunit.xml.dist | |
.................................FF........F.............EE.F 61 / 1570 ( 3%) | |
FFFEFSSSSSSSSSSSFSSSSSSSSSSSSSSFSSSSSSSSSSSSSSSFSSSSSSSSSSSSS 122 / 1570 ( 7%) | |
SSSSSSSSSSSSSSSSSFSSSSSSSSSSSFSSSSSSSSSSSSSSFSSSSSSSSSSSSSSSF 183 / 1570 ( 11%) | |
SSSSSSSSSSSSSSSSSSSSFSSSSSSSSSSSFSSSSSSSSSSSSSSFSSSSSSSSSSSSS 244 / 1570 ( 15%) | |
SSFSSSSSSSSSSSFSSSSSSSFSSFSSSSSSSSSSSFSSSSSSSFSSFSSSSSSSSSSSS 305 / 1570 ( 19%) | |
SSSSSSSSSFSSSSSSSSSSSFSSSSSSSFSSFFSSSSSSSSSSSSSSSSSSSSSSSSSSS 366 / 1570 ( 23%) |
OlderNewer