ttscoff / cheaters Goto Github PK
View Code? Open in Web Editor NEWCustomizable cheat sheet system for OS X
Customizable cheat sheet system for OS X
I had been using Cheaters with the Fluid app for a long time, so when my system crashed and I re-created the Home directory, I forgot to enable "Allow browsing to any URL" in the Fluid app's Whitelist section.
Since I spent too long trying to troubleshoot, I request that you add a short reminder in the Readme section for Cheaters:
"Don't forget to "Allow browsing to any URL" in the Whitelist section of Fluid options"
Thanks!
Hi,
First of all, I love the concept! Im thinking about combining it with either Fluid or Fluid Browser. I stumbled upon cheaters in your "Rest of the Best" blog post.
But I can't seem to be able to open cheat.html (or index-example.html) properly. The menu bar apprears (Safari/Chrome, not web pop-up), as well as JavaScript elements such as fast switch and color inverter. But from the content, only the CSS3 category loads, which is an image.
Firefox, on the other hand, has no problem loading the whole content.
Any ideas what might go wrong? Is that a sandbox thing, disallowing the browser to load other html files from the hard drive? And if so: how do I grant permissions?
Kind regards,
Immo
Hi Brett and thank you for the Cheaters!
I'm trying to add some inline HTML to the markdown document; unfortunately, marked.js skips it all of them.
<div style="leftCol">
markdown content
</div>
My cheaters.js:
$('#container').html(
marked(mdText, {
smartLists: true,
breaks: true,
tables: true,
gfm: true,
sanitize: false,
pedantic: true
})
);
Any idea what happens here? -Thank you!
I'm not able to load any cheatsheets either in Fluidapp 2.1 or in latest Chrome or Safari. It only loads the <li>
elements, but clicking on any of them does not open the corresponding cheatsheet.
I double checked the paths and toggled "Allow browsing to any URL" but still, no luck.
But strangely enough, it works if I open the file in Firefox.
Hi,
<li><a href="cheatsheets/JavaScript.md">JavaScript</a></li>
is missing in cheat.html.
I also copy a draft for a conversion of citations from MultiMarkDown 4 to LaTeX cheatsheet, in case you find it convenient to edit and include it.
Thank you.
### Conversion of citations from MultiMarkDown 4 to LaTeX
<!--
### Move
(← moves in the opposite direction. Use xSHIFT to hightlight)
| Command | Description|
| -- | -- |
| xOPT → |Next word|
| xCTRL → |Next subword |
| xCMD → |End of line|
-->
### Parenthetical citations
| MMD4 | natbib | Output |
| --|--|
| [#jon90] | \citep{jon90} | (Jones et al., 1990) |
| [#jon90][] | \citep{jon90} |
| [chap. 2][#jon90] | \citep[chap. 2]{jon90} | (Jones et al., 1990, chap. 2) |
| [chap. 2\]\[véase][#jon90] | \citep[chap. 2][véase]{jon90} | (véase Jones et al., 1990, chap. 2) |
| | \citep[véase][]{jon90} | (véase Jones et al., 1990) |
### Textual citations
| MMD4 | natbib | Output |
|--|--|
| [#jon90;] | \citet{jon90} | Jones et al. (1990) |
| [#jon90;][] | \citet{jon90} | |
| [chap. 2][#jon90;] | \citet[chap. 2]{jon90} | Jones et al. (1990, chap. 2) |
| [chap. 2\]\[véase][#jon90;] | \citet[chap. 2][véase]{jon90} | |
### Full author list
| MMD4 | natbib | Output |
|--|--|
| | \citep\ *{jon90} | (Jones, Baker, et Williams, 1990) |
| | \citet\*{jon90} | Jones, Baker, et Williams (1990) |
### Multiple citations
| MMD4 | natbib | Output |
|--|--|
| [#jon90,james91] | \citep{jon90,jam91} | (Jones et al., 1990; James et al. 1991) [1] |
| | \citep{jon90,jon91} | (Jones et al., 1990, 1991) |
| | \citep{jon90a,jon90b} | (Jones et al., 1990a,b) |
| | \citet{jon90,jam91} | Jones et al. (1990); James et al. (1991) |
[1] In Scrivener, it is possible to write _[][#jon90],[][#james91]_ if we add to the Compile | Replacements dialog:
][],[# --> ,
],[][# --> ,
### Partial citations
| MMD4 | natbib | Output |
| --|-- |
| | \citeauthor{jon90} | Jones et al. |
| | \citeauthor*{jon90} | Jones, Baker, et Williams |
| | \citeyear{jon90} | 1990 |
| | \citeyearpar{jon90} | (1990) |
### Forcing upper cased names
| MMD4 | natbib | Output |
| --|-- |
| | \Citep{dRob98} | (Della Robbia, 1998) |
| | \Citet{dRob98} | Della Robbia (1998) |
| | \Citeauthor{dRob98} | Della Robbia |
### Including a source in bibliography that was not cited
| MMD4 | natbib | Output |
| --|-- |
| [Not cited][#jon90] | |
I'm unable to escape angle brackets in markdown tables when a letter follows it. For example:
# Works: has spaces
| < div > |
# Work: character after anglebracket is not a-z
| <[URL]> |
| <123abc> |
# Don't work:
| <leader> |
| \<leader\> |
Is this possible? I'd like to include the literal <leader>
in my vim cheatsheet!
Hi Brett,
I just got around to updating my previously working version (2.0, stored in Dropbox) to 2.0.5. After updating, the nav will load but cheatsheets won't. I decided to remove all layers (Dropbox, Fluid) and run it directly from local hard drive but get the same thing (Chrome or Safari - OS X Mav). When I check Dev Tools I see errors like this in the console:
Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. file:///Users/khit/Dropbox/Apps/Cheaters/cheaters/cheatsheets/css3.html
XMLHttpRequest cannot load file:///Users/khit/Dropbox/Apps/Cheaters/cheaters/cheatsheets/css3.html. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. cheat.html:1
Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. file:///Users/khit/Dropbox/Apps/Cheaters/cheaters/cheatsheets/patternsregex.html
I noticed that jquery-1.7.1.min.js
was removed in this version but I don't think that's the answer because my old cheat.html file was calling jquery-2.0.3.min.js
anyway.
Any thoughts on what I'm doing wrong? Thanks! I love this thing! kh
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.