Skip to content

Instantly share code, notes, and snippets.

@SpikedPaladin
SpikedPaladin / build.md
Last active March 19, 2025 07:23
GTK4/Adwaita/Vala/Blueprint on Windows

Info

This guide will show how to build and run this project on Windows system using MSYS2

Installing MSYS2

  • Download and install MSYS2
  • Navigate to C:\msys64 and open mingw64.exe
  • Update packages pacman -Syyu
  • Install compilers and libraries
@dvzubarev
dvzubarev / autoload.el
Last active April 18, 2025 07:21
python-ts-mode extended fontification
;;; lang/my-python/temp-conf/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun my-py-hl-filter-self (node)
(not (equal (treesit-node-text node) "self")))
;;;###autoload
(defun my-python-update-highlights ()
(setq python--treesit-settings
(append python--treesit-settings
@harrifeng
harrifeng / redhat-compile-emacs.sh
Last active April 1, 2024 13:15
Compile emacs on redhat and centos
yum -y groupinstall "Development Tools"
yum -y install gtk+-devel gtk2-devel
yum -y install libXpm-devel
yum -y install libpng-devel
yum -y install giflib-devel
@KoGor
KoGor / README.md
Last active November 7, 2023 19:30
Earth globe

Интерактивный глобус с возможностью вращения мышкой и центрированием на выбранную страну. Подробнее о создании можно почитать на Хабрахабре.

This projected is licensed under the terms of the MIT license.

@jareware
jareware / SCSS.md
Last active April 11, 2025 18:25
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

@jboner
jboner / latency.txt
Last active May 10, 2025 11:02
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD