Skip to content

Instantly share code, notes, and snippets.

View ricardoriogo's full-sized avatar

Ricardo Riogo ricardoriogo

View GitHub Profile
@ricardoriogo
ricardoriogo / glob.js
Last active December 6, 2015 15:32
Little file to create a autoimport SASS files.
var glob = require("glob"),
fs = require('fs'),
contents = '',
prefix = 'app/',
importFile = '_app-import.scss';
glob(prefix + "*/**/*.scss", function (er, files) {
for(file in files){
contents += "@import '" + files[file].replace(prefix, '') +"'; \n";
}
(function(){
var timeout;
var isHidden = false;
document.addEventListener("mousemove", function() {
if (timeout) {
clearTimeout(timeout);
}
timeout = setTimeout(function() {
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software