This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container{ | |
margin:0 auto; | |
width:800px; | |
} | |
td{ | |
vertical-align: top; | |
} | |
@media all and (max-width: 799px) { | |
.container td { | |
display:inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function chaplin(str,data) { | |
// {{#nome_da_variavel}} ... {{/nome_da_variavel}} | |
const blockPattern=/{{#([a-zA-Z0-9_]+)}}(.*?){{\/\1}}/gs; | |
// {&nome_da_variavel}} ou {{nome_da_variavel}} | |
const variablePattern=/{{(?:&)?([a-zA-Z0-9_]+)}}/g; | |
// função pra escapar o html | |
var escapeHtml=function(str) { | |
const htmlEntities={ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __HTML_MACROS | |
#define __HTML_MACROS | |
#define HTML(l, head, body) <!DOCTYPE html> \ | |
<html lang=#l> \ | |
head \ | |
body \ | |
</html> | |
#define HEAD(...) <head> \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copyright (C) 2009 tm2gtksw2(Alexandre da Silva) | |
This file was generated from a textmate theme named Monokai | |
with tm2gtksw2 tool. (Alexandre da Silva) | |
Modified by Andrey Serebryakov, 2011 | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Library General Public |