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
| Hide Application from Dock: | |
| defaults write /Applications/Application.app/Contents/Info LSUIElement 1 | |
| Show Application in Dock: | |
| defaults write /Applications/Application.app/Contents/Info LSUIElement 0 | |
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
| # Usage: | |
| # ruby concat.rb /path-to-compass-gem/frameworks/compass/stylesheets/_compass.scss > compass-all.scss | |
| @seen = [] | |
| def concat(file) | |
| File.foreach(file) do |line| | |
| if line =~ /^\s?@import "(.+?)";/ | |
| import = $1 | |
| unless @seen.include?(import) |
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
| <?php $hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; ?> | |
| <style type="text/css"> | |
| a { | |
| color: hsl(<?php echo $hsl ?>); | |
| } | |
| </style> |