Skip to content

Instantly share code, notes, and snippets.

View keshavnagpal's full-sized avatar
🎯
Focusing

keshav nagpal keshavnagpal

🎯
Focusing
View GitHub Profile
@leonjza
leonjza / cache.py
Last active July 14, 2024 11:49
Simple SQLite Cache
#!/usr/bin/python
import os
import errno
import sqlite3
import sys
from time import time
from cPickle import loads, dumps
import logging
@jedwood
jedwood / belay-js-example.html
Created February 14, 2014 00:14
Tiny helper for connecting two elements with SVG lines. Assumes jQuery (for now). Original by @johndilworth
<!DOCTYPE html>
<html>
<head>
<title>SVG Lines</title>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="belay.js"></script>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<style>
body{