Skip to content

Instantly share code, notes, and snippets.

View kawahara's full-sized avatar

Shogo Kawahara (bucyou) kawahara

  • freee
  • Kyoto, Japan
  • 00:29 (UTC +09:00)
View GitHub Profile
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
</head>
<body>
<script>
$.ajax({
@kawahara
kawahara / sample_code.html
Created October 17, 2012 11:18
sample_code
<!DOCTYPE>
<!--
It's a sample code for RWS by jQuery
-
Copyright (c) 2012 Shogo Kawahara
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@kawahara
kawahara / data
Created September 14, 2012 17:25
test datas
data1
<?php
// autoload.php を読み込む
require_once __DIR__.'/autoload.php';
$client = new RakutenRws_Client();
$client->setApplicationId('アプリID');
$response = $client->execute('IchibaItemSearch', array(
// アフィエイトIDをパラメータにセット
@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'));
+
<html>
<head>
<title>Hello world!!!</title>
</head>
<body>
Hello world!!
</body>
</html>