Skip to content

Instantly share code, notes, and snippets.

View mlouro's full-sized avatar

Marco Louro mlouro

View GitHub Profile
@mlouro
mlouro / gist:7ef2b5e5efaded9e8fae
Last active August 29, 2015 14:06
flexible 3 column grid with 100% height
.app.large {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
.nav-main, .list-main, .content-main {
position: relative;
overflow: auto;
@mlouro
mlouro / .jshintrc
Last active August 29, 2015 13:56 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@mlouro
mlouro / gulpfile.js
Last active June 21, 2022 23:20
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');
@mlouro
mlouro / JSHINT Node.js app
Created April 1, 2011 15:19
JSHINT Node.js app and rules
var express = require('express')
var app = express.createServer();
var JSHINT = require('jshint').JSHINT;
app.use(express.bodyParser());
app.get('/', function(req, res){
res.send('hello world');
});
@mlouro
mlouro / Django {% include_partial %} template tag
Created June 6, 2010 00:02
Django {% include_partial %} template tag
import re
from django.template import Context, Library, Node, Variable, TemplateSyntaxError
from django.template.loader import get_template, render_to_string
register = Library()
class PartialNode(Node):
def __init__(self, partial, params):
self.partial = partial