Skip to content

Instantly share code, notes, and snippets.

View karimsa's full-sized avatar

Karim Alibhai karimsa

View GitHub Profile
@karimsa
karimsa / commit_format_examples.txt
Created March 14, 2018 03:32 — forked from mutewinter/commit_format_examples.txt
Examples of my commit format.
chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refactor: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing
@karimsa
karimsa / ngEnter.js
Last active August 23, 2016 00:07 — forked from EpokK/ngEnter.js
ngEnter directive if you can use submit form(https://twitter.com/ririlepanda)
app.directive('ngEnter', () => ($scope, $elm, $attrs) => {
$elm.bind('keydown keypress', evt => {
if ( evt.which === 13 ) {
$scope.$apply(() => $scope.$eval($attrs.ngEnter));
evt.preventDefault();
}
});
});
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh