| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
This file contains hidden or 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
| body { | |
| background-color: #EEEEEE; | |
| font-family: Georgia; | |
| font-style: italic; | |
| font-size: 15px; | |
| } | |
| #content { | |
| position: relative; | |
| margin: 50px; |
This file contains hidden or 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
| <meta name="viewport" content="width=device-width" /> |
This file contains hidden or 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
| <meta name="viewport" content="width=760px, initial-scale=1, user-scalable=no" /> |
This file contains hidden or 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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
This file contains hidden or 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
| Storage.prototype.setObject = function(key, value) { | |
| this.setItem(key, JSON.stringify(value)); | |
| } | |
| Storage.prototype.getObject = function(key) { | |
| var value = this.getItem(key); | |
| return value && JSON.parse(value); | |
| } |
This file contains hidden or 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
| set softtabstop=2 | |
| set shiftwidth=2 | |
| set tabstop=2 | |
| set expandtab "expandtab (whitespace) | |
| set number "line numbers | |
| set ai "autoindent | |
| set si "smartindent | |
| set tw=79 "wrap on 79 | |
| set sta "smarttab | |
| set history=100 "remember more than 20 cmd-history |
This file contains hidden or 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
| export CLICOLOR=1 | |
| export LSCOLORS=GxFxCxDxBxegedabagaced | |
| export PS1='\W\$ ' |
This file contains hidden or 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
| // ---- Code ---- | |
| var EventAggregator = function() { | |
| this.events = {}; | |
| } | |
| EventAggregator.prototype.trigger = function (msg) { | |
| var args = Array.prototype.splice.call(arguments, 1); | |
| for(var i = 0, len = this.events[msg].length; i < len; i++) { | |
| this.events[msg][i].apply(this, args); |
This file contains hidden or 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 nestedNumbers = [1,2,3,[1,2,3,[12]]]; | |
| var sumOfArray = function(arr, sum) { | |
| for (var i = 0; i < arr.length; i++) { | |
| if (typeof arr[i] === 'object' && arr[i].length) { | |
| sum = sumOfArray(arr[i], sum); | |
| } else { | |
| sum += arr[i]; | |
| } | |
| } |
OlderNewer