Skip to content

Instantly share code, notes, and snippets.

View kawahara's full-sized avatar

Shogo Kawahara (bucyou) kawahara

  • freee
  • Kyoto, Japan
  • 14:21 (UTC +09:00)
View GitHub Profile
@kawahara
kawahara / autoload.php
Created November 19, 2011 15:04
mockery
<?php
// autoload
spl_autoload_register(function($name) {
require __DIR__.'/lib/'.$name.'.php';
});
@kawahara
kawahara / autoload.php
Created November 16, 2011 08:13
php-mock
<?php
// autoload.php
// php5.3 <=
spl_autoload_register(function($name) {
require __DIR__."/lib/".$name.".php";
});
<?php
/*
* The following methods are derived from code of the Zend Framework (1.10dev - 2010-01-24)
*
* Code subject to the new BSD license (http://framework.zend.com/license/new-bsd).
*
* Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
*/
<?php
class opPasswordHashException extends Exception {}
/**
* opPasswordHash
*
* This class is based on
* Portable PHP password hashing framework <http://www.openwall.com/phpass/>
* by Solar Designer <solar at openwall.com>.
diff --git a/lib/form/MemberApplicationSettingForm.class.php b/lib/form/MemberApplicationSettingForm.class.php
index 05478ee..1e33062 100644
--- a/lib/form/MemberApplicationSettingForm.class.php
+++ b/lib/form/MemberApplicationSettingForm.class.php
@@ -34,6 +34,8 @@ class MemberApplicationSettingForm extends sfForm
public function setConfigWidgets($memberId, $modId)
{
+ sfContext::getInstance()->getConfiguration()->loadHelpers(array('Escaping'));
+
Hello world!!!!!
<html>
<head>
<title>Hello world!!!</title>
</head>
<body>
Hello world!!
</body>
</html>
#!/bin/sh
ack-grep -w -l "class Album" | xargs perl -p -i -e "s/\bclass Album\b/class Shindig_Album/g"
ack-grep -w -l "class Activity" | xargs perl -p -i -e "s/\bclass Activity\b/class Shindig_Activity/g"
ack-grep -w -l "instanceof Activity" | xargs perl -p -i -e "s/\binstanceof Activity\b/instanceof Shindig_Activity/g"
ack-grep -w -l "class Config" | xargs perl -p -i -e "s/\bclass Config\b/class Shindig_Config/g"
ack-grep -w -l "Config::" | xargs perl -p -i -e "s/\bConfig::/Shindig_Config::/g"
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="App Test - 1" description="Pc App Test" author="Shogo Kawahara">
<Require feature="opensocial-0.9" />
<Require feature="dynamic-height" />
<Require feature="osapi" />
<Require feature="flash" />
<Require feature="views" />
</ModulePrefs>
<Content type="html" view="canvas">
Index: config.php.sample
===================================================================
--- config.php.sample (リビジョン 13630)
+++ config.php.sample (作業コピー)
@@ -227,6 +227,10 @@
// デバッグ、エラーハンドリング、ログ設定
///
+if (!defined('E_DEPRECATED')) {
+ define('E_DEPRECATED', 8192);