This guide will cover the basics on how to integrate emacs with protonmail-bridge using
- mu4e
 - mbsync
 - smtpmail
 - protonmail-bridge
 
| #!/usr/bin/bash | |
| setxkbmap -option caps:ctrl_modifier no & | |
| do_dwm () | |
| { | |
| slstatus & | |
| picom -b & | |
| nitrogen --restore & | |
| dunst -font "iosveka" & | 
| getPairs :: [Int] -> [(Int, Int)] | |
| getPairs [] = [] | |
| getPairs [_] = [] | |
| getPairs (x:y:xs) = (x,y) : getPairs (y:xs) | |
| getDiff :: [(Int, Int)] -> [Int] | |
| getDiff [] = [] | |
| getDiff ((x1, x2):xs) = (x2 - x1) : getDiff xs | |
| generate :: [Int] -> [[Int]] | 
This guide will cover the basics on how to integrate emacs with protonmail-bridge using
The lack of precison you get with floating point numbers isn't a language problem, it's a problem with floating point nubers themselves, so it even shows up as low as x86-64 assembly.
The assembly in the file bellow is the code I have written to showcase this.
To compile it you have to do this:
$ nasm floats.asm -o floats.o -f elf64A small Jai library for making it easy to share pointers/references to the same data, while making it easy to get rid of the pointer/reference when it is no longer needed.
You just create a variable using with the Ref(T) type, where you replace T with your type. For example Ref(int).
Then you initialize it with init(*ref_variable) where ref_variable is your variable,
| # write is for writing N newlines to a file. | |
| # count is from counting the newlines in a file. | |
| CC := gcc | |
| CFLAGS := -Wall -Wextra -Werror \ | |
| -std=c11 -pedantic | |
| TARGETS := count \ | |
| write | 
| Player :: enum { | |
| ONE; | |
| TWO; | |
| } | |
| player_colors :: #run -> []Color { | |
| colors: [#run enum_max_value(type_info(Player)) + 1]Color; | |
| colors[Player.ONE] = .{1, 0, 0}; | |
| colors[Player.TWO] = .{0, 1, 0}; | |
| return colors; | |
| }; | 
| [6] # Version number. Do not delete. | |
| [[workspace]] | |
| /home/mvh/source/marvhus/example | |
| /home/mvh/opt/jai | |
| [ignore] | |
| /home/mvh/source/marvhus/example/.git/** | |
| #!/usr/bin/env python3 | |
| import os | |
| # settings | |
| src_dir = "src" | |
| bin_dir = "bin" | |
| target_name = "exe" | |
| file = open("build.ninja", "wt") | 
| #import "Math"; | |
| #import "Simp"; | |
| #import "Basic"; | |
| #import "Input"; | |
| #import "Window_Creation"; | |
| window_width : s32 = 1280; | |
| window_height : s32 = 720; | |
| quit : bool = false; | |
| the_window : Window_Type; |