Skip to content

Instantly share code, notes, and snippets.

@kor01
kor01 / CMakeLists.txt
Last active September 7, 2018 12:03
[opengl hello world] openGL stuffs #openGL
# cmake for opengl projects
cmake_minimum_required(VERSION 3.12)
project(opengl_stuffs)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenGL)
find_package(GLUT)
find_package(GLEW)
@kor01
kor01 / cylinder.py
Created September 7, 2018 10:32
[vtk_python] vtk python tutorial #vtk #opengl
import vtk
# The colors module defines various useful colors.
from vtk.util.colors import tomato
cylinder = vtk.vtkCylinderSource()
# the side of the cylinder is made up with 100 edges polygon
cylinder.SetResolution(100)
@kor01
kor01 / Compiled Model & Estimator
Last active December 10, 2018 09:54
[Tensorflow 2.0] Development Guideline
Applicability:
1. model compilation requires implementation of compute output shape
2. model compilation requires homogeneous training data tensor shapes
3. model internal attributes is set by passing a defer tensor through model call
4. model compilation is more akin to tf graph mode