Skip to content

Instantly share code, notes, and snippets.

View joelongstreet's full-sized avatar

Joe Longstreet joelongstreet

View GitHub Profile
@joelongstreet
joelongstreet / RestProof.html
Created February 18, 2013 16:38
A proof showing how to use Amazon S3 as a simple data store for image objects with authors and captions.
<!DOCTYPE html>
<html>
<head>
<title>AS3 Rest Proof</title>
<script src='http://code.jquery.com/jquery-1.9.1.min.js'></script>
<script>
var as3_path = 'http://restproof.s3.amazonaws.com/'
$(function(){
$.ajax({
@joelongstreet
joelongstreet / FacebookRequest.coffee
Last active October 13, 2015 02:28
Request an access token from facebook and then use it to make a subsequent request.
request = require 'request'
facebook = require 'fb'
get_fb_data = (req, res, next) ->
fb_req = 'https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECCRET&grant_type=client_credentials'
request.get fb_req, (err, res, body) ->
if err then console.log err