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
// Based on [1] Book by Anthony A. Williams C++ Concurrency in Action. | |
/******************************************************************************* | |
* MIT License | |
* | |
* Copyright (c) 2018 Toni Rosinol | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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 | |
import signal | |
import sys | |
import os | |
import subprocess | |
import argparse | |
# Group of Different functions for different styles | |
if sys.platform.lower() == "win32": |
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 | |
import sys | |
import os | |
import shutil | |
import subprocess | |
import argparse | |
# Group of Different functions for different styles | |
if sys.platform.lower() == "win32": |
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
/* Usage: | |
* std::ifstream file("plop.csv"); | |
* for(CSVIterator loop(file); loop != CSVIterator(); ++loop) | |
* { | |
* std::cout << "4th Element(" << (*loop)[3] << ")\n"; | |
* } | |
*/ | |
class CSVIterator { | |
private: | |
class CSVRow { |
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
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("echo") | |
args = parser.parse_args() | |
print args.echo |
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 xml.etree.ElementTree as ET | |
from lxml import html | |
import requests | |
DIRECTORY='/home/tonirv/Downloads/SpringerBooks/' | |
tree = ET.parse('Springer_Ebooks.xml') | |
root = tree.getroot() |
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 os | |
import errno | |
import gdown | |
ids = {"apartment_scene": | |
{ | |
"uHumans2_apartment_s1_00h.bag": '1kU_drpyG7glQ8pJyeztpiy214WbBEtbM', | |
"uHumans2_apartment_s1_01h.bag": '1jp7HrRsfGbmC-z757wwXDEpgNPHw0SbK', |
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 os | |
import errno | |
ids = {"apartment_scene": | |
["uHumans2_apartment_s1_00h.bag", | |
"uHumans2_apartment_s1_01h.bag", | |
"uHumans2_apartment_s1_02h.bag" | |
], |