Skip to content

Commit

Permalink
Hosting Brett Terpstra's cheaters on my site.
Browse files Browse the repository at this point in the history
  • Loading branch information
grimesp committed Mar 13, 2014
1 parent 4d0ffc2 commit 0c06f62
Show file tree
Hide file tree
Showing 67 changed files with 15,462 additions and 0 deletions.
58 changes: 58 additions & 0 deletions cheaters/cheat.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Cheat Sheets</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/cheaters.css">
</head>
<body class="normal"> <!-- .inverted for high-contrast -->
<div id="wrapper">


<nav id="menu" class="panel" role="navigation">
<img src="images/contrast.png" id="contrast">
<!-- <a href="#nav" class="menu-link">&#9776;</a> -->
<ul id="nav">
<li><a href="cheatsheets/css3.html">CSS3</a></li>
<li><a href="cheatsheets/selectors.html">Selectors</a></li>
<li><a href="cheatsheets/html5.html">HTML5</a></li>
<!-- <li><a href="cheatsheets/emmet.html">Emmet</a></li> -->
<!-- <li><a href="cheatsheets/html5tags.html">HTML5</a></li> -->
<!-- <li><a href="cheatsheets/webkit.html">Webkit</a></li> -->
<li><a href="cheatsheets/jquery1.9.html">jQuery</a></li>
<!-- <li><a href="cheatsheets/JSStrings.html">JSStrings</a></li> -->
<li><a href="cheatsheets/markdown.html">Markdown</a></li>
<li><a href="cheatsheets/mmd.html">MMD</a></li>
<!-- <li><a href="cheatsheets/keybindings.html">Bindings</a></li> -->
<li><a href="cheatsheets/gmail.html">GMail</a></li>
<li><a href="cheatsheets/vim.html">Vim</a></li>
<!-- <li><a href="cheatsheets/screen.html">Screen</a></li> -->
<li><a href="cheatsheets/alfred.html">Alfred</a></li>
<li><a href="cheatsheets/git.html">Git</a></li>
<!-- <li><a href="cheatsheets/git-advanced.html">Git</a></li> -->
<!-- <li><a href="cheatsheets/towergit.html">Git</a></li> -->
<li><a href="cheatsheets/patternsregex.html">Regex</a></li>
<li><a href="cheatsheets/towergithtml.html">Git</a></li>
<li><a href="cheatsheets/bashhistory.html">Bash History</a></li>
<!-- <li><a href="cheatsheets/jira.html">Jira</a></li> -->
<!-- <li><a href="cheatsheets/subl.html">Sublime</a></li> -->
<!-- <li><a href="cheatsheets/subl2.html">ST2</a></li> -->
<!-- <li><a href="cheatsheets/scapple.html">Scapple</a></li> -->
<!-- <li><a href="cheatsheets/rst.html">rst</a></li> -->
<!-- <li><a href="cheatsheets/tmux.html">tmux</a></li> -->
<!-- <li><a href="cheatsheets/trickster.html">trickster</a></li> -->
<li><a href="cheatsheets/scannercodes.html">Scanner Codes</a></li>
</ul>
</nav>
<div id="container"></div>
</div>
<script src="js/jquery-2.0.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.cookie.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/mousetrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.menutron.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/cheaters.js"></script>

</body>
</html>
81 changes: 81 additions & 0 deletions cheaters/cheatsheets/JSStrings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<h3>JavaScript Strings</h3>

<table>
<caption id="javascriptstringhandlingmethods">String handling methods</caption>
<colgroup>
<col style="text-align:left;width:300px"/>
<col style="text-align:left;"/>
</colgroup>

<thead>
<tr>
<th style="text-align:left;">Method</th>
<th style="text-align:left;">Summary</th>
</tr>
</thead>

