Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| /** | |
| * Embed Gists with a URL | |
| * | |
| * Usage: | |
| * Paste a gist link into a blog post or page and it will be embedded eg: | |
| * https://gist.github.com/2926827 | |
| * | |
| * If a gist has multiple files you can select one using a url in the following format: | |
| * https://gist.github.com/2926827?file=embed-gist.php | |
| * |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors
| #!/bin/bash | |
| # cd into the directory | |
| cd ~/gitsync/github-wordpress-sync/; | |
| # Make sure we are not already running | |
| if [ -f .sync-running ];then | |
| if test ! `find ".sync-running" -mmin +10`;then | |
| # Currently running, but not stuck | |
| exit 1; | |
| fi | |
| fi; |
| Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna! | |
| ([一-龯]) | |
| Regex for matching Hirgana or Katakana | |
| ([ぁ-んァ-ン]) | |
| Regex for matching Non-Hirgana or Non-Katakana | |
| ([^ぁ-んァ-ン]) | |
| Regex for matching Hirgana or Katakana or basic punctuation (、。’) |