Skip to content

Instantly share code, notes, and snippets.

View gideonheilbron's full-sized avatar

Gideon Heilbron gideonheilbron

View GitHub Profile
@gideonheilbron
gideonheilbron / In head
Created August 20, 2013 08:44
Disable tap-highlights for Windows phone devices
<meta name="msapplication-tap-highlight" content="no" >
@gideonheilbron
gideonheilbron / gruntfile.js
Created July 11, 2014 13:09
Without matchdep, we would have to write grunt.loadNpmTasks("grunt-task-name"); for each dependency, which would quickly add up as we find and install other plugins.
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
@gideonheilbron
gideonheilbron / Gruntfile.js
Last active August 29, 2015 14:03
Basic gruntfile (work in progress)
module.exports = function(grunt){
'use strict';
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
main: {
@gideonheilbron
gideonheilbron / package.json
Last active August 29, 2015 14:03
Basic package.json (work in progress)
{
"title": "Project name",
"name": "project-name",
"version": "0.1.0",
"private": true,
"author": {
"name": "Author name",
"email": "author@name.email"
},
"devDependencies": {
@gideonheilbron
gideonheilbron / compass.rb
Last active August 29, 2015 14:03
Basic compass.rb (work in progress)
css_dir = "build/css"
sass_dir = "assets/scss"
images_dir = "build/images"
generated_images_dir = "build/images/generated"
javascripts_dir = "assets/js"
fonts_dir = "build/fonts"
output_style = :expanded
line_comments = true
@gideonheilbron
gideonheilbron / .bowerrc
Last active August 29, 2015 14:03
Basic .bowerrc (work in progress)
{
"directory" : "assets/components"
}
@gideonheilbron
gideonheilbron / bower.json
Created July 12, 2014 09:20
Basic Bower file (work in progress)
{
"title": "Project name",
"name": "project-name",
"dependencies": {
"ember": "*",
"ember-data": "*"
}
}
@gideonheilbron
gideonheilbron / Gemfile
Created July 12, 2014 09:26
Basic gemfile for use with compass
source 'https://rubygems.org'
gem 'compass', '~> 0.12.6'
@gideonheilbron
gideonheilbron / debounce.js
Last active August 29, 2015 14:22
Debounce
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
// Defining values
$small-range: (0em, 40em); /* 0, 640px */
$medium-range: (40.063em, 64em); /* 641px, 1024px */
$large-range: (64.063em, 90em); /* 1025px, 1440px */
$xlarge-range: (90.063em, 120em); /* 1441px, 1920px */
$xxlarge-range: (120.063em); /* 1921px */
// Defining media queries
$screen: "only screen" !default;
$landscape: "#{$screen} and (orientation: landscape)" !default;