<tbody>
<tr>
<td style="text-align:left;"><strong>charAt</strong>(x)</td>
<td style="text-align:left;">Returns the character at the &#8220;x&#8221; position within the string.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>charCodeAt</strong>(x)</td>
<td style="text-align:left;">Returns the Unicode value of the character at position &#8220;x&#8221; within the string.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>concat</strong>(v1, v2,&#8230;)</td>
<td style="text-align:left;">Combines one or more strings (arguments v1, v2 etc) into the existing one and returns the combined string. Original string is not modified.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>fromCharCode</strong>(c1, c2,&#8230;)</td>
<td style="text-align:left;">Returns a string created by using the specified sequence of Unicode values (arguments c1, c2 etc). Method of String object, not String instance. For example: String.fromCharCode().</td>
</tr>
<tr>
<td style="text-align:left;"><strong>indexOf</strong>(substr, [start])</td>
<td style="text-align:left;">Searches and (if found) returns the index number of the searched character or substring within the string. If not found, &#8211;1 is returned. &#8220;Start&#8221; is an optional argument specifying the position within string to begin the search. Default is 0.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>lastIndexOf</strong>(substr, [start])</td>
<td style="text-align:left;">Searches and (if found) returns the index number of the searched character or substring within the string. Searches the string from end to beginning. If not found, &#8211;1 is returned. &#8220;Start&#8221; is an optional argument specifying the position within string to begin the search. Default is string.length&#8211;1.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>match</strong>(regexp)</td>
<td style="text-align:left;">Executes a search for a match within a string based on a regular expression. It returns an array of information or null if no match is found.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>replace</strong>( regexp, replacetext)</td>
<td style="text-align:left;">Searches and replaces the regular expression portion (match) with the replaced text instead.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>search</strong>(regexp)</td>
<td style="text-align:left;">Tests for a match in a string. It returns the index of the match, or &#8211;1 if not found.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>slice</strong>(start, [end])</td>
<td style="text-align:left;">Returns a substring of the string based on the &#8220;start&#8221; and &#8220;end&#8221; index arguments, NOT including the &#8220;end&#8221; index itself. &#8220;End&#8221; is optional, and if none is specified, the slice includes all characters from &#8220;start&#8221; to end of string.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>split</strong>(delimiter, [limit])</td>
<td style="text-align:left;">Splits a string into many according to the specified delimiter, and returns an array containing each element. The optional &#8220;limit&#8221; is an integer that lets you specify the maximum number of elements to return.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>substr</strong>(start, [length])</td>
<td style="text-align:left;">Returns the characters in a string beginning at &#8220;start&#8221; and through the specified number of characters, &#8220;length&#8221;. &#8220;Length&#8221; is optional, and if omitted, up to the end of the string is assumed.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>substring</strong>(from, [to])</td>
<td style="text-align:left;">Returns the characters in a string between &#8220;from&#8221; and &#8220;to&#8221; indexes, NOT including &#8220;to&#8221; inself. &#8220;To&#8221; is optional, and if omitted, up to the end of the string is assumed.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>toLowerCase</strong>()</td>
<td style="text-align:left;">Returns the string with all of its characters converted to lowercase.</td>
</tr>
<tr>
<td style="text-align:left;"><strong>toUpperCase</strong>()</td>
<td style="text-align:left;">Returns the string with all of its characters converted to uppercase.</td>
</tr>
</tbody>
</table>

<p>Taken from <a href="http://www.javascriptkit.com/javatutors/string4.shtml">JavaScript Kit</a>.</p>
18 changes: 18 additions & 0 deletions cheaters/cheatsheets/JSStrings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
| Method | Summary |
| ------ | ------- |
**charAt**(x) | Returns the character at the "x" position within the string.
**charCodeAt**(x) | Returns the Unicode value of the character at position "x" within the string.
**concat**(v1, v2,...) | Combines one or more strings (arguments v1, v2 etc) into the existing one and returns the combined string. Original string is not modified.
**fromCharCode**(c1, c2,...) | Returns a string created by using the specified sequence of Unicode values (arguments c1, c2 etc). Method of String object, not String instance. For example: String.fromCharCode().
**indexOf**(substr, [start]) | Searches and (if found) returns the index number of the searched character or substring within the string. If not found, -1 is returned. "Start" is an optional argument specifying the position within string to begin the search. Default is 0.
**lastIndexOf**(substr, [start]) | Searches and (if found) returns the index number of the searched character or substring within the string. Searches the string from end to beginning. If not found, -1 is returned. "Start" is an optional argument specifying the position within string to begin the search. Default is string.length-1.
**match**(regexp) | Executes a search for a match within a string based on a regular expression. It returns an array of information or null if no match is found.
**replace**( regexp, replacetext) | Searche and replaces the regular expression portion (match) with the replaced text instead.
**search**(regexp) | Tests for a match in a string. It returns the index of the match, or -1 if not found.
**slice**(start, [end]) | Returns a substring of the string based on the "start" and "end" index arguments, NOT including the "end" index itself. "End" is optional, and if none is specified, the slice includes all characters from "start" to end of string.
**split**(delimiter, [limit]) | Splits a string into many according to the specified delimiter, and returns an array containing each element. The optional "limit" is an integer that lets you specify the maximum number of elements to return.
**substr**(start, [length]) | Returns the characters in a string beginning at "start" and through the specified number of characters, "length". "Length" is optional, and if omitted, up to the end of the string is assumed.
**substring**(from, [to]) | Returns the characters in a string between "from" and "to" indexes, NOT including "to" inself. "To" is optional, and if omitted, up to the end of the string is assumed.
**toLowerCase**() | Returns the string with all of its characters converted to lowercase.
**toUpperCase**() | Returns the string with all of its characters converted to uppercase.
[JavaScript String handling methods]
Binary file added cheaters/cheatsheets/TowerGitCheatSheet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions cheaters/cheatsheets/alfred.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<h3>Alfred</h3>
<div id="alfred">
<table>
<caption>Tasks</caption>
<tbody><tr>
<td>do <code>task</code></td>
<td>Create new task in the default group.</td>
</tr>
<tr>
<td>do group <code>name</code></td>
<td>Create a new group.</td>
</tr>
<tr>
<td>do <code>group</code> <code>new task</code></td>
<td>Create a new task in a specific group.</td>
</tr>
<tr>
<td>do list all</td>
<td>List all tasks in all groups.</td>
</tr>
<tr>
<td>do list <code>group</code></td>
<td>List tasks in a specific group</td>
</tr>
<tr>
<td>do rem <code>group</code> <code>#</code></td>
<td>Remove specific task number from a specific group.</td>
</tr>
</tbody></table>
<table>
<caption>Spotify</caption>
<tbody><tr>
<td>spot start</td>
<td>Activate application</td>
</tr>
<tr>
<td>spot play</td>
<td>Play current track</td>
</tr>
<tr>
<td>spot next</td>
<td>Play next track</td>
</tr>
<tr>
<td>spot prev</td>
<td>Play previous track</td>
</tr>
<tr>
<td>spot mute</td>
<td>Mute spotify</td>
</tr>
<tr>
<td>spot <code>50</code></td>
<td>Sets volume</td>
</tr>
<tr>
<td>spot search<code>artist</code></td>
<td>Search for an artist.</td>
</tr>
</tbody></table>
Loading

0 comments on commit 0c06f62

Please sign in to comment.