by Ossi Hanhinen, @ohanhi
with the support of Futurice π.
Licensed under CC BY 4.0.
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
Switch to the main branch, usually 'develop':
git checkout develop
Get a list of fully merged branches:
| # Enable syntax-highlighting in less. | |
| # Last tested on CentOS 6.3. | |
| # | |
| # First, add these two lines to ~/.bashrc | |
| # export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" | |
| # export LESS=" -R " | |
| sudo yum -y install boost boost-devel ctags | |
| wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| /* | |
| demo :- http://jsfiddle.net/bjkkD/20/ | |
| Implements RadioNodeList :- http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html#radionodelist | |
| Implementation just adds `.value` as a property to `NodeList`. | |
| Requires ES5 shim and ES5 shimmable browser. (Modern and IE8) | |
| */ | |
| ;(function () { |
| function Markdown(value) { | |
| this.value = value || ''; | |
| this.length = this.value.length; | |
| }; | |
| Markdown.prototype = new String; | |
| // Instance methods | |
| Markdown.prototype.toString = Markdown.prototype.valueOf = function(){return this.value}; | |
| Markdown.prototype.toHTML = function(){return Markdown.decode(this)}; |