Skip to content

Instantly share code, notes, and snippets.

View filcuc's full-sized avatar

Filippo Cucchetto filcuc

  • ASEM S.r.l
  • Vicenza - Italy
View GitHub Profile
#include <QCoreApplication>
#include <QDebug>
#include <QFileSystemWatcher>
#include <QThread>
#include <QTimer>
#include <cstdlib>
#include <QProcess>
int main(int argc, char *argv[])
{
#!/usr/bin/python
import argparse
import os
import shutil
import sys
def parse_arguments():
parser = argparse.ArgumentParser(description='Process a directory for images')
@filcuc
filcuc / main.rs
Created May 14, 2017 20:14
Example of polymorphism with Iterators
use std::fs::File;
use std::io::BufReader;
use std::io::BufRead;
use std::io::Lines;
struct FileLinesIteratorWrapper {
iterator: Lines<BufReader<File>>
}
impl Iterator for FileLinesIteratorWrapper {