Skip to content

Instantly share code, notes, and snippets.

# application template for enju_leaf
# https://github.com/next-l/enju_leaf
gem 'enju_leaf', github: 'upsilon/enju_leaf', branch: 'pu'
gem 'enju_biblio', github: 'upsilon/enju_biblio', branch: 'pu'
gem 'enju_manifestation_viewer', '~> 0.3.2'
gem 'enju_circulation', '~> 0.3.2'
gem 'enju_subject', '~> 0.3.1'
gem 'enju_ndl', '~> 0.3.1'
@upsilon
upsilon / 新元号.reg
Created April 1, 2019 02:50
新元号.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Calendars\Japanese\Eras]
"2019 05 01"="令和_令_Reiwa_R"
@upsilon
upsilon / preset.xml
Last active August 8, 2017 17:56
OSMTracker for Android プリセット
<layouts>
<layout name="root">
<row>
<button type="textnote" icon="text_32x32" />
</row>
<row>
<button type="page" label="Misc" icon="button_misc" targetlayout="misc" />
</row>
<row>
<button type="page" label="Restriction" icon="button_restriction" targetlayout="restriction" />
@upsilon
upsilon / gist:6896385
Last active July 12, 2017 09:44
Doctrine_Record::free(true) を実行すると同一レコードを指す別のインスタンスまで解放されてしまう
<?php
include_once dirname(__FILE__) . '/../../bootstrap/unit.php';
include_once dirname(__FILE__) . '/../../bootstrap/database.php';
$t = new lime_test(3, new lime_output_color());
$community1 = Doctrine_Core::getTable('Community')->find(1);
$t->is($community1->id, '1');

Keybase proof

I hereby claim:

  • I am upsilon on github.
  • I am upsilon (https://keybase.io/upsilon) on keybase.
  • I have a public key whose fingerprint is EF72 E455 7FF7 AD16 3D07 B6BB D1E6 B44A 69EA EA50

To claim this, I am signing this object:

@upsilon
upsilon / memberProfileAgeTest.php
Created March 7, 2017 10:54
https://redmine.openpne.jp/issues/3852 が修正されていないと動作しないテストコード
<?php
// このファイルは test/functional/pc_frontend/ 以下に設置する
require_once __DIR__.'/../../bootstrap/functional.php';
$tester = new opTestFunctional(new opBrowser());
$member6 = Doctrine_Core::getTable('Member')->find(6);
$member6->setConfig('pc_address', 'sns6@example.com');
$member6->setConfig('password', md5('password'));
@upsilon
upsilon / apitest.php
Last active March 6, 2017 11:09
opWebAPIPlugin でメンバーID 1 のプロフィールを取得するサンプル
<?php
// https://oauth.googlecode.com/svn/code/php/OAuth.php を使用する
require_once __DIR__.'/OAuth.php';
define('BASE_URL', 'http://sns.example.com');
// http://sns.example.com/pc_backend.php/connection/new で取得できる
define('CONSUMER_KEY', '8LJ75AjDVF6t0Seh');
define('CONSUMER_SECRET', '5HIahbSn3Dh_-Cb#aQ7?b_D3JzgyfmG#');
@upsilon
upsilon / activity-test.xml
Last active April 27, 2016 10:17
OpenSocialでアクティビティの投稿をテストするやつ
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="アクティビティのテスト" author="Kimura Youichi (@kim_upsilon)" height="150">
<Optional feature="osapi"/>
<Require feature="opensocial-0.8"/>
</ModulePrefs>
<Content view="home,profile,canvas" type="html">
<![CDATA[
<form id="activityForm">
<input type="input" id="activityInput"/>
@upsilon
upsilon / tepco-usageview.xml
Last active April 21, 2016 03:49
東京電力管内の電力使用量をリアルタイムに表示するOpenSocialガジェット
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="電力供給状況" description="東京電力の電力供給状況を表示するガジェット" author="Kimura Youichi (@kim_upsilon)" height="150">
<Require feature="views" />
</ModulePrefs>
<Content view="home,profile" type="html">
<![CDATA[
<style>
p, div {
padding: 0;
@upsilon
upsilon / os_sample.xml
Last active April 19, 2016 04:26
OpenSocialサンプルアプリ
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Test Application">
<Require feature="opensocial-0.9" />
</ModulePrefs>
<Content type="html">
<![CDATA[
こんにちは!
]]>
</Content>