Skip to content

Instantly share code, notes, and snippets.

@mbostock
mbostock / .block
Last active January 9, 2025 01:01
SVG foreignObject Example
license: gpl-3.0
@abraham
abraham / facebook.py
Created August 14, 2010 08:45
Finds who among your Facebook friends you have the most common interests and likes with
#!/usr/bin/python -tt
# MIT licensed by Abraham Williams - http://abrah.am
# Pulls your Facebook friends likes and interest and finds who you have the most in common with.
import urllib, json, sys
graph_url = 'https://graph.facebook.com/'
def print_intersect_count(access_token):
tally = {}
@singpolyma
singpolyma / gist:379768
Created April 26, 2010 19:27
Get RSS feed for facebook user
<?php
// License: ISC
// Example, hit http://scrape.singpolyma.net/fb.php?id=singpolyma
require 'std_rss_out.php'; // http://github.com/singpolyma/xoxotools/blob/master/std_rss_out.php
function get($u) {
$curl = curl_init($u);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 [email protected]');