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
module Tw | |
class Client::Stream | |
def initialize(user=nil) | |
user = Tw::Auth.get_or_regist_user user | |
@client = Twitter::Streaming::Client.new do |config| | |
config.consumer_key = Conf['consumer_key'] | |
config.consumer_secret = Conf['consumer_secret'] | |
config.access_token = user['access_token'] | |
config.access_token_secret = user['access_secret'] |
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
class MdFormatter { | |
renderNode (node) { | |
if (typeof node === 'string') { | |
return node | |
} else if (node instanceof Array) { | |
let result = '' | |
node.forEach((item) => { | |
result += this.renderNode(item) | |
}) | |
return result |
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
#!/usr/bin/env ruby | |
puts "🐹 < #{ ARGV.empty? ? ARGF.read : ARGV.join(' ') }" |
AGQR の放送を保存するスクリプト.
- 31日まである月に翌日の指定が失敗する
というバグが存在する.
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
{jspack} = require 'jspack' | |
module.exports = class Asearch | |
INITPAT = 0x80000000 | |
MAXCHAR = 0x100 | |
isupper: (c) -> | |
return (c >= 0x41) and (c <= 0x5a) |
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
fs = require 'fs' | |
util = require 'util' | |
http = require 'http' | |
async = require 'async' | |
{Iconv} = require 'iconv' | |
cheerio = require 'cheerio' | |
multimeter = require 'multimeter' | |
multi = multimeter process | |
class AnimeWiki |
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
preexec () { | |
[[ -z "`whence ${1%% *}`" ]] && echo "NOTFOUND!!! ${1%% *}" | |
} | |
# ---- # | |
preexec () { | |
cmd=${1%% *} | |
if [ -z "`whence ${cmd}`" ]; then | |
if [ $cmd = 'yabai' ]; then |
One can use MD5 or plain text diff to see differences in PDF files. If that's not enough, here's how to use diff-pdf which knows how to diff based on appearance or words:
brew install diff-pdf
- edit your
~/.gitconfig
to add this:
[difftool "diffpdf"]
cmd = diff-pdf --view \"$LOCAL\" \"$REMOTE\"
NewerOlder