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 | |
/** | |
* rhaco で autoload したかったからつくった | |
* | |
* @author riaf <[email protected]> | |
*/ | |
require_once 'rhaco/Rhaco.php'; | |
Rhaco::import('io.FileUtil'); | |
$files = FileUtil::ls(RHACO_DIR, true); |
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
% svn diff | |
Index: examples/sig.rb | |
=================================================================== | |
--- examples/sig.rb (リビジョン 26154) | |
+++ examples/sig.rb (作業コピー) | |
@@ -62,7 +62,7 @@ | |
:topic => "", | |
:observer => nil, | |
} unless @channels.key?(channel) | |
- post @prefix, JOIN, m.params.first |
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
#!/bin/sh | |
################################################# | |
# rhaco + conveyor をパッケージングするスクリプト | |
# | |
# @author riaf | |
################################################# | |
printf "welcome rhaco packaging system.\n\n" | |
printf "start archive? (y/n) : " |
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 | |
/** | |
* customGoogleAnalytics | |
* | |
* @author riaf <[email protected]> | |
* @license New BSD License | |
* @version $Id$ | |
*/ | |
/** |
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 Test_DB extends Ethna_DB_ADOdb | |
{ | |
var $type; | |
var $dsninfo; | |
var $sql; | |
function Test_DB(&$controller, $dsn, $persistent){ | |
parent::Ethna_DB_ADOdb($controller, $dsn, $persistent); |
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 | |
/** | |
* .capa engine | |
* @author riaf | |
*/ | |
$_SECRET = md5('secret'); | |
try { | |
$pdo = new PDO('mysql:host=localhost; dbname=test', 'user', 'pass'); | |
} catch (PDOException $e) { |
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 | |
/** | |
* CapaAPI | |
* for http://gist.github.com/59952 | |
* | |
* @author riaf <[email protected]> | |
*/ | |
Rhaco::import('lang.Variable'); | |
Rhaco::import('network.http.Http'); | |
Rhaco::import('tag.model.TemplateFormatter'); |
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 | |
/** | |
* iPhoneのアイコンみたいな画像を作るよ | |
* | |
* @author riaf<[email protected]> | |
*/ | |
if(!class_exists('Imagick')){ | |
throw new Exception('Imagick required.'); | |
return -1; | |
} |
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(!class_exists('Rhaco')) require_once 'rhaco/Rhaco.php'; | |
Rhaco::import('network.http.Browser'); | |
class AmazonReport | |
{ | |
var $base_url = 'https://affiliate.amazon.co.jp'; | |
var $browser; | |
function AmazonReport($email, $password){ |
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 | |
/** | |
* Ethna_Renderer_Mumu.php | |
* | |
* @author riaf <[email protected]> | |
* @package Ethna | |
* @version $Id$ | |
*/ | |
require_once 'mumu.php'; |
OlderNewer