User scripts:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Package: lsp-mode - language server protocol | |
(use-package lsp-mode | |
:straight t | |
:diminish lsp-mode ;; I can see if it is active in the menu! | |
:commands (lsp lsp-deferred) | |
:hook ((c-mode . lsp-deferred) | |
(c++-mode . lsp-deferred)) | |
:bind (:map lsp-mode-map | |
("C-c o" . lsp-describe-thing-at-point) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WAYLAND_PROTOCOLS=/usr/share/wayland-protocols | |
# wayland-scanner is a tool which generates C headers and rigging for Wayland | |
# protocols, which are specified in XML. wlroots requires you to rig these up | |
# to your build system yourself and provide them in the include path. | |
xdg-shell-protocol.h: | |
wayland-scanner server-header \ | |
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@ | |
xdg-shell-protocol.c: xdg-shell-protocol.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPC | |
SPC: find file | |
, switch buffer | |
. browse files | |
: MX | |
; EX | |
< switch buffer | |
` eval | |
u universal arg | |
x pop up scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
from random import randint, random | |
intensity = 10 | |
glitch_row_size = 20 | |
img = cv2.imread('/tmp/screenshot.png') | |
org_rows, org_cols, cnls = img.shape |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* L-system OpenSCAD library by Hans Loeblich | |
Version 2.0 | |
- Now supports "M" move without draw | |
- Also support position save "[" and restore "]" | |
- Core functions have been completely rewritten and are about twice as fast using half the memory from before. | |
- Rules now take the form of a single string per rule: "X=ABC" | |
- Added new examples to demonstrate added features | |
This library is for creating L-systems, aka Lindenmayer System, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
owner: 'bcoe', | |
repo: 'top-npm-users', | |
description: ':star: Generate a list of top npm users by based on monthly downloads.', | |
language: 'JavaScript', | |
isFork: false, | |
stargazers: 27, | |
watchers: 27 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lxml | |
import urllib | |
import requests | |
import tabulate | |
import pandas as pd | |
# don't ask my why this is distributed via CSV only, not via REST API | |
csv_params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Minimalistic implementation of the XModem/YModem protocol suite, including | |
* a compact version of an CRC16 algorithm. The code is just enough to upload | |
* an image to an MCU that bootstraps itself over an UART. | |
* | |
* Copyright (c) 2014 Daniel Mack <github@zonque.org> | |
* | |
* License: MIT | |
*/ |
NewerOlder