Skip to content

Instantly share code, notes, and snippets.

@philipsharp
philipsharp / gist:2413604
Created April 18, 2012 13:37
Bookmarklet to re-assemble POST data from RequestBin
javascript:(function(){var rid=prompt('Request ID:');if(rid.slice(0,1)!='#')rid='#'+rid;prompt('POST data:',$.makeArray($(rid+' .content-view li').map(function(){var n=$(this).clone();return $('div',n).detach().text() +'='+ encodeURIComponent(n.text())})).join('&'));})();
@philipsharp
philipsharp / My\Views\Plates.php
Last active December 28, 2015 16:29
See: https://github.com/philipsharp/slim-view-plates for an installable package. Custom Slim Framework (http://www.slimframework.com/) view for Plates template system (http://platesphp.com/). License: MIT
<?php
namespace My\Views;
class Plates extends \Slim\View
{
/**
* @var \League\Plates\Engine
*/
protected $_engineInstance;