Skip to content

Instantly share code, notes, and snippets.

View kawahara's full-sized avatar

Shogo Kawahara (bucyou) kawahara

  • freee
  • Kyoto, Japan
  • 03:36 (UTC +09:00)
View GitHub Profile
Hello world!!!!!
#!/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: setup/sql/mysql40/option/new_biz_schedule_converter.php
===================================================================
--- setup/sql/mysql40/option/new_biz_schedule_converter.php (リビジョン 13633)
+++ setup/sql/mysql40/option/new_biz_schedule_converter.php (作業コピー)
@@ -7,6 +7,11 @@
//OpenPNEからconfig.phpの情報を読み込む
define('OPENPNE_DIR', realpath('../../../'));
+
+if (!defined('E_DEPRECATED')) {
Index: config.php.sample
===================================================================
--- config.php.sample (リビジョン 13630)
+++ config.php.sample (作業コピー)
@@ -227,6 +227,10 @@
// デバッグ、エラーハンドリング、ログ設定
///
+if (!defined('E_DEPRECATED')) {
+ define('E_DEPRECATED', 8192);
diff --git a/apps/pc_frontend/modules/member/templates/homeSuccess.php b/apps/pc_frontend/modules/member/templates/homeSuccess.php
index 43f5e3d..977ecf1 100644
--- a/apps/pc_frontend/modules/member/templates/homeSuccess.php
+++ b/apps/pc_frontend/modules/member/templates/homeSuccess.php
@@ -1,5 +1,21 @@
<?php use_helper('Javascript') ?>
+<?php $sortable_params = array(
+ 'tag' => 'div',
+ 'handle' => 'partsHeading',
<?php
include_once './oauth/OAuth.php';
// change these consts
define('CONSUMER_KEY', '#CONSUMER_KEY#');
define('CONSUMER_SECRET', '#CONSUMER_SECRET#');
define('BASE_URL', '#SNS_URL#');
diff --git a/config/doctrine/schema.yml b/config/doctrine/schema.yml
index 4ee403a..7696e66 100644
--- a/config/doctrine/schema.yml
+++ b/config/doctrine/schema.yml
@@ -15,7 +15,7 @@ Op2Entry:
columns:
id: { type: integer(4), primary: true, autoincrement: true }
op2_member_id: { type: integer(4), notnull: true }
- number: { type: intger(4) }
+ number: { type: integer(4) }
<?php
// サンプルです 実際の利用には適しません。
include_once 'lib/OAuth.php';
define('CONSUMER_KEY', '#CONSUMER_KEY#');
define('CONSUMER_SECRET', '#CONSUMER_SECRET#');
define('BASE_URL', '#BASE_URL#');
<?php
include_once 'lib/OAuth.php';
class OAuthSignatureMethod_RSA_SHA1_opOpenSocialPlugin extends OAuthSignatureMethod_RSA_SHA1
{
protected function fetch_private_cert(&$request) {
}
protected function fetch_public_cert(&$request) {