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
import re, sys, string, os | |
###---------------------------------------------------------------------- | |
## Define Function(s) | |
###---------------------------------------------------------------------- | |
def fn__applyStyle(lineOfCode): | |
indexZero = lineOfCode[0] |
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
import re, sys, string, os | |
###---------------------------------------------------------------------- | |
## Define Function(s) | |
###---------------------------------------------------------------------- | |
def fn__applyStyle(lineOfCode): | |
indexZero = lineOfCode[0] |
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
alias gbr='git branch' | |
alias gco='git checkout' | |
alias gci='git commit' | |
alias gcm='git checkout master' | |
alias glo='git log --oneline' | |
alias gst='git status' |
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/ksh | |
##DESC====================================================================== | |
### Extracts block of code/section based on two arguments; | |
### 1 - Source Code File, or Git Diff Output | |
### 2 - Extract Pattern | |
##====================================================================== | |
function fn__extrt_block { | |
test $# -ne 2 && exit 1 |
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
def fn__jobDefnToDict(iputFile): | |
jobDict = {} | |
with open(iputFile, 'r') as fname: | |
for line in fname.read().splitlines(): | |
colon = string.find(line, ':') | |
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/ksh | |
test $# -lt 1 || test $# -gt 2 || test ! -f $1 && exit 1 | |
cp $1 $1.o | |
echo -e "\t\"${2:-feeds}\": {" | |
while IFS='|' read iputKey iputRecord | |
do | |
echo -e "\t\t\"${iputKey}\": [" |