I hereby claim:
- I am aegypius on github.
- I am aegypius (https://keybase.io/aegypius) on keybase.
- I have a public key ASD9ZzTNiS-aytBjEDhxmEPq4ABVyINkztlLIVFWjnBPsgo
To claim this, I am signing this object:
| func romanToInt(s string) int { | |
| var result int | |
| var last byte | |
| romanToIntMap := map[byte]int{ | |
| 'I': 1, | |
| 'V': 5, | |
| 'X': 10, | |
| 'L': 50, | |
| 'C': 100, | |
| 'D': 500, |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Boostrap home directory using a bash one-liner : | |
| # | |
| # bash <(curl -sL https://gist.githubusercontent.com/aegypius/ef7f5483c64aa13947e8ef972d4eed87/raw/bootstrap.bash) | |
| # | |
| # Ensure git is installed if not install it (support debian or gentoo for now) | |
| ( \ | |
| (type git > /dev/null 2>&1) || \ |
| # Add this line to the server config | |
| socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 |
| <?php | |
| /** | |
| * UUID class | |
| * | |
| * The following class generates VALID RFC 4211 COMPLIANT | |
| * Universally Unique IDentifiers (UUID) version 3, 4 and 5. | |
| * | |
| * UUIDs generated validates using OSSP UUID Tool, and output | |
| * for named-based UUIDs are exactly the same. This is a pure | |
| * PHP implementation. |
| git svn clone -A svn-authors -s svn://server/repository | |
| git for-each-ref refs/remotes/tags --shell --format="r=%(refname:short) t=\${r#tags/}" | while read e; do eval "$e"; git tag -f $t refs/remotes/$r; git branch -d -r $r; done |
| pygments: true | |
| markdown: redcarpet | |
| redcarpet: | |
| extensions: [:smart, :fenced_code, :gh_blockcode] |
| <?php | |
| function base62_encode($num){ | |
| $chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| $base = 62; | |
| $result = ''; | |
| while($num >= $base) { | |
| $r = $num%$base; | |
| $result = $chars[$r].$result; | |
| $num = $num/$base; |