Skip to content

Instantly share code, notes, and snippets.

View JettIsOnTheNet's full-sized avatar
💭
🕶️

Jett Sjöberg JettIsOnTheNet

💭
🕶️
View GitHub Profile
@JettIsOnTheNet
JettIsOnTheNet / awesome_typescript_cheatsheet.md
Created July 18, 2023 13:22
Awesome TypeScript Cheat Sheet

TypeScript Cheat Sheet

TypeScript is a statically-typed language developed by Microsoft. It compiles to plain JavaScript and supports all ECMAScript features. To get started with TypeScript, install it via npm:

1. Setting up, compiling, development, ts-node

npm install -g typescript
@JettIsOnTheNet
JettIsOnTheNet / using_julia_lang_inside_jupyter_notebook.md
Created March 13, 2023 17:20
Using Julia Lang inside Jupyter Notebook

Using Julia inside Jupyter Notebook isn't difficult. I will assume you have installed Julia.

To use Julia in Jupyter notebook, first launch Julia's REPL and add the IJulia package.

using Pkg
Pkg.add("IJulia")
@JettIsOnTheNet
JettIsOnTheNet / awesome_swift_style_guides.md
Last active January 10, 2023 23:58
Awesome Swift Style Guides

Swift-Style-Guides

A list of Style Guides for Swift Programming Language.

Swift is a reliable and efficient language that is well-suited for building apps on Apple platforms. Its focus on safety, simplicity, and integration with Apple frameworks make it a top choice for developers of all skill levels.

One major disadvantage of Swift however is that it does not have an in-depth Style Guide. The guide provided by Swift.org leaves a lot open to interpretation. This can lead to inconsistency in the way code is written which can become especially problematic in large projects with multiple contributors. The less time and effort you have to spend ensuring that the codebase is cohesive, the better.

An in-depth Style Guide helps establish a common language and set of best practices that everyone on the team can follow, making it easier to collaborate and maintain the code over time. If you are learning Swift, I suggest to follow a Style Guide while learning. It makes your code 10x better, from day 1 and yo

@JettIsOnTheNet
JettIsOnTheNet / setting_up_zfs_on_ubuntu_22.04.md
Last active January 25, 2023 15:48
Quick Start Guide: Setting up ZFS on Ubuntu 18/20/22.04

Quick Start Guide: Setting up ZFS on Ubuntu 18/20/22.04

Setting up ZFS on Ubuntu can be a great way to improve the performance and reliability of your storage setup, and is extremely straight forward. Since ZFS is not enabled in the Ubuntu main archive after version 16.04 but as a separate package in the universe repository, you will need to be sure you have universe respository enabled.

Caution:

  • This HOWTO uses a whole physical disk.
  • Backup your data if you are re-using a drive. Any existing data will be lost.

Before you begin:

  • READ ALL STEPS