Skip to content

Instantly share code, notes, and snippets.

View Aditya-Jyoti's full-sized avatar
🦆
batak

Aditya Jyoti Aditya-Jyoti

🦆
batak
View GitHub Profile
@Aditya-Jyoti
Aditya-Jyoti / Special-Methods.md
Last active May 31, 2021 10:19
List of all Special Methods in Python OOP

List of all Special Methods in Python OOP

Initialization and Construction

Method Description
new(cls, other) To get called in an object's instantiation.
init(self, other) To get called by the __new__ method.
del(self) Destructor method.

 

@heroheman
heroheman / ranger-cheatsheet.md
Last active June 17, 2024 20:56
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@brson
brson / gist:9dec4195a88066fa42e6
Last active May 7, 2024 02:34
A Rust Syntax Guide

A Guide to Rust Syntax

A very brief guide to Rust syntax. It assumes you are already familiar with programming concepts.

This was written in 2014. It is not a good reference for Rust today, though the content is still correct.

cheats.rs looks like a good alternative.

Assert macro

@jaimergp
jaimergp / config-highlight.cfg
Last active May 27, 2024 12:16
Dark highlighting theme for Python IDLE based on SublimeText's Monokai color scheme
# Place this file inside your ~/.idlerc/ folder
# or paste its contents inside
# /path/to/python/idlelib/config-highlight.def
# Adapted from SublimeText's Monokai
[monokai]
normal-foreground= #F8F8F2
normal-background= #272822
keyword-foreground= #F92672
keyword-background= #272822