Skip to content

Instantly share code, notes, and snippets.

@koshian
koshian / irchat-pj-2.4.24.22-dccport.patch
Last active August 29, 2015 13:59
irchat-pj with dcc port settings. This is very old patch. Jun 16 2004.
diff -urN irchat-pj-2.4.24.22.orig/irchat-dcc.el irchat-pj-2.4.24.22/irchat-dcc.el
--- irchat-pj-2.4.24.22.orig/irchat-dcc.el 1999-12-19 22:38:10.000000000 +0900
+++ irchat-pj-2.4.24.22/irchat-dcc.el 2004-06-16 16:54:15.000000000 +0900
@@ -77,8 +77,12 @@
(irchat-completing-default-read "To whom: "
(append irchat-nick-alist irchat-channel-alist)
'(lambda (s) t) nil irchat-dcc-partner))
- (setq proc (start-process irchat-dcc-program nil irchat-dcc-program
- "file" "send" file))
+ (if irchat-dcc-port
|星のカービィ トリプルデラックス|無|
|VitaminX Evolution Plus|女|
|Karous(カラス) -The Beast of Re:Eden-|女|
|闘神都市|男|男性向け|
|ドラゴンクエストモンスターズ2 イルとルカの不思議なふしぎな鍵|選択可|
|ぷよぷよテトリス|選択可|
|A列車で行こう3D|無|
|マギ 新たなる世界|男|
|黒子のバスケ 勝利のキセキ|男|(おそらく)女性向け|
|カセキホリダー ムゲンギア|選択可|
#!/usr/bin/env ruby
require 'rubygems'
require 'open-uri'
require 'nokogiri'
uri = ARGV[0]
query = ARGV[1]
doc = Nokogiri::HTML.parse(open(uri).read)
doc.search(query).each do |e|
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
uri = 'http://b.hatena.ne.jp/hotentry'
query = '#main h3 a'
doc = Nokogiri::HTML.parse(open(uri).read)
doc.search(query).each do |e|
@koshian
koshian / init-rubygems.sh
Created October 2, 2015 05:18
After install new ruby
#!/bin/sh
REQUIRE_GEMS='
rbenv-rehash
bundler
nokogiri
myrurema
fastri
deep_hash_transform
rails
cocoapods
#!/bin/sh
SRC=$1
EXT=`basename $SRC | sed -e 's/^.*\.\(.*\)$/\1/'`
SIZES='iTunesArtwork_512x512 iTunesArtwork@2x_1024x1014 Icon-60@2x_120x120 Icon-60@3x_180x180 Icon-57_57x57 Icon-57@2x_114x114 Icon-29_29x29 Icon-29@2x_58x58 Icon-29@3x_87x87 Icon-40@2x_80x80 Icon-40@3x_120x120 Icon-76_76x76 Icon-76@2x_152x152 Icon-72_72x72 Icon-72@2x_144x144 Icon-50_50x50 Icon-50@2x_100x100'
for s in $SIZES; do
OPT=`echo $s | sed -e 's/^\(.*\)_\(.*\)$/\2 \1/'`
convert $SRC -resize ${OPT}.${EXT}
done
@koshian
koshian / # sfntly - 2015-12-30_10-24-43.txt
Created December 30, 2015 01:25
sfntly (bramstein/webfonttools/sfntly) on OS X 10.11.2 - Homebrew build logs
Homebrew build logs for bramstein/webfonttools/sfntly on OS X 10.11.2
Build date: 2015-12-30 10:24:43

段落

あのイーハトヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモーリオ市、郊外のぎらぎら光る草の波。

あのイーハトヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモーリオ市、郊外のぎらぎら光る草の波。

フォトライフ

@koshian
koshian / mozc_emacs_helper_build.patch
Last active February 20, 2016 21:17
To build mozc_emacs_helper on Mac OS X
diff --git a/src/build_mozc.py b/src/build_mozc.py
index b972602..59a65d0 100644
--- a/src/build_mozc.py
+++ b/src/build_mozc.py
@@ -211,6 +211,8 @@ def GetGypFileNames(options):
# Include subdirectory of win32 and breakpad for Windows
if options.target_platform == 'Windows':
gyp_file_names.extend(glob.glob('%s/win32/*/*.gyp' % SRC_DIR))
+ elif options.target_platform == 'Mac':
+ gyp_file_names.extend(glob.glob('%s/unix/emacs/*.gyp' % SRC_DIR))
@koshian
koshian / hbpost.rb
Last active April 20, 2017 07:26
はてなブックマークとマストドンを連携するためのCGIスクリプト
#!/usr/bin/ruby
# coding: utf-8
#
require 'cgi'
require 'net/https'
API_POINT = 'https://mstdn.jp/api/v1/statuses'
HBKEY='XXXXXXXXXXX'
ACCESS_TOKEN = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'