Skip to content

Instantly share code, notes, and snippets.

View leandrojo's full-sized avatar
🎯
Focusing

Leandro Araújo leandrojo

🎯
Focusing
  • São Paulo, Brasil
View GitHub Profile
@leandrojo
leandrojo / reset.css
Created September 27, 2011 01:34
CSS Reset para HTML5
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
}
body {
line-height: 1;
}
@leandrojo
leandrojo / html5.html
Created September 27, 2011 02:38
Arquivo de HTML5 básico.
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8" />
<title></title>
<link href="css/estilo.css" rel="stylesheet" type="text/css" media="screen" />
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
@leandrojo
leandrojo / express
Created June 10, 2013 21:41
Using express with jade template
var express = require("express");
var wine = require("./routes/wines");
var app = express();
var port = process.env.PORT || 5000;
app.set('views', __dirname + '/template');
app.set('view engine', "jade");
app.engine('jade', require('jade').__express);
app.configure(function () {
/*
* NinjaChoice
* =================
*
* @Local: Fortaleza - CE
* @Vaga: Designer e Front-End
* @Modalidade: CLT (40H)
* @Salário: >= 2,5k
* @Beneficios: Estacionamento no local, VR, VT
*
"use strict";
module.exports = function(grunt) {
// Configurando as tarefas aqui.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
scripts: {
files: ['**/*.js'],
this.getCurrentPosition = function() {
var position = $q.defer();
geolocation.getCurrentPosition(function(pos) {
position.resolve(pos);
}, function() {
position.reject();
});
return position.promise;
gulp.task('watch', function() {
gulp.src([paths.stylesheets + "/**/*.styl"])
.pipe(watch(function() {
return gulp.src(paths.stylesheets + "/main.styl")
.pipe(stylus({compress: true}))
.pipe(gulp.dest(paths.stylesheets))
.pipe(gulp.dest(targetPaths.stylesheets))
}))
// colors flat
peter-rider = rgba( 52, 152, 219, 1)
carrot = rgba(230, 126, 34, 1)
pumpkin = rgba(211, 84, 0, 1)
emerald = rgba( 46, 204, 113, 1)
nephritis = rgba( 39, 174, 96, 1)
sun-flower = rgba(241, 196, 15, 1)
@leandrojo
leandrojo / grid.styl
Created July 14, 2014 14:43
Pure Grid with Stylus
/*!
Pure v0.4.2
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
https://github.com/yui/pure/blob/master/LICENSE.md
*/
/*csslint regex-selectors:false, known-properties:false, duplicate-properties:false*/
.pure-g {
letter-spacing: -0.31em; /* Webkit: collapse white-space between units */
Aquiraz
Topônimo Palavra de origem tupi, que significa "Gentio da Terra"
Distância a Fortaleza 28km
Acesso: "BR-116", "Anel Viário", "CE-040"
Atrativos Naturais
Porto das Dunas, Praia do Presídio, Prainha, Iguape, Barro Preto, Batoque
Lagoa Encantada, Lagoa do Catu, Tapuio