Skip to content

Instantly share code, notes, and snippets.

View caryfitzhugh's full-sized avatar

Cary FitzHugh caryfitzhugh

View GitHub Profile
/* CSS generated by http://lavishbootstrap.com */
/*! normalize.css v2.1.0 | MIT License | git.io/normalize */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
@caryfitzhugh
caryfitzhugh / gist:f5c9b2f5f3b7f74b6b8c
Created August 8, 2014 16:21
Recipe Page Localy Rendered
starting!
allowed_hosts: fitznet41.duckdns.org:3000,assets.zlcdn.com,ziplist.com,localhostgoing!
got html!
resource: http://contentz.mkt922.com/lp/static/js/iMAWebCookie.js?4d7a0e1f-138166aefa8-df4cba773885eb54dfcebd294a039c37&h=www.pages02.net - ABORT
resource: http://assets.pinterest.com/js/pinit.js - ABORT
resource: http://fitznet41.duckdns.org:3000/assets/tmwland.css?body=1 - ABORT
resource: http://fitznet41.duckdns.org:3000/assets/ziplist-web/theme.css?body=1 - ABORT
resource: http://fitznet41.duckdns.org:3000/assets/tmwland/utils/setup_z.js?body=1 - OK
resource: http://fitznet41.duckdns.org:3000/assets/tmwland/utils/lodash.js?body=1 - OK
starting!
allowed_hosts: fitznet41.duckdns.org:3000,assets.zlcdn.com,ziplist.com,localhostgoing!
got html!
resource: http://contentz.mkt922.com/lp/static/js/iMAWebCookie.js?4d7a0e1f-138166aefa8-df4cba773885eb54dfcebd294a039c37&h=www.pages02.net - ABORT
resource: http://assets.pinterest.com/js/pinit.js - ABORT
resource: http://fitznet41.duckdns.org:3000/assets/tmwland.css?body=1 - ABORT
resource: http://fitznet41.duckdns.org:3000/assets/ziplist-web/theme.css?body=1 - ABORT
resource: http://fitznet41.duckdns.org:3000/assets/tmwland/utils/setup_z.js?body=1 - OK
resource: http://fitznet41.duckdns.org:3000/assets/tmwland/utils/lodash.js?body=1 - OK
test("Test that added_recipes will toggle the detail state", function () {
// Get our recipe
var recipe = Factories.make_recipe({in_box: false});
var other_recipe = Factories.make_recipe();
// Spying -- not needed.
$(document).trigger('recipes.show_recipe', recipe);
// Now make sure that it is showing the "Save Recipe" button
var url = "http://thehungryhousewife.ziplist.com/webkitchen/button/add_recipe?as_partner=thehungryhousewife&url=http%3A%2F%2Fwww.thehungryhousewife.com%2F2014%2F07%2Fpeach-cobbler.html";
var page = require('webpage').create();
page.onResourceRequested = function(request) {
console.log('Request ' + JSON.stringify(request, undefined, 4));
};
page.onResourceReceived = function(response) {
console.log('Receive ' + JSON.stringify(response, undefined, 4));
};
page.open(url);
#!/usr/bin/php
<?php
# Git Prepare Commit Message Hook Script
#
# Location: <repository>/.git/hooks/prepare-commit-msg
#
# This script will automatically add the correct
# Pivotal Ticket ID to the beginning of each commit message
# When the branch ID is starts with the Pivotal Message ID.
@caryfitzhugh
caryfitzhugh / test.js
Created January 6, 2014 16:06
Suggestion
var response_spy = sinon.spy();
$(document).on('recipes.response_details", response_spy);
$(document).trigger("recipes.request_details", { guid: "123"});
// Now there should be a pending AJAX request to the server.
var req = this.last_xhr_request();
// You can inspect it ot make sure it's going to the right URL, etc. (look at other tests).
@caryfitzhugh
caryfitzhugh / CSS.css
Last active October 4, 2017 14:18
Where TmwLand files live
// These live in app/assets/stylesheets/tmwland.scss
// and files below that.
// You'll probably make a file
// app/assets/stylesheets/tmwland/_XXXXX.scss
// and import it into the tmwland.scss file
// Put all your color definitions in tmwland/_colors.scss
// Don't worry too much about consolidating them, we'll clean up later (I think / hope!)
-# Somewhere in here
-# Add the top_bar div.
-# Might just remove the #directions bar
-# And add yours there (we'll ned to figure out a different way to let people test then!)
@caryfitzhugh
caryfitzhugh / API
Created August 13, 2013 12:31
API?
class MetaRecipe
module API
def find_by_foo()
...
end
end
# No Public Class Methods?
# Instance Methods
end