AGQR の放送を保存するスクリプト.
- 31日まである月に翌日の指定が失敗する
というバグが存在する.
| 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'] |
| 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 |
| #!/usr/bin/env ruby | |
| puts "🐹 < #{ ARGV.empty? ? ARGF.read : ARGV.join(' ') }" |
AGQR の放送を保存するスクリプト.
というバグが存在する.
| {jspack} = require 'jspack' | |
| module.exports = class Asearch | |
| INITPAT = 0x80000000 | |
| MAXCHAR = 0x100 | |
| isupper: (c) -> | |
| return (c >= 0x41) and (c <= 0x5a) |
| 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 |
| 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~/.gitconfig to add this:[difftool "diffpdf"]
cmd = diff-pdf --view \"$LOCAL\" \"$REMOTE\"