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 tick = "`" | |
var code = | |
` | |
console.log('var tick = "' + tick + '"'); | |
console.log('var code = '); | |
console.log(tick); | |
console.log(code.trim()); | |
console.log(tick); | |
console.log(code.trim()); | |
` |
This file has been truncated, but you can view the full file.
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
{ | |
"kind": "NodeList", | |
"apiVersion": "v1", | |
"metadata": { | |
"selfLink": "/api/v1/nodes", | |
"resourceVersion": "9103" | |
}, | |
"items": [ | |
{ | |
"metadata": { |
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
<html> | |
<head> | |
<script src="https://unpkg.com/onedb-client/dist/onedb-client.min.js"></script> | |
<script> | |
var onedb = new OneDBClient({ | |
hosts: { | |
primary: {location: 'https://one-db.datafire.io'}, | |
} | |
}); | |
</script> |
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
Verifying my Blockstack ID is secured with the address 1KmvT1LfgXLPcRSbhFnJzXcwtAwVc7QK5S https://explorer.blockstack.org/address/1KmvT1LfgXLPcRSbhFnJzXcwtAwVc7QK5S |
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
<form method="post" action="https://contact-us.prod.with-datafire.io/contact"> | |
<label>Your e-mail</label> | |
<input type="text" name="from"> | |
<label>Message</label> | |
<textarea name="message"></textarea> | |
</form> |
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
service: serverless-contact | |
provider: | |
name: aws | |
runtime: nodejs6.10 | |
functions: | |
contact: | |
handler: handler.contact | |
events: |
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 CONTACT_ADDRESS = '[email protected]'; | |
var querystring = require('querystring'); | |
var mailer = require('nodemailer').createTransport({ | |
service: 'Gmail', | |
auth: { | |
user: process.env.GMAIL_ADDRESS, | |
pass: process.env.GMAIL_PASSWORD, | |
} | |
}); |
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
let app = require('express')(); | |
app.use(require('body-parser').urlencoded()); | |
app.post('/contact', function(req, res) { | |
console.log('new message', req.body); | |
}); | |
app.listen(3000); |
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
<form method="post" action="http://api.company.com/contact"> | |
<label>Your e-mail</label> | |
<input type="text" name="from"> | |
<label>Subject</label> | |
<input type="text" name="subject"> | |
<label>Message</label> | |
<textarea name="body"></textarea> | |
</form> |
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
let app = require('express')(); | |
app.use(require('body-parser').urlencoded()); | |
const CONTACT_ADDRESS = '[email protected]'; | |
var mailer = require('nodemailer').createTransport({ | |
service: 'Gmail', | |
auth: { | |
user: process.env.GMAIL_ADDRESS, | |
pass: process.env.GMAIL_PASSWORD, |
NewerOlder