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
@import "original_default.css"; | |
@import "print.css" print; |
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 | |
/* this code is under Public Domain */ | |
$functions = get_defined_functions(); | |
foreach ($functions['internal'] as $f) { | |
$rf = new ReflectionFunction($f); | |
$params = $rf->getParameters(); |
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
diff --git a/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php b/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php | |
index d95785d..04845b7 100644 | |
--- a/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php | |
+++ b/plugins/sfImageHandlerPlugin/lib/helper/sfImageHelper.php | |
@@ -71,7 +71,7 @@ function sf_image_path($filename, $options = array(), $absolute = false) | |
} | |
else | |
{ | |
- $parts = explode('_', $filename); | |
+ $parts = explode('_', strtr($filename, '.', '_')); |
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 header('Content-Type: text/plain') ?> | |
PHP Version: <?php echo phpversion().PHP_EOL ?> | |
magic_quotes_gpc: <?php echo ini_get('magic_quotes_gpc').PHP_EOL ?> | |
$_GET['a']: <?php echo $_GET['a'].PHP_EOL; ?> |
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
#!/usr/sbin/dtrace -C -Z -s | |
#pragma D option quiet | |
/* | |
C オプションをつけることで、 C コンパイラのプリプロセッサが利用可能になる | |
(http://docs.oracle.com/cd/E19253-01/819-0395/chp-prog-5/index.html) | |
*/ | |
#define BEGIN_ENTRY() \ |
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 | |
if (isset($_GET['view_source'])) | |
{ | |
highlight_file(__FILE__); | |
exit; | |
} | |
if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') | |
{ | |
header('Content-Type: text/xml'); |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG/MacGPG2 v2.0.17 (Darwin) | |
Comment: GPGTools - http://gpgtools.org | |
mQENBE6qdy8BCACgK0kZUgjJEIMQ3derJpqaQjSbSYPpjot6exH3+Z/QbaGsBNm3 | |
+mlD+XgFZbX7J8pTlcrpBB9ntKCORuSpF5O3AjB/8FbHy+mcoTKg16JP6qlYRuSF | |
9PappM7hDzpcI1NiXdckjHRGGtIa6Lxg26zB+2hQPjF0PjAPqojFZOTmTk4fEaqb | |
tvjf1XAQRHLn0bejfF5ooRw27WgQDUaweBHghG7CYxWF1zjunkyXeWPrZel7thz1 | |
epfm3mVTlNzH2iBVlQuZBcHmZrJK6EfyfOgO/xk9vcfgzaFztuSn/vW2iqfMEF9G | |
1MgO9A0+wffmW5UgDREdb7Vw4TopShJge+dHABEBAAG0IktvdXN1a2UgRWJpaGFy |
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 | |
// You need to clone https://github.com/nikic/PHP-Parser | |
require_once __DIR__.'/PHP-Parser/lib/PHPParser/Autoloader.php'; | |
PHPParser_Autoloader::register(); | |
if (2 > $argc) { | |
var_dump('$argv[1] is needed'); | |
exit; | |
} |
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 | |
// You need to clone https://github.com/nikic/PHP-Parser | |
require_once __DIR__.'/PHP-Parser/lib/PHPParser/Autoloader.php'; | |
PHPParser_Autoloader::register(); | |
class Teriyaki | |
{ |
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 | |
class Teriyaki | |
{ | |
public function __construct(Teriyaki $teriyaki) | |
{ | |
if ($teriyaki instanceof Teriyaki) { | |
var_dump('^^'); | |
} | |
} |