print('Hello, World!') ’ ‘ can be used instead of “ “ Datatypes x = 'Hello World' #str x = 20 #int x = 20.5 #float x = 1j #complex x = ['apple', 'banana', 'cherry'] #list x = ('apple', 'ba...
pyenv
pyenv is a tool to manage multiple versions of Python. It is similar to rbenv, nvm, and other language version managers. This is especially for macOS since it comes with Python 2.7 pre-installed. ...
Kotlin
fun main() { println("Hello, World!") } Datatypes var number = 5 val constant = 5 //val is final //it's possible to specify a type val myNum: Int = 5 // Int val myDoubleNum: ...
JavaScript
console.log("Hello World!"); ’ ‘ can be used instead of “ “ and ; is optional Datatypes var myNum = 5; //global variable let myString = "Hello"; //local variable const myBool = true; //local co...
Java
Java Cheatsheet Introduction Java is a widely-used, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. Basic Syntax Hello...
Homebrew
Homebrew is a package manager for macOS. It is similar to apt, yum, and other package managers. It can be used on Debian or Fedora Linux as well. pros packages are up to date easy to use i...
Go
go mod init projectname package main import ("fmt") func main() { fmt.Println("Hello World!") } run the go file go run filename.go If your code is organized into multiple files, you ca...
Docker
Installation curl -fsSL https://get.docker.com | sh Virtual Machines vs. Containers: A Brief Overview Virtual Machines (VMs) and containers are both virtualization technologies used for creatin...
Useful CSS Libraries
Bootstrap Bootstrap is a free and open-source CSS framework directed at responsive, mobile-first front-end web development. It contains CSS- and JavaScript-based design templates for typography, f...
C++
#include <iostream> int main() { std::cout << "Hello, World!" << std::endl; return 0; } Namespaces To avoid using std:: all the time you can specify the namespace at t...