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
// Original post discovery (in progress) | |
var noteForms = document.querySelectorAll('.note-post-form'); | |
if (noteForms.length > 0) { | |
for (var i = 0;i < noteForms.length;i++) { | |
var form = noteForms[i]; | |
var inReplyToField = form.querySelector('.in-reply-to'); | |
bean.on(inReplyToField, 'blur', function(event) { | |
var url = event.target.value; | |
// TODO: Start loading indicator | |
promise.get('/services/original-post', {'url': url}).then(function (error, text, xhr) { |
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
on GET /notes | |
fetch the 20 most recent notes filtered by tag | |
show as h-feed | |
on GET /notes/new | |
the user must be an admin | |
show autofilled note-form | |
on GET /notes/{id} | |
fetch note |
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
<span class="h-thing"> | |
<span class="e-content">< Things > &</span> | |
</span> | |
<span class="h-thing"> | |
<span class="p-content">< Things > &</span> | |
</span> |
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
{ | |
"alternates": [ | |
{ | |
"url": "http://example.org", | |
"rel": "home", | |
"media": "screen", | |
"hreflang": "en" | |
} | |
], | |
"rels": |
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
<?php | |
namespace BarnabyWalters\Rest; | |
use Symfony\Component\Routing\Matcher\UrlMatcher as Matcher; | |
/** | |
* UrlMatcher | |
* | |
* A subclass of Symfony’s UrlMatcher which strips the extension from incoming |
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
<?php | |
$render = function ($_path, $data) { | |
extract($data); | |
unset($data); | |
require $_path; | |
}; | |
ob_start(); | |
$render($_path, $data); |
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
/* | |
* The basic idea: | |
* No more "mobile first", just take up the entire browser width when | |
* optimum line length gets near viewport width. | |
*/ | |
body | |
{ | |
width: 100%; | |
} |
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
<xml id="skufilterbrowse" class="slide"> | |
<productcatalog><labels><label key="skuset.deliverypolicyurl">Delivery policy content URL</label><label key="price.save">Save</label><label key="skuset.seemoredetails">See more details</label><label key="price.additionaloffers">Additional Offers</label><label key="price.freeitem">Includes Free Item*</label><label key="price.instsaving">Instant Savings</label><label key="skuset.eddieseedetails">See details </label><label key="price.rebateurl">RebateURL</label><label key="skuset.freedelivery">FREE SHIPPING, plus 5% back for Rewards Members</label><label key="price.printableCoupons">Click here for Printable Coupon</label><label key="price.value">Value</label><label key="skuset.eddieshipdetails">Estimated to arrive no later than </label><label key="price.qty">Qty.</label><label key="price.chooseyouritems">Choose your Items</label><label key="price.true">true</label><label key="skuset.clearancemessage"><strong>CLEARANCE ITEM:</strong> </label><label key="price |
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: 4DtGgd | |
author: | |
type: h-card | |
url: 'http://waterpigs.co.uk' | |
photo: 'http://photos.waterpigs.co.uk/photos/custom/201210/5d5a4d-Facing-Down_100x100xCR.jpg' | |
name: 'Barnaby Walters' | |
name: 'Just added some more tunes to http://www.waterpigs.co.uk/wpsm/ — As far as I can tell, it''s the largest collection of hurdy gurdy sheet music on the web! #folkmusic #hurdygurdy #abc' | |
content: "<p>Just added some more tunes to <a class=\"auto-link\" href=\"http://www.waterpigs.co.uk/wpsm/\">http://www.waterpigs.co.uk/wpsm/</a> — As far as I can tell, it's the largest collection of hurdy gurdy sheet music on the web! <a rel=\"tag\" href=\"/tags/folkmusic\">#folkmusic</a> <a rel=\"tag\" href=\"/tags/hurdygurdy\">#hurdygurdy</a> <a rel=\"tag\" href=\"/tags/abc\">#abc</a></p>\n" | |
published: '2011-09-16T16:41:38+00:00' | |
updated: null |