This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#Simple python script to change lower camel case strings in a file to snake case | |
import sys | |
import re | |
#detect if the string is lower camel case | |
def is_camel(word): | |
bol = re.search('\w([a-z][A-Z])', word) | |
return bol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
target=(_posts/*.md) | |
prv_last_file=`cat last_file.txt` | |
tag_template=`cat tag_template.md` | |
for ((i=${#target[@]}-1; i>=0; i--)); do | |
if [ "$prv_last_file" == "${target[$i]}" ]; then | |
echo ${target[${#target[@]}-1]} > last_file.txt | |
echo "We are done, Thank you!" | |
break |