This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Preventing kernel panics - VirtualBox 4.1 and Mac OS X Lion 10.7. | |
# | |
# This happens on my Macbook Air Mid-2011 Core i7. Every few hours, with | |
# one or (particularly) more VMs running, you will get a kernel panic. | |
# | |
# Some reading: | |
# https://www.virtualbox.org/ticket/9359 |
This file contains hidden or 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
# Iterates over an array and creates a bunch of "blocks" containing the | |
# yielded content. Example: | |
# | |
# <% urls = [ | |
# "http://inventivelabs.com.au", | |
# "http://booki.sh", | |
# "http://nomify.com", | |
# "http://rungs.com.au", | |
# "http://getslipcase.com" | |
# ] %> |
This file contains hidden or 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
<!-- Assuming you have a Monocle reader in the global 'reader' variable --> | |
<div onclick="reader.moveTo({ direction: -1 });">Previous page</div> | |
<div onclick="reader.moveTo({ direction: 1 });">Next page</div> |
This file contains hidden or 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
function translateTouchEvent(element, target, evt, edata) { | |
// IN 4.1 ONLY, if we have a touch start on the layer, and it's been | |
// almost no time since we had a touch end on the layer, discard the start. | |
// (This is the most broken thing about 4.1.) | |
if ( | |
p.brokenModel_4_1 && | |
!edata.frame && | |
!p.touching && | |
edata.start && | |
p.edataPrev && |
This file contains hidden or 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
DRAFT SPECIFICATION | |
# Zhook: Zip + HTML + Book. | |
Software that displays a Zhook file is here called a Reading System (RS). | |
A Zhook file is a zip file with a .zhook extension, which must contain: | |
* index.html (the Index) |
NewerOlder