Skip to content

Instantly share code, notes, and snippets.

View diegogurgel's full-sized avatar
😎
Always learning

Diego Gurgel diegogurgel

😎
Always learning
View GitHub Profile
@diegogurgel
diegogurgel / index.html
Created November 9, 2014 15:44
A Pen by Diego Gurgel.
<div class="host">
<div class="loading loading-0"></div>
<div class="loading loading-1"></div>
<div class="loading loading-2"></div>
</div>
@diegogurgel
diegogurgel / custom-card.html
Created August 18, 2014 05:18
webcomponents - flip-card
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300' rel='stylesheet' type='text/css'>
<template id="custom-card">
<style>
:host{
font-family: 'Open Sans', sans-serif;
font-weight: 100;
}
.flip-container{
float: left;
margin: 0.5em;
@diegogurgel
diegogurgel / webcomponents-production.md
Last active August 29, 2015 14:05
Sites and apps that are using webcomponents in production
@diegogurgel
diegogurgel / index.html
Created August 12, 2014 16:57
Line Chart - googlecharts
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>
Google Visualization API Sample
</title>
<script type="text/javascript" src="//www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['corechart']});
@diegogurgel
diegogurgel / card-profile.html
Created August 10, 2014 03:23
HTML import test
<section class="profile">
Just import
</section>
<style scoped >
.profile{
font-weight: 100;
letter-spacing: 1.3px;
background: #fff;
color:#dc6b65;
float: left;
@diegogurgel
diegogurgel / mask.js
Created August 8, 2014 14:18
Função javascript para máscaras(CNPJ, CPF, RG, Telefone)
mask("###.###.###-##","12345678900");
mask("##.###.###/####-##","12345678000122");
function mask (pattern,value) {
var result="";
var lacCount=-1;
for(var i=0, max = pattern.length; i< max;i++){
if(pattern.charAt(i)==='#'){
lacCount++;
result+=value[lacCount];
}else{
@diegogurgel
diegogurgel / MainActivity.java
Created August 1, 2014 12:39
Test listview with background view and simple scroll
package com.diegogurgel.swipelistviewmap;
import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
@diegogurgel
diegogurgel / FileUpload.java
Created July 25, 2014 22:18
Upload Android with progress
package com.diegogurgel.upload;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Iterator;
svn commit -m "message" --username UserNameValue --password PasswordValue