Skip to content

Instantly share code, notes, and snippets.

View tmyymmt's full-sized avatar

Tomoya Yamamoto tmyymmt

View GitHub Profile
@tmyymmt
tmyymmt / ja.lng.php.1.5.0.diff
Created September 6, 2014 03:41
pukiwiki attach zip /ja.lng.php.1.5.0.diff
184d183
< 'err_extract' => 'Unable to extract files from uploaded archive',
187,188c186
< 'btn_submit' => '実行',
< 'msg_extract' => 'Extract & Attach files'
---
> 'btn_submit' => '実行'
@tmyymmt
tmyymmt / en.lng.php.1.5.0.diff
Created September 6, 2014 03:40
pukiwiki attach zip /en.lng.php.1.5.0.diff
182d181
< 'err_extract' => 'Unable to extract files from uploaded archive',
185,186c184
< 'btn_submit' => 'Submit',
< 'msg_extract' => 'Extract & Attach files'
---
> 'btn_submit' => 'Submit'
@tmyymmt
tmyymmt / attach.inc.php.1.5.0.diff
Created September 6, 2014 03:38
puwikiki attach zip /plugin/attach.inc.php.1.5.0.diff
42,43d41
< define('PLUGIN_OPEN_AVOID_DIRECT', FALSE); // TRUE or FALSE
<
160c158
< global $vars, $_attach_messages, $notify, $notify_subject;
---
> global $_attach_messages, $notify, $notify_subject;
190,221d187
< if ($vars['extract_mode'] == 'on') {
< switch (strtolower(substr($file['name'], -4))) {
@tmyymmt
tmyymmt / .emacs
Last active August 29, 2015 14:15
.emacs
(define-key global-map "\C-a" 'start-kbd-macro)
(define-key global-map "\C-q" 'end-kbd-macro)
(define-key global-map "\C-z" 'call-last-kbd-macro)
(define-key global-map "\C-o" 'beginning-of-buffer)
(define-key global-map "\C-l" 'end-of-buffer)
(put 'upcase-region 'disabled nil)
(cond
( (or (eq window-system 'ns) (eq window-system 'mac) )
; for cocoa emacs
@tmyymmt
tmyymmt / Brewfile.sh
Last active August 29, 2015 14:17
Brewfile.sh
brew update
brew upgrade
brew install brew-cask
brew install zsh
brew install git
brew install hub
brew install gist
brew install curl
brew install wget
@tmyymmt
tmyymmt / main.xml
Created April 3, 2012 01:36
res/layout/main.xml
<nu.mine.tmyymmt.android.widget.RetractiveHorizontalScrollView>
<LinearLayout>
<TextView />
<TextView android:id="@+id/child_content" />
<TextView />
</LinearLayout>
</nu.mine.tmyymmt.android.widget.RetractiveHorizontalScrollView>
@tmyymmt
tmyymmt / monad1.java
Created September 16, 2012 16:45
Monad 1
if (foo != null) {
Bar bar = foo.getBar();
if (bar != null) {
Baz baz = bar.getBaz();
if (baz != null)
return baz.compute();
else
return null;
}
else
for {
foo <- maybeFoo
bar <- foo.bar
baz <- bar.baz
} yield baz.compute
@tmyymmt
tmyymmt / grep-specs2-unit-selected-buffer.l
Created October 11, 2012 15:00
Grep description of specs2 unit specification in selected buffer on xyzzy
; Grep description of specs2 unit specification in selected buffer on xyzzy
; Please copy & paste following code at your .xyzzy
; Usage: M-x grep-specs2-unit-selected-buffer
(defun grep-specs2-unit-selected-buffer ()
(interactive)
(grep " should \\| in " (selected-buffer)))
@tmyymmt
tmyymmt / init.el
Created November 7, 2012 16:25
init.el for cocoa emacs
; css-mode
(defun coding-style-css ()
(setq css-indent-offset 2))
(add-hook 'css-mode-hook 'coding-style-css)
;
(setq truncate-lines t)
(setq truncate-partial-width-windows t)