Skip to content

Instantly share code, notes, and snippets.

@gllist
gllist / html_template.html
Created September 3, 2012 20:55 — forked from pikhovkin/html_template.html
HTML: Template
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="keywords" content="">
<meta name="description" content="">
<title></title>
<link type="text/css" rel="stylesheet" href="">
<script type="text/javascript" src=""></script>
@gllist
gllist / gist:3668037
Created September 7, 2012 17:36 — forked from markstreich/gist:3667944
PhantomJS: Ajax response capture through console.log
var page = require('webpage').create();
page.open('http://www.website.com/', function (status) {
if (status === 'success') {
captureAjaxResponsesToConsole();
}
});
function captureAjaxResponsesToConsole() {
// logs ajax response contents to console so sublime's onConsoleMessage can use the contents