When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}Custom format for displaying bytes as kb, mb, gb or tb.
Response to a few places on the internet: https://productforums.google.com/forum/#!topic/docs/x_T_N-yRUYg And here: https://stackoverflow.com/questions/1533811/how-can-i-format-bytes-a-cell-in-excel-as-kb-mb-gb-etc
Here is one that I have been using:
[<1000000]0.00," KB";[<1000000000]0.00,," MB";0.00,,," GB"
| node default { | |
| # This is required to apply some manifests since these are not using | |
| # appropriate user, group or full path to the command. | |
| Exec { | |
| group => "staff", | |
| user => $boxen_user, | |
| path => [ | |
| "/usr/local/bin", | |
| "/usr/bin", | |
| "/bin", |
| # | |
| # Ideas stolen from lograge and brought to Rails 2.3 | |
| # https://github.com/mattmatt/lograge/blob/master/lib/lograge/log_subscriber.rb | |
| # | |
| module ImprovedControllerLogging | |
| def self.included(base) | |
| base.alias_method_chain :log_processing, :fixup | |
| base.inject_alias_method_chain :perform_action, | |
| :perform_action_with_benchmark, |
| #!/usr/bin/env sh | |
| # Title: Ruby development environment for OS X (Lion) | |
| # Author: Rogelio J. Samour | |
| # Warning: | |
| # While it is unlikely any code below might damage your system, | |
| # it’s always a good idea to back up everything that matters to you | |
| # before running this script! Just in case. I am not responsible for | |
| # anything that may result from running this script. Proceed at | |
| # your own risk. |