Skip to content

Instantly share code, notes, and snippets.

sebbu2

Block or report user

Report or block sebbu2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View fast_image_size_reader.cpp
#include <vector>
#include <cerrno>
#include <climits>
#include "fast_image_size_reader.hpp"
#include "crc32.hpp"
enum file_type get_file_type(const char* filename) {
assert(strcmp(filename,"")!=0);
enum file_type res=UNKNOWN;
FILE* fp=fopen(filename, "rb");
@sebbu2
sebbu2 / g++_stl_cleaner.pl
Created Jun 24, 2011
Clean the output of g++ with STL errors
View g++_stl_cleaner.pl
#!/usr/bin/perl -w
use strict;
use warnings;
while (<>)
{
$\="\n";
s/^\s+//;
s/\s+$//;
You can’t perform that action at this time.