Skip to content

Instantly share code, notes, and snippets.

View xtncz's full-sized avatar

tncz xtncz

  • New Zealand
  • 13:37 (UTC +12:00)
View GitHub Profile
@xtncz
xtncz / jeffery.md
Last active June 2, 2025 05:26
Finding Jeffery's IQ and number of bitches in 18 different languages

Python

class Jeffery:
    def __init__(self, bitches, iq):
        self.bitches = bitches
        self.iq = iq

jeffery = Jeffery(0, 0)
print(f"Jeffery's IQ: {jeffery.iq}")
print(f"Jeffery's bitches: {jeffery.bitches}")
@xtncz
xtncz / python.md
Last active June 25, 2025 09:52
Useful Python notes I use

Printing

Formatting values

  • Percentages: e.g.
sales_tax_rate = 0.065
print(f"Sales Tax Rate {sales_tax_rate: .2%}") # Sales Tax Rate 6.50%
  • Width and alignment: e.g. aligns amount in dollars with 2dp with right align of 9 characters
@xtncz
xtncz / tommy.md
Last active April 12, 2025 02:19
Finding Tommy's IQ and number of bitches in 18 different languages

Python

class Tommy:
    def __init__(self, bitches, iq):
        self.bitches = bitches
        self.iq = iq

tommy = Tommy(0, 0)
print(f"Tommy's IQ: {tommy.iq}")
print(f"Tommy's bitches: {tommy.bitches}")
@xtncz
xtncz / objects.js
Created April 1, 2023 04:36
Some notes/examples on JavaScript object usages
// Method 1 of creating an object
const myObj1 = {
firstName: "John",
lastName: "Doe",
age: 26
};
// Method 2 of creating an object
const myObj2 = new Object({
employed: true,
@xtncz
xtncz / trxppy.md
Last active September 9, 2024 01:14
Finding @TrxppyVX's IQ and number of bitches in 12 different programming languages (credit to @CordlessCoder for the Rust version)

Python

class Trxppy:
    def __init__(self, bitches, iq):
        self.bitches = bitches
        self.iq = iq

trxppy = Trxppy(0, 0)
print(f"Trxppy's IQ: {trxppy.iq}")
print(f"Trxppy's bitches: {trxppy.bitches}")