Skip to content

Instantly share code, notes, and snippets.

View automagisch's full-sized avatar

Koen Houtman automagisch

View GitHub Profile
@automagisch
automagisch / form-reset-helpers.scss
Created May 2, 2016 10:14 — forked from mjlescano/form-reset-helpers.scss
Reset for form elements written in SCSS
/* ----------------------------------------------------------------------------------------------------
SCSS Form Reset Helpers - Forked from: https://gist.github.com/anthonyshort/552543
Intended usage:
- MIXINS: for very specific use cases, when you dont want to reset absolutly all the forms, very verbose output.
- PLACEHOLDER SELECTORS: use as extending classes. Less verbose, more generic overrides.
A couple of things to watch out for:
@automagisch
automagisch / LocalStorageHandler.js
Created June 25, 2015 09:54
This is a very minimalistic interface on top of the LocalStorage API to save key-value objects as one value to LocalStorage. Done a lot of times, but this one just does the most simplest of things. Quick, easy and safe :)
var LS = function() {
/*
LocalStorageHandler Class
- emulates a more user friendly interface
for the LocalStorage API
*/
var LocalStorageHandler = function() {
this.key = "local";
@automagisch
automagisch / DateSelectionView.js
Created June 23, 2015 08:19
Basic Ember Date Selector
App.DateSelectionView = Em.View.extend({
templateName: "date-selection",
tagName: "div",
classNames: ['date-selector','clearfix'],
classNameBindings: ['showLabels::no-labels'],
date: null,
showLabels: true,
timezone: true,
@automagisch
automagisch / n-btn-.html
Last active August 29, 2015 14:19
TWBS workaround for justified btn group with native buttons
<div class="n-btn-group">
<div class="col-xs-4 n-btn">
<button type="submit" class="btn btn-success">Save</button>
</div>
<div class="col-xs-4 n-btn">
<button class="btn btn-warning">Reset</button>
</div>
<div class="col-xs-4 n-btn">
<button class="btn btn-danger">Delete</button>
</div>
@automagisch
automagisch / 0_reuse_code.js
Last active August 29, 2015 14:19
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