Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am hueyl77 on github.
  • I am hueyl77 (https://keybase.io/hueyl77) on keybase.
  • I have a public key ASB5X4hYPmiA9GL19hCTxOdmdlrrb3XgLGG8vXMOXOgh7Qo

To claim this, I am signing this object:

Verifying that "hueyl77.id" is my Blockstack ID. https://onename.com/hueyl77
@hueyl77
hueyl77 / stripe_example_customer_response
Created April 5, 2017 15:44
Stripe Example Customer Create response
{
"account_balance": 0,
"active_card": {
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": null,
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@hueyl77
hueyl77 / PostsController.py
Last active December 14, 2015 15:39
Mailgun AuthenticatedController sample
class Courses::PostsController < AuthenticatedController
expose(:course)
expose(:posts) { course.posts }
expose(:post)
def create
post.user = current_user
post.save
CourseNotifier.new(course).notify_course_participants_on_new_discussion(post)
redirect_to course_home_path(course)
class MailgunGateway
def send_batch_message(options={})
RestClient.post(messaging_api_end_point,
from: default_sender,
to: delivery_filter(options[:to]),
subject: options[:subject],
html: options[:body],
:"h:Reply-To" => options[:reply_to],
:"recipient-variables" => options[:recipient_variables]
) if Rails.env.staging? || Rails.env.production?