Skip to content

Commit 3d65c5d

Browse files
committed
Create gh-pages branch via GitHub
1 parent 6ec9b2f commit 3d65c5d

File tree

9 files changed

+425
-357
lines changed

9 files changed

+425
-357
lines changed

images/bg_hr.png

943 Bytes
Loading

images/blacktocat.png

1.39 KB
Loading

images/icon_download.png

1.13 KB
Loading

images/sprite_download.png

16.4 KB
Loading

index.html

+54-40
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,53 @@
11
<!DOCTYPE html>
22
<html>
3+
34
<head>
4-
<meta charset='utf-8'>
5-
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6-
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
7-
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
8-
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
9-
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
10-
<!--[if lt IE 9]>
11-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12-
<![endif]-->
13-
<title>Cheaters by ttscoff</title>
5+
<meta charset='utf-8' />
6+
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
7+
<meta name="description" content="Cheaters : Customizable cheat sheet system for OS X" />
8+
9+
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
10+
11+
<title>Cheaters</title>
1412
</head>
1513

1614
<body>
17-
<div id="container">
18-
<div class="inner">
1915

20-
<header>
21-
<h1>Cheaters</h1>
22-
<h2>Customizable cheat sheet system for OS X</h2>
23-
</header>
16+
<!-- HEADER -->
17+
<div id="header_wrap" class="outer">
18+
<header class="inner">
19+
<a id="forkme_banner" href="https://github.com/ttscoff/cheaters">View on GitHub</a>
2420

25-
<section id="downloads" class="clearfix">
26-
<a href="https://github.com/ttscoff/cheaters/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a>
27-
<a href="https://github.com/ttscoff/cheaters/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a>
28-
<a href="https://github.com/ttscoff/cheaters" id="view-on-github" class="button"><span>View on GitHub</span></a>
29-
</section>
21+
<h1 id="project_title">Cheaters</h1>
22+
<h2 id="project_tagline">Customizable cheat sheet system for OS X</h2>
3023

31-
<hr>
24+
<section id="downloads">
25+
<a class="zip_download_link" href="https://github.com/ttscoff/cheaters/zipball/master">Download this project as a .zip file</a>
26+
<a class="tar_download_link" href="https://github.com/ttscoff/cheaters/tarball/master">Download this project as a tar.gz file</a>
27+
</section>
28+
</header>
29+
</div>
3230

33-
<section id="main_content">
34-
<p>Support Cheaters by contributing to my <a href="https://www.gittip.com/ttscoff/">GitTip fund</a> or <a href="http://brettterpstra.com/donate/">making a donation</a>.</p>
31+
<!-- MAIN CONTENT -->
32+
<div id="main_content_wrap" class="outer">
33+
<section id="main_content" class="inner">
34+
<p>Support Cheaters by contributing to my <a href="https://www.gittip.com/ttscoff/">GitTip fund</a> or <a href="http://brettterpstra.com/donate/">making a donation</a>.</p>
3535

3636
<p><img src="http://brettterpstra.com/uploads/2012/03/Cheat-Sheets-Header.jpg" alt="Cheat Sheets Header"></p>
3737

3838
<p>First and foremost, this is a total ripoff of an idea by Gabe Weatherhead <a href="http://www.macdrifter.com/2012/02/markdown-cheat-sheets-and-marked/">over at Macdrifter</a>. I just expanded on the idea a little bit.</p>
3939

40-
<p>Cheaters is a collection of HTML-based cheat sheets meant for display in an Automator-based popup browser which can float on your screen while you work in other apps (<a href="http://ttscoff.github.io/cheaters/cheat.html">demo the web version</a>). Most of the time I create <a href="http://smilesoftware.com/TextExpander/">TextExpander</a> snippets for commonly-forgotten formats, but having an overall reference can be handy. I've included a collection of hastily made sheets as examples for you to create your own. Sheets are easy to create with minimal markup and are, for the most part, automatically styled and made to fit in with Cheaters overall aesthetic.</p>
40+
<p>Cheaters is a collection of HTML-based cheat sheets meant for display in an Automator-based popup browser which can float on your screen while you work in other apps (<a href="http://ttscoff.github.io/cheaters/cheaters/cheat.html">demo the web version</a>). Most of the time I create <a href="http://smilesoftware.com/TextExpander/">TextExpander</a> snippets for commonly-forgotten formats, but having an overall reference can be handy. I've included a collection of hastily made sheets as examples for you to create your own. Sheets are easy to create with minimal markup and are, for the most part, automatically styled and made to fit in with Cheaters overall aesthetic.</p>
4141

4242
<p><img src="http://brettterpstra.com/uploads/2012/03/Cheat-Sheets-wide.jpg" alt="Cheat Sheets wide"></p>
4343

44-
<h3>Using Cheaters</h3>
44+
<h3>
45+
<a name="update" class="anchor" href="#update"><span class="octicon octicon-link"></span></a>Update</h3>
46+
47+
<p>You can use the instructions below if you're a cheapskate, but for $5 you can use <a href="http://fluidapp.com/">Fluid</a> and create a menu bar app that's much more full-featured and usable than the Automator action. Seriously. Do it.</p>
48+
49+
<h3>
50+
<a name="using-cheaters" class="anchor" href="#using-cheaters"><span class="octicon octicon-link"></span></a>Using Cheaters</h3>
4551

4652
<p>The most useful way to use Cheaters is with an Automator Application.</p>
4753

@@ -59,45 +65,54 @@ <h3>Using Cheaters</h3>
5965

6066
<p>You can also use Cheaters in a web browser, just put it on your disk and point your browser to the <code>file:///...</code> location.</p>
6167

