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 / README.md
Last active October 11, 2024 09:50
VCForPython27.msi
@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