- 両者のソースは割りと似ている(github-markdownがredcarpetを元にしたのか、あるいは両者のもとになったC実装があるとかかな)
github-markdownは、redcapetの提供するオプションの一部をデフォルトで有効化します。 (ちなみに有効化するオプションを選ぶAPIはない模様。用途を考えるとそれで正しいが)
★がついているのが有効化されるもの。gfmモード(.render_gfmメソッド)の場合のみ、★★も有効化される。
#! /usr/bin/env perl | |
# Gist ssh-clone script | |
# Help: $ perl git-clone-ssh.pl --help | |
# (c) Masanori Ohgita (http://ohgita.info/) - 2013, MIT License. | |
use warnings; | |
use strict; | |
use utf8; | |
use File::Basename qw//; |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#!/usr/public/bin/perl -w | |
use strict; | |
use JSON; | |
use JSON::WebToken; | |
use LWP::UserAgent; | |
use HTML::Entities; | |
my $private_key_string = q[-----BEGIN PRIVATE KEY----- |
const express = require("express"); | |
const router = express.Router(); | |
router.get('/', function (req, res) { | |
res.send("This is the '/' route in ep_app"); | |
}); | |
module.exports = router; |
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
push @{app->static->paths}, 'site/'; # File path | |
app->start('daemon'); | |
# Execute this script on terminal: perl daemon.pl | |
# Then, let's access to http://localhost:3000/*** |
for i in `git branch -r|grep -v HEAD|grep -v master|sed 's:origin/::g'` | |
do | |
git checkout --track -b $i origin/$i | |
done | |
git checkout master |