This is an archive of the old Future of Coding community website. When the community was renamed to Feeling of Computing, the website was rebuilt from scratch.
This repo has been saved because it contains various research notes by Steve Krouse, such as these "virtual webpages" made from Github issues.
First run:
git config core.sparsecheckout true
Then put the following into .git/info/sparse-checkout
:
*.html
*.md
*.gitignore
*.txt
*.js
*.css
*.yml
*.json
And then run
git read-tree -mu HEAD
This is how I generage futureofcoding.org/log.
First, pip install git2json
as explained here.
Then create .git/hooks/post-commit
with the following contents:
previousMessage=$(git log -1 --pretty=%B)
if [ "$previousMessage" != "updated git log" ]
then
git2json > _data/git-log.json
echo 'fileName' > _data/files.csv && find . -regextype posix-egrep -regex ".*\.(md|html)$" -not -path "./_site/*" >> _data/files.csv
# https://stackoverflow.com/questions/16993082/why-doesnt-git-recognize-that-my-file-has-been-changed-therefore-git-add-not-w
git rm --cached _data/files.csv
git reset _data/files.csv
git add _data/git-log.json
git add _data/files.csv
git commit -m "updated git log"
fi
exit 1
Add the following to ~/.bashrc
:
function empty_message {
sleep 0.1
echo -e "## Title\n\n* TOC\n{: toc }\n\n" > .git/COMMIT_EDITMSG
}
function journal {
empty_message &
git commit --allow-empty --cleanup=verbatim
}