Skip to content

Instantly share code, notes, and snippets.

View nbortolotti's full-sized avatar
🏠
Working from home

Nicolas Bortolotti nbortolotti

🏠
Working from home
View GitHub Profile
@nbortolotti
nbortolotti / iniciando.py
Last active August 29, 2015 13:57
Web Forms en App Engine mediante webapp2
from google.appengine.api import users
import webapp2
import cgi
pagina = """\
<html>
<body>
<form action="/registro" method="post">
<div><textarea name="content" rows="3" cols="60"></textarea></div>
@nbortolotti
nbortolotti / datastore.py
Last active August 29, 2015 13:57
Manejo del datastore de App Engine para consultas simples
#!/usr/bin/env python
# encoding: utf-8
"""
datastore.py
Created by Nick Bortolotti on 2014-03-07.
Apache Licence 2.0
"""
import cgi
@nbortolotti
nbortolotti / main.py
Created April 6, 2014 22:00
Integrando G+ API using python. (getting cover photo from people profile)
'''
Created on Mar 18, 2014
@author: OAuth2 base code '[email protected] (Joe Gregorio)'
@author modificaciones: nickbortolotti
'''
from apiclient import discovery
from oauth2client import appengine
from oauth2client import client
from google.appengine.api import memcache
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
class xmlcsv:
def __init__(self, input_file, output_file, row, schema):
xml_file = open(input_file, "r")
col = schema
resultado = []
for _, element in etree.iterparse(xml_file, tag=row):
rows = list(element.iter('row'))
for row_element in rows:
row_tmp = []
a = 0
@nbortolotti
nbortolotti / ex3_blogger_polymer
Last active August 29, 2015 14:13
Template Blogger example_3 using Polymer
<!--example code using core-pages demo from www.polymer-project.org ada
adated to blogger template
Nicolas Bortolotti-->
<?xml version="1.0" encoding="UTF-8" ?>
<!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' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<b:skin>
<![CDATA[
<style>
@nbortolotti
nbortolotti / nick-collapse-viewer
Created February 6, 2015 04:56
polymer-element [nick-collapse-viewer]
<polymer-element name="nick-collapse-viewer" attributes="program details link chart image imagedetails">
<template>
<div class="heading" on-click="{{ toggle }}">{{ program }}</div>
<core-collapse id="collapse">
<div class="content">
<div>{{ details }}</div>
<hr size="1" />
<table border="0">
<tr>
<td><img src="{{ image }}" width="100" height="100" /></td>
@nbortolotti
nbortolotti / d_rendering_simple.html
Last active August 29, 2015 14:23
ejemplo para launchpad mx 2015
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="estilos_rendering_simple.css" rel="stylesheet"> <!-- Relacion con los estilos -->
<title>Demostracion critical path</title> <!-- Titulo de la pagina-->
</head>
<body>
<p>Hola <span>demostracion </span> launchpad MX!</p> <!-- Ejemplo de personalizacion en el HTML-->
<div><img src="picture_1.png"></div> <!-- Imagen generica de prueba-->
</body>
@nbortolotti
nbortolotti / estilos_rendering_simple.css
Created June 24, 2015 22:54
ejemplo para launchpad week mx 2015
body { font-size: 15px }
p { font-weight: bold }
span { color: blue}
p span { display: none }
img { float: right }
@nbortolotti
nbortolotti / mdl_cards001_index.html
Last active December 27, 2015 19:21
Material Design Lite - Simple Card 001
<html>
<head>
<link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.1/material.css">
<script src="https://storage.googleapis.com/code.getmdl.io/1.0.1/material.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<style>
.demostracion-mdl-card {
width: 450px;