Skip to content

Instantly share code, notes, and snippets.

View jonathanpglick's full-sized avatar

Jon Glick jonathanpglick

View GitHub Profile
@jonathanpglick
jonathanpglick / handling-gulp-LESS-errors.js
Last active June 27, 2016 23:27
Handling LESS errors in Gulpfile
// Less tasks used to look like this:
gulp.task('screen-less', function() {
return gulp.src('css/screen.less')
.pipe(plumber())
.pipe(less())
.pipe(gulp.dest('./css/'))
.pipe(livereload());
});
@jonathanpglick
jonathanpglick / deparam.js
Created August 31, 2015 19:17
jQuery deparam, opposite of $.param()
// Deparam (from string)
//
// Deserialize a params string into an object, optionally coercing numbers,
// booleans, null and undefined values; this method is the counterpart to the
// internal jQuery.param method.
//
// Usage:
//
// > deparam( params [, coerce ] );
//
" Settings
set noautofocus
set nosmoothscroll
let barposition = "bottom"
let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*"]
" key bindings
unmap d
map <C-d> scrollPageDown
unmap u
@jonathanpglick
jonathanpglick / dabblet.css
Created January 17, 2014 19:02
Vertical fill remaining area with flexbox.
/**
* Vertical fill remaining area with flexbox.
*/
html, body {
margin: 0;
padding: 0;
height: 100%;
}
body {
<?php
$market_vocab = taxonomy_vocabulary_machine_name_load('markets');
$terms = array(
'Housing' => array(
'Affordable',
'Apartments',
'Condos',
'Student',