This file contains hidden or 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
# coding: utf8 | |
from __future__ import unicode_literals | |
import sys, os | |
from os.path import join | |
import json | |
homeDir = os.getenv('HOME') |
This file contains hidden or 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 | |
TOTAL=0 | |
OPTS="-type f -and -not -path '*/.git/*'" | |
# find . $OPTS -exec file --brief --mime-type \; | |
LOC=`find . $OPTS -name '*.go' -exec cat '{}' \; | grep -vxch '\s*'` | |
[[ $LOC -gt 0 ]] && echo -e "$LOC\tGo" && TOTAL=$[TOTAL+LOC] |
This file contains hidden or 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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
NewerOlder