Skip to content

Instantly share code, notes, and snippets.

View supahfunk's full-sized avatar

Supah supahfunk

View GitHub Profile
@supahfunk
supahfunk / gulpfile.json
Created May 17, 2018 06:47
Optimize images
const gulp = require('gulp');
const imagemin = require('gulp-imagemin');
const imageminJpegRecompress = require('imagemin-jpeg-recompress');
const imageminPngQuant = require ('imagemin-pngquant');
gulp.task('min', () =>
gulp.src('originali/*')
.pipe(imagemin())
.pipe(gulp.dest('min'))
);
@supahfunk
supahfunk / 0_reuse_code.js
Created June 9, 2014 10:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console