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 | |
import sys | |
import re | |
class Node: | |
def __init__ (self, value): | |
self.value = value | |
self.next = None |
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 python | |
''' example of a visitor pattern ''' | |
import os | |
def printer (dir, file): | |
print(dir + os.path.sep + file) | |
def vwalk (path, visit): |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use diagnostics; | |
use Data::Dumper; | |
sub takeshash (\%) { |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use constant SYM => qw(rock scissors paper); | |
my $msg = "Enter 0 for rock, 1 for scissors, 2 for paper, or enter 'quit' to exit\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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use FindBin qw($RealBin); | |
use lib $RealBin; | |
use trivial; | |
my $obj1 = new trivial; |
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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
=pod | |
=head1 Tutorial 2: Question 2 |
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
diff --git a/dwm.c b/dwm.c | |
index 450e420..7978a1f 100644 | |
--- a/dwm.c | |
+++ b/dwm.c | |
@@ -89,6 +89,7 @@ struct Client { | |
char name[256]; | |
float mina, maxa; | |
int x, y, w, h; | |
+ int sfx, sfy, sfw, sfh; /* stored float geometry, used on mode revert */ | |
int oldx, oldy, oldw, oldh; |
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
diff --git a/runorraise.c b/runorraise.c | |
new file mode 100644 | |
index 0000000..5494aaa | |
--- /dev/null | |
+++ b/runorraise.c | |
@@ -0,0 +1,52 @@ | |
+typedef struct { | |
+ char *class; | |
+ char *name; | |
+ char *spawncmd[]; |
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
diff --git a/config.def.h b/config.def.h | |
index 7054c06..859bdcf 100644 | |
--- a/config.def.h | |
+++ b/config.def.h | |
@@ -24,9 +24,9 @@ static const Rule rules[] = { | |
* WM_CLASS(STRING) = instance, class | |
* WM_NAME(STRING) = title | |
*/ | |
- /* class instance title tags mask isfloating monitor */ | |
- { "Gimp", NULL, NULL, 0, 1, -1 }, |
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
diff --git a/config.h b/config.h | |
index 7054c06..9199a1f 100644 | |
--- a/config.h | |
+++ b/config.h | |
@@ -5,12 +5,13 @@ static const char *fonts[] = { | |
"monospace:size=10" | |
}; | |
static const char dmenufont[] = "monospace:size=10"; | |
-static const char normbordercolor[] = "#444444"; | |
-static const char normbgcolor[] = "#222222"; |
NewerOlder