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 | |
oldifs=$IFS | |
IFS=' | |
' | |
[ $# -ne 2 ] && { echo "Usage: $0 sourceDirectory destinationDirectory" ; exit 1; } | |
[ ! -d "$1" ] && { echo "$1 is not a valid directory"; exit 1; } | |
[ ! -d "$2" ] && { mkdir -p "$2"; } | |
src=$(cd "$1" ; pwd) | |
dst=$(cd "$2" ; pwd) | |
find "$src" -type d | |
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
kind: pipeline | |
name: default | |
steps: | |
- name: build | |
image: gradle | |
commands: | |
- gradle build | |
- name: test |
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
from struct import unpack | |
with open('font.dat', 'rb') as f: | |
data = f.read() | |
# read offset list | |
offsetList = [] | |
cursor = 0 | |
endOfFS = len(data) | |
while cursor < endOfFS: |