Skip to content

Instantly share code, notes, and snippets.

View AndreaCrotti's full-sized avatar

Andrea Crotti AndreaCrotti

View GitHub Profile
/* 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
//: 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:
#!/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))
#!/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))
#!/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))
#!/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))
#ifndef UTIL_H
#define UTIL_H
#ifndef INCLUDE_SERIAL_IMPLEMENTATION
#define INCLUDE_SERIAL_IMPLEMENTATION 1
#endif
#ifndef DYNAMIC_MEMORY
#define DYNAMIC_MEMORY 1
#endif
#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; \
// 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"
// 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"