Skip to content

Instantly share code, notes, and snippets.

Marco Louro mlouro

  • Lincoln Loop
  • Mafra, Portugal
Block or report user

Report or block mlouro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mlouro
mlouro / gist:7ef2b5e5efaded9e8fae
Last active Aug 29, 2015
flexible 3 column grid with 100% height
View gist:7ef2b5e5efaded9e8fae
.app.large {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
.nav-main, .list-main, .content-main {
position: relative;
overflow: auto;
View .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 Jan 9, 2020
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
View gulpfile.js
'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 Apr 1, 2011
JSHINT Node.js app and rules
View JSHINT Node.js app
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 Jun 6, 2010
Django {% include_partial %} template tag
View 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
You can’t perform that action at this time.