Skip to content

Instantly share code, notes, and snippets.

View foomin10's full-sized avatar

foomin10

  • Japan
View GitHub Profile
@ybenjo
ybenjo / README.md
Last active December 13, 2023 08:04 — forked from yagays/agqr.rb
save AGQR radio programs.

agqr.rb

これは何

AGQR の放送を保存するスクリプト.

fork 元との違いは

yagays / agqr.rb には

  • 31日まである月に翌日の指定が失敗する

というバグが存在する.

アメブロ画像保存用ブックマークレット

画像表示の方法が変わったため画像を保存しにくくなったらしい、ということで。

以下をブラウザのブックマークとして保存し、各画像拡大ページで使うと、オリジナルの画像を別タブや別ウィンドウで開けるはずです。

あとは煮るなり焼くなり保存するなり好きにしてください。

PC

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@kwatch
kwatch / gist:2814940
Created May 27, 2012 16:18
Rubyの特殊変数一覧
$! raise された例外オブジェクト
$" require で読み込まれたファイルの配列
$#
$$ 現在のプロセス ID
$%
$& 正規表現にマッチした箇所の文字列
$' 正規表現にマッチした箇所より後ろの文字列
$(
$)
$* Ruby スクリプトに指定された引数。ARGV と同じ
@nazoking
nazoking / trash.rb
Created January 6, 2012 03:40
cygwinからゴミ箱に捨てる
#!/bin/ruby
require 'Win32API'
module Cygwin
# cygwin環境であればtrue
def cygwin?
RUBY_PLATFORM =~ /-cygwin$/
end
# TODO コロン(:)などwindowsでファイル名に使えない文字が名前に入ってるファイルをうまく変換できません助けて!
# http://www.ruby-lang.org/ja/old-man/html/Win32API.html
PATH_TO_WIN32_FULL = Win32API.new('cygwin1.dll', 'cygwin_conv_to_full_win32_path', 'PP', 'I')
@cjcliffe
cjcliffe / keyboard_code_enums.js
Created September 1, 2011 01:21
Javascript Keycode Enums
var enums = {};
enums.keyboard = {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
PAUSE: 19,
CAPS_LOCK: 20,