Skip to content

Instantly share code, notes, and snippets.

View paco-valdez's full-sized avatar

Francisco Valdez de la Fuente paco-valdez

View GitHub Profile
@paco-valdez
paco-valdez / latlon.html
Last active August 29, 2015 14:13
latlon.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Geocoding service</title>
<style>
html, body {
height: 100%;
margin: 0px;
def linkedlist1():
"""
How do you reverse a singly linked list? How do you reverse a doubly linked list? Write a
program to do the same.
"""
class NodeSingle(object):
def __init__(self, n,v):
self.next = n
self.value = v
import copy
class Table(object):
'''
TODO:
- Group By (a.k.a. aggregate funcs)
- In place row delete.
- unit tests
- Make it a python package
'''
@paco-valdez
paco-valdez / OverlayViewDemo.html
Created November 5, 2013 19:01
Based on the tutorial: "Adding a Custom Overlay". This script makes the overlay size editable with the help of two markers. https://developers.google.com/maps/documentation/javascript/examples/overlay-simple
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Adding a Custom Overlay</title>
<style>
html, body {
height: 100%;
/**
* http://candrews.net/blog/2010/10/introducing-sprymap/
* Charlie Andrews
*
* Instantiate the widget when you want it to turned into a map,
* probably in the window.onload or $(document).ready() function.
*
* Default parameters are listed as the parameters below
* var map = new spryMap({
* // The ID of the element being transformed into a map