59 karma · joined May 19, 2009
"Access your data on all website Access your tabs and browsing history"
accessility -> accessibility maet -> met
val b = a.exists(str=>str.forall(_.isLowerCase))
or
val b = a.exists(x=>x.toLowerCase() == x)
There's no way I'd start using functional programming in Java if it's this clunky. Just stick with Scala.
#3 doesn't work for me on Mac OSX with Bash; the ! is interpreted as the last command. Not sure if this works in other shells
#4 is clever, but I would think if you're doing something that complex that you need to recall time and time again you'd make an alias for it.
#8 is clever. I love AWK. But not sure when I'd ever use this.
The rest were pretty bleh to me. Always looking for new shell kung fu but unfortunately this list did nothing for me.
Traceback (most recent call last): File "/usr/local/bin/bpython", line 8, in <module> load_entry_point('bpython==0.9.7', 'console_scripts', 'bpython')() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1739, in main banner=banner) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1636, in curses_wrapper return func(stdscr, args, *kwargs) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1706, in main_curses clirepl.repl() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 996, in repl inp = self.get_line() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 589, in get_line key = self.get_key() File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 567, in get_key self.idle(self) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1579, in idle do_resize(caller) File "/Library/Python/2.5/site-packages/bpython-0.9.7-py2.5.egg/bpython/cli.py", line 1591, in do_resize curses.endwin() _curses.error: endwin() returned ERR
Maybe in 2004 screen real estate was at a premium, but a lot of developers I know now have at least two high resolution monitors, if not a single ultra high (2560x1200) resolution monitor. I'd gladly take the standard monospaced fonts any day.