Skip to content

Instantly share code, notes, and snippets.

'use strcit';
var path = require('path');
module.exports = function (grunt) {
var config = {
pkg: grunt.file.readJSON('package.json')
};
grunt.file.expand('.grunt/config/*.json').forEach(function (file) {
/* Feedly */
#feedlyCenter * {
font-family: "Segoe UI", sans-serif !important;
}
#feedlyCenter code,
#feedlyCenter pre {
font-family: "Consolas", monospace !important;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* Validate an email address.
*/
var validate_email_address = function(email_address) {
// TODO: This does not support using "+" in email addresses and it also seems
// to assume that the top level domain can only be three characters long.
// I coped this from somewhere. Need to revisit it. It works as a quick
// rule of thumb to reduce the amount of work that needs to be done by
// hand for the task at hand today.
if (/.+@.+\..+/i.test(email_address)) {

Free inactive memory on linux

sudo -s
...
free && sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && echo "" && free

Free inactive memory on Mac OS X

/**
* Track JS error details in Universal Analytics
*/
function trackJavaScriptError(e) {
var errMsg = e.message;
var errSrc = e.filename + ': ' + e.lineno;
ga('send', 'event', 'JavaScript Error', errMsg, errSrc, { 'nonInteraction': 1 });
}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(window).load(function(){
$().hatchShow();
});
jQuery.fn.hatchShow = function(){
$('.hsjs').css('display','inner-block').css('white-space','pre').each(function(){
var t = $(this);
t.wrap("<span class='hatchshow_temp' style='display:block'>");
var pw = t.parent().width();
// Sass utilities
@import "helpers/variables";
@import "helpers/functions";
@import "helpers/mixins";
@import "helpers/placeholders";
// Vendors and external stylesheets
@import "vendors/bootstrap";
@import "vendors/jquery-ui";
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
@anilex
anilex / index.html
Created August 28, 2014 05:50 — forked from galengidman/index.html
Sticky Footer - Responsive, with variable height
<header class="page-row">
<h1>Site Title</h1>
</header>
<main class="page-row page-row-expanded">
<p>Page content goes here.</p>
</main>
<footer class="page-row">
<p>Copyright, blah blah blah.</p>