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
client.Job.create({input: url, "outputs": [ | |
{ | |
"url": "s3://" + bucketName + "/" + key + ".webm", | |
"label": "webm", | |
"format": "webm" | |
}], "thumbnails": [ | |
{ | |
"label": "first", | |
"number": 10 | |
}], |
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
client.Job.create({input: url, "outputs": [ | |
{ | |
"url": "s3://" + bucketName + "/" + key + ".webm", | |
"label": "webm", | |
"format": "webm" | |
}, "thumbnails": [{ | |
"label": "first", | |
"number": 1 | |
}] | |
], |
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
//send to be encoded by zencoder | |
client.Job.create({input: url, "outputs": [ | |
{ | |
"url": "s3://" + bucketName + "/" + key + ".webm", | |
"label": "webm", | |
"format": "webm" | |
}, "thumbnails": [{ | |
"label": "first", | |
"number": 1 | |
}] |
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
//send to be encoded by heywatch | |
client.Job.create({input: url, "outputs": [ | |
{ | |
"url": "s3://" + bucketName + "/" + key + ".webm", | |
"label": "webm", | |
"format": "webm", | |
"thumbnails": [{ | |
"label": "first", | |
"number": 1 | |
}] |
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
// render the profile view (e.g. /views/show.ejs) | |
show: function(req, res, next) { | |
User.findOne({ username: req.param('id') }, function foundUser(err, user) { | |
if (err) return next(err); | |
if (!user) return next(); | |
Hacks.find({ owner: user.id }.sort('createdAt DESC').exec(function foundHacks(err, hacks){ | |
hackID = hacks.map(function (item){ return item.id}); | |
Comment.find().where({ postID: hackID }).exec(function(err, comments){ | |
if(err) return next(err); | |
if (!comments) return next(); |
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
bugRepot: function(req, res){ | |
var bugObj = { | |
browserInfo: req.param('browserInfo'), | |
message: req.param('message'), | |
} | |
var smtpTransport = nodemailer.createTransport("SMTP",{ | |
service: "Mandrill", | |
auth: { |
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
/** | |
* Global adapter config | |
* | |
* The `adapters` configuration object lets you create different global "saved settings" | |
* that you can mix and match in your models. The `default` option indicates which | |
* "saved setting" should be used if a model doesn't have an adapter specified. | |
* | |
* Keep in mind that options you define directly in your model definitions | |
* will override these settings. | |
* |
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
These are the logs for 107.170.207.198. | |
In the mean time, for alternatives and more info, check out: | |
-> [4mhttps://gist.github.com/mikermcneil/8249181[24m | |
-> [4mhttps://github.com/senchalabs/connect/wiki/Connect-3.0[24m | |
(to silence this warning, change `config/express.js`) | |
Error rendering view at :: /fortheon/source/views/hacks/recent | |
with layout located at :: /fortheon/source/views/layout | |
TypeError: /fortheon/source/views/hacks/recent.ejs:23 | |
21| | |
Post a Hack |
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
Warning: connection.session() MemoryStore is not | |
designed for a production environment, as it will leak | |
memory, and will not scale past a single process. | |
One of your models (Comment) doesn't have a connection. | |
Do you have a default `connection` in your `config/models.js` file? | |
Warning: connection.session() MemoryStore is not | |
designed for a production environment, as it will leak | |
memory, and will not scale past a single process. | |
One of your models (Comment) doesn't have a connection. | |
Do you have a default `connection` in your `config/models.js` file? |
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
* For more information on adapter configuration, check out: | |
* http://sailsjs.org/#documentation | |
*/ | |
module.exports.adapters = { | |
// // If you leave the adapter config unspecified | |
// // in a model definition, 'default' will be used. | |
'default': 'mongo', |
OlderNewer