Skip to content

Instantly share code, notes, and snippets.


Adriano Almeida adrianoalmeida7

View GitHub Profile
adrianoalmeida7 / template_amp.html
Last active Dec 27, 2017
HTML Básico para AMP
View template_amp.html
<!doctype html>
<html amp lang="pt-BR">
<meta charset="utf-8">
<script async src=""></script>
<link rel="canonical" href="http://caminho_do_arquivo_original/arquivo.html">
<title>Página compatvel com AMP</title>
<link rel="canonical" href="" />
<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{
View ola.rb
puts "Ola"
public static void main(String [] args) {
System.out.println("Olá mundo");
adrianoalmeida7 / Data.scala
Created Jun 19, 2011
DSL pra criacao de java.util.Calendars
View Data.scala
package dsl
import java.util.Calendar
object Data {
class Dia(val dia:Int) {
def de(mes:Mes) = {
new ConectorParaAno(dia, mes)
View faces-config.xml
<?xml version='1.0' encoding='UTF-8'?>
<faces-config xmlns=""
View gist:880240
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);
View lista_amazon_ago10
- 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
View faces-config template
<faces-config version="2.0" xmlns=""
xmlns:xsi="" xsi:schemaLocation="">