Skip to content

Instantly share code, notes, and snippets.

View allanbatista's full-sized avatar

Allan Batista allanbatista

View GitHub Profile
@allanbatista
allanbatista / html5
Created September 20, 2012 16:42
Padrão Html5
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<title></title>
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="keywords" content="">
<!-- Estilos -->
@allanbatista
allanbatista / img5
Created September 20, 2012 16:57
Html Imagem
<img src="" alt="" title="">
@allanbatista
allanbatista / img
Created November 14, 2012 10:12
Imagem com placeholder
<img src="http://placehold.it/200x200/ffffff" title="" alt="" />
@allanbatista
allanbatista / .htaccess
Last active December 14, 2015 07:08
Redirecionamento com .htaccess apache.
Options +FollowSymlinks
RewriteEngine on
rewriterule ^(.*)$ /caminho/absoluto/da/pasca [r=301,nc]
@allanbatista
allanbatista / .editorconfig
Created February 27, 2013 14:05
Configuração padrão do editorconfig para desenvolvimento.
root = true
[*.*]
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
@allanbatista
allanbatista / isEmptyObject
Last active December 15, 2015 00:08
Verifica se um objeto passado por parâmetro é vazio em javascript. Checks if an object passed as parameter is empty in javascript.
function isEmptyObject(obj){
for(undefined in obj){
return false;
}
return true;
}
@allanbatista
allanbatista / App
Created March 21, 2013 15:46
Objeto criador de gerenciador de outros objetos e métodos
/**
* Objeto criador de gerenciador de outros objetos e métodos.
*
* Esta objeto tem por finalidade ensentivar as boas práticas na
* programação javascript, criando classes, extenções e objetos.
*
* @type {Object}
* @author Allan Batista
*/
App = {
@allanbatista
allanbatista / GitRetornoApenasArquivosModificados
Created March 26, 2013 12:14
Git, retorna somente os arquivos modificados passando para um variavel em shell separado por espaço.
#!/bin/bash
css=$(git status --porcelain | sed -e 's!.*/!!' | sed -e "s/css\///g" | grep "\.css$" | tr "\n" ',')
ant css-homologacao -Dcss.files=$css
ant homologacao
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Simple snippet</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
</head>
<body>
</body>
@allanbatista
allanbatista / app.profile.js
Last active January 1, 2016 01:29
Configuração do Dojo System Build para Webapp yoeman.
var profile = {
basePath: ".",
releaseDir: "./dist/scripts",
action: "release",
optimize: "closure",
layerOptimize: "closure",
selectorEngine: "acme",
packages:[{
name: "dojo",