Skip to content

Instantly share code, notes, and snippets.

View marbetschar's full-sized avatar
💚
Productivity and XR for Linux

Marco Betschart marbetschar

💚
Productivity and XR for Linux
View GitHub Profile
@marbetschar
marbetschar / 201001 - How to avoid time offsets caused by hibernation.md
Last active October 1, 2020 16:57
Vala: How to avoid time offsets caused by hibernation

Vala: How to avoid time offsets caused by hibernation

Use the prepare_for_sleep signal to calculate the time between suspend and resume.

Credits to @vjr for this tip!

How to run this code

  1. Install Vala Tester from elementary AppCenter
  2. Copy & paste all of the below code snippets in Vala Tester's code view
@marbetschar
marbetschar / README.md
Last active February 4, 2024 06:32
VCForPython27.msi