Skip to content

Instantly share code, notes, and snippets.

//
// NaturalDateParser.cs
//
// Author:
// Anirudh Sanjeev <anirudh@anirudhsanjeev.org>
//
// Copyright (c) 2009 Anirudh Sanjeev
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
@skyronic
skyronic / getbook.py
Created September 11, 2012 13:58
Get a book from google books
#!/bin/python
import re, requests, logging, os, json
logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
BOOK_ID = "l8B2NWPTDWcC"
PROXY = None
USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.64 Safari/537.1"
COOKIE = "Set your google cookie here"
HEADERS = {

Goal:

To build an ActiveRecord-style ORM for usage in small projects where something like Doctrine is too much or the project structure is rigid and cannot be easily incorporated with Doctrine/other ORMs.

Proposed Usage

Model:

php

Keybase proof

I hereby claim:

  • I am skyronic on github.
  • I am skyronic (https://keybase.io/skyronic) on keybase.
  • I have a public key whose fingerprint is 8911 5850 EF66 5FC0 4589 EDEE 63E1 188B EB56 42F0

To claim this, I am signing this object: