Code Style
- Tab indentation
- Single-quotes
- Semicolon
- Strict mode
- No trailing whitespace
- Variables at the top of the scope
- Multiple variable statements
- Space after keywords and between arguments and operators
[user] | |
name = Firstname Lastname | |
email = mail@domain.com | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[apply] | |
whitespace = nowarn |
cd FOLDER | |
rm -rf 'find . -type d -name .svn' |
<a href="http://github.com/you"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/bec6c51521dcc8148146135149fe06a9cc737577/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a> |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
var Twit = require("twit"); | |
var config = require('./oauthconfig'); | |
console.log("config:"); | |
console.log(config); | |
var T = new Twit({ | |
consumer_key: config.consumer_key, | |
consumer_secret: config.consumer_secret, | |
access_token: config.access_token, |
/** | |
* Checking the browsers fullscreen ability. Returns vendor specific methods. | |
* @return {Object} return.requestMethod The browser specific requestFullScreen method | |
* @return {Object} return.cancelMethod The browser specific cancelFullScreen method | |
*/ | |
var checkFullScreenAbility = function() { | |
var fullScreenAbility = {}, | |
requestMethod = document.body.requestFullScreen || | |
document.body.webkitRequestFullScreen || | |
document.body.mozRequestFullScreen || |
#The power of z
Do you spend lots of time doing things like this?
cd this/is/the/path/that/i/want/so/i/type/it/all/out/to/get/whereiwant
With z, you could just do this:
IE9 is still having the following weird limits when it's coining to CSS
<style>
and <link>
tags limitSee [MSDN] for details.