List local branches sorted by commit date
git for-each-ref --sort=-committerdate refs/heads/
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
response = MANDRILL.messages_send( | |
message: { | |
html: email.body, | |
subject: email.subject, | |
from_email: email.from_email, | |
from_name: email.from_name, | |
to: email.recipients.map{|recipient| {email: recipient}}, | |
preserve_recipients: false, | |
auto_text: true, | |
inline_css: true, |
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
[ | |
{ | |
"foo": "bar" | |
}, | |
{ | |
"bar": "foo" | |
} | |
] |
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
Stripe.api_key = 'sk_live_REDACTED' | |
product = Stripe::Product.retrieve('prod_7ANlgvTDSwqEsk') | |
product.images | |
=> [] | |
product.images = ["https://daqj0hamajdep.cloudfront.net/api/file/rnlqHhGJSxS06buwvelQ+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/hXesXSFRJSNyfNcJdiwg+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/sbWRFmORRYOglcd5LiT8+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/GDXMYn1ITWL9GEBVrVTI+name.jpg", "https://daqj0hamajdep.cloudfront.net/api/file/6AULYuihQZO8Bo6SF6fl+name.jpg"] | |
product.save |
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 AWS = require('aws-sdk'); | |
var sns = new AWS.SNS(); | |
var GoogleMaps = require('googlemaps'); | |
var GooglePlaces = require('node-googleplaces'); | |
var weather = require('openweather-apis'); | |
var stripe = require('stripe')(STRIPE_SECRET_KEY); | |
var googleConfig = { key: GOOGLE_API_KEY }; | |
var maps = new GoogleMaps(googleConfig); | |
var places = new GooglePlaces(googleConfig.key); | |
var direction_params = { |
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>what is up!!!!</h1> | |
<p> | |
<b>this is cool?</b> | |
</p> |