Skip to content

Instantly share code, notes, and snippets.

View rajanmaghera's full-sized avatar
💻
Making computers go beep beep boop

Rajan Maghera rajanmaghera

💻
Making computers go beep beep boop
View GitHub Profile
@Icohedron
Icohedron / shell.nix
Created January 26, 2025 08:34
shell.nix for building LLVM with clang, lld, and ccache
with import <nixpkgs> {};
# Use magic incantation to enable native compilation with clang & lld
mkShell.override { stdenv = overrideCC llvmPackages.stdenv (llvmPackages.stdenv.cc.override { inherit (llvmPackages) bintools; }); } {
name = "llvm-env";
buildInputs = [
python3
ninja
ccache
cmake
zlib
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@wojteklu
wojteklu / clean_code.md
Last active May 7, 2026 12:10
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@maximilian-lindsey
maximilian-lindsey / express_in_electron.md
Last active April 29, 2026 00:48
How to run Express inside an Electron app

How to run Express inside an Electron app

You can run your Express app very easily inside your Electron app.

All you need to do is to:

  • place all the files of your Express app inside a new app folder in your_electron_app\resources\app
  • reconfigure the app.js file
  • refactor some relative pathes in your Express app
@ffevotte
ffevotte / clocktable-by-tag.el
Created July 1, 2013 07:53
Emacs org-mode dynamic block similar to clocktable, but grouped by tag See: http://stackoverflow.com/q/17353591/1225607
(defun clocktable-by-tag/shift-cell (n)
(let ((str ""))
(dotimes (i n)
(setq str (concat str "| ")))
str))
(defun clocktable-by-tag/insert-tag (params)
(let ((tag (plist-get params :tags)))
(insert "|--\n")
(insert (format "| %s | *Tag time* |\n" tag))
@takumikinjo
takumikinjo / .gitignore
Created August 5, 2010 13:56
HTML5 Presentation export for Org-mode
README.html