author thinca date 2012/05/27 place yokohama.vim #3 font VL ゴシック 26 font Migu_2M:h38:cSHIFTJIS
2012/05/27 yokohama.vim #3 thinca
#!/bin/sh | |
# http://sourceforge.net/projects/phpstylist/ | |
php=`which php` | |
stylist="/path/to/phpStylist.php" | |
$php $stylist "$@" \ | |
--indent_size 4 \ | |
--line_before_comment_multi \ |
/* http://amix.dk/blog/post/19661 */ | |
.link_truncated { | |
display: inline-block; | |
width: 275px; | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
overflow: hidden; | |
vertical-align: top; | |
} |
Patch: expand-input-maxlen.patch | |
Probrem: More than 100 characters cannot be set to the caption | |
Solution: expands the text buffer size to 255. | |
Author: Kazuhiro Yoshikawa <[email protected]> | |
Files: src/input.c | |
src/process.c | |
--- a/src/input.c 2010-02-27 02:30:55.000000000 +0900 | |
+++ b/src/input.c 2010-06-21 00:19:43.000000000 +0900 | |
@@ -43,7 +43,7 @@ |
sudo mkdir /Developer | |
cd /Developer | |
sudo chown `id -u` . | |
ln -s /Applications/Xcode.app/Contents/Developer/* . | |
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs . |
compdef _hogecmd hoge | |
function _hogecmd { | |
local -a cmds | |
if (( CURRENT == 2 ));then | |
cmds=('init' 'update' 'upgrade' 'commit') | |
_describe -t commands "subcommand" cmds | |
else | |
_files | |
fi |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
# | |
# markdown記法をtextile記法に変換 | |
# 超簡易版 | |
# | |
# Usage: |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script> |
function assert(condition, opt_message) { | |
if (!condition) { | |
if (window.console) { | |
// メッセージの表示 | |
console.log('Assertion Failure'); | |
if (opt_message) console.log('Message: ' + opt_message); | |
// スタックトレースの表示 |