Skip to content

Instantly share code, notes, and snippets.

View fabiovila's full-sized avatar

Fabio fabiovila

View GitHub Profile
@linchpinstudios
linchpinstudios / fabric.arrow.js
Last active December 25, 2023 18:27
Fabric JS Arrow
fabric.Arrow = fabric.util.createClass(fabric.Line, {
type: 'Arrow',
initialize: function(element, options) {
options || (options = {});
this.callSuper('initialize', element, options);
},
toObject: function() {
@dogukancagatay
dogukancagatay / Makefile
Last active September 21, 2022 16:03
List OpenCL devices on the system using OpenCL C++ Wrapper.
UNAME_S := $(shell uname -s)
# -std=c++11 -Wall -march=native
ifeq ($(UNAME_S),Linux)
CXX=clang++
CPPFLAGS=-O3
LDFLAGS=-O3
LDLIBS=-lOpenCL
endif
ifeq ($(UNAME_S),Darwin)