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/env ruby | |
# command! -nargs=* -range AlignEqual <line1>,<line2>!ruby C:\Tools\bin\runtime\AlignEqual.rb <args> | |
Pattern = "(.*?)(#{ARGV.size.zero? ? "=" : ARGV[0]})(.*\n)" | |
@Lines = STDIN.read | |
# get max length | |
$MaxLen = 0 | |
@Lines.each_line{ |line| | |
$MaxLen = [$1.length, $MaxLen].max if (line =~ /#{Pattern}/) | |
} | |
# put lines |
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/sh | |
mkdir -p build | |
pushd build | |
tar zxvf ../libevent-2.0.21-stable.tar.gz | |
pushd libevent-2.0.21-stable | |
./configure | |
make | |
popd |
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/history/history.go b/history/history.go | |
index 8bdf08d..b7f7e7d 100644 | |
--- a/history/history.go | |
+++ b/history/history.go | |
@@ -341,3 +341,7 @@ func Load(path string) error { | |
} | |
return nil | |
} | |
+ | |
+func ResetPointor() { |
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
local _filter = nyagos.filter | |
nyagos.filter = function(cmdline) | |
local post = cmdline:gsub('${([%w_()]+)}', '%%%1%%') | |
post = post:gsub('$([%w_()]+)', '%%%1%%') | |
return _filter(post) | |
end |
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
#include <stdio.h> | |
int main(){ | |
printf("Hello World!\n"); | |
return 0; | |
} |
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
alias{ | |
pcd = function () | |
local line = nyagos.eval("ls -la") -- nyagos組み込みの`ls` | |
local complst = split(line, "[\r\n]") | |
local directories = "" | |
for i, e in ipairs(complst) do | |
-- 末尾が'/'ならディレクトリって事で決め打ち | |
if (e:match('.+/$')) then | |
-- ls -lの結果が | |
-- <パーミション> <サイズ> <日付> <時間> <ファイル名 or ディレクトリ名> |
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
gcc -I ../../../include -I ../../../src -L . ../../../mrbgems/mruby-bin-mruby/tools/mruby/mruby.c -o mruby.exe -Wl,-dy,-lmruby |
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
g_luaiconv = nil | |
g_utf82sjis = nil | |
function my_print(str) | |
if (g_luaiconv == nil) then | |
g_luaiconv = require('luaiconv') | |
end | |
if (g_utf82sjis == nil) then | |
g_utf82sjis = g_luaiconv.new('sjis', 'utf-8') | |
end | |
dest = g_utf82sjis:iconv(str) |
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/env ruby | |
$args = ARGV | |
$option = Array.new | |
$file = Array.new | |
# オプションとファイルに分割 | |
pos = $args.index("--") | |
if !pos.nil? then | |
$option = $args[0, pos] |
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 -r 0ae1d837abbd -r 0bc675381e3a content/css/tabsontop_off.css | |
--- a/content/css/tabsontop_off.css Wed Jul 23 19:27:51 2014 +0900 | |
+++ b/content/css/tabsontop_off.css Wed Jul 23 19:30:33 2014 +0900 | |
@@ -40,7 +40,7 @@ | |
#TabsToolbar, | |
#TabsToolbar:not(:-moz-lwtheme), | |
#main-window[tabsintitlebar][sizemode="normal"] #toolbar-menubar[autohide="true"][inactive="true"]:not([customizing="true"]) ~ #TabsToolbar{ | |
- margin-top: 0px !important; | |
+ margin-top: -18px !important; | |
} |