こんな指針がいいのかなー 2013 夏 ver.
- 「例外をキャッチする主な目的は、エラーの原因を取り除いて、回復すること」
.NET の「例外のデザインのガイドライン」にもこう書いてある。
<ivysettings> | |
<settings defaultResolver="downloadGrapes"/> | |
<resolvers> | |
<chain name="downloadGrapes"> | |
<filesystem name="cachedGrapes"> | |
<ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/> | |
<artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> | |
</filesystem> | |
<!-- todo add 'endorsed groovy extensions' resolver here --> | |
<ibiblio name="codehaus" root="http://repository.codehaus.org/" m2compatible="true"/> |
こんな指針がいいのかなー 2013 夏 ver.
.NET の「例外のデザインのガイドライン」にもこう書いてある。
;; from http://support.markedapp.com/kb/how-to-tips-and-tricks/marked-bonus-pack-scripts-commands-and-bundles | |
(defun markdown-preview-file () | |
"run Marked on the current file and revert the buffer" | |
(interactive) | |
(shell-command | |
(format "open -a /Applications/Marked.app %s" | |
(shell-quote-argument (buffer-file-name)))) | |
) | |
(global-set-key "\C-cm" 'markdown-preview-file) |
__gvm_switch() { | |
if [ -s "gradle.properties" ]; then | |
local candidate current target | |
candidate=grails | |
target=$(cat gradle.properties | grep --color=never 'grailsVersion' | sed "s_grailsVersion=\(.*\)_\1_g") | |
if [[ $target != '' ]]; then | |
current=$(eval echo '$'$(echo $candidate | tr '[:lower:]' '[:upper:]')_HOME | sed -e "s_$GVM_DIR/$candidate/__g") | |
if [[ $current != $target ]]; then | |
echo "Switching to $candidate $target ..." | |
gvm offline enable > /dev/null |
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
outdir="." | |
if [ $# -le 1 ]; then |
MBA-FBA:bin francois$ ./virt-manager | |
RuntimeWarning: tp_compare didn't return -1 or -2 for exception | |
RuntimeWarning: tp_compare didn't return -1 or -2 for exception | |
Traceback (most recent call last): | |
File "/Users/francois/bin/mybuild/share/virt-manager/virt-manager.py", line 393, in <module> | |
_show_startup_error(str(run_e), "".join(traceback.format_exc())) | |
File "/Users/francois/bin/mybuild/share/virt-manager/virt-manager.py", line 63, in _show_startup_error | |
from virtManager.error import vmmErrorDialog | |
File "/Users/francois/bin/mybuild/share/virt-manager/virtManager/error.py", line 173, in <module> | |
class _errorDialog (gtk.MessageDialog): |
diff --git a/src/macim.m b/src/macim.m | |
index d4444db..515cf25 100644 | |
--- a/src/macim.m | |
+++ b/src/macim.m | |
@@ -100,7 +100,14 @@ DEFUN ("mac-toggle-input-source", Fmac_toggle_input_source, | |
} | |
else | |
{ | |
- NSString *locale = [[NSLocale currentLocale] localeIdentifier]; | |
+ NSString *locale; |
require 'formula' | |
class Emacs < Formula | |
url 'http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3a.tar.bz2' | |
md5 'f2cf8dc6f28f8ae59bc695b4ddda339c' | |
homepage 'http://www.gnu.org/software/emacs/' | |
skip_clean :all | |
if ARGV.include? "--use-git-head" |
*** lisp/term/ns-win.el.orig 2011-05-07 08:46:32.000000000 +0900 | |
--- lisp/term/ns-win.el 2011-05-07 08:47:02.000000000 +0900 | |
*************** | |
*** 1530,1535 **** | |
--- 1530,1555 ---- | |
(title . "半英") | |
(cursor-color) | |
(cursor-type)) | |
+ ("com.justsystems.inputmethod.atok23.Roman" | |
+ (title . "A") |
#!/bin/bash | |
function flask-boilerplate-tmux | |
{ | |
# https://github.com/swaroopch/flask-boilerplate | |
BASE="$HOME/code/flask-boilerplate" | |
cd $BASE | |
tmux start-server | |
tmux new-session -d -s flaskboilerplate -n model |