Skip to content

Instantly share code, notes, and snippets.

View matthooks's full-sized avatar

Matt Hooks matthooks

View GitHub Profile
@matthooks
matthooks / asdf
Last active December 19, 2015 16:09
<script type="text/javascript">
window.SERVICES = <%= raw ActiveModel::ArraySerializer.new(@services).to_json %>
window.SERVICE_SUBCATEGORIES = <%= raw ActiveModel::ArraySerializer.new(@service_subcategories).to_json %>
</script>
App.EventIndexRoute = Ember.Route.extend
model: (params) ->
@modelFor("event")
handleSuccess: ->
console.log("Hooray")
handleFailure: (error) ->
if error.status is 422
model = @get("currentModel")
.user-profile {}
.user-profile__avatar {}
.user-profile__name {}
.user-profile__description {}
.user-profile__description__paragraph {}
.user-profile__website-link {}
// is faster than
.user-profile {}
@matthooks
matthooks / readme.md
Last active November 12, 2020 16:41
Stripe Elements + Typekit

See comment below: