Skip to content

Instantly share code, notes, and snippets.

View dimitre's full-sized avatar
💭
💾

Dimitre dimitre

💭
💾
View GitHub Profile
@dimitre
dimitre / digitalkarma.md
Last active July 14, 2018 00:00
Digital Karma License

You can try, experiment, use in mockups or personal projects, free of charge. Once it is used and approved in a commercial project or personal one that returns income, you should donate a small amount to the licensor. (1% suggested)

It is a practical way of saying thank you and Cosmos will provide you back.

Money is like blood, to be alive it has to circulate.

@dimitre
dimitre / genexamples.command
Created June 24, 2017 23:05
Command to generate XCODE examples for OpenFrameworks addons
#!/bin/bash
set -x
cd `dirname $0`
for d in */ ; do
echo "$d"
cd "$d"
/Volumes/ofw/of_v0.9.8_osx_release/apps/projectGenerator/commandLine/bin/projectGenerator -o"../../../" .
cd ..
@dimitre
dimitre / note_freq_440_432.csv
Last active December 13, 2021 06:56
CSV Table, Midi to Frequency, considering 440Hz and 432Hz tuning
21 A 0 27.5 27.00
22 A# 0 29.1353 28.61
23 B 0 30.8677 30.31
24 C 1 32.7032 32.11
25 C# 1 34.6479 34.02
26 D 1 36.7081 36.04
27 D# 1 38.8909 38.18
28 E 1 41.2035 40.45
29 F 1 43.6536 42.86
30 F# 1 46.2493 45.41
@dimitre
dimitre / Brew list
Created November 20, 2018 14:37
Brew stuff I use to install in my computer
brew cask list
0xed etcher meshlab soulseek transmission
appcleaner firefox midi-monitor stremio unpkg
blender handbrake plotdevice sublime-text vlc
disk-inventory-x inkscape sequel-pro torbrowser xquartz
brew list
apr httpd openssl
apr-util icu4c openssl@1.1
@dimitre
dimitre / crash_log.md
Last active December 5, 2018 16:52
como enviar crashtest para o dimitre

Quando der problema no software

O sistema macOS salva arquivos de texto com o relatorio dos erros. pra acessar este arquivo abra o aplicativo Console (visivel na busca do spotlight, ou Applications/Utilities/Console.app

na esquerda tem uma barra chamada User Reports, e ali uma lista de arquivos .crash

me envie os arquivos que tem a ver com o problema via email. ou se preferir copie e cole o conteudo num email.

Criar um usuario no computador como administrador.
login no usuario
baixar o software em http://dmtr.org/boticario2/
desabilitar screen saver
desabilitar energy saver
tirar o mission control -> displays have separate spaces
/*
Dimitre Lima 2019
Uncompressed tiff writer for openFrameworks
Only for RGB888 big Endian
*/
class tiffFastWriter {
public:
@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);
@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 / 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>