This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
playlist_file="$1" | |
shift | |
perl -p -e 's:/:\\:g;' -e 'print "\\" if m/^[^\s#]/;' "$playlist_file" >| ${playlist_file:s/-utf8.m3u/.m3u} | |
mv -v "$playlist_file" ~/local/cowon-m2/playlists/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
# $1 => Original Image | |
setopt extended_glob | |
infile="$1" | |
name="$2" | |
identify "$infile" | |
if [[ $(identify "$infile") == *" "(#b)(<->)x(<->)" "* ]] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
if (! document.addEventListener ) { return false; } | |
var wrapper = document.getElementById("WrapWindow") /* ModalWindow */ | |
var fadingTimer = false /* IntervalTimer */ | |
var alpha = 0.0 /* ModalWindows's alpha number */ | |
var lboxImage = document.getElementById("LBoxImg") /* target img object */ | |
var eimg /*Base Image*/ | |
/* draw content */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
SAVE_DIR=/home/foo/Videos/ | |
even_round() { | |
perl -n -e '/(\d+)(.)(\d+)/; print( $1 % 2 == 0 ? $1 : $1 - 1 ); print $2; print( $3 % 2 == 0 ? $3 : $3 - 1 )' <<< "$1" | |
} | |
mic_arg() { | |
if (( $mic == 1 )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"define": { | |
"rom-kana": { | |
"1": ["", "ぬ"], | |
"2": ["", "ふ", "フ", "ふ", "フ"], | |
"2@": ["", "ぶ"], | |
"2[": ["", "ぷ"], | |
"3": ["", "あ"], | |
"#": ["", "ぁ"], | |
"4": ["", "う", "ウ", "う", "ウ"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/puredoc.rb b/puredoc.rb | |
index 4f604f8..a478a58 100755 | |
--- a/puredoc.rb | |
+++ b/puredoc.rb | |
@@ -224,7 +224,7 @@ class PureDoc | |
(cur - i.level).times {|n| result << proc4close.call( (cur - n), ( cur - n - offset ) ) } | |
end | |
- result << proc4each.call(i.level, (i.level - offset), i.title) | |
+ result << proc4each.call(i.level, (i.level - offset), i.title, i.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rubylib/pbmarkdown.rb b/rubylib/pbmarkdown.rb | |
index 95b843f..97acdfc 100644 | |
--- a/rubylib/pbmarkdown.rb | |
+++ b/rubylib/pbmarkdown.rb | |
@@ -16,7 +16,15 @@ class Kramdown::Parser::Kramdown | |
# Is Header? | |
when :header | |
- ::DOC.stock_header(arg[-1][:level], arg[-1][:raw_text]) | |
+ @used_ids ||= {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/README.md b/README.md | |
index dc3f176..6f79d20 100644 | |
--- a/README.md | |
+++ b/README.md | |
@@ -168,3 +168,25 @@ Copy `config_sample/accs` as a ACCS directory and configure what you want. | |
Build this ACCS. | |
Please execute in an ACCS directory. | |
+ | |
+Functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/zsh | |
# This is intend to generate image with cdrdao in Linux and mount with DAEMON Tools in Windows. | |
# If you give -r as first argument, This program reads disc with cdrdao. | |
# Any prefix means file name without extension. | |
# For example, "foo/bar" means foo/bar.{bin,toc,cue} | |
# Usage: | |
# mk-windows-virtual-disc.zsh <existing_image_prefix> <output_prefix> | |
# mk-windows-virtual-disc.zsh -r <linux_output_prefix> <windows_output_prefix> | |
if [[ $1 == "-r" ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh --extended-glob | |
# If $1 == --profile | |
# use directory $2 instead".${profile_dir:-latest}" | |
if [[ $1 == --profile ]] | |
then | |
shift | |
profile_dir="$1" | |
shift |
OlderNewer