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
<<<<<<< HEAD | |
<td class="drinks-sub"><label for="flyout-19"><input type="checkbox" id="flyout-19" name="category" value="non-alcoholic" /> Non-Alcoholic</label></td> | |
======= | |
<td class="drinks-sub"><label for="flyout-19"><input type="checkbox" id="flyout-19" name="category" value="homebrewing" /> Homebrewing</label></td> | |
>>>>>>> checking in the latest staging templates. | |
<td> </td> | |
</tr> | |
<tr> | |
<td> </td> | |
<td><label for="flyout-20"><input type="checkbox" id="flyout-20" name="category" value="cheese" /> Cheese</label></td> |
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
<ul class="gallery"> | |
<mt:setvarblock name="num_assets"><$MTNumAssets$></mt:setvarblock> | |
<mt:setvarblock name="num_assets"><mt:var name="num_assets" op="++"></mt:setvarblock> | |
<!-- num assets = <mt:var name="num_assets"> --> | |
<MTIfHasAsset placement="1"> | |
<!-- Has a numbered asset! --> | |
<mt:for var="i" from="1" to="$num_assets" increment="1"> |
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
cd /home/somedir | |
$ python -m SimpleHTTPServer |
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
{ | |
"_id": { | |
"$oid": "4ec41449beea732bc4000015" | |
}, | |
"last_updated": "2011-12-05T12:26:15.762836", | |
"is_feature": 0, | |
"title": "Versace-H_M", | |
"items": [ | |
{ | |
"img_max_height_200": "http://ec2-184-73-111-141.compute-1.amazonaws.com/images/photolala_large/Versace-H_M/max_height_200/252358.jpg", |
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
{%! | |
<p>THIS IS A VERBATIM TORNADO TEMPLATE BLOCK</p> | |
%} |
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
// if we have an anchor in the url, scroll there. | |
var parts = window.location.href.split("#"); | |
if (parts.length > 1) { | |
var target_id = parts[1]; | |
$('html, body').animate({scrollTop:$('#' + target_id).offset().top}, 500); | |
} |
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
// loop over an array, spit out each of its deck values in safe-html. | |
{{!each recent_galleries}} | |
{{!html $value.deck}} | |
{{!/each}} | |
// show the raw html code of a jquery variable (good for refreshing html previews) | |
{{!html body}} | |
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
var api_url = $.fn.adminURL() + '/gallery/remove/' + | |
gallery_id + '.json'; | |
var values = {}; | |
$.ajax({ | |
url: api_url, | |
// contentType: "application/json", | |
//data: JSON.stringify(values), | |
data: $.param(values), |
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
ARTICLE_SECTIONS = [ | |
{ | |
'name': 'report', | |
'description': 'Reports' | |
}, | |
{ | |
'name': 'feature', | |
'description': 'Features' | |
}, | |
{ |
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
APP_NAME = 'Local Demo' | |
DROPBOX_SETTINGS = { | |
# 29pco -- DEV KEYS | |
'app_key': 'key', | |
'app_secret': 'secret', | |
'access_type': 'app_folder', | |
'folder': '', | |
'app_name': '', |