This file contains 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
var _ = require("lodash"); | |
var emailServerConfig = { | |
type: "Gmail", | |
otions: { | |
auth: { | |
user: "XXX", // your gmail | |
pass: "XXXXX" // user passoword | |
} | |
}; | |
var Nodemailer = require("nodemailer"); |
This file contains 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
var _ = require("lodash"); | |
var emailServerConfig = { | |
type: "Mantrill", | |
otions: { | |
auth: { | |
user: "XXX", // your email that you used to register at Mandrill | |
pass: "XXXXX" // At the user panel you create a password to use with your login | |
} | |
}; | |
var Nodemailer = require("nodemailer"); |
This file contains 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 file | |
//***** hdCrawl ******// | |
// dependencies | |
// * lodash or underscore | |
// * jQuery | |
// Providers | |
hdCrawlProviders = { |
This file contains 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
## On Windows: | |
``http://www.graphicsmagick.org/INSTALL-windows.html`` | |
## On the Mac: | |
``brew install graphicsmagick`` | |
## On the Joyent box: | |
``` |
This file contains 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
/ At the client, just use a normal post. I use jQuery and do an AJAX post | |
// In your HTML | |
<form id="uploadForm" autocomplete="off" action="" method="post" enctype="multipart/form-data"></form> | |
<input id='fileId' type="file" accept="image/*"> | |
// In you JS | |
var $form = $('#uploadForm'); | |
var $file = $('#fileId'); |
This file contains 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
# Get Graphics Magick | |
> cd / | |
> mkdir /dowload | |
> cd /download | |
> wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.gz | |
> tar -xzvf GraphicsMagick-LATEST.tar.gz | |
> cd GraphicsMagick-1.3.21 (or the lastest graphics magick) | |
# Install Graphics Magick | |
## Get libs |
This file contains 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
var SignedXml = require('xml-crypto').SignedXml; | |
var FileKeyInfo = require('xml-crypto').FileKeyInfo; | |
LocalSchema.statics.sign = function(options, cb) { | |
var user = options.user; | |
if(user.orgId !== options.payload.orgId) { | |
return cb(HD.errors.unauthorizedAction, {}); | |
} |
This file contains 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
var _ = require('lodash'); | |
var Mongoose = require('mongoose'); | |
var Mongoosastic = require('mongoosastic') | |
var Behaviours = require("hd-behaviours"); | |
var Decorators = require("hd-decorators"); | |
var Async = require('async'); | |
var HD = require('hd').utils; | |
var Domains = require('hd').domains; | |
var SanitizerPlugin = require('mongoose-sanitizer'); | |
var HStatus = require('hd-status'); |
This file contains 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
// CRUD for the CoverLetter | |
// Author: Augusto Pissarra | |
var _modelName = "cartasdet"; | |
var _renderOrder = ["login", "menu", _modelName]; | |
var _pageTitle = HS.get("Professional Central"); | |
var _pageName = HS.get("Cover Letter"); | |
var _pageTitleCls = 'icon-user'; | |
var _breadcrumbs = [ |
OlderNewer