Permalink
Browse files

Face tracking / sharing

  • Loading branch information...
burkeholland committed Jun 13, 2012
1 parent 260d4a9 commit bb03f0c5293b077162544f0daf2819292919cfee
Showing with 1,648 additions and 876 deletions.
  1. +2 −0 app.js
  2. +15 −13 public/coffeescripts/app.coffee
  3. +0 −1 public/coffeescripts/libs/jquery/jquery.coffee
  4. +241 −167 public/coffeescripts/libs/webgl/effects.coffee
  5. +0 −3 public/coffeescripts/main.coffee
  6. +3 −5 public/coffeescripts/mylibs/camera/camera.coffee
  7. +2 −0 public/coffeescripts/mylibs/customize/customize.coffee
  8. +3 −25 public/coffeescripts/mylibs/file/file.coffee
  9. +8 −8 public/coffeescripts/mylibs/pictures/pictures.coffee
  10. +29 −7 public/coffeescripts/mylibs/preview/preview.coffee
  11. +53 −47 public/coffeescripts/mylibs/preview/selectPreview.coffee
  12. +58 −28 public/coffeescripts/mylibs/share/share.coffee
  13. 0 public/coffeescripts/mylibs/stamps/stamps.coffee
  14. +49 −34 public/coffeescripts/mylibs/utils/utils.coffee
  15. BIN public/images/Sombraro.png
  16. BIN public/images/floral.png
  17. BIN public/images/glasses.png
  18. BIN public/images/google.png
  19. BIN public/images/googlefix.png
  20. BIN public/images/halo.png
  21. BIN public/images/hipster.png
  22. BIN public/images/horns.png
  23. BIN public/images/icons/glyphicons_392_twitter@2x.png
  24. +1 −1 public/javascripts/app.build.js
  25. +6 −7 public/javascripts/app.js
  26. +1 −1 public/javascripts/build/app.build.js
  27. +2 −3 public/javascripts/build/app.js
  28. +0 −7 public/javascripts/build/build.txt
  29. +1 −1 public/javascripts/build/libs/jquery/jquery.js
  30. +22 −0 public/javascripts/build/libs/webgl/effects.js
  31. +54 −63 public/javascripts/build/main.js
  32. +4 −4 public/javascripts/build/mylibs/camera/camera.js
  33. +9 −0 public/javascripts/build/mylibs/customize/customize.js
  34. +1 −0 public/javascripts/build/mylibs/customize/views/customize.html
  35. +1 −2 public/javascripts/build/mylibs/file/file.js
  36. +1 −1 public/javascripts/build/mylibs/pictures/pictures.js
  37. +1 −1 public/javascripts/build/mylibs/pictures/views/picture.html
  38. +11 −20 public/javascripts/build/mylibs/preview/preview.js
  39. +1 −1 public/javascripts/build/mylibs/utils/utils.js
  40. +460 −0 public/javascripts/libs/face/ccv.js
  41. +1 −0 public/javascripts/libs/face/face.js
  42. +1 −1 public/javascripts/libs/jquery/jquery.js
  43. +254 −198 public/javascripts/libs/webgl/effects.js
  44. +1 −1 public/javascripts/main.js
  45. +2 −2 public/javascripts/mylibs/camera/camera.js
  46. +2 −1 public/javascripts/mylibs/customize/customize.js
  47. +3 −3 public/javascripts/mylibs/customize/views/customize.html
  48. +4 −22 public/javascripts/mylibs/file/file.js
  49. +3 −6 public/javascripts/mylibs/pictures/pictures.js
  50. +28 −9 public/javascripts/mylibs/preview/preview.js
  51. +22 −12 public/javascripts/mylibs/preview/selectPreview.js
  52. +102 −90 public/javascripts/mylibs/share/share.js
  53. +52 −0 public/javascripts/mylibs/share/twitpix.js
  54. +18 −3 public/javascripts/mylibs/share/views/tweet.html
  55. +5 −0 public/javascripts/mylibs/stamps/stamps.js
  56. +38 −22 public/javascripts/mylibs/utils/utils.js
  57. +3 −40 public/stylesheets/build/site.css
  58. BIN public/stylesheets/images/Sombraro.png
  59. BIN public/stylesheets/images/floral.png
  60. BIN public/stylesheets/images/glasses.png
  61. BIN public/stylesheets/images/google.png
  62. BIN public/stylesheets/images/googlefix.png
  63. BIN public/stylesheets/images/halo.png
  64. BIN public/stylesheets/images/hipster.png
  65. BIN public/stylesheets/images/horns.png
  66. +34 −5 public/stylesheets/site.css
  67. +36 −11 routes/index.js
View
2 app.js
@@ -13,6 +13,7 @@ var app = module.exports = express.createServer();
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
+ app.set('view options', { layout: false });
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.cookieParser());
@@ -34,6 +35,7 @@ app.configure('production', function(){
app.get('/', routes.index);
app.get('/authenticate/twitter', routes.twitter);
app.get('/authenticate/twitter/callback', routes.twitterCallback);
+app.post('/share/tweet', routes.tweet);
var port = process.env.PORT || 3000;
@@ -6,20 +6,23 @@ define([
'mylibs/photobooth/photobooth'
'mylibs/controls/controls'
'mylibs/customize/customize'
- 'mylibs/effects/effects'
- 'mylibs/utils/utils'
'mylibs/file/file'
'mylibs/share/share'
'text!intro.html'
'mylibs/pictures/pictures'
'mylibs/preview/preview'
'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 =
init: ->
+ # create a global object for this app
+ window.APP = {}
+
# all UI elements as modules must be created as instances here
# in the application main controller file
@@ -31,9 +34,7 @@ define([
)
# initialize the camera
- camera.init utils, "countdown", ->
-
- pictures.init("pictures")
+ camera.init "countdown", ->
preview.init("camera", camera.video)
@@ -46,8 +47,6 @@ define([
# initialize snapshots
snapshot.init(preview, "pictures")
- $canvas = $('#screen')
-
# initialize photobooth
photobooth.init 460, 340
@@ -57,10 +56,13 @@ define([
# initialilize the customize window
customize.init("customize")
- # initialize effects library
- effects.init()
+ # initialize the pictures pane. we can show that safely without
+ # waiting on the rest of the UI or access to video
+ pictures.init "pictures"
- # initialize the file system
- file.init(50000)
+ # initialize the file system. this will read in any files that
+ # we have saved, or grant initial access for storage
+ file.init 5000
-)
+ share.init()
+ )
@@ -2,7 +2,6 @@ define([
# Load the original jQuery source file
'order!libs/jquery/jquery.min',
'order!libs/jquery/pubsub',
- 'order!libs/jquery/vintage',
'order!libs/jquery/bootstrap.min',
'order!libs/jquery/jquery.masonry.min'
], ->
Oops, something went wrong.

0 comments on commit bb03f0c

Please sign in to comment.