not yet pushed
git reset --hard HEAD^already pushed...
| var array = [ | |
| 2, | |
| 4, | |
| 8, | |
| 16, | |
| 32, | |
| 64, | |
| 128, | |
| 256, | |
| 512, |
not yet pushed
git reset --hard HEAD^already pushed...
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| print "- system\n"; | |
| print "-----------------\n"; | |
| my $ret_sys = system 'ps aux | grep -v grep | grep perl | wc -l'; | |
| print '$ret_sys is ', $ret_sys; | |
| print "\n"; | |
| print "-----------------\n"; |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Perl6::Say; | |
| use Data::Dumper; | |
| #use List::Util qw( shuffle ); | |
| use Digest::MD5 qw(md5_hex); | |
| my $KEY = 'bra-bra'; |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Perl6::Say; | |
| use Data::Dumper; | |
| local $Data::Dumper::Indent = 1; | |
| local $Data::Dumper::Terse = 1; | |
| use Digest::MD5 qw(md5_hex); |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| my %hash = ( | |
| key1 => 'value1', | |
| key2 => 'value2', | |
| key3 => 'value3', |
| VIM | |
| In Vi Improved to change or set desired syntax highlighting mode to MODE you have to type in VIM's command line: | |
| :set syntax=MODE | |
| It is very usefull when your file does not have standard extension or you are editting file with two languages in it, eg. AWK commands in a BASH script. | |
| You can set AWK mode :set syntax=awk |
fs refers to any file system, it could be local or HDFS but dfs refers to only HDFS file system.
You can see definitions of the two commands (hadoop fs & hadoop dfs) in $HADOOP_HOME/bin/hadoop
@A - @B
my @A = qw(1 2 3 4 5 6 7 8 9);
my @B = qw(3 5 9);
my %cnt = ();
map { $cnt{$_}-- } @B;SELECT MAX(counted) FROM
(
SELECT COUNT(*) AS counted
FROM table_actions
WHERE status = "good"