Skip to content

Instantly share code, notes, and snippets.

@annasob
annasob / gist:1887658
Created February 22, 2012 21:51
FB API integration
if(typeof A === 'undefined') {
A = {};
}
A.FB = (function () {
var fbLoaded = false,
fbUserID, fbUserObject, fbUserToken;
return {
init: function () {
// Load the SDK Asynchronously
(function (d) {
@annasob
annasob / server3
Created November 16, 2011 21:19
Proxy server with response
/*
basic-proxy.js: Basic example of proxying over HTTP
Copyright (c) 2010 Charlie Robbins, Mikeal Rogers, Fedor Indutny, & Marak Squires.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
@annasob
annasob / gist:811326
Created February 4, 2011 16:35
Popcornjs XML API
<popcorn>
<manifest>
// parent tag for <person>, optional
<people>
// identifies one specific person involved with the video
// Attribute
// id - a unique identifier for the person
// name - full name of person
// salutation - optional prefix before name, default blank
// title - optional job title or an organization association, default blank
@annasob
annasob / popcorn.googleMap.js
Created December 21, 2010 16:12
Google Map Plugin
// PLUGIN: Google Maps
(function (Popcorn) {
/**
* googleMap popcorn plug-in
* Adds a map to the target div centered on the location specified
* by the user
* Options parameter will need a start, end, target, type, lat and long, zoom
* -Start is the time that you want this plug-in to execute