Skip to content

Instantly share code, notes, and snippets.

View builtinnya's full-sized avatar

Naoto Yokoyama builtinnya

View GitHub Profile
@builtinnya
builtinnya / flavor.rb
Last active August 29, 2015 13:56 — forked from ttscoff/flavor.rb
#!/usr/bin/ruby
# Convert a Markdown README to HTML with Github Flavored Markdown
# Github and Pygments styles are included in the output
#
# Requirements: json gem (`gem install json`)
#
# Input: STDIN or filename
# Output: STDOUT
# Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file
# cat README.md | flavor > README.html
#!/usr/bin/perl
use strict;
use warnings;
use utf8;
use Mojolicious::Lite;
use OAuth::Lite::Consumer;
use OAuth::Lite::Token;
use JSON;