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
<!-- Malt.io Recipe Widget - copy and paste to your site --> | |
<script src="http://www.malt.io/static/scripts/embed.js"></script> | |
<div class="maltio-recipe" data-recipe="white-house-honey-ale" data-user="danielgtaylor" style="float: left; margin-right: 1em;"></div> | |
<div class="maltio-recipe" data-recipe="monk-s-tripel" data-user="danielgtaylor" style="float: left;"></div> |
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
<div class="maltio-recipe" data-recipe="monk-s-tripel" data-user="danielgtaylor" data-width="500"></div> |
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
$ http https://maltioweb.appspot.com/_ah/api/maltio/v1/recipes limit==1 order==LIKES | |
HTTP/1.1 200 OK | |
Cache-Control: no-cache, no-store, max-age=0, must-revalidate | |
Date: Tue, 30 Oct 2012 18:34:17 GMT | |
ETag: "8xJp6-t04hAv0QlZ8diuygX5EF8/R4Slr4GR8josHmd2u6O0ZhjkW6g" | |
Expires: Fri, 01 Jan 1990 00:00:00 GMT | |
Pragma: no-cache | |
Server: GSE | |
Transfer-Encoding: chunked |
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
<script type="text/javascript" src="/scripts/brauhaus.min.js"></script> | |
<script type="text/javascript"> | |
// Create a recipe | |
var r = new Brauhaus.Recipe({ | |
name: 'My test brew', | |
description: 'A new test beer using Brauhaus.js!', | |
batchSize: 20.0, | |
boilSize: 10.0 | |
}); |
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
Brauhaus = require 'brauhaus' | |
# Create a new recipe | |
recipe = new Brauhaus.Recipe | |
name: 'My new recipe' | |
batchSize: 20.0 | |
# Add some grain to be mashed | |
recipe.add 'fermentable', | |
name: 'Pale malt' |
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
<html> | |
<head> | |
<title>Brauhaus.js Test</title> | |
</head> | |
<body> | |
<p> | |
Let's make some beer! | |
</p> | |
<script type="text/javascript" src="/scripts/brauhaus.min.js"></script> | |
<script type="text/javascript"> |
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
// Create a new recipe | |
var recipe = new Brauhaus.Recipe({ | |
name: 'Daniel\'s Doppelbock', | |
description: '...', | |
author: 'Daniel G. Taylor' | |
batchSize: 20.0, | |
boilSize: 10.0 | |
}); |
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
<div class="profile"> | |
<img src="/images/profile.jpg"/> | |
<h1>John Smith</h1> | |
Writer & Reviewer<br/>Registered 1 Jan 2013 | |
<h2>Awards:</h2> | |
<div class="userbadges" data-service="demo" data-user="jsmith"></div> | |
</div> |
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
diff --git a/tests/unit/resources/test_factory.py b/tests/unit/resources/test_factory.py | |
index 544ee61..2ef49c3 100644 | |
--- a/tests/unit/resources/test_factory.py | |
+++ b/tests/unit/resources/test_factory.py | |
@@ -41,7 +41,7 @@ class TestResourceFactory(BaseTestCase): | |
self.factory.create_class('test') | |
self.assertTrue(self.factory.load_from_definition.called, | |
- 'Class was not loaded from definition') | |
+ 'Class was not loaded from definition') |
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
def create_credential_resolver(session): | |
"""Create a default credential resolver. | |
This creates a pre-configured credential resolver | |
that includes the default lookup chain for | |
credentials. | |
""" | |
profile_name = session.get_config_variable('profile') or 'default' | |
credential_file = session.get_config_variable('credentials_file') |
OlderNewer