This file contains hidden or 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
| /* python-setuid.c - Wrapper for execution of Python setuid scripts | |
| * Copyright (C) 2003 Domenico Andreoli | |
| * | |
| * python-setuid.c is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * python-setuid.c is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or 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
| //: C02:Date1.h | |
| // A first pass at Date.h. | |
| // definition of this kind of class | |
| #ifndef DATE1_H | |
| #define DATE1_H | |
| #include <string> | |
| class Date { | |
| public: | |
| // A struct to hold elapsed time: |
This file contains hidden or 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 | |
| """ | |
| Creates a nice timer, using nice colors and splitting the screen accordingly | |
| """ | |
| import time | |
| import sys | |
| import os | |
| COLORS = map(str, range(31,38)) |
This file contains hidden or 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 | |
| """ | |
| Creates a nice timer, using nice colors and splitting the screen accordingly | |
| """ | |
| import time | |
| import sys | |
| import os | |
| COLORS = map(str, range(31,38)) |
This file contains hidden or 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 | |
| """ | |
| Creates a nice timer, using nice colors and splitting the screen accordingly | |
| """ | |
| import time | |
| import sys | |
| import os | |
| COLORS = map(str, range(31,38)) |
This file contains hidden or 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 | |
| """ | |
| Creates a nice timer, using nice colors and splitting the screen accordingly | |
| """ | |
| import time | |
| import sys | |
| import os | |
| COLORS = map(str, range(31,38)) |
This file contains hidden or 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
| #ifndef UTIL_H | |
| #define UTIL_H | |
| #ifndef INCLUDE_SERIAL_IMPLEMENTATION | |
| #define INCLUDE_SERIAL_IMPLEMENTATION 1 | |
| #endif | |
| #ifndef DYNAMIC_MEMORY | |
| #define DYNAMIC_MEMORY 1 | |
| #endif |
This file contains hidden or 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
| #ifndef QUEUE_H | |
| #define QUEUE_H | |
| #include "util.h" | |
| #define DEFINE_QUEUE_ITEM(TYPE) \ | |
| class (QueueItem_##TYPE, \ | |
| TYPE content; \ | |
| QueueItem_##TYPE* prev; \ | |
| QueueItem_##TYPE* next; \ |
This file contains hidden or 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
| // see http://www.zlib.net/manual.html for more info | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| #include "../shared/structs.h" | |
| #include "zlib.h" | |
| #include "util.h" |
This file contains hidden or 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
| // see http://www.zlib.net/manual.html for more info | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| #include "../shared/structs.h" | |
| #include "zlib.h" | |
| #include "util.h" |