NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
| /** | |
| * to-zero-padding.js | |
| * The Number value is changed to the numerical string value of zero padding. | |
| * | |
| * @version 1.1.1 | |
| * @author think49 | |
| * @url https://gist.github.com/891983 | |
| * @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
| */ |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
| function has3d(){ | |
| if (!window.getComputedStyle) { | |
| return false; | |
| } | |
| var el = document.createElement('p'), | |
| has3d, | |
| transforms = { | |
| 'webkitTransform':'-webkit-transform', | |
| 'OTransform':'-o-transform', |
| var perfnow = (function() { | |
| return ( | |
| (performance && performance.now) ? function() { return performance.now(); } | |
| : (performance && performance.webkitNow) ? function() { return performance.webkitNow(); } | |
| : (performance && performance.mozNow) ? function() { return performance.mozNow(); } | |
| : (performance && performance.oNow) ? function() { return performance.oNow(); } | |
| : (Date.now) ? function() { return Date.now(); } | |
| : function() { return +new Date(); } | |
| ) | |
| }()); |
| /******************************************************************************************************************** | |
| Countdown.js is a simple script to add a countdown timer | |
| for your website. Currently it can only do full minutes | |
| and partial minutes aren't supported. This script is a fork of http://jsfiddle.net/HRrYG/ with some | |
| added extensions. Since the original code that I forked was released under Creative Commons by SA license, | |
| I have to release this code under the same license. You can view a live demo of this code at http://jsfiddle.net/JmrQE/2/. | |
| ********************************************************************************************************************/ | |
| function countdown(minutes) { | |
| var seconds = 60; | |
| var mins = minutes |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)