- Use the Present Tense ("Add feature" not "Added feature").
- Use the Imperative Mood ("Move cursor to..." not "Moves cursor to...").
- Limit the subject line to 50 characters
- Wrap the body at 72 characters
- Reference issues and pull requests
- When only changing documentation, include
[ci skip]
in the commit description - Be creative with emojies
- 🎉
:tada:
Initial commit
This file contains 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
<div class="page-wrap"> | |
<section class="main-content"> | |
<h1>Main Content</h1> | |
<p><strong>I'm first in the source order.</strong></p> | |
<p>The key to victory is discipline, and that means a well made bed. You will practice until you can make your bed in your sleep. Fry, we have a crate to deliver. Hey, guess what you're accessories to.</p> | |
<p>I'll get my kit! That's not soon enough! Oh, all right, I am. But if anything happens to me, tell them I died robbing some old man.</p> | |
</section> | |
<nav class="main-nav"> |
This file contains 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 camelCase(method) { | |
return method.replace(/[-_\s]+(.)?/g, function(match, c) { | |
return c ? c.toUpperCase() : ""; | |
}); | |
} |
This file contains 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
document.getElementById("view_pdf").addEventListener("click", function(evt) { | |
var a = document.createElement('a'); | |
a.setAttribute("href", urlPrefix + cat_directory + filename); | |
a.setAttribute("target", "_blank"); | |
var dispatch = document.createEvent("HTMLEvents"); | |
dispatch.initEvent("click", true, true); | |
a.dispatchEvent(dispatch); | |
}); |
This file contains 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
window.onload = function() { | |
setTimeout(function() { | |
// XHR to request a JS and a CSS | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', 'http://domain.tld/preload.js'); | |
xhr.send(''); | |
xhr = new XMLHttpRequest(); | |
xhr.open('GET', 'http://domain.tld/preload.css'); | |
xhr.send(''); | |
// preload image |
This file contains 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
for remote in `git branch -r`; do git branch --track ${remote#origin/} $remote; done | |
git fetch --all | |
git pull --all | |
# credit to Wookie88 and Shadowfax @ http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches | |
# saving this for quick reference and easy insertion. |
This file contains 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
var App = (function() { | |
/** | |
* a development flag to easily silence console.logging | |
* @type {Boolean} | |
*/ | |
var development = true, | |
self; | |
return { | |
init: function init() { |
This file contains 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() { | |
/* == GLOBAL DECLARATIONS == */ | |
TouchMouseEvent = { | |
DOWN: "touchmousedown", | |
UP: "touchmouseup", | |
MOVE: "touchmousemove" | |
} | |
/* == EVENT LISTENERS == */ |
This file contains 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
var hasTouch = 'ontouchstart' in document.documentElement, | |
touchStart = hasTouch ? 'touchstart': 'mousedown', | |
touchMove = hasTouch ? 'touchmove': 'mousemove', | |
touchEnd = hasTouch ? 'touchend': 'mouseup'; |
This file contains 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
brew update | |
brew link yasm | |
brew link x264 | |
brew link lame | |
brew link xvid | |
brew install ffmpeg | |
ffmpeg wiki: | |
https://trac.ffmpeg.org/wiki/Encode/MP3 |