Skip to content

Instantly share code, notes, and snippets.

@avk
avk / syntax_highlighting.html
Created November 28, 2011 21:05
SaaS book syntax highlighting includes
<!-- Syntax highlighter 3.0.83 -->
<script src="js/XRegExp.js" type="text/javascript" charset="utf-8"></script>
<script src="js/shCore.js" type="text/javascript" charset="utf-8"></script>
<script src="js/shBrushRuby.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="css/shCore.css">
<link rel="stylesheet" href="css/shThemeDefault.css">
@avk
avk / screencasts.html
Created November 19, 2011 04:28
SaaS ebook new screencast syntax
<!-- BEGIN CURRENT VERSION -->
<div class="screencast">
Screencast:
<a class="screencast-url" href="https://github.com/armandofox/saasbook/blob/master/ch%CB%99arch/mov/cookies.mp4?raw=true">Cookies</a>
<div class="screencastsummary">
<!-- summary stays here -->
</div>
</div>
<!-- END CURRENT VERSION -->
@avk
avk / toc.html
Created November 10, 2011 23:58
SaaS ebook misformatted TOC
<!-- BEGIN CURRENT VERSION -->
<!-- FIX: this id should be "toc" -->
<div data-role="page" id="chapter_0" data-url="chapter_0" tabindex="0" class="ui-page ui-body-c ui-page-active" style="min-height: 571px; ">
<div data-role="content" class="ui-content" role="main">
<h2 class="chapterhead">
0. <a id="x1-1000" class="ui-link"></a>Contents
</h2>
<!-- FIX: this page div and content div should not be here -->
<div data-role="page" id="toc" data-url="toc">
@avk
avk / footer_nesting.html
Created November 6, 2011 19:50
SaaS ebook footer nesting example
@avk
avk / example-index.html
Created October 30, 2011 21:54
SaaS book build process example skeleton
<html>
<head></head>
<body>
<!-- cover, copyright, dedication, TOC, Foreword page divs -->
<!--
The ONLY child tags under <body> should be page divs:
<div data-role="page" id="unique-name">...</div>
The ONLY child tags under each page div should be content and footer, in that order:
@avk
avk / chapter_nav_footer.html
Created October 27, 2011 10:32
SaaS ebook per-chapter navigation footer from jQuery Mobile
@avk
avk / non_chapter_nav_footer.html
Created October 27, 2011 10:30
SaaS ebook basic navigation footer from jQuery Mobile
@avk
avk / resources.html
Created October 18, 2011 21:53
TOC HTML with TreesaverJS 0.9.2
<!doctype html>
<html>
<body>
<div class="chrome">
<div class="viewer">
</div>
<div class="controls">
<div class="pagewidth">
<span class="pagenumbers">
require 'selenium/rake/tasks'
namespace :selenium do
namespace :server do
desc "start the Selenium RC server"
task :start do
Selenium::Rake::RemoteControlStartTask.new do |rc|
rc.port = 4444
require File.dirname(__FILE__) + '/../test_helper'
class InvitedCommenterTest < Test::Unit::TestCase
attr_reader :browser
def setup
@browser = Selenium::Client::Driver.new \
:host => "localhost",
:port => 4444,
:browser => "*firefox",