Skip to content

Instantly share code, notes, and snippets.

View edwardteach42's full-sized avatar

Edward Teach edwardteach42

View GitHub Profile
@edwardteach42
edwardteach42 / gist:1685210
Created January 26, 2012 21:25
Get Number of Likes for a URL
https://api.facebook.com/method/fql.query?query=SELECT%20like_count%20FROM%20link_stat%20WHERE%20url=%22http://www.example.com%22
@edwardteach42
edwardteach42 / gist:1685193
Created January 26, 2012 21:22
Get Number of Followers on Twitter
/**
* Get Number of Twitter Followers
*
* LICENSE: distributions of the source code without
* authors permission is forbidden, For written
* permission please contact jeffmthomas@gmail.com.
*
* Can also use the following to pull with $getData:
* id
* name
@edwardteach42
edwardteach42 / .htaccess
Created January 18, 2012 16:32
Redirecting non-www to www with .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
@edwardteach42
edwardteach42 / .gitignore
Created January 11, 2012 22:58 — forked from miles/.gitignore
Augmented .gitignore for Rails in Aptana
.bundle
.settings
.project
db/*.sqlite3*
log/*.log
*.log
tmp/**/*
tmp/*
doc/api
doc/app