Skip to content

Instantly share code, notes, and snippets.

@erikroyall
erikroyall / textbooks.md
Last active September 8, 2025 14:56
Alex Stef's list of freely-available mathematics textbooks

Textbooks in Mathematics

A list of links to useful mathematical textbooks available for free on the Internet. They are all legal and maintained by their authors or by the legitimate publisher.

All the documents are in English. They are in a printable format - Postscript or Adobe Portable Document Format. You are free to download, read and print them. Here are some links to other sites offering lists of free mathematical textbooks.

For any comments, please, contact me: alex_stef@yahoo.com

1.1 Practical Programming - An Introduction to Computer Science Using Python 3
1.2 K&R C
1.3 The C++ Programming Language - Bjarne Stroustrup
1.4 Deitel's Java - How to Program
1.5.1 The Little Schemer
1.5.2 The Reasoned Schemer
1.5.3 The Seasoned Schemer
2.1 Computer Organization and Design - Patterson & Hennessy
3.1 Introduction to Algorithms - Cormen
3.2 Algorithms - Sedgewick
/* See LICENSE file for copyright and license details. */
#include <X11/XF86keysym.h>
/* appearance */
static const char *fonts[] = {
"IBM Plex Mono:size=10"
};
static const char dmenufont[] = "IBM Plex Mono:size=11";
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -sg escape-time 0
# Window and panes
set -g base-index 1
setw -g pane-base-index 1
@erikroyall
erikroyall / ssort.iris
Created November 13, 2016 17:33
Doesn't work :(
# Selection Sort
# Initialize array
array.init a
array.push a 3 2 4 5 1
array.tostring a
array.length a
let n %retval
# Start the outer loop
function parse(code) {
const flow = [];
const state = {
expectingNextLine: false
};
// Remove blank lines and generate an array containing
// each line of code
const xcode =
code
@erikroyall
erikroyall / .Xresources
Last active October 20, 2016 21:53
My dotfiles
xterm*termName: xterm-256color
XTerm*locale: true
XTerm*metaSendsEscape: true
Xterm*saveLines: 4096
xterm*faceName: Inconsolata
xterm*faceSize: 13
! special
*.foreground: #d0d0d0
*.background: #151515
sudo apt update
sudo apt install build-essential git libssl-dev curl -y
# NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install node
# Java
@erikroyall
erikroyall / not.c
Created October 3, 2016 16:06
`echo "potato" | ./not` after you compile
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int inp;
fprintf(stdout, "not ");
while (1) {
inp = getchar();
@erikroyall
erikroyall / clone-macro.s.js
Last active September 25, 2016 04:09
Sweet.js for clone Potato => Object.create(Potato)
syntax clone = function (ctx) {
let ident = ctx.next().value;
return #`Object.create(${ident})`;
}
var Potato = {
meaningOfLife: 42
};
var potato = clone Potato;