See: http://www.fileformat.info/format/pcx/egff.htm
| Field | Description |
|---|---|
| AKA | PC Paintbrush File Format, DCX, PCC |
| Type | Bitmap |
| Colors | Mono, 4-bit, 8-bit, 24-bit |
| Compression | RLE, uncompressed |
| FROM nfnty/arch-mini | |
| # This is a dockerfile meant for people who are trying to cross compile their C projects | |
| # into windows binaries to ensure things actually compile correctly | |
| RUN pacman -Syyu --noconfirm | |
| RUN pacman -S --noconfirm git curl jshon expac yajl wget unzip cmake | |
| RUN pacman -S --noconfirm --needed base-devel | |
| RUN useradd -mg root ci |
| #pragma once | |
| #include <stdlib.h> | |
| template <typename T> | |
| inline void assert_eq(T const& a, T const& b) | |
| { | |
| if (a != b) { | |
| abort(); | |
| } |
| # Remove exited docker containers | |
| docker rm $(docker ps -q -f 'status=exited') | |
| # Remove dangling containers | |
| docker rmi $(docker images -q -f "dangling=true") | |
| # remove dangling volumes | |
| # http://stackoverflow.com/questions/30604846/docker-error-no-space-left-on-device | |
| docker volume rm $(docker volume ls -qf dangling=true) |
| # WM {{{ | |
| # Focus node | |
| # If no window exist, target monitor/desktop instead | |
| super + k | |
| bspc node -f north || bspc monitor -f north | |
| super + j | |
| bspc node -f south || bspc monitor -f south | |
| super + h | |
| bspc node -f west || bspc monitor -f west || bspc desktop -f prev |
| struct mat4f | |
| gfx_camera_get_combined(struct gfx_camera* camera) | |
| { | |
| assert(camera); | |
| struct mat4f ortho; | |
| struct mat4f translation; | |
| struct mat4f zoom; | |
| float vw = camera->viewport.width; |
| #include <assert.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <stdbool.h> | |
| #include <string.h> | |
| #include <tbx/types.h> | |
| #include <rbp.h> |
See: http://www.fileformat.info/format/pcx/egff.htm
| Field | Description |
|---|---|
| AKA | PC Paintbrush File Format, DCX, PCC |
| Type | Bitmap |
| Colors | Mono, 4-bit, 8-bit, 24-bit |
| Compression | RLE, uncompressed |
| fn get_id(req: &mut Request) -> Option<Uuid> { | |
| let param = req.extensions.get::<Router>().unwrap().find("id"); | |
| match param { | |
| Some(x) => Some(Uuid::parse_str(param.unwrap()).unwrap()), | |
| None => None | |
| } | |
| } |
| #!/bin/bash | |
| # Usage: | |
| # | |
| # yt-archive.sh <url to playlists> | |
| # | |
| youtube-dl \ | |
| --continue \ | |
| --retries 100 \ |