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
i=1 | |
for file in $(find . -name "*.jpg") | |
do | |
mv $file face-set/face$i.jpg; | |
i=$((i+1)); | |
done | |
for file in $(ls -p | grep -v / | tail -5000) | |
do |
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
table="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" | |
def base64_encode64(str): | |
add=3-len(str)%3 | |
if(add!=3): | |
str+=add*'\x00' | |
bits="".join(format(x,'08b') for x in bytearray(str)) | |
list=[] | |
for i in xrange(0,len(bits),6): |
NewerOlder