Skip to content

Instantly share code, notes, and snippets.

View scriptmonster's full-sized avatar
🙃

İsmail Taha AYKAÇ scriptmonster

🙃
View GitHub Profile
@scriptmonster
scriptmonster / diffbot_cli.py
Created January 2, 2014 21:36
Diffbot Python API Example
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import urllib
import urllib2
import httplib
import json
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal