Skip to content

Instantly share code, notes, and snippets.

@thinkerbot
Created June 21, 2010 14:33
Show Gist options
  • Select an option

  • Save thinkerbot/446934 to your computer and use it in GitHub Desktop.

Select an option

Save thinkerbot/446934 to your computer and use it in GitHub Desktop.
BASH examples
# cut -f 5 tiobe.txt | xargs ruby -e "puts ARGV.inject(0) {|sum, n| sum + n[0..-1].to_f }"
1 1 Java 18.033% -2.11% A
2 2 C 17.809% +1.03% A
3 3 C++ 10.757% +0.16% A
4 4 PHP 8.934% -0.74% A
5 5 (Visual) Basic 5.868% -2.07% A
6 7 C# 5.196% +0.66% A
7 6 Python 4.266% -0.49% A
8 9 Perl 3.200% -0.71% A
9 45 Objective-C 2.469% +2.35% A
10 11 Delphi 2.394% +0.21% A
11 8 JavaScript 2.191% -1.83% A
12 10 Ruby 2.070% -0.56% A
13 12 PL/SQL 0.787% -0.09% A
14 14 SAS 0.703% -0.06% A
15 15 Pascal 0.702% -0.06% A-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment