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 | |
git log --name-only --pretty=format: -- $1 | sort | uniq -c | head -n 1 | |
# --name-only = Show only names of changed files | |
# --pretty=format: = Remove the information, leaving only filenames | |
# -- $1 = Only show commits in that path (expected as argument) | |
# first sort will make sure things are sorted, so ... | |
# ... uniq -c can effectively merge all duplicates lines, counting them |
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 Foundation | |
class StreamReader { | |
let encoding: String.Encoding | |
let chunkSize: Int | |
let fileHandle: FileHandle | |
var buffer: Data | |
let delimPattern : Data | |
var isAtEOF: Bool = false | |
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
SUBDIRS = src doc whatever | |
.PHONY: all clean | |
all clean: | |
for dir in $(SUBDIRS); do \ | |
$(MAKE) -C $$dir -f Makefile $@; \ | |
done |