Skip to content

Commit

Permalink
Face tracking / sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
burkeholland committed Jun 13, 2012
1 parent 260d4a9 commit bb03f0c
Show file tree
Hide file tree
Showing 67 changed files with 1,648 additions and 876 deletions.
2 changes: 2 additions & 0 deletions app.js
Expand Up @@ -13,6 +13,7 @@ var app = module.exports = express.createServer();
app.configure(function(){ app.configure(function(){
app.set('views', __dirname + '/views'); app.set('views', __dirname + '/views');
app.set('view engine', 'jade'); app.set('view engine', 'jade');
app.set('view options', { layout: false });
app.use(express.bodyParser()); app.use(express.bodyParser());
app.use(express.methodOverride()); app.use(express.methodOverride());
app.use(express.cookieParser()); app.use(express.cookieParser());
Expand All @@ -34,6 +35,7 @@ app.configure('production', function(){
app.get('/', routes.index); app.get('/', routes.index);
app.get('/authenticate/twitter', routes.twitter); app.get('/authenticate/twitter', routes.twitter);
app.get('/authenticate/twitter/callback', routes.twitterCallback); app.get('/authenticate/twitter/callback', routes.twitterCallback);
app.post('/share/tweet', routes.tweet);


var port = process.env.PORT || 3000; var port = process.env.PORT || 3000;


Expand Down
28 changes: 15 additions & 13 deletions public/coffeescripts/app.coffee
Expand Up @@ -6,20 +6,23 @@ define([
'mylibs/photobooth/photobooth' 'mylibs/photobooth/photobooth'
'mylibs/controls/controls' 'mylibs/controls/controls'
'mylibs/customize/customize' 'mylibs/customize/customize'
'mylibs/effects/effects'
'mylibs/utils/utils'
'mylibs/file/file' 'mylibs/file/file'
'mylibs/share/share' 'mylibs/share/share'
'text!intro.html' 'text!intro.html'
'mylibs/pictures/pictures' 'mylibs/pictures/pictures'
'mylibs/preview/preview' 'mylibs/preview/preview'
'mylibs/preview/selectPreview' 'mylibs/preview/selectPreview'
], ($, kendo, camera, snapshot, photobooth, controls, customize, effects, utils, file, share, intro, pictures, preview, selectPreview) -> 'mylibs/share/share'
'mylibs/utils/utils'
], ($, kendo, camera, snapshot, photobooth, controls, customize, file, share, intro, pictures, preview, selectPreview, share, utils) ->


pub = pub =


init: -> init: ->


# create a global object for this app
window.APP = {}

# all UI elements as modules must be created as instances here # all UI elements as modules must be created as instances here
# in the application main controller file # in the application main controller file


Expand All @@ -31,9 +34,7 @@ define([
) )


# initialize the camera # initialize the camera
camera.init utils, "countdown", -> camera.init "countdown", ->

pictures.init("pictures")


preview.init("camera", camera.video) preview.init("camera", camera.video)


Expand All @@ -46,8 +47,6 @@ define([
# initialize snapshots # initialize snapshots
snapshot.init(preview, "pictures") snapshot.init(preview, "pictures")


$canvas = $('#screen')

# initialize photobooth # initialize photobooth
photobooth.init 460, 340 photobooth.init 460, 340


Expand All @@ -57,10 +56,13 @@ define([
# initialilize the customize window # initialilize the customize window
customize.init("customize") customize.init("customize")


# initialize effects library # initialize the pictures pane. we can show that safely without
effects.init() # waiting on the rest of the UI or access to video
pictures.init "pictures"


# initialize the file system # initialize the file system. this will read in any files that
file.init(50000) # we have saved, or grant initial access for storage
file.init 5000


) share.init()
)
1 change: 0 additions & 1 deletion public/coffeescripts/libs/jquery/jquery.coffee
Expand Up @@ -2,7 +2,6 @@ define([
# Load the original jQuery source file # Load the original jQuery source file
'order!libs/jquery/jquery.min', 'order!libs/jquery/jquery.min',
'order!libs/jquery/pubsub', 'order!libs/jquery/pubsub',
'order!libs/jquery/vintage',
'order!libs/jquery/bootstrap.min', 'order!libs/jquery/bootstrap.min',
'order!libs/jquery/jquery.masonry.min' 'order!libs/jquery/jquery.masonry.min'
], -> ], ->
Expand Down

0 comments on commit bb03f0c

Please sign in to comment.