Skip to content

Instantly share code, notes, and snippets.

View eungjun-yi's full-sized avatar

Yi EungJun eungjun-yi

View GitHub Profile
@eungjun-yi
eungjun-yi / star-101.sh
Last active December 26, 2015 21:19
https://gist.github.com/benelog/7204216 쉘스크립트 101자 버전하고 71자 버전
echo ' *
*
* *
* *
* *
** **
* *
* *
* *
*
@eungjun-yi
eungjun-yi / gfm.coffee
Created April 10, 2012 08:53
Coffeescript port of gfm at https://gist.github.com/118964
crypto = require 'crypto'
gfm = (text) ->
# Extract pre blocks
extractions = {}
text = text.replace /<pre>(\n|.)*?<\/pre>/gm, (match) ->
md5 = crypto.createHash('md5').update(match).digest('hex')
extractions[md5] = match
'{gfm-extraction-' + md5 + '}'