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
/* | |
* csapp.h - prototypes and definitions for the CS:APP3e book | |
*/ | |
/* $begin csapp.h */ | |
#ifndef __CSAPP_H__ | |
#define __CSAPP_H__ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> |
Cursor movement
h - move left
j - move down
k - move up
l - move right
w - jump by start of words (punctuation considered words)
W - jump by words (spaces separate words)
e - jump to end of words (punctuation considered words)
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
/* | |
* csapp.c - Functions for the CS:APP3e book | |
* | |
* Updated 10/2014 droh: | |
* - Added safe_printf, anasync-signal-safe wrapper for printf | |
* | |
* Updated 8/2014 droh: | |
* - New versions of open_clientfd and open_listenfd are reentrant and | |
* protocol independent. | |
* |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"