[BASH][1] script to build a [texture atlas][2] for small/medium web sites/games. Requires [ImageMagick][3].
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
qwerty_to_colemak = { | |
'Q': 'Q', | |
'W': 'W', | |
'E': 'F', | |
'R': 'P', | |
'T': 'G', | |
'Y': 'J', | |
'U': 'L', | |
'I': 'U', | |
'O': 'Y', |
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
;; 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 () |
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
#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 <> |
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
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 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
# 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 |
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
var reducePath = function (x, y, entryOffset, rangeOffset, entryRequiredWall, entryDisallowedWall) { | |
var rangeEntryRequiredDirections = [entryDisallowedWall, OppositeDirections[entryDisallowedWall]]; | |
var rangeEntryDisallowedDirections = [entryRequiredWall, OppositeDirections[entryRequiredWall]]; | |
var endDisallowedDirections = [OppositeDirections[entryRequiredWall], OppositeDirections[entryDisallowedWall]]; | |
var endRequiredDirections = [entryRequiredWall, entryDisallowedWall]; | |
var tile = tiles[x][y]; | |
var color = tile.color; | |
var entry = tiles[x+entryOffset[0]][y+entryOffset[1]]; |
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
<style> | |
.donate-button { | |
text-align: center; | |
} | |
.donate-button .bitcoin-address { | |
font-size: 1.5em; | |
} | |
</style> | |
<div class="donate-button"> |
Based on this blog.
This guide shows you how to setup emacs to render a README.md very similarly to how github will do it; except it also works offline. There are no dependencies that can't be easily installed via the package manager on ubuntu.
- Install emacs24, the markdown mode, and pandoc. You may need the packages
emacs
,emacs-goodies-el
, andpandoc
. - Get a style sheet that resembles the github style from this gist and store it. I put it in
~/emacs.d/github-pandoc.css
.
NewerOlder