62-
<h3>Deep linking</h3>
68+
<h3>
69+
<a name="deep-linking" class="anchor" href="#deep-linking"><span class="octicon octicon-link"></span></a>Deep linking</h3>
6370

6471
<p>As of a recent update, Cheaters can now handle linking directly to a specific cheat sheet using url hashes. You can use a zero-index number to link to a page if you know the order (index.html#3 to link to the fourth item), but because the order is configurable and subject to change, it also supports name matching. For example, if you want to link the Siri cheat sheet directly, you can use <code>[your_url_or_path]/index.html#siri</code>.</p>
6572

6673
<p>The hash-matching is case-insensitive and will go to the first menu item whose text matches the hash (in whole or in part, whitespace is ignored). This means that if you have a menu item for "CSS 3 Selectors" followed by "CSS Animation," <code>#css</code> will go to "CSS 3 Selectors." To target "CSS Animation," you'd want a url like <code>#cssanim</code> or the full <code>#cssanimation</code>.</p>
6774

6875
<p>This is primarily geared toward building more complex workflows using tools like Alfred 2.</p>
6976

70-
<h3>Customizing</h3>
77+
<h3>
78+
<a name="customizing" class="anchor" href="#customizing"><span class="octicon octicon-link"></span></a>Customizing</h3>
7179

7280
<p>If you know a little HTML, adding and editing sheets is easy. Take a look at the existing documents in the included <strong>cheatsheets</strong> folder. The markup varies but a lot of cases are already handled by the CSS. I stole most of the included cheat sheets from existing web sources (credits at the bottom of each). Some of them I just ripped the HTML out of directly, some I <a href="http://markdownrules.com/">converted</a> <a href="http://brettterpstra.com/introducing-gather-a-cocoa-markdownifier/">to Markdown</a> and then to HTML to get cleaner output. The HTML in the cheat sheets does not need a head, body or containing div, just the markup that goes inside the container in the index.html file.</p>
7381

74-
<h4>The menu</h4>
82+
<h4>
83+
<a name="the-menu" class="anchor" href="#the-menu"><span class="octicon octicon-link"></span></a>The menu</h4>
7584

7685
<p>The index file for Cheaters loads each cheat sheet dynamically into its own markup (using jQuery). To add a new sheet to the menu (or remove/rearrange existing sheets), just edit the unordered list in the #nav ul. The order of the list is the order of the menu items, and the first one in the list is loaded by default. If you only ever want one cheat sheet, just make it the only one in the list. New cheat sheets should be stored as HTML files in the <strong>cheatsheets</strong> folder, and referenced from the links in the #nav list with the relative path <code>cheatsheets/filename.html</code>.</p>
7786

78-
<h4>The look</h4>
87+
<h4>
88+
<a name="the-look" class="anchor" href="#the-look"><span class="octicon octicon-link"></span></a>The look</h4>
7989

8090
<p><img src="http://brettterpstra.com/uploads/2012/03/Cheat-Sheets-narrow-high-contrast.jpg" alt="Narrow, high contrast"></p>
8191

8292
<p>If you run into markup that isn't handled by the CSS, just wrap it in a div with a unique ID and add specific styles in the main CSS file to override or augment default styles. You can, of course, completely replace that stylesheet if you want an entirely different look. I promise not to be offended.</p>
8393

8494
<p>There's also a contrast icon in the upper right, which you can use to flip between light-on-dark and dark-on-light. You can make this change permanent by editing the body class in index.html. Adding a class of "inverted" will set it to be light-on-dark by default; without that class it's dark-on-light automatically.</p>
8595

86-
<h4>Using PDFs</h4>
96+
<h4>
97+
<a name="using-pdfs" class="anchor" href="#using-pdfs"><span class="octicon octicon-link"></span></a>Using PDFs</h4>
8798

8899
<p><img src="http://brettterpstra.com/uploads/2012/03/Cheat-Sheets-Wide-Image.jpg" alt="Cheat Sheets with image"></p>
89100

90101
<p>If you find a PDF cheat sheet that's ideal for this type of display, you'll need to convert it to an image (gif, jpg or png) first. Make it large, between 800px and 1024px wide. Cheaters will automatically scale it to your browser width, and when your browser width gets small enough that the image would be unreadable, it shows it full size and lets you scroll around within the viewport. See the CSS3 cheat sheet markup for an example of using an image; it's just an image tag in an html file. Easy as pie.</p>
91102

92103
<p>If you create some great cheat sheets, fork this and send a pull request. Just <a href="http://brettterpstra.com/contact">let me know</a> if you need a hand!</p>
93-
</section>
104+
</section>
105+
</div>
94106

95-
<footer>
96-
Cheaters is maintained by <a href="https://github.com/ttscoff">ttscoff</a><br>
97-
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="http://twitter.com/jasonlong">Jason Long</a>.
98-
</footer>
107+
<!-- FOOTER -->
108+
<div id="footer_wrap" class="outer">
109+
<footer class="inner">
110+
<p class="copyright">Cheaters maintained by <a href="https://github.com/ttscoff">ttscoff</a></p>
111+
<p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
112+
</footer>
113+
</div>
99114

100-
<script type="text/javascript">
115+
<script type="text/javascript">
101116
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
102117
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
103118
</script>
@@ -108,7 +123,6 @@ <h4>Using PDFs</h4>
108123
} catch(err) {}
109124
</script>
110125

111-
</div>
112-
</div>
126+
113127
</body>
114-
</html>
128+
</html>

javascripts/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('This would be the main JS file.');

0 commit comments

Comments
 (0)