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
if (isGeek(Hamish)): | |
createNewWebsite() |
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
/** | |
* You can find a lot of my code here | |
*/ | |
var urlToMyCode = 'https://github.com/hamishdickson'; | |
function MyCode() { | |
this.whatFor = "Mostly just for fun"; | |
this.whoBy = "Hamish"; | |
this.interesting = true; // or I hope so anyway |
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
var smtpTransport = nodemailer.createTransport({ | |
service: 'service', | |
auth: { | |
user: 'username', | |
pass: 'password' | |
} | |
}); |
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
var nodemailer = require('nodemailer'); |
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
var mailOptions = { | |
from: '[email protected]', | |
to: '[email protected]', | |
subject: 'Thanks for siging up to our email list!', | |
text: 'blah blah something interesting ;)' | |
}; |
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
smtpTransport.sendMail(mailOptions, function (error, response) { | |
if (error) { | |
console.log('Error sending email!'); | |
} else { | |
console.log('Email sent!'); | |
} | |
smtpTransport.close(); | |
}); |
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
var smtpTransport = nodemailer.createTransport({ | |
service: 'service', | |
auth: { | |
user: 'username', | |
pass: 'password' | |
} | |
}); | |
var mailOptions = { | |
from: '[email protected]', |
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
.first-ball { | |
@extend .ball; | |
} |
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
@import "partialSassFile"; | |
@import "anotherSassFile"; | |
$text-color: red; | |
$shift-color: green; | |
p { | |
color: $text-color + $shift-color; | |
} |
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
exports.get_test_jobs = function(options, onResult) { | |
var optionsget = { | |
host: config.jobs_rest_host, | |
port: config.jobs_rest_port, | |
path: "/jobs3/jobtest", | |
method: "GET", | |
headers: { | |
'Content-Type': 'application/json' | |
} |
OlderNewer