Skip to content

Instantly share code, notes, and snippets.

@kevin-smets
kevin-smets / gitSemVer.sh
Last active September 21, 2017 23:42
SemVer tagging
git tag -a v1.0.0 -m 'tagging v1.0.0'
git push --tags
#!/bin/bash
for f in *.sass; do sass-convert $f ${f%sass}scss ; done
rm *.scss
@kevin-smets
kevin-smets / landscapeLock.coffee
Created June 12, 2013 20:01
mobile webkit landscape locking hack
$(window).bind("orientationchange", ->
$scope.orientation = window.orientation
$(document.body).css({
width: $(window).width()
height: $(window).height()
})
if window.orientation % 180 is 0
rotation = "rotate(-90deg)"
if window.orientation > 0