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 ruby | |
| verbose = ARGV[0] == '-v' | |
| def colorize(text, color_code) | |
| "\e[#{color_code}m#{text}\e[0m" | |
| end | |
| def red(text); colorize(text, 31); end | |
| def green(text); colorize(text, 32); end |
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
| # Originally from: | |
| # https://gist.github.com/parzonka/9371885 | |
| # ------------------------------------------------------------------------------ | |
| # - required packages: unzip, java | |
| # - installs to /opt/gradle | |
| # - existing versions are not overwritten/deleted | |
| # - seamless upgrades/downgrades | |
| # - $GRADLE_HOME points to latest *installed* (not released) | |
| # ------------------------------------------------------------------------------ |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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: massive screen scroll | |
| $stdout.puts self.catalogue.to_yaml | |
| # Save to file | |
| File.open( '_catalog.yaml', 'w'){ |f| f.puts self.catalogue.to_yaml } |
NewerOlder