Skip to content

Instantly share code, notes, and snippets.

View miguelfrias's full-sized avatar

Miguel Angel Frías Bonfil miguelfrias

  • Globant
  • Los Angeles
View GitHub Profile
@miguelfrias
miguelfrias / sample-grunt-config
Created March 5, 2014 19:29
Sample Grunt configuration
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// @see http://www.jshint.com/docs/options/
jshint: {
// Files that jshint will watch
@miguelfrias
miguelfrias / jshintrc
Created March 5, 2014 19:28
Recommended JSHint config
{
curly: true,
eqeqeq: true,
browser: true,
bitwise: true,
camelcase: true,
forin: true,
indent: 4,
latedef: 'nofunc',
newcap: true,
/*jslint sloppy:true, white:true, vars:true, plusplus:true */
var permutation = function (collection){
var current,
subarray,
result = [],
currentArray = [],
newResultArray = [];
if (collection.length){
/*
* a small mixin for easy use of rem with px as fallback
* usage: @include x-rem(font-size, 14px)
* usage: @include x-rem(marign, 0 12px 2 1.2)
* usage: @include x-rem(padding, 1.5 24px)
*
* thanks to Eric Meyer for https://github.com/ericam/susy
* and Hans Christian Reinl for http://drublic.de/blog/rem-fallback-sass-less/
*/
@mixin x-rem($property, $values) {