This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my @a = (1,2,3,4,5); | |
foreach my $x (@a){ | |
print "first FOREACH: $x and the array is [@a] \n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" keyword 'grade' to enter in to grading mode: | |
:command -nargs=0 grade :js content.document.getElementById('yui-gen6').click() | |
" 'prev' keyword to access the previous assignement: | |
:command -nargs=0 prev :js content.document.getElementById('menuitems').getElementsByTagName('li'[content.document.getElementById('menuitems').getElementsByTagName('li').length - 2].getElementsByTagName('a')[0].click() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
f = open('somefile.txt','a+') | |
while True: | |
text = input('Say something silly ') | |
if text: | |
f.write(text) | |
print('CONTENT:',f.read()) | |
else: | |
f.close() | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
400 -| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
300 -| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
| *************** *** *** *** *** *** *** *** *** *** *** *** *** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(2/2) checking for file conflicts [#######################################################] 100% | |
error: failed to commit transaction (conflicting files) | |
slim: /usr/bin/slimlock exists in filesystem | |
slim: /usr/share/man/man1/slimlock.1.gz exists in filesystem | |
Errors occurred, no packages were upgraded. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Length Count | |
1 16 | |
2 267 | |
3 267 | |
4 169 | |
5 140 | |
6 112 | |
7 99 | |
8 68 | |
9 61 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 16 | |
2 267 | |
3 267 | |
4 169 | |
5 140 | |
6 112 | |
7 99 | |
8 68 | |
9 61 | |
10 56 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
print qq{Euclid's Algorithm 1.1E\n\n}; | |
sub littleEuclid { | |
my ($m,$n) = @_; | |
my $remainder = $m % $n; | |
my $reply = $remainder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=head2 set_mfields | |
Wrapper around set_feilds to allow for a more flexible syntax. | |
$mech->set_mfields( $name => [ foo => 2, bar => 3] ); | |
$mech->set_mfields( $name => [ foo => [2,3]] ); | |
=cut | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Length Count | |
1 16 | |
2 267 | |
3 267 | |
4 169 | |
5 140 | |
6 112 |