Skip to content

Instantly share code, notes, and snippets.

View adrianoalmeida7's full-sized avatar

Adriano Almeida adrianoalmeida7

View GitHub Profile
@adrianoalmeida7
adrianoalmeida7 / template_amp.html
Last active December 22, 2022 14:31
HTML Básico para AMP
<!doctype html>
<html amp lang="pt-BR">
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<link rel="canonical" href="http://caminho_do_arquivo_original/arquivo.html">
<title>Página compatvel com AMP</title>
<link rel="canonical" href="http://example.ampproject.org/article-metadata.html" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{
@adrianoalmeida7
adrianoalmeida7 / ola.rb
Created February 29, 2012 19:45
gist no tubaina
puts "Ola"
public static void main(String [] args) {
System.out.println("Olá mundo");
}
@adrianoalmeida7
adrianoalmeida7 / Data.scala
Created June 19, 2011 12:19
DSL pra criacao de java.util.Calendars
package dsl
import java.util.Calendar
object Data {
class Dia(val dia:Int) {
def de(mes:Mes) = {
new ConectorParaAno(dia, mes)
}
@adrianoalmeida7
adrianoalmeida7 / faces-config.xml
Created May 5, 2011 22:50
faces-config.xml header
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
</faces-config>
@adrianoalmeida7
adrianoalmeida7 / gist:880240
Created March 21, 2011 21:21
java.lang.ref tests
public static void main(String[] args) {
WeakReference<Object> ref = new WeakReference<Object>(new Object());
Map<Integer, Integer> mapa = new HashMap<Integer, Integer>();
for(int i = 0; i < 10000000; i++) {
System.out.println(i + "--" + ref.get());
mapa.put(i, i);
}
- Beautiful Data: The Stories Behind Elegant Data Solutions - Toby Segaran
- Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers) - Andy Hunt
- Growing Object-Oriented Software, Guided by Tests - Steve Freeman
- Release It!: Design and Deploy Production-Ready Software (Pragmatic Programmers) - Michael T. Nygard
- Don't Make Me Think: A Common Sense Approach to Web Usability, 2nd Edition - Steve Krug
<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
</faces-config>