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
| {% macro sprite(id, viewBox, classes) %} | |
| {% set viewBox = viewBox or "0 0 1 1"%} | |
| <span class='sprite -{{id}} {{classes}}'> | |
| <svg viewBox="{{viewBox}}"><use xlink:href='images/icons.svg#{{id}}' /></use></svg> | |
| </span> | |
| {% endmacro %} |
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
| // warning message is optional | |
| @mixin deprecated($item, $msg: null) { | |
| @if $msg { @warn "DEPRECATION WARNING: #{$item} -- #{$msg}"} | |
| @else { @warn "DEPRECATION WARNING: #{$item}" } | |
| } | |
| .button--login { | |
| @include deprecated(&, 'use "btn" prefix'); | |
| color: blue; | |
| } |
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
| # dry run | |
| rsync -navPhz source/folder/ destination/folder/ | |
| # the real deal | |
| rsync -avPhz source/folder/ destination/folder/ |
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
| # remove | |
| /usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist | |
| # restore | |
| /usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist |
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 nodes = document.querySelectorAll('[id]'); | |
| var ids = {}; | |
| var totalNodes = nodes.length; | |
| for(var i=0; i<totalNodes; i++) { | |
| var currentId = nodes[i].id ? nodes[i].id : "undefined"; | |
| if(isNaN(ids[currentId])) { | |
| ids[currentId] = 0; | |
| } | |
| ids[currentId]++; |
NewerOlder