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
#!ruby -Ku | |
class << (_ = × = 来週も見てくださいね! = 'ひだまりスケッチ×365 ') | |
def / x=/_/x | |
sub! /(.*)/, ''; print $1 | |
self | |
end | |
def < x=/_/x | |
print open(caller.first.split(':').first).read.split(/\s/)[-2..-1].join(' ') | |
end |
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 'url) | |
(require 'url-util) | |
(require 'json) | |
(defun dan-perl (word) | |
"Run dan's perl" | |
(interactive | |
(let* ((cur (or (thing-at-point 'word) "")) | |
(val (read-string (if (not (equal cur "")) | |
(format "dan the perl (default %s): " cur) |
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="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>github-growler</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>tcsh</string> | |
<string>-c</string> |
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
diff --git a/lib/UV.pm b/lib/UV.pm | |
index f69c916..38e8e3a 100644 | |
--- a/lib/UV.pm | |
+++ b/lib/UV.pm | |
@@ -6,6 +6,9 @@ our $VERSION = '0.1'; | |
XSLoader::load __PACKAGE__, $VERSION; | |
+use constant READABLE => 1; | |
+use constant WRITABLE => 2; |