Skip to content

Instantly share code, notes, and snippets.

View henryboldi's full-sized avatar
🐶

Henry Boldizsar henryboldi

🐶
View GitHub Profile
client.Job.create({input: url, "outputs": [
{
"url": "s3://" + bucketName + "/" + key + ".webm",
"label": "webm",
"format": "webm"
}], "thumbnails": [
{
"label": "first",
"number": 10
}],
client.Job.create({input: url, "outputs": [
{
"url": "s3://" + bucketName + "/" + key + ".webm",
"label": "webm",
"format": "webm"
}, "thumbnails": [{
"label": "first",
"number": 1
}]
],
//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
}]
//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
}]
// 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();
bugRepot: function(req, res){
var bugObj = {
browserInfo: req.param('browserInfo'),
message: req.param('message'),
}
var smtpTransport = nodemailer.createTransport("SMTP",{
service: "Mandrill",
auth: {
/**
* 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.
*
These are the logs for 107.170.207.198.
In the mean time, for alternatives and more info, check out:
-> https://gist.github.com/mikermcneil/8249181
-> https://github.com/senchalabs/connect/wiki/Connect-3.0
(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
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?
* 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',