HI!
You write Cucumber features for collaboration.
If you present them as flat plaintext, non-programmers won't read them.
Try, using Reveal.js and show the scenario texts on a beamer.
This is a guide on how to do it!
| en verden | |
| stablet i dobletter | |
| med referater til kopi | |
| organiseret i jatekker | |
| med handleplaner indeni | |
| alt --- | |
| tvunget til fængsel uden dom | |
| i en fortagende raison-d'etre | |
| støbt i rener af beton |
| # @param hash [Hash] | |
| # @return [String] rubocop-friendly pretty-printed hash | |
| def pretty_print_hash(hash) | |
| with_19_keys = hash.to_s.gsub(/:(\w+)=>/, '\1: ') | |
| with_whitespace = with_19_keys.sub(/^{/, '{ ').sub(/}$/,' }') | |
| with_single_quotes = with_whitespace.gsub(/: \"([^"']*)\"/, ': \'\1\'') | |
| end |
| // +build windows | |
| package architecture | |
| import ( | |
| "bytes" | |
| "errors" | |
| "io/ioutil" | |
| "syscall" | |
| "unsafe" |
| func (s *DockerSuite) TestInfoApiPre121(c *check.C) { | |
| status, body, err := sockRequest("GET", "/v1.20/info", nil) | |
| c.Assert(err, check.IsNil) | |
| c.Assert(status, check.Equals, http.StatusOK) | |
| if !strings.Contains(string(body), "OperatingSystem") { | |
| c.Errorf("couldn't find string OperatingSystem in output") | |
| } | |
| } |
| diff --git a/api/server/server.go b/api/server/server.go | |
| index 1ad1249..82043ca 100644 | |
| --- a/api/server/server.go | |
| +++ b/api/server/server.go | |
| @@ -368,7 +368,8 @@ func (s *Server) getImagesJSON(version version.Version, w http.ResponseWriter, r | |
| } | |
| func (s *Server) getInfo(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error { | |
| - info, err := s.daemon.SystemInfo() | |
| + osAsPrettyName := version.GreaterThanOrEqualTo("1.19") |
HI!
You write Cucumber features for collaboration.
If you present them as flat plaintext, non-programmers won't read them.
Try, using Reveal.js and show the scenario texts on a beamer.
This is a guide on how to do it!
| #gem 'celluloid', '>= 0.16.0.pre3' | |
| gem 'celluloid', '>= 0.15.2' | |
| gem 'rspec' |
| # This is a quick script for doing a mass rename of all files in an | |
| # Amazon S3 bucket. | |
| # In this case, the rename operation was to unescape all filenames which | |
| # had been previously escaped in error. | |
| ############################# | |
| # Configuration: | |
| bucketname = ENV.fetch('S3_BUCKET_NAME') | |
| access_key = ENV.fetch('S3_ACCESS_KEY_ID') |
| extern mod extra; | |
| use extra::getopts; | |
| use extra::fileinput; | |
| use std::os; | |
| use std::io; | |
| fn main() { | |
| let args = os::args(); | |
| let program = args[0].clone(); |