Skip to content

Instantly share code, notes, and snippets.

View not-in-stock's full-sized avatar
🎯
Focusing

Andrei Fëdorov not-in-stock

🎯
Focusing
  • Berlin, Germany
View GitHub Profile
@caksoylar
caksoylar / zen-display-improvements.md
Last active December 10, 2024 07:25
Corne-ish Zen display improvements

Display improvements for the Corne-ish Zen keyboard

This note details the changes made to the Zen and ZMK codebase to improve the experience of e-ink displays.

Getting the changes

You can test out below changes using your Zen config repo by modifying your config/west.yml file, following ZMK instructions:

manifest:
  remotes:
 - name: caksoylar
@yogthos
yogthos / core.cljs
Last active February 18, 2025 04:46
Gjs ClojureScript example
(ns gjs-example.core)
(defn main []
(set! (-> js/imports .-gi .-versions .-Gtk) "3.0")
(let [Gtk (doto (-> js/imports .-gi .-Gtk) (.init nil))
window (Gtk.Window.
(clj->js
{:type (-> Gtk .-WindowType .-TOPLEVEL)
:title "A default title"
:default_width 300
@0xjac
0xjac / private_fork.md
Last active July 18, 2025 20:50
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@nrtkbb
nrtkbb / moveNearestMesh.py
Last active July 6, 2016 21:12
[Maya] 選択したものをMeshの表面に吸着させるやつ(Meshは最後に選択する)
# -*- coding: utf-8 -*-
import pymel.core as pm
def divide_select_list(select_list):
movers = select_list[0:-1]
trans = select_list[-1]
mesh = trans.getShape()
if not type(mesh) == pm.nodetypes.Mesh:
raise Exception(u'Finally select the mesh.')
@joelittlejohn
joelittlejohn / find-unused-clj.sh
Last active June 3, 2025 13:36
Very quick and dirty command to find unused functions and vars in a Clojure project
#!/bin/bash
for f in $(egrep -o -R "defn?-? [^ ]*" * --include '*.clj' | cut -d \ -f 2 | sort | uniq); do
echo $f $(grep -R --include '*.clj' -- "$f" * | wc -l);
done | grep " 1$"