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
#SingleInstance force | |
digraph_mode := false | |
#<:: | |
digraph_mode := !digraph_mode | |
return | |
#If digraph_mode = true | |
:*?C:-N:: |
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 config.mk | |
SITES=$(sort $(notdir $(basename $(wildcard $(SITESPATH)/*.*.inc)))) | |
MKDFILES=$(sort $(basename $(wildcard $(SITESPATH)/*.*.md))) | |
LANG=$(subst .,,$(suffix $(SITES))) | |
all: | |
@$(PRECMD) | |
@make -s markdown | |
@make -s html |
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
# define your outputs | |
output = tex1.ff tex2.ff tex3.ff | |
# include ff.mk only if it exists! | |
ifneq (,$(wildcard ff.mk)) | |
include ff.mk | |
endif | |
# make a target for your outputs | |
output_files: $(output) |
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 <string.h> | |
#include <stdlib.h> | |
#define buffer(type) \ | |
typedef struct type##_buf { \ | |
size_t size; \ | |
type *buffer; \ | |
} type##_buf; \ | |
void _resize_buffer_##type(struct type##_buf *buf) { \ | |
type *newbuf = malloc((buf->size++)*sizeof(type)); \ |
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
#!/bin/bash | |
mkdir -p ~/scrot | |
if [ -z "$1" ]; then | |
scrot -s -e 'mv $f ~/scrot/$n ; feh ~/scrot/$n' | |
else | |
scrot -s ~/scrot/$1.png -e 'feh $f' | |
fi |