- 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
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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 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, |
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
"*": | |
"atom-beautify": | |
general: | |
analytics: false | |
js: {} | |
core: | |
disabledPackages: [ | |
"minimap-highlight-selected" | |
"minimap" | |
"atom-ternjs" |
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
*.3ds filter=lfs diff=lfs merge=lfs -text | |
*.3g2 filter=lfs diff=lfs merge=lfs -text | |
*.3gp filter=lfs diff=lfs merge=lfs -text | |
*.7z filter=lfs diff=lfs merge=lfs -text | |
*.a filter=lfs diff=lfs merge=lfs -text | |
*.aac filter=lfs diff=lfs merge=lfs -text | |
*.adp filter=lfs diff=lfs merge=lfs -text | |
*.ai filter=lfs diff=lfs merge=lfs -text | |
*.aif filter=lfs diff=lfs merge=lfs -text | |
*.aiff filter=lfs diff=lfs merge=lfs -text |
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
/** | |
* 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 || |
- Install Prettier
- Update User Settings
{ "editor.formatOnPaste": false, "editor.formatOnSave": false, }
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
// Promisified setTimeout | |
const delay = (duration = 0) => | |
new Promise(resolve => | |
setTimeout(() => { | |
resolve(); | |
}, duration) | |
); | |
// Usage | |
async function myFunction() { |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ "key": "cmd+shift+t", "command": "workbench.action.terminal.toggleTerminal" }, | |
{ "key": "cmd+shift+7", "command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" }, | |
{ "key": "cmd+alt+shift+7", "command": "editor.action.blockComment", | |
"when": "editorFocus" }, | |
{ "key": "ctrl+s", "command": "workbench.action.toggleSidebarVisibility" } | |
] |