あれ | それ |
---|---|
OS | Ubuntu 12.10 |
Ruby | ruby 2.0.0p195 (2013-05-14 revision 40734) [i686-linux] |
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
#!/bin/sh | |
# | |
# Description: | |
# Convert to "ガール" from "がある". | |
# | |
# Usage: | |
# gaaru2girl foo.md | |
FILE=$1 |
店名 | 場所 | 電話番号 | 営業時間(平日) | 定休日 | 備考 |
---|---|---|---|---|---|
手作りピザ工房ボーノボーノ | 那覇市牧志3-3-1 | 098-943-0202 | 11:00 - 20:00 | 水曜日 | |
Pizzeria RIO | 浦添市前田1-48-1 | 098-878-1019 | 11:00 - 21:00 | 年中無休 | |
PIZZA パルコ 首里(前田)店 | 浦添市前田4-5-13-1F | 098-874-6777 | 11:30 - 21:00 | 不定休 | 8のつく日は安い |
PIZZA RYUMAN | 浦添市屋富祖4-5-8 1F | 098-879-3445 | 15:00 - 21:00 | 年末年始 | 18時前に注文すると、大きいサイズ(40cm)が1000円 |
PIZZA-LA 浦添店 |
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 | |
require 'open-uri' | |
require 'nokogiri' | |
wishlist_url = '' | |
html = Nokogiri::HTML(open(wishlist_url), nil, 'sjis') | |
name = html.at('//div[@id="profile"]/h1').text | |
birthday = html.at('//div[@id="profile"]/div[@id="profileInfo"]/table/tr[3]/td').text |
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
#!/bin/sh | |
# | |
# m2p | |
# | |
# Convert to PDF from Markdown. | |
# | |
# Example: | |
# $ m2p foo.md | |
# Config |
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
curl -d 'serial=/4332799460503178/' gpkure.herokuapp.com | |
curl -d 'serial=/5369878261627612/' gpkure.herokuapp.com | |
curl -d 'serial=/5303568525959220/' gpkure.herokuapp.com |
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 | |
# encoding: utf-8 | |
require 'redcarpet/compat' | |
markdown = Redcarpet::Markdown.new( | |
Redcarpet::Render::HTML, | |
:tables => true, | |
:autolink => true, | |
:superscript => true, |