Skip to content

Instantly share code, notes, and snippets.

View henryboldi's full-sized avatar
🐶

Henry Boldizsar henryboldi

🐶
View GitHub Profile
'id':hacks[i].id},{'ownerUsername': displayInfo.username, 'ownerGravatar': displayInfo.gravatar, 'ownerName': displayInfo.name
{
"label": "mp4 high",
// Change this to your server: "url": "s3://output-bucket/output-file-name.mp4",
"h264_profile": "high"
}
"outputs": [
{
"url": "s3://my-bucket/output-file-name.mp4",
// ^^ Change me!
"size": "1920x1080",
"audio_bitrate": 160,
"max_video_bitrate": 5000,
"h264_profile": "high",
"max_frame_rate": 30
}
2014-07-16T06:21:51.213301+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path="/api/hacks/5371b1348b433c2c1fc36921" host=hackerbracket-api.herokuapp.com request_id=65bc67a5-fe5d-4549-ab40-ab0bce4be666 fwd="24.153.51.175" dyno=web.1 connect=1ms service=39ms status=503 bytes=0
2014-07-16T06:21:51.194646+00:00 app[web.1]: throw message;
2014-07-16T06:21:51.194658+00:00 app[web.1]: at foundHack (/app/api/controllers/HacksController.js:231:22)
2014-07-16T06:21:51.194662+00:00 app[web.1]: at wrappedCallback (/app/node_modules/sails/node_modules/waterline/lib/waterline/utils/normalize.js:261:18)
2014-07-16T06:21:51.192231+00:00 app[web.1]:
2014-07-16T06:21:51.192310+00:00 app[web.1]: /app/node_modules/sails-mongo/node_modules/mongodb/lib/mongodb/connection/base.js:242
2014-07-16T06:21:51.194655+00:00 app[web.1]: ^
2014-07-16T06:21:51.194656+00:00 app[web.1]: ReferenceError: likeMessage is not defined
2014-07-16T06:21:51.194659+00:00
'GET /api/notifications': 'NotificationController.show',
'PUT /api/notifications/:id': 'NotificationController.see',
'DELETE /api/notifications/:id': 'NotificationController.destroy',
'GET /api/notifications': 'NotificationController.show',
'GET /api/hacks/recent': 'HacksController.recent',
'GET /api/hacks/recent/:id': 'HacksController.recent',
'GET /api/hacks/popular': 'HacksController.popular',
'GET /api/hacks/following': 'HacksController.following',
app.controller('Session', function ($scope, $http) {
$scope.title = "HackerBracket";
$scope.user = {};
$scope.init = function () {};
$scope.login = function () {
var url = '/api/login';
$http.post(url, $scope.user).success(function (data, status, headers, config) {
console.log(data);
console.log('success');
window.location = '/'+data.user.username;
Comment.find()
.where({ postID: hackID })
.exec(function(err, comments){
if(err) return next(err);
if (!comments) return next();
var hackOwner = hacks.map(function(item){ return item.owner });
User.find()
.where({ id: hackOwner })
.exec(function(err, users){
console.log(process.env.NODE_ENV);
if (process.env.NODE_ENV === 'development') { db_connection = {
module : 'sails-mongo',
url: process.env.DB_URL,
schema: true
}} else if (process.env.NODE_ENV === 'production'){ db_connection = {
/**
* Bootstrap
* (sails.config.bootstrap)
*
* An asynchronous bootstrap function that runs before your Sails app gets lifted.
* This gives you an opportunity to set up your data model, run jobs, or perform some special logic.
*
* For more information on bootstrapping your app, check out:
* http://links.sailsjs.org/docs/config/bootstrap
*/