Skip to content

Instantly share code, notes, and snippets.

View devgaucho's full-sized avatar

Gaucho devgaucho

View GitHub Profile
.container{
margin:0 auto;
width:800px;
}
td{
vertical-align: top;
}
@media all and (max-width: 799px) {
.container td {
display:inline-block;
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={
@devgaucho
devgaucho / html.h
Created December 6, 2023 03:05 — forked from gboncoffee/html.h
Macros to generate HTML with the C preprocessor
#ifndef __HTML_MACROS
#define __HTML_MACROS
#define HTML(l, head, body) <!DOCTYPE html> \
<html lang=#l> \
head \
body \
</html>
#define HEAD(...) <head> \
@devgaucho
devgaucho / Monokai.xml
Created March 28, 2023 15:14
Tema Monokai para Gedit
<?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