Skip to content

Instantly share code, notes, and snippets.

View ivanocj's full-sized avatar
🏠
Working from home

Ivan Costa ivanocj

🏠
Working from home
View GitHub Profile
@lkwatson
lkwatson / god_save_me.md
Last active August 21, 2019 01:47
Compiling OpenCV 4.1.0 on NVIDIA Jetson Nano

sudo vi /usr/local/cuda/include/cuda_gl_interop.h

# Comment the following lines, near the top
//#if defined(__arm__) || defined(__aarch64__)
//#ifndef GL_VERSION
//#error Please include the appropriate gl headers before including cuda_gl_interop.h
//#endif
//#else
 #include 
@chandu-io
chandu-io / SaveImageFromUrl.java
Last active July 6, 2018 09:35
java :: save image from url
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
public class SaveImageFromUrl {
public static void main(String[] args) throws Exception {
String imageUrl = "https://www.google.com/images/srpr/logo3w.png";