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
| Resources: | |
| # ===================== SNS ===================== | |
| DataframeCreatedSnsTopic: | |
| Type: AWS::SNS::Topic | |
| Properties: | |
| DisplayName: "Topic to notify functions of dataframe creation" | |
| TopicName: DataframeCreatedSnsTopic | |
| # ===================== SNS Policy ===================== | |
| DataframeCreatedSnsTopic: | |
| Type: AWS::SNS::TopicPolicy |
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
| http https://practicalplants.org/w/api.php\?format\=json\&action\=ask\&query\=%5B%5BCategory%3APlant%5D%5D%5B%5BHas%20primary%20image%3A%3A%2B%5D%5D%5B%5BShow%20on%20main%20page%20search%3A%3A%2B%5D%5D%7C%3FHas%20image%7C%3FHas%20common%20name%7C%3FHas%20shade%20tolerance%7C%3FHas%20sun%20preference%7C%3FHas%20water%20requirements%7C%3FHas%20hardiness%20zone%7C%3FHas%20heat%20zone\|limit%3D9 | jq ".query.results" |
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
| AWS.config.getCredentials(function(err) { | |
| if (err) console.log(err.stack); | |
| // credentials not loaded | |
| else { | |
| console.log("Access key:", AWS.config.credentials.accessKeyId); | |
| console.log("Secret access key:", AWS.config.credentials.secretAccessKey); | |
| } | |
| }); |
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
| server { | |
| listen 80; | |
| set $root /var/www; | |
| server_name localhost; | |
| location = / { | |
| alias $root/app1/; | |
| try_files $uri /index.html; | |
| } | |
| location ^~ /app1 { |
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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
| const keys = require('../config/keys'); | |
| const sgMail = require('@sendgrid/mail'); | |
| class Mailer { | |
| constructor({ subject, recipients }, content) { | |
| sgMail.setApiKey(keys.sendGridKey); | |
| this.to = recipients.map(({ email }) => email); | |
| this.from = '[email protected]'; | |
| this.subject = subject; | |
| this.html = content; |
| Objective | Step | Description |
|---|---|---|
| Process the Problem | Understand the Problem |
|
| Examples/Test Case | Validate understanding of the problem | |
| Data Structure | How we represent data that we will work with when converting the input to output. | |
| Algorithm | Steps for converting input to output | |
| Code with Intent | Code | Implementation of Algorithm |
NewerOlder
