Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# A simple script to load data from a shapefile into a spatialite db. | |
# Transfering the geometries is slow. It would probably be much faster to | |
# use WKB directly for the load, but I cannot get this to work. | |
# This is largely copied from | |
# https://github.com/geoalchemy/geoalchemy/blob/master/examples/spatialite.py | |
import os, osgeo.ogr | |
from sqlite3 import dbapi2 as sqlite | |
from sqlalchemy.orm import sessionmaker | |
from sqlalchemy import event, create_engine, MetaData |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Since password managers are big and complicated and I currently am pretty bored since I am sitting in a car for a few hours, here is a simple algorithm to generate resource-specific, unique passwords using a master password and no password database.
As pointed out here: http://news.ycombinator.com/item?id=4374888 this method is broken.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import code | |
import logging | |
from datetime import datetime | |
from sqlalchemy import create_engine, event | |
from sqlalchemy import Column, Float, Integer, MetaData, UnicodeText |