Skip to content

Instantly share code, notes, and snippets.

View birdyboy18's full-sized avatar

Paul Bird birdyboy18

View GitHub Profile
@birdyboy18
birdyboy18 / controller.js
Created March 28, 2017 21:42
Maise changes
.controller('GigController', function($scope){
var gigs = $('.js-gig-date');
var now = new Date();
console.log(now);
gigs.each(function(i, el) {
var $el = $(el);
var date = $el.attr('data-date');
var gigtime = new Date(date);
console.log(gigtime);
if (now > gigtime) {
@birdyboy18
birdyboy18 / gulpfile.js
Created April 21, 2015 17:15
gulpfile showing off ways of manipulating images and compiling sass
var gulp = require('gulp');
var sass = require('gulp-ruby-sass');
var prefix = require('gulp-autoprefixer');
var csso = require('gulp-csso');
var imgmin = require('gulp-imagemin');
var resize = require('gulp-image-resize');
var changed = require('gulp-changed');
var parallel = require('concurrent-transform');
var os = require('os');
var rename = require('gulp-rename');