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
date | close | |
---|---|---|
1-May-12 | 58.13 | |
30-Apr-12 | 53.98 | |
27-Apr-12 | 67.00 | |
26-Apr-12 | 89.70 | |
25-Apr-12 | 99.00 | |
24-Apr-12 | 130.28 | |
23-Apr-12 | 166.70 | |
20-Apr-12 | 234.98 | |
19-Apr-12 | 345.44 |
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
<h1>wordpress checker</h1> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<script src="getWordpress.js"></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
export default class Blog extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
posts: [] | |
}; | |
} | |
componentDidMount() { | |
axios | |
.get( |
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
render() { | |
if (this.props.post) { | |
return ( | |
<div className="article"> | |
<a href={"/blog/" + this.props.post.ID} className="blackLink"> | |
{this.props.post.featured_image ? ( | |
<img | |
className="img-responsive webpic" | |
alt="article header" | |
src={this.props.post.featured_image} |
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 api_key = 'key-XXXXXXXXXXXXXXXXXXXXXXX'; | |
var domain = 'www.mydomain.com'; | |
var mailgun = require('mailgun-js')({apiKey: api_key, domain: domain}); | |
var data = { | |
from: 'Excited User <me@samples.mailgun.org>', | |
to: 'serobnic@mail.ru', | |
subject: 'Hello', | |
text: 'Testing some Mailgun awesomeness!' | |
}; |
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
const keys = require("../config/keys"); | |
var domain = keys.mailgunDomain; | |
var mailgun = require("mailgun-js")({ | |
apiKey: keys.mailgunKey, | |
domain: domain | |
}); | |
class MailgunMailer { | |
constructor({ subject, recipients }, content) { |
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
const mailgun = require("mailgun-js")({ | |
apiKey: 'YOUR_MAILGUN_API_KEY', | |
domain: 'YOUR_DOMAIN' | |
}); | |
class MailgunMailer { | |
} | |
module.exports = MailgunMailer; |
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
class MailgunMailer { | |
constructor({ subject, recipients }, content) { | |
this.data = { | |
from: "no-reply@samwsoftware.com", | |
to: recipients, | |
subject: subject, | |
html: content | |
}; | |
} | |
} |
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
class MailgunMailer { | |
constructor({ subject, recipients }, content) { | |
this.data = { | |
from: "no-reply@samwsoftware.com", | |
to: this.formatAdresses(recipients), | |
subject: subject, | |
html: content | |
}; | |
} |
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
Survey.updateOne( | |
{ | |
_id: match.surveyId, | |
recipients: { | |
$elemMatch: { email: email, responded: false } | |
} | |
}, | |
{ | |
$inc: { [match.choice]: 1 }, | |
$set: { "recipients.$.responded": true }, |
OlderNewer