I hereby claim:
- I am eworm on github.
- I am woutmager (https://keybase.io/woutmager) on keybase.
- I have a public key ASD-y7cR2Tye4dMliXHdGVHDkKqj0Cv-yoAMGvPf1VoweQo
To claim this, I am signing this object:
@mixin svg-or-not($image) { | |
background-repeat: no-repeat; | |
background-image: url($image + '.png'); | |
.svg & { | |
/* On svg capable browsers, use an svg */ | |
background-image: url($image + '.svg'); | |
} | |
} |
// Scroll function cause zepto doesn't have scrolltop animation | |
function scrollNew(scrollTo, time) { | |
var scrollFrom = parseInt(document.body.scrollTop), | |
i = 0, | |
runEvery = 5; // run every 5ms | |
scrollTo = parseInt(scrollTo); | |
time /= runEvery; | |
var interval = setInterval(function () { |
var gulp = require('gulp'); | |
// Get packages from package.json | |
var tasks = require("gulp-load-tasks")(); | |
// Livereload stuff | |
lr = require('tiny-lr'), | |
server = lr(); |
/* A webp sass include | |
=================================================================*/ | |
@mixin webp-bg($image) { | |
/* This will assume you're using the webp modernizr test */ | |
/* There's no default image. Not very pretty, but otherwise the browser will download both images */ | |
.no-webp & { | |
/* We're assuming there's a jpg */ | |
background-image: url($image + '.jpg'); |
linters: | |
Indentation: | |
enabled: true | |
width: 4 | |
EmptyRule: | |
enabled: false | |
PropertySortOrder: |
var gulp = require('gulp'); | |
// Get packages from package.json | |
var plugins = require("gulp-load-plugins")(); | |
// Livereload stuff | |
lr = require('tiny-lr'), | |
server = lr(); |
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
$data = json_decode($_POST['payload']); | |
if ($data->ref == 'refs/heads/master') { | |
shell_exec( 'cd /home/YOURNAME/webapps/WEBAPPNAME && git pull' ); | |
} | |
} | |
?> |
I hereby claim:
To claim this, I am signing this object: