Skip to content

Instantly share code, notes, and snippets.

View gongo's full-sized avatar

Wataru MIYAGUNI gongo

View GitHub Profile
@gongo
gongo / gist:2924677
Created June 13, 2012 15:13
上のやつを下のやつに変換するときの操作をマクロってみたらこうなった
;; 2012-06-12 hoge fuga hago
;; 2012-06-11 aaa bbb
;; 2012-06-10 12345 67890 00000 01
;; ↓
;; 2012-06-12 hoge
;; 2012-06-12 fuga
;; 2012-06-12 hago
;; 2012-06-11 aaa
;; 2012-06-11 bbb
;; 2012-06-10 12345
@gongo
gongo / gist:2865931
Created June 4, 2012 02:19
http://gongo.hatenablog.com/ で使ってるカスタマイズほげほげのcss
/* <system section="theme" selected="report"> */
@import "/css/theme/report/report.css";
/* </system> */
/* <system section="background" selected="bg11"> */
body{ background-color:#fff; background-image:url('/images/theme/backgrounds/theme11.png'); background-repeat:repeat; background-attachment:scroll; }
/* </system> */
div#container {
(:name anything-rdefs
:description "anything-rdefs"
:type git
:url "git://github.com/wakaran/anything-rdefs.git"
:depends anything
:after (lambda ()
(let ((name (concat (el-get-package-directory "anything-rdefs")
"/rdefs.rb")))
(unless (file-exists-p name)
(with-current-buffer
@gongo
gongo / GongoBaseTest.php
Created May 29, 2012 04:55
PHPUnit_Extensions_SeleniumTestCase::takeScreenshot で作られるファイル名をテストケース名に変更 http://gongo.hatenablog.com/entry/2012/05/29/143613
<?php
abstract class GongoBaseTest extends PHPUnit_Extensions_SeleniumTestCase
{
protected $captureScreenshotOnFailure = TRUE;
protected $screenshotPath = '/tmp/screenshots';
protected $screenshotUrl = 'http://localhost/screenshots'; // これは適当でもいい
protected function takeScreenshot()
{
@gongo
gongo / twipass.el
Created May 10, 2012 01:18
twipass.el -- Twitter パスワードかもしれないものが大量流出!そこであなたの見たものは・・!?
;;; twipass.el -- Twitter パスワードかもしれないものが大量流出!そこであなたの見たものは・・!?
;; MAHALO License (based on MIT License)
;;
;; Copyright (c) 2012 Wataru MIYAGUNI (gonngo _at_ gmail.com)
;;
;; 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
@gongo
gongo / fake-full-name.el
Created April 10, 2012 08:41
SKK の人名辞書ファイルから架空の氏名を生成する fake-full-name.el
;;; fake-full-name.el -- SKK の人名辞書ファイルから架空の氏名を生成する
;; MAHALO License (based on MIT License)
;;
;; Copyright (c) 2012 Wataru MIYAGUNI (gonngo _at_ gmail.com)
;;
;; 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
@gongo
gongo / gen_php_keywords.php
Created April 3, 2012 07:20
PHP 5.3 の定義済み定数や関数、予約語の一覧を出力する (auto-complete 用辞書)
#!/usr/bin/env php
<?php
// 定義済み定数
foreach (get_defined_constants() as $key => $value) {
echo $key . "\n";
}
// 定義済み関数
foreach (get_defined_functions() as $place => $list) {
foreach ($list as $name) {
@gongo
gongo / dnso.el
Created March 3, 2012 06:59
見たい文字だけを表示する elisp (dnso.el)
;;; dnso.el -- Do not show off!
;; MAHALO License (based on MIT License)
;;
;; Copyright (c) 2012 Wataru MIYAGUNI (gonngo _at_ gmail.com)
;;
;; 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
@gongo
gongo / json-reformat.el
Last active June 11, 2020 00:48
見づらい JSON 文字列を雰囲気見やすくする elisp です http://gongo.hatenablog.com/entry/2012/02/10/222051
;;; json-reformat --- Reformat tool for JSON
;; Author: Wataru MIYAGUNI <[email protected]>
;; Keywords: json
;; Copyright (c) 2012 Wataru MIYAGUNI
;;
;; MIT License
;;
;; Permission is hereby granted, free of charge, to any person obtaining
@gongo
gongo / openni_install.sh.diff
Created October 22, 2011 06:45
OpenNI, SensorKinect and NITE patch for Homebrew
--- install.sh.orig 2011-07-19 21:58:49.000000000 +0900
+++ install.sh 2011-10-22 15:47:46.000000000 +0900
@@ -14,19 +14,7 @@
Shows this help screen.
"
-OS_NAME=`uname -s`
-
-case $OS_NAME in
-Darwin)