This file contains 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
// GLFW and OpenGL example with very verbose comments and links to documentation for learning | |
// By Soren Saket | |
// semi-colons ; are not requied in odin | |
// | |
// Every Odin script belongs to a package | |
// Define the package with the package [packageName] statement | |
// The main package name is reserved for the program entry point package | |
// You cannot have two different packages in the same directory |
This file contains 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
# Container file to build a "portable" odin installation across Linux | |
# distributions. Bundles required .so files in one folder including the | |
# interpreter. Keep in mind Odin still requires clang (>=11) to be installed, | |
# this might change in the future | |
# | |
# Step 1: Build the image | |
# podman build -t odin-linux . --build-arg BUILD_TYPE=release | |
# | |
# Step 2: Run the image | |
# podman run --name Odin localhost/odin-linux:latest |
This file contains 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
;; Options for this config file | |
(defconst option/alternative-evil-esc (kbd "C-c")) | |
(defconst user/font "JetBrains Mono NL Light") | |
(defconst user/font-height 120) | |
(defconst user/theme 'modus-vivendi) | |
(defconst user/use-alt-window-navigation t) | |
;; Disable startup message, scrollbar, toolbar, menu bar and visual bell for a | |
;; cleaner UI. Also use smaller tab width | |
(setq inhibit-startup-message t) |
This file contains 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
--- General Options --- | |
do | |
local options = { | |
backup = false, | |
hidden = true, | |
clipboard = "unnamedplus", | |
cmdheight = 1, | |
completeopt = { "menuone", "noselect" }, | |
conceallevel = 0, | |
fileencoding = "utf-8", |
This file contains 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
diff --git a/rivertile/main.zig b/rivertile/main.zig | |
index 6b9c458..cbef542 100644 | |
--- a/rivertile/main.zig | |
+++ b/rivertile/main.zig | |
@@ -1,5 +1,4 @@ | |
// This file is part of river, a dynamic tiling wayland compositor. | |
-// | |
// Copyright 2020-2021 The River Developers | |
// | |
// This program is free software: you can redistribute it and/or modify |
This file contains 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
" Simple init.vim that's compatible with Neovim and Vim | |
let g:Tabsize=4 | |
" General options | |
let &tabstop=g:Tabsize | |
let &shiftwidth=g:Tabsize | |
set background=dark | |
set nobackup | |
set hidden |
This file contains 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
#!/usr/bin/env python | |
from sys import argv, exit | |
from flask import Flask | |
from os.path import exists | |
PORT=8069 | |
def main(): | |
if len(argv) < 2: |
This file contains 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
#!/bin/sh | |
# Taken mostly from Gentoo's handbok | |
newRoot="$1" | |
printf "chroot into '$newRoot'?(y/N) " | |
read confirm | |
[ "$confirm" = "y" ] && { | |
# Mount required filesystems | |
mkdir -p "$newRoot" |