Skip to content

Instantly share code, notes, and snippets.

Avatar

Shawn Hansen shawnhansen

View GitHub Profile
View gist:2fc3a17f85a320cff7f90221a48be8e4
### Keybase proof
I hereby claim:
* I am geekles on github.
* I am geekles (https://keybase.io/geekles) on keybase.
* I have a public key ASA5VObJ-gxh4nnVVJApOO4gQp9Mtvo9VYLHqUq9YxmR5go
To claim this, I am signing this object:
View Preferences.sublime-settings
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"create_window_at_startup": true,
"detect_indentation": true,
"draw_white_space": "all",
@shawnhansen
shawnhansen / gulpfile.js
Created Jan 21, 2015
Gulpfile for Plone Diazo sites using bootstrap.
View gulpfile.js
var gulp = require('gulp');
var uglify = require('gulp-uglifyjs');
var less = require('gulp-less');
// Default
gulp.task('default', ['styles', 'scripts', 'watch']);
// Scripts Task
gulp.task('scripts', function() {
gulp.src(['bower_components/bootstrap/dist/js/bootstrap.js','js/site.js'])
View block-grid.less
// Block Grid
// Technique adapted from Foundation 5 for Bootstrap 3.
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss
[class*="block-grid-"] {
display: block;
margin: -(@grid-gutter-width/2);
padding: 0;
.clearfix();
}
@shawnhansen
shawnhansen / .slate
Last active Dec 31, 2015
Slate config (.slate)
View .slate
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
#config windowHintsDuration 5
View jsonball.rb
require 'json'
require 'net/http'
# JSON parser tag, creating map for use in jekyll markdown
# Alex.Heneveld @ Cloudsoft Corp (remove spaces and add the .com)
# Released under APL 2.0
# usage: {% jsonball varname from TYPE PARAM %}
#
# where TYPE is one of {data,var,file,page}, described below