This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"server" : { | |
"bindIP" : "localhost", | |
"bindPort" : "8888" | |
}, | |
"logger" : { | |
"format" : "dev" | |
}, | |
"session" : { | |
"secret": "thisisareallyreallylongsecrettoencryptcookies", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Firefox 16: | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/16.0" | |
Chrome 22: | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" | |
Safari 6.0.1: | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14" | |
Opera 12.02: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function renderPage( options, page ) { | |
var canvas = options.__canvas, | |
ctx = canvas.getContext( "2d" ), | |
viewport = page.getViewport( 1, 0 ), | |
wActual = options.__wrapperDiv.clientWidth, | |
hActual = options.__wrapperDiv.clientHeight, | |
wRatio, | |
hRatio, | |
ratio; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Popcorn.plugin( "foo", function() { | |
return { | |
_setup: function( options ) { | |
options.toString = function() { | |
console.log( options.text ) | |
}; | |
}, | |
_update: function( trackEvent, options ) { | |
trackEvent.text = options.text; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="foo">LOOK IN YOUR CONSOLE, BRO</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"targets": [{ | |
"id": "Target0", | |
"name": "video-container", | |
"element": "video-container" | |
}], | |
"media": [{ | |
"id": "Media0", | |
"name": "Media0", | |
"url": ["http://benmoskowitz.com/popmeme/popfuck.ogg", "http://benmoskowitz.com/popmeme/popfuck.mp3"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"root": "popcorn-js", | |
"js": { | |
"core": { | |
"path:": "popcorn.js" | |
}, | |
"applyclass": { | |
"depends": "core", | |
"path": "effects/applyclass/popcorn.applyclass.js" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date: Mon Mar 18 2013 | |
App URL: http://popcorn-dev.rekambew.org/templates/basic/ | |
Script URL: http://popcorn-dev.rekambew.org/src/butter.js:24016 | |
Media URL(s): #t=,30 | |
Error: NotFoundError: Node was not found | |
Butter State: mediaready, ready, trackadded, mediacontentchanged | |
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:19.0) Gecko/20100101 Firefox/19.0 | |
Null DOM Nodes: [data-tooltip], twitter-wjs, google-plus, [data-tooltip], I0_1363630865820 | |
Versions: Popcorn=@VERSION, Butter=v1.0.20-35-g5f4d5bf | |
Project Data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/routes/index.js b/routes/index.js | |
index 2e08b35..0207cdd 100644 | |
--- a/routes/index.js | |
+++ b/routes/index.js | |
@@ -106,72 +106,73 @@ module.exports = function routesCtor( app, User, filter, sanitizer, stores, util | |
app.post( '/api/project/:id?', | |
filter.isLoggedIn, filter.isStorageAvailable, | |
function( req, res ) { | |
- | |
- var files; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (req, res, next) { | |
/* Hawk does all the necessaries in this authenticate function. | |
* You pass it a function to look up an ID ( In the MakeAPI I call | |
* them public keys, as they are randomly generated UUIDs | |
*/ | |
hawkModule.Hawk.server.authenticate(req, function (publickey, callback) { | |
/* Create a credentials object, This contains the algorithm that should | |
* be used to calculate the MAC It also contains the public key and will |