This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
| # United States Postal Service (USPS) abbreviations. | |
| abbreviations = [ | |
| # https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#States. | |
| "AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "IA", | |
| "ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO", | |
| "MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK", | |
| "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI", | |
| "WV", "WY", | |
| # https://en.wikipedia.org/wiki/List_of_states_and_territories_of_the_United_States#Federal_district. | |
| "DC", |
| #!/bin/bash | |
| # from | |
| # http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
| convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
| convert favicon-256.png -resize 16x16 favicon-16.png | |
| convert favicon-256.png -resize 32x32 favicon-32.png | |
| convert favicon-256.png -resize 64x64 favicon-64.png | |
| convert favicon-256.png -resize 128x128 favicon-128.png |
| -- table.copy( array, ... ) returns a shallow copy of array. | |
| -- A variable number of additional arrays can be passed in as | |
| -- optional arguments. If an array has a hole (a nil entry), | |
| -- copying in a given source array stops at the last consecutive | |
| -- item prior to the hole. | |
| -- | |
| -- Note: In Lua, the function table.concat() is equivalent | |
| -- to JavaScript's array.join(). Hence, the following function | |
| -- is called copy(). | |
| table.copy = function( t, ... ) |