That is :r! ls -l
:)
Also as shebang, please use #!/usr/bin/env python
, to make life easier for everybody.
Go:
package main
func main() {
christmas := "beer "
newYear := "more beer"
if christmas+newYear == "beer more beer" {
println("festive hangover")
}
}
Tcl:
set christmas "beer "
set newYear "more beer"
if {"$christmas$newYear" == "beer more beer"} {
puts "festive hangover"
}
(oh, also, please don't use ===
for equality in Ruby, it works in this case, but String === "beer more beer"
would also be true. So can you change it to ==
instead? Pretty please :)
Thanks, looks like the equivalent package on Archlinux is https://aur.archlinux.org/packages.php?ID=48567
Ruby version: ruby -rjson -e 'puts JSON.pretty_generate(JSON.load($<))'
What distribution and package is that in? The only calendar
i have is from plan9port
and it doesn't have any such file.
I usually go with set -x
. But this seems like a good addition to my toolbox, even works in zsh. Thanks :)
Use ruby -e
to quickly resolve any Ruby argument, or read the souce :)
That should be :!git init
etc.
#empty?
only works on String though, something more general but slightly more expensive is this: