Skip to content

Instantly share code, notes, and snippets.

@demotomohiro
demotomohiro / testimg.nim
Last active June 30, 2022 09:40
Realtime pixel drawing
import std/[strformat, strutils, bitops]
import pixie, chroma
# define `nort` when opengl or windows system is not available.
when not defined(nort):
import nimgl/[glfw, opengl]
proc `{}`(image: var Image, x, y: int): var ColorRGBX =
## Accessing any pixels outside the bounds of the image is error
when not defined(danger):
@gornostal
gornostal / steps.sh
Created September 6, 2017 13:28
Fedora. Install trusted certificate into the system (p7b file)
openssl pkcs7 -in mycert.p7b -inform DER -print_certs -out mycert.pem
sudo cp mycert.pem /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust