- Platform
- IDE
- Editing Font
- Source Code Repo/host
- Hosting Provider
/* | |
For more detailed instructions on how to use this script, sign up with your email here: | |
http://adamloving.com/internet-programming/how-toexport-facebook-page-fans | |
DISCLOSURE: This javascript runs in your browser pretending to be you | |
looking through your page fans. Facebook should have no problem with this, | |
but who knows if they will think it is strange to see you looking through | |
all your fans so quickly (the script waits 3s before requesting each page). | |
I've had no problem running this so far for 1000s of page fans, but I |
require 'twiliolib' | |
ACCOUNT_SID = 'big-hex-number' | |
ACCOUNT_TOKEN = 'another-big-hex-number' | |
# version of the Twilio REST API to use | |
API_VERSION = '2010-04-01' | |
# base URL of this application | |
BASE_URL = "http://myapp.com" |
/* | |
A class to monitor background updates to a HTML based iPhone application. | |
Note that this needs to be used in conjunction with an HTML5 Cache Manifest file | |
This originated from some sample code in this book: | |
http://www.amazon.com/Building-iPhone-Apps-HTML-JavaScript/dp/0596805780 | |
*/ |
class InstallerController < ApplicationController | |
# Rails controller action for an HTML5 cache manifest file. | |
# Generates a plain text list of files that changes | |
# when one of the listed files change... | |
# So the client knows when to refresh its cache. | |
def cache_manifest | |
@files = ["CACHE MANIFEST\n"] | |
@files << 'favicon.ico' | |
import client | |
import restkit | |
app_key = 'xxx' | |
app_secret = 'yyy' | |
c = client.Client(app_secret, app_key) | |
username = 'adamloving' |
sudo port install mysql5 | |
sudo port install py26-mysql | |
get the junk from here | |
http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/ | |
decompress it, then follow the instructions in readme | |
MySQL-python-1.2.3$ python setup.py build | |
MySQL-python-1.2.3$ sudo python setup.py install |
// I'm not sure which of these is the best, they all have pros and cons. | |
// for more ideas, see http://ejohn.org/blog/simple-javascript-inheritance/ | |
// ----- 1 [using functions as objects with prototypes]----- | |
function MyBaseClass() { }; | |
MyBaseClass.prototype.myMethod = function() { }; | |
function MyClass() { | |
MyBaseClass.call(this); // call base class constructor |