Skip to content

Instantly share code, notes, and snippets.

@keeprock
keeprock / Better Emmet Media Queries
Last active June 26, 2017 16:53 — forked from jordanmoore/Better Emmet Media Queries
For Sublime 3 go to Preferences > Package Settings > Emmet > Setting - User and add this for writing better media queries quickly in Emmet. mqm => min-width media query mqx => max-width media query
{
"snippets": {
"css": {
"abbreviations": {
"mqm": "@media screen and (min-width:${1}) {\n\t|\n}",
"mqx": "@media screen and (max-width:${1}) {\n\t|\n}"
}
}
}
}
@keeprock
keeprock / gulpfile.js
Created January 22, 2016 13:49
Latest working gulpfile config
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
sourcemaps = require('gulp-sourcemaps'),
prefix = require('gulp-autoprefixer'),
watch = require('gulp-watch'),
plumber = require('gulp-plumber'),
filter = require('gulp-filter'),
browserSync = require('browser-sync'),
reload = browserSync.reload;
@keeprock
keeprock / applescript.scpt
Created March 23, 2016 14:25
Open current Finder folder in iTerm2 version 3 beta
on run {input, parameters}
tell application "Finder"
set dir_path to quoted form of (POSIX path of (folder of the front window as alias))
end tell
CD_to(dir_path)
end run
on CD_to(theDir)
tell application "iTerm"
activate
@keeprock
keeprock / DbHelper.php
Created April 15, 2016 11:37 — forked from agarzon/DbHelper.php
Codeception DB helper to extend database functionalities (update & delete)
<?php
namespace Codeception\Module;
/**
* Additional methods for DB module
*
* Save this file as DbHelper.php in _support folder
* Enable DbHelper in your suite.yml file
* Execute `codeception build` to integrate this class in your codeception
*/