A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()
):
- Headers
- Links
- Bold
- Emphasis
- Deletions
qwerty_to_colemak = { | |
'Q': 'Q', | |
'W': 'W', | |
'E': 'F', | |
'R': 'P', | |
'T': 'G', | |
'Y': 'J', | |
'U': 'L', | |
'I': 'U', | |
'O': 'Y', |
;; minimal version of my Emacs setup which approximates the effective points per inch on your screen | |
;; and then selects your default font pts based on that | |
;; Also works on wayland / WSLg because it parses out physical dims from weston.log (necessary in 2023-01) | |
;; LIMITATION: Will probably not work on multi-monitor setups. Exercise for the reader! | |
;; BSD 3-clause copyright Charl P. Botha <info@charlbotha.com> | |
(defun get-mon-attr (which) | |
(cdr (assoc which (car (display-monitor-attributes-list))))) | |
(defun get-monitor-width-mm () |
#!/usr/bin/env bash | |
# Allows you to test the create-project process using your local | |
# checked-out copy of the skeleton as the source. You MUST commit the | |
# changes you want to test to a git branch! You MUST name that branch | |
# as the first argument and the destination path to set up the fresh | |
# copy into as the second. | |
# | |
# Usage: | |
# - Place this script in your package's root directory and make it executable. | |
# - Set the PACKAGE_NAME variable below to match your composer.json's `name`. |
#include <SFML/Graphics.hpp> | |
#include <Thor/Animations.hpp> | |
#include <Thor/Input.hpp> | |
#include <SFGUI/SFGUI.hpp> | |
#include <SFGUI/Widgets.hpp> | |
template <class Item> | |
void SetPosition(Item&, const sf::Vector2f&); | |
template <> |
project ( lua C ) | |
cmake_minimum_required ( VERSION 2.8 ) | |
include_directories ( src ${CMAKE_CURRENT_BINARY_DIR} ) | |
set ( SRC_CORE src/lapi.c src/lcode.c src/lctype.c src/ldebug.c src/ldo.c src/ldump.c src/lfunc.c src/lgc.c src/llex.c | |
src/lmem.c src/lobject.c src/lopcodes.c src/lparser.c src/lstate.c src/lstring.c src/ltable.c | |
src/ltm.c src/lundump.c src/lvm.c src/lzio.c ) | |
set ( SRC_LIB src/lauxlib.c src/lbaselib.c src/lbitlib.c src/lcorolib.c src/ldblib.c src/liolib.c | |
src/lmathlib.c src/loslib.c src/lstrlib.c src/ltablib.c src/lutf8lib.c src/loadlib.c src/linit.c ) |
# This gist is transcribed from a talk by Sean Zicari | |
# Talk: Use Curses, don't swear https://www.youtube.com/watch?v=eN1eZtjLEnU | |
# | |
# I haven't written the function which he used to fetch quotes from the web | |
# This only presents the barebones structure of his application | |
# | |
# If debugging a curses application messes up your terminal, type `tset` to reset terminal | |
import curses |
.MODEL large | |
.DATA | |
yincrement dd 0 | |
.DATA? | |
wwidth dw ? | |
lightindex dd ? | |
rownum dw ? | |
colnum dw ? | |
xincrement dd ? |