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
class A(): | |
def do_stuff(self): | |
print("done stuff") | |
def print(self, to_print): | |
print(to_print) | |
class B(): | |
def __init__(self): | |
self.a = A |
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
#include <iostream> | |
#include <tuple> | |
using namespace std; | |
tuple<int, float, string> foo() | |
{ | |
return {128, 3.142, "Hello"}; | |
} |
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
VSCode debugging codes from imported modules: https://stackoverflow.com/questions/53943164/step-debugging-imported-modules-in-python-with-visual-studio-code |
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
cmake -D CMAKE_BUILD_TYPE=Release \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D OPENCV_EXTRA_MODULES_PATH=/home/nvidia/repos/opencv_contrib/modules/ \ | |
-D WITH_CUDA=ON \ | |
-D WITH_CUDNN=ON \ | |
-D OPENCV_DNN_CUDA=ON \ | |
.. |
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
#!/bin/bash | |
# License: MIT. See license file in root directory | |
# Copyright(c) JetsonHacks (2017-2018) | |
OPENCV_VERSION=3.4.1 | |
# Jetson TX2 | |
ARCH_BIN=6.2 | |
# Jetson TX1 | |
# ARCH_BIN=5.3 | |
INSTALL_DIR=/usr/local |
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
// | |
// main.cpp | |
// Testing Various Things | |
// | |
// Created by Cedric Leblond Menard on 2019-03-05. | |
// Copyright © 2019 CLM. All rights reserved. | |
// | |
#include <iostream> | |
#include <vector> |
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
template<typename T, unsigned int S> | |
constexpr unsigned int array_size(T(&v)[S]) { | |
return S; | |
} |
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
#pragma once | |
#include <vector> | |
#include <memory> | |
class BaseWidget; | |
typedef std::shared_ptr<BaseWidget> Base_Widget_Ptr; | |
class BaseWidget { | |
std::vector<Base_Widget_Ptr> childs_; |
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
# Prerequisites | |
*.d | |
# Compiled Object files | |
*.slo | |
*.lo | |
*.o | |
*.obj | |
# Precompiled Headers |
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
// | |
// Created by cedric on 12/02/18. | |
// Based off Stroustrup wrapper pattern : http://www.stroustrup.com/wrapper.pdf | |
// | |
#ifndef LOCKWRAP_H | |
#define LOCKWRAP_H | |
#include <memory> | |
#include <mutex> |
NewerOlder