This file contains hidden or 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
require 'logger' | |
class Logger | |
def debug_var(ctx, *vars) | |
# get Class name & decide method type | |
class_name = ctx.eval("self.class").to_s | |
if class_name != "Class" | |
sep = "#" | |
else | |
class_name = ctx.eval("self.name") |
This file contains hidden or 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
doc.xpath("//namespace::*").map{|ns|{ns.prefix => ns.href}}.uniq # => [{"xml"=>"http://www.w3.org/XML/1998/namespace"}, {nil=>"http://parts.com/"}, {nil=>"http://alicesautoparts.com/"}, {nil=>"http://bobsbikes.com/"}] |
This file contains hidden or 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
# Determines if a shell command exists by searching for it in ENV['PATH']. | |
def command_exists?(command) | |
ENV['PATH'].split(File::PATH_SEPARATOR).any? { | |
|d| File.exists? File.join(d, command) | |
} | |
end | |
# Returns [width, height] of terminal when detected, nil if not detected. | |
def detect_terminal_size | |
@log.debug_var binding, "ENV['COLUMNS']", "ENV['LINES']" |
This file contains hidden or 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
"2.2 (created: 2009/10/28 19:04:27) | |
set toolbars=addons,nobookmarks,menu,navigation,tabs | |
set hlsearch | |
set newtab=all | |
set runtimepath=$HOME\\vimperator | |
source! $HOME\\_vimperatorrc.local | |
" ページロード時にテキストボックスにフォーカスするのを防ぐ | |
set focuscontent | |
" :[tab]open の補完対象と順番 |
This file contains hidden or 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
" ==Vimperator_Color_Scheme== | |
" name: ZeeroBlue | |
" ==Mono_Color_Scheme== | |
" Hint | |
hi Hint font-family: "Lucida Grande", "Segoe UI", sans-serif; font-size: 11px; font-weight: bold; background: -moz-linear-gradient(top, #6BA7EF, #3163AA); text-shadow: 0 1px #1D3C66; text-transform: uppercase; color: white; background-color: red; padding: 2px 5px; border-radius: 3px; border: 1px solid #3366AD; | |
"hi Hint color: #333333; background: White; font-size: 14px; font-family: Consolas, Osaka, monospace; font-weight: bold; padding: 0px 2px; border: 3px outset #ddd; opacity:0.80; | |
hi HintElem color: Black; background: PowderBlue; | |
hi HintActive color: White; background: SteelBlue; |
This file contains hidden or 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
require 'open-uri' | |
# check args | |
if ARGV[0] == nil || ARGV[0] == "" | |
exit | |
end | |
# main | |
url = URI.escape(ARGV[0]) | |
api_url = "https://readitlaterlist.com/v2/add?username=zeero26&password=jirojiro&apikey=012A9b0Vd2431P3430paXy2Jh6Txx327&url=#{url}" # => "https://readitlaterlist.com/v2/add?username=zeero26&password=jirojiro&apikey=012A9b0Vd2431P3430paXy2Jh6Txx327&url=http://google.com" |
This file contains hidden or 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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> | |
</head> | |
<body> | |
<a href="mailto:?subject=test&body=testtest">件名と本文(ascii)</a><br><br> | |
</body> | |
</html> |
This file contains hidden or 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
<?xml version="1.0" encoding="Shift_JIS"?> | |
<xsl:stylesheet | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<!--出力方法の指定--> | |
<xsl:output method="text" encoding="Shift_JIS"/> | |
<xsl:strip-space elements="*"/> | |
<xsl:template match="/"> |
This file contains hidden or 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/bash | |
option="-no-empty -silent -buffer-name=grep -no-split -auto-preview" | |
if [ $1 ] | |
then | |
pattern="::$1" | |
fi | |
target="." |
OlderNewer