Skip to content

Instantly share code, notes, and snippets.

View dimitre's full-sized avatar
💭
💾

Dimitre dimitre

💭
💾
View GitHub Profile
@dimitre
dimitre / chalet.json
Created March 30, 2023 15:57
OFW Chalet Project
{
"name": "OF",
"version": "0.3.2",
"variables" : {
"path" : ".",
"addons" : "ofxMicroUI,ofxTools", //ofxPoco ofxAssimpModelLoader
"ofPath" : "/Volumes/tool/ofw"
},
"externalDependencies": {
"OFLib" : {
@dimitre
dimitre / chalet.json
Last active March 30, 2023 15:56
OFLib Chalet
{
"name": "OFLib",
"version": "0.2.0",
"abstracts:*": {
"language": "C++",
"language[toolchain:apple-llvm]": "Objective-C++",
"settings:Cxx": {
"cppStandard": "c++17",
"warningsPreset": "minimal",
"runtimeTypeInformation": true,
@dimitre
dimitre / cnaes.tsv
Last active March 27, 2023 14:43
CNAES
01015 Execução, por administração, empreitada ou subempreitada, de obra hidráulica e semelhantes.
01023 Execução de obras de constr. civil, elétrica ou semelhantes, e respec. serv. aux. ou complement.
01031 Demolição.
01058 Reparação, conservação e reforma de edifícios, estradas, pontes, portos e congêneres.
01090 Escoramento, contenção de encostas e serviços congêneres.
01104 Carpintaria e serralheria.
01210 Paisagismo.
01228 Colocação de tapetes, cortinas, revestimentos, vidros, divisórias, placas de gesso e congêneres.
01236 Recuperação, raspagem, polimento e lustração de pisos e congêneres.
01244 Calafetação.
@dimitre
dimitre / chalet.json
Created March 25, 2023 15:46
Chalet OF addons
{
"name": "open-frameworks",
"version": "1.0.0",
"variables" : {
"name" : "3dRoom2023",
"path" : "apps/WerkApps/3dRoom2023",
"addons" : "ofxMicroUI,ofxTools,ofxSyphon,ofxNetwork,ofxAssimpModelLoader"
},
"abstracts:*": {
"language": "C++",
@dimitre
dimitre / chalet.json
Created January 31, 2023 00:31
build openframeworks example with Chalet
{
"name": "open-frameworks",
"version": "1.0.0",
"abstracts:*": {
"language": "C++",
"language[toolchain:apple-llvm]": "Objective-C++",
"settings:Cxx": {
"cppStandard": "c++17",
"warningsPreset": "minimal",
"runtimeTypeInformation": true,
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
E4B69E200A3A1BDC003C02F2 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E4B69E1D0A3A1BDC003C02F2 /* main.cpp */; };
@dimitre
dimitre / png2icns
Created May 26, 2022 22:12 — forked from djhaskin987/png2icns
Convert PNG file to ICNS file
# Stolen from here: http://stackoverflow.com/a/20703594/850326
#!/bin/sh
export POSIXLY_CORRECT=1
if [ -z "${1}" -o -z "${2}" ]
then
echo "Usage: ${0} <name> <original-png-location>"
fi
name=$1
@dimitre
dimitre / pixelHandler.h
Created February 3, 2022 02:42
PixelHandler : abstraction layer for addressable LEDs (FastLED & Adafruit_NeoPixel)
// #define USEFASTLED 1
#define NUM_LEDS 124
#ifdef USEFASTLED
#define FASTLED_INTERRUPT_RETRY_COUNT 0
#define FASTLED_ALLOW_INTERRUPTS 0
#define INTERRUPT_THRESHOLD 1
#include "FastLED.h"
#else
#include <Adafruit_NeoPixel.h>
@dimitre
dimitre / setup_opencv_macos.sh
Created October 26, 2020 14:54 — forked from AhiyaHiya/setup_opencv_macos.sh
Download and build OpenCV framework for macOS
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
setup_opencv()
{
printf "*********************************\n${FUNCNAME[0]}\n"
local readonly PARENT_FOLDER=${1:-third_party}
@dimitre
dimitre / main.cpp
Created August 3, 2019 02:27
openFrameworks drag and drop folder to generate project
#include "ofMain.h"
string pgPath = "../../../apps/projectGenerator/commandLine/bin/projectGenerator";
string command = "";
class ofApp : public ofBaseApp{
public:
void setup() {
ofSetWindowPosition(60, 60);