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
<div ng-switch on="{{type}}"> | |
<div ng-switch-where="X" ng-include="X-template.html"></div> | |
<div ng-switch-where="Y" ng-include="Y-template.html"></div> | |
</div> | |
<script type="text/x-template" id="X-template.html"> | |
</script> | |
<script type="text/x-template" id="Y-template.html"> | |
</script> |
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
%button{ng: {click: 'comments.addComment()'}, tbd: {require: {invitee: 'true'}}} |
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
if (typeof window.EDH === 'undefined') { | |
window.EDH = {}; | |
} | |
if (typeof window.EDH.Donation === 'undefined') { | |
window.EDH.Donation = {}; | |
} | |
var Donation = window.EDH.Donation; |
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
braintree.onSubmitEncryptForm($form, function(event) { | |
disableSubmitButton(true); | |
event.preventDefault(); | |
var payment = Payment($form.serialize()); | |
payment.save(function() { | |
// Success | |
window.location = payment.thank_you_url; | |
}, function() { | |
// Failure |
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
<div ng-controller="feature.featureController" ng-init="init({projectId: <%= project.id %>})"> | |
<div class="animate-appear" ng-cloak ng-show="features.$resolved"> | |
<div class="cell cell-item cell-form-inline cell-edge-top" ng-repeat="feature in features"> | |
<div class="row" ng-hide="isEditing($index)"> | |
<div class="col-md-4"> | |
<div class="cell-form-inline-text"> | |
{{ feature.name }} | |
</div> | |
</div> | |
<div class="col-md-8 text-right"> |
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
%script{type: 'text/x-template', id: 'template-dates-new'} | |
= partial 'templates/dates/new' |
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
class ApplicationController < ActionController::Base | |
protect_from_forgery with: :exception | |
delegate :user, :user=, to: :authentication, prefix: 'current' | |
delegate :sign_in, :signed_in?, :sign_out, to: :authentication | |
helper_method :current_user | |
helper_method :signed_in? | |
private |
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
describe('util.Config', function() { | |
describe('.openerType', function() { | |
var Config, Device; | |
beforeEach(function() { | |
Device = {}; | |
Config = theBestDay.require('widget.Config', {'util.Device': Device}); | |
}); | |
describe('desktop', function() { |
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
module Designate | |
# Declare an instance method to become the designated method for | |
# that class. Arguments are correctly passed to instance method | |
# and initializer. | |
# | |
# Example with a desginated method that takes no arguments: | |
# | |
# class Generator | |
# extend Designate | |
# |
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
[ | |
{ | |
"id": "4d954b06a243a5684965b473", | |
"provider": "foursquare", | |
"name": "Hot Dog Vendor on corner of John and Front", | |
"address": "John Street, Sydney, NSW, AU", | |
"lat": 40.7001719, | |
"lng": -74.000928 | |
} | |
] |