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
(defun diff-selected-buffers () | |
(interactive) | |
(let (file1 file2) | |
(setq file1 (get-buffer-file-name (selected-buffer))) | |
(other-window) | |
(setq file2 (get-buffer-file-name (selected-buffer))) | |
(diff file1 file2))) |
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() { | |
var fl = document.styleSheets.length | |
, timer = setInterval(watch, 100) | |
; | |
function watch() { | |
if (fl === document.styleSheets.length) return; | |
clearInterval(timer); | |
iiganisuru(); | |
} |
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
require 'rubygems' | |
require 'mechanize' | |
class IshikawaAirPollutionAPI | |
def initialize() | |
@use_sleep = false | |
@agent = Mechanize.new | |
@agent.user_agent_alias = 'Mac Safari' |
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
#theAd, | |
.ad_NW, | |
.col-b, | |
[id*="ads_"], | |
[class*="ads_"] { display: none !important; } | |
/* | |
#main, | |
.nav-bar, | |
#shellcontent { margin-top: -100px; } |
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
SRC_DIR = src | |
TMP_DIR = utf8 | |
DEST_DIR = json | |
CSVS = $(wildcard $(addsuffix /*.csv,$(SRC_DIR))) | |
JSONS = $(subst $(SRC_DIR)/,$(DEST_DIR)/,$(CSVS:.csv=.json)) | |
.PHONY: all | |
all: $(JSONS) |
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
(require "ni/setup") | |
(ni-autoload) | |
;; diff | |
(setq ed::*diff-command-name* | |
(map-slash-to-backslash (merge-pathnames "~xyzzy/bin/diff.exe" (user-homedir-pathname)))) | |
(defun diff-selected-buffers () | |
(interactive) | |
(let (file1 file2) |
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
# Web API として使うためのファイル (1) | |
# Web サーバ上の適当なディレクトリに置いて使う。 | |
# mod_rewrite が必要 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ index.rb?url=$1 [QSA,L] |
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
#facebox { | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: 100; | |
text-align: left; | |
background: #878787; | |
background: rgba(82, 82, 82, 0.7); | |
border-radius: 8px; | |
-webkit-border-radius: 8px; |
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
Private Function NormalizeString(ByVal source As Variant) As Variant | |
Dim i As Integer | |
Dim c As Variant | |
Dim result As Variant | |
result = "" | |
For i = 1 To Len(source) | |
c = StrConv(source, vbWide) | |
If Mid(c, i, 1) Like "[A-z]" Or Mid(c, i, 1) Like "[0-9]" Or Mid(c, i, 1) Like "-" 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
////////////////////////////////////////////////////////////////// | |
// Components | |
@keyframes fade-in { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
@-webkit-keyframes fade-in { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} |
OlderNewer