Skip to content

Instantly share code, notes, and snippets.

View bert's full-sized avatar
🎯
Focusing

Bert Timmerman bert

🎯
Focusing
View GitHub Profile
@bert
bert / Makefile
Created October 13, 2021 20:51
GTK4 example
CFLAGS = -Wall -g `pkg-config --cflags gtk4`
LDFLAGS = `pkg-config --libs gtk4`
all: main.c
$(CC) -o main main.c $(CFLAGS) $(LDFLAGS)
clean:
rm -f *~
rm -f *.o
rm -f main
@bert
bert / Makefile
Last active October 16, 2021 10:28
GTK3 Tree View Tutorial
CFLAGS = -Wall -g `pkg-config --cflags gtk+-3.0`
LDFLAGS = `pkg-config --libs gtk+-3.0`
all: main.c
$(CC) -o main main.c $(CFLAGS) $(LDFLAGS)
clean:
rm -f *~
rm -f *.o
rm -f main
@bert
bert / FileLogger.pm
Last active January 2, 2020 18:09
Perl_FileLogger_example_module
package FileLogger;
# FileLogger.pm
# Retrieved from: https://www.perltutorial.org/perl-module/
# Example for using modules in perl.
use strict;
use warnings;
my $LEVEL = 1; # default log level
@bert
bert / fusion_pcb_specification.md
Last active November 10, 2019 13:08
Fusion PCB Specification

Fusion PCB Specification

PCB Gerber

The Gerber format is an open 2D binary vector image file format. It is the standard file used by printed circuit board (PCB) industry software to describe the printed circuit board images: copper layers, solder mask, legend, etc.

Gerber files should be inside a .rar or.zip archive with standard file extensions:

@bert
bert / inline.c
Last active November 8, 2019 08:03
C inline directive
/*
Forcing inlining is useful if:
- inline is not respected by the compiler (ignored by compiler cost/benefit analyzer), and
- inlining results in a necessary performance boost
For code portability, the following preprocessor directives may be used:
*/
#ifdef _MSC_VER
#define forceinline __forceinline
@bert
bert / realistic_project_expectations.md
Last active June 13, 2021 16:53
5 Tips for Setting Realistic Project Expectations

5 Tips for Setting Realistic Project Expectations

Retrieved from: https://www.designnews.com/content/5-tips-setting-realistic-project-expectations/97311123157218

by: Jacob Beningo Embedded Systems Conference - MinneapolisIoT, Consumer Electronics, Electronics & Test, Design Hardware & Software August 01, 2017

Quite a few companies and teams that I encounter have an expectations problem. They have unrealistic expectations for the time and effort that it takes to develop an embedded system. On the spectrum between pessimistic and optimistic, they typically blow past optimistic into the fantasy land zone.

@bert
bert / project_fatigue.md
Last active October 2, 2019 07:11
Project fatigue

The Top 5 Causes for Project Fatigue

Retrieved from: https://www.designnews.com/electronics-test/top-5-causes-project-fatigue/214387605661501

By: Jacob Beningo in Electronics & Test, Automation & Motion Control on September 12, 2019

There are numerous causes for projects to break down. Here are the five most common.

Project fatigue can have a crippling effect on the project development cycle. A project starts and the development team is energized and dive in with positive fervor,

@bert
bert / Makefile
Last active October 16, 2021 10:09
GTK3 Cairo Animation example using threads
CFLAGS = -Wall -g `pkg-config --cflags gtk+-3.0` -lm -lpthread
LDFLAGS = `pkg-config --libs gtk+-3.0`
all: main.c
$(CC) -o main main.c $(CFLAGS) $(LDFLAGS)
clean:
rm -f *~
rm -f *.o
rm -f main
@bert
bert / README.md
Last active February 1, 2025 22:42
GTK3 Cairo Animation Example

Uli Schlachter psychon at znc.in

Fri Oct 28 16:08:10 UTC 2016

Previous message: cairo Cairo + GTK animation - high Xorg load

Next message: cairo Cairo + GTK animation - high Xorg load

Messages sorted by: date

@bert
bert / .gitignore
Last active January 18, 2019 20:02
805x_Multiple_source_files_example
*~
*.bak
*.asm
*.ihx
*.lnk
*.lst
*.map
*.mem
*.rel
*.rst