Skip to content

Instantly share code, notes, and snippets.

View DecisionNerd's full-sized avatar

David Spencer DecisionNerd

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Leaflet</title>
<link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
<script src="https://raw.github.com/gist/2197042/2b90c41b39b7d5b3a851d8f256de2ebd3fe1fb74/leaflet-google.js"></script>
</head>
<body>
@DecisionNerd
DecisionNerd / pylibpcap.py
Created July 7, 2012 02:06
copy of pylibpcap: python module for libpcap v0.6.4
#!/usr/bin/env python2
"""copy of pylibpcap, BSD license http://sourceforge.net/projects/pylibpcap/"""
import pcap
import sys
import string
import time
import socket
import struct
@DecisionNerd
DecisionNerd / fibonacci.py
Created May 25, 2012 02:06
A module of functions about non-zero Fibonacci numbers
"""A module of functions about non-zero Fibonacci numbers."""
import sys
def fib(n):
"""Print the non-zero Fibonacci numbers less than n."""
a, b =1,1
while b<n:
print b,
a, b = b, a+b