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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| tagName: 'ul', | |
| classNames: ['pagination-navigation'], | |
| hasNext: function() { | |
| return this.get('page') < this.get('pages'); | |
| }.property('page', 'pages'), | |
| hasPrevious: function() { | |
| return this.get('page') > 1; |
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
| <a ui-sref="dashboard.child">show the child view</a> | |
| <div ui-view></div> |
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
| require 'minitest/reporters' | |
| require 'blink1' | |
| class BlinkReporter | |
| include MiniTest::Reporter | |
| COLOR_SUCCESS = [0, 255, 35] | |
| COLOR_PENDING = [255, 200, 0] | |
| COLOR_FAIL = [255, 10, 30] |
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
| eventsource | |
| go-eventsource | |
| client/client |
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
| toggleCvc: -> | |
| @cvc_container ||= @form.find(".payment-cvc") | |
| @cvc_content ||= @cvc_container.contents() | |
| cvc = @cvc_content.find('input').val() | |
| if !cvc || /^\s*$/.test(cvc) | |
| @cvc_content.remove() | |
| showCvc: -> | |
| @cvc_container.html(@cvc_content) |
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
| stripeHidden = _.template """ | |
| <div> | |
| <input type='hidden' name='stripeToken' value='<%= id %>' /> | |
| <input type='hidden' name='payment_method[name]' value='<%= name %>' /> | |
| <input type='hidden' name='payment_method[last4]' value='<%= last4 %>' /> | |
| <input type='hidden' name='payment_method[exp_month]' value='<%= exp_month %>' /> | |
| <input type='hidden' name='payment_method[exp_year]' value='<%= exp_year %>' /> | |
| </div> | |
| """ |
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
| stripeHidden = _.template """ | |
| <div> | |
| <input type='hidden' name='stripeToken' value='<%= id %>' /> | |
| <input type='hidden' name='payment_method[name]' value='<%= name %>' /> | |
| <input type='hidden' name='payment_method[last4]' value='<%= last4 %>' /> | |
| <input type='hidden' name='payment_method[exp_month]' value='<%= exp_month %>' /> | |
| <input type='hidden' name='payment_method[exp_year]' value='<%= exp_year %>' /> | |
| </div> | |
| """ |
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
| #!/usr/bin/env bash | |
| say "Did you run test?" | |
| while true; do | |
| read -p "Do your run tests? [yn]" yn | |
| case $yn in | |
| [Yy]* ) break;; | |
| [Nn]* ) exit 1;; | |
| * ) echo "Please answer yes or no.";; | |
| esac |
taken from http://whippedtheblog.com/2010/03/15/liege-sugar-waffles-perfected/
- 1 (1/4 ounce) package yeast
- 1/3 cup lukewarm water (about 105 degF – too hot will kill the yeast)
- 1 1/2 tablespoons granulated white sugar
- 1/8 teaspoon salt
- 2 cups flour
- 3 eggs

