This file contains hidden or 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 jaylib) | |
(def width 1920) | |
(def height 1280) | |
(def cells 255) | |
(def rule-30 | |
{[0 0 1] 1 | |
[0 1 0] 1 |
This file contains hidden or 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
# John Conway's Game of Life | |
(def- window | |
(seq [x :range [-1 2] | |
y :range [-1 2] | |
:when (not (and (zero? x) (zero? y)))] | |
[x y])) | |
(defn- neighbors | |
[[x y]] |
This file contains hidden or 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
vim.g.mapleader = " " | |
vim.g.maplocalleader = " " | |
-- Lazy.nvim setup | |
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
if not vim.loop.fs_stat(lazypath) then | |
vim.fn.system({ | |
"git", | |
"clone", | |
"--filter=blob:none", |
This file contains hidden or 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 shriek :as http) | |
(import json) | |
(import cmd) | |
(defn request [method url &opt copts mimes] | |
(default copts {}) | |
(def [bb hb] [@"" @""]) | |
(def opts (merge @{:method method | |
:url url | |
:write-function (fn [buf] (buffer/push bb buf)) |
This file contains hidden or 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
; Tested and working using AutoHotkey v1.1.33.09 | |
awaitKeypress(){ | |
ih := InputHook() | |
ih.KeyOpt("{All}", "ES") ; End and Suppress | |
; Exclude the modifiers | |
ih.KeyOpt("{LCtrl}{RCtrl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}", "-ES") | |
ih.Start() | |
ErrorLevel := ih.Wait() ; Store EndReason in ErrorLevel | |
result := ih.EndMods . ih.EndKey |
This file contains hidden or 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
// ==UserScript== | |
// @name Read Scribd Aloud | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description When reading a Scribd book, press 'l' to start reading and 'x' to stop. | |
// @author Caleb Figgers | |
// @match https://www.scribd.com/read/* | |
// @icon https://s-f.scribdassets.com/favicon.ico?02e8b6ef6?v=4 | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
- Bilateral Upper & lower limb weakness (Look at 5 signs: wasting, tone, reflexes, clonus, Babinski) | |
- **Motor neurone?** | |
- UMN signs | |
- LMN signs | |
- **Pattern of weakness?** | |
- Proximal weakness | |
- **Sensation?** | |
- Sensation abnormal | |
- Beware cx myelopathy- "glove & socks" numbness | |
- GBS/CIDP |
This file contains hidden or 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
; Change what's before the double colons to change the keyboard shortcut | |
; Currently set to Ctrl+j | |
^j:: | |
oldclip := Clipboard | |
SendInput ^c | |
Sleep 150 | |
n = | |
Clipboard := StrReplace(StrReplace(Clipboard, "`n" , "", n),"- " , "") | |
SendInput {Right 3} | |
n := n - 1 |