Skip to content

Instantly share code, notes, and snippets.

View guidobouman's full-sized avatar

Guido Bouman guidobouman

View GitHub Profile
@guidobouman
guidobouman / directive-fluid-textarea.js
Last active June 14, 2016 15:23
Angular Fluid Textarea Directive
// Use like: <textarea fluid-textarea rows="1"></textarea>
angular.module('q42.fluidTextarea', [])
.directive('fluidTextarea', function($timeout) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
element.css({
resize: 'none'
@guidobouman
guidobouman / dabblet.css
Created July 11, 2013 13:07
Centered dynamic text.
/**
* Centered dynamic text.
*/
@import url(http://fonts.googleapis.com/css?family=Lato:100);
html {
height: 100%;
}
@guidobouman
guidobouman / checkerboard.css.sass
Created October 22, 2012 19:19
Elastic responsive SASS / CSS checkerboard scaling from 2 to 4 blocks wide depending on the container width. The `:nth-child()` calculations are the interesting part.
// Chekkerboard css
#overview
max-width : 1000px
.item
width : 50%
background : white