Skip to content

Instantly share code, notes, and snippets.

View BalazsGyarmati's full-sized avatar

BalazsGyarmati

  • Budapest
  • 07:17 (UTC +02:00)
View GitHub Profile
@BalazsGyarmati
BalazsGyarmati / bytes.py
Created September 27, 2023 07:08 — forked from leepro/bytes.py
Human readable bytes conversions
## {{{ http://code.activestate.com/recipes/578019/ (r15)
#!/usr/bin/env python
"""
Bytes-to-human / human-to-bytes converter.
Based on: http://goo.gl/kTQMs
Working with Python 2.x and 3.x.
Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com>
License: MIT
@BalazsGyarmati
BalazsGyarmati / scroll_to_plusminus_macos.swift
Last active April 27, 2024 13:58
Use cmd + scroll wheel to zoom inside apps in MacOS
//
// main.swift
// scroll_to_plusminus
//
// Created by uniqueidentifier on 2021-01-08.
// Modified by alex on 2022-07-08 to use modifiers for scrolling
// Modified by BalazsGyarmati on 2023-01-04 to use command instead of control + respect any keyboard layout for + and -
//
import Foundation