Skip to content

Instantly share code, notes, and snippets.

View mbogochow's full-sized avatar

Mike Bogochow mbogochow

View GitHub Profile
@mbogochow
mbogochow / mover.go
Created June 21, 2018 14:08
Move images from sub-directories to base
package main
import (
"fmt"
"errors"
"io/ioutil"
"path/filepath"
"path"
"os"
"log"
@mbogochow
mbogochow / Makefile
Created December 6, 2017 16:17
dlopen demo
CC=gcc -std=c99
LD=$(CC)
CFLAGS=-Wall -Wextra -Wfloat-equal -Wundef -Wcast-align -Wpointer-arith -Wcast-qual -g -O
# -ldl is necessary for dlopen to work and it ensures that the library is dynamically loaded
# and not loaded automatically by the application
# -Wl,-R. tells the application to look for libraries in the current directory during runtime
LFLAGS=-ldl -Wl,-R.
DEPS=library.h
LIB_NAME=liblib.so
@mbogochow
mbogochow / Makefile
Last active December 6, 2017 15:35
SWIG Proxy Class Array Parameter
CC=g++
LD=$(CC)
JC=javac
DEPS=demo.h
OBJ=demo.o demo_wrap.o
LIB_OUT=libdemo.so
JAVA_HOME?=$(shell readlink -f /usr/bin/javac | sed "s:bin/javac::")
IFLAGS=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux