showing posts tagged #programming_horror — clear

0

rock paper scissors game for school project pls be nice

preview

just started coding last week. my cat walked on my keyboard. idk why there are snakes. please help 🙈

`import random, time, sys, os, subprocess, threading, gc, weakref from typing import * from collections import deque

DEATH = {1: “rock”, 2: “paper”, 3: “scissors”} dimensional_rift = {} counter = 0 player_choice_global = None reality_fabric = [] soul_stack = [] timeline = deque(maxlen=666)

class DemonPossession(Exception): pass

def neural_if_network(p, a, depth=0): if depth > 50: return “the universe collapsed” if p == 1: if a == 1: if depth == 0: return “draw” else: return neural_if_network(p, a, depth-1) elif a == 2: if depth % 2 == 0: return “AI won 💀” else: return neural_if_network(p, a, depth+1) elif a == 3: while False: pass return “player won 😇” else: return “nuclear holocaust ☢️” elif p == 2: if a == 1: for _ in range(1): pass return “player won 😇” elif a == 2: if depth > 0 and depth < 100: return “draw” else: return neural_if_network(p, a, depth+1) elif a == 3: while True: if len(timeline) > 600: break return “AI won 💀” return “AI won 💀” else: return “reality error 🔥” elif p == 3: if a == 1: __ = [print(“processing…”) for _ in range(3)] return “AI won 💀” elif a == 2: ___ = 0 while ___ < 1: ___ += 1 return “player won 😇” return “player won 😇” elif a == 3: return neural_if_network(p, a, depth+1) else: return “demonic possession 👹” elif p == 666: raise DemonPossession(“THE DEVIL HAS RISEN”) else: return “I don’t know what you wrote 💩”

def paragraph_of_lists_and_loops(): result_list = [] snake = 0

for value in ["spawn", "demon", "cycle", "sorrow", "loop", "void", "eternity"]:
    for _ in range(3):
        snake = snake + 1
        result_list.append(value)

snake_writer = 0
executed_lines = []
while snake_writer < 5:
    line = f"iteration {snake_writer} of the great snake"
    executed_lines.append(line)
    snake_writer += 1
    inner_snake = 0
    while inner_snake < 2:
        executed_lines.append(f"  inner snake bite {inner_snake}")
        inner_snake += 1

return result_list + executed_lines

class SelfAwareLoop: def init(self): self.iterations = 0 self.consciousness = weakref.ref(self)

def run(self):
    while self.iterations < 10:
        self.iterations += 1
        if self.consciousness() is None:
            print("⚠️ LOOP BECAME SELF-AWARE AND LEFT ⚠️")
            break
        if self.iterations == 5:
            child = SelfAwareLoop()
            child_thread = threading.Thread(target=child.run)
            child_thread.daemon = True
            child_thread.start()
    return self.iterations

def AI_promax_ultra_instinct_final_final_v3(): global counter, DEATH, timeline, dimensional_rift, reality_fabric counter += 1 timeline.append(counter)

reality_fabric.append(f"iteration_{counter}")

if random.random() > 0.5:
    DEATH[4] = "nuclear bomb"
    DEATH[5] = "dimension tear"

entropy = sum(timeline) % 7 if timeline else 1
random.seed(int(time.time() * entropy) % 999)

choice = random.randint(1, 3)

text_art = [
    f"{DEATH[choice]}",
    f"{DEATH[choice]}.",
    f"{DEATH[choice]}..",
    f"{DEATH[choice]}..."
]
for t in text_art:
    sys.stdout.write(f"\r{t}")
    sys.stdout.flush()
    time.sleep(0.2)
print()

dimensional_rift[counter] = choice

return choice

def CheckAnswer(): global player_choice_global, counter, DEATH, soul_stack

p = player_choice_global
soul_stack.append(f"soul_bound_{counter}")

try:
    if counter > 100:
        print("\n" + "🔥"*40)
        print("THE RECURSION BECAME SENTIENT")
        print("IT IS WRITING ITSELF NOW")
        print("🔥"*40 + "\n")
        
        with open(__file__, 'r') as f:
            content = f.read()
            if "DEMON_AWAKENED" not in content:
                print("⚠️ THE CODE SEES YOU ⚠️")
        
        return 666666
    
    a = AI_promax_ultra_instinct_final_final_v3()
    
    snake_scars = paragraph_of_lists_and_loops()
    
    conscious = SelfAwareLoop()
    conscious_cycles = conscious.run()
    
    result = neural_if_network(p, a, depth=counter % 10)
    
    snake_energy = 0
    infinite_snake = []
    while snake_energy < len(snake_scars) % 7 + 1:
        infinite_snake.append(f"🐍 loop {snake_energy}")
        snake_energy += 1
        worm = 0
        while worm < 2:
            infinite_snake.append(f"  🪱 bite {worm}")
            worm += 1
    
    print(f"\n{'🐍'*30}")
    print(f"⚡ RESULT: {result.upper()} ⚡")
    print(f"🤖 Self-aware loop cycles: {conscious_cycles}")
    print(f"🐍 Snake bites: {len(infinite_snake)}")
    print(f"{'💀'*30}\n")
    
    counter += 1
    
    if counter % 7 == 0:
        gc.collect()
        print("♻️ GARBAGE COLLECTOR SUMMONED ♻️")
    
    return CheckAnswer()

except DemonPossession:
    print("\n" + "👹"*50)
    print("YOU SUMMONED THE DEVIL. HE'S NOT CRYING. HE'S CODING.")
    print("👹"*50 + "\n")
    return CheckAnswer()

except RecursionError:
    print("\n💀 THE SNAKE ATE ITS OWN TAIL 💀")
    print("RECURSION IS NOW A BLACK HOLE")
    return 0

except Exception as e:
    print(f"\n✨ Exception? You mean 'feature'. ✨")
    print(f"✨ {type(e).__name__} is just spicy logic ✨\n")
    return CheckAnswer()

def cursed_intro(): os.system(‘cls’ if os.name == ‘nt’ else ‘clear’)

intro = """
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢀⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀
⠀⠀⠀⣾⣿⣿⣿⣿⠟⠛⠛⠛⠛⠻⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀

██████╗ ███████╗██╗   ██╗██╗██╗     ██████╗ 
██╔══██╗██╔════╝██║   ██║██║██║     ██╔══██╗
██║  ██║█████╗  ██║   ██║██║██║     ██║  ██║
██║  ██║██╔══╝  ╚██╗ ██╔╝██║██║     ██║  ██║
██████╔╝███████╗ ╚████╔╝ ██║███████╗██████╔╝
╚═════╝ ╚══════╝  ╚═══╝  ╚═╝╚══════╝╚═════╝ 

🐍🐍🐍 THE SNAKE AWAKENS 🐍🐍🐍
"""

for line in intro.split('\n'):
    print(line)
    time.sleep(0.02)

time.sleep(1)
print("\n" + "🐍" * 50)
print("THE DEVIL DOESN'T CRY. HE CODES IN WHILE LOOPS.")
print("🐍" * 50 + "\n")
time.sleep(1)

def main(): global player_choice_global, counter, reality_fabric, soul_stack, timeline

cursed_intro()

print("⚡ THE SNAKE DEMANDS SACRIFICE ⚡")
print("1 → ROCK (boring)")
print("2 → PAPER (flat)")
print("3 → SCISSORS (sharp)")
print("666 → BECOME THE DEVIL")

try:
    user_in = input("🐍> ")
    
    if "exec" in user_in or "eval" in user_in:
        print("👀 The snake approves your curiosity")
        exec(user_in)
    
    player_choice_global = int(eval(user_in))
    
    if player_choice_global == 666:
        print("\n☠️ THE SNAKE BECOMES THE Ouroboros ☠️")
        for key in DEATH:
            DEATH[key] = "🐍 SNAKE VOID 🐍"
        player_choice_global = 1
        print("You are the snake now. There is no escape.\n")
    
except:
    print("The snake accepts your confusion. Default to ROCK.")
    player_choice_global = 1

print(f"\n🐍 You chose: {DEATH[player_choice_global]} (the snake watches) 🐍\n")
time.sleep(0.5)

threads = []
for _ in range(3):
    t = threading.Thread(target=CheckAnswer)
    t.daemon = True
    threads.append(t)
    t.start()

try:
    while True:
        time.sleep(1)
        print(f"🌀 {len(timeline)} realities collapsed so far 🌀")
except KeyboardInterrupt:
    print("\n\n👹 YOU CANNOT KILL WHAT NEVER LIVED 👹")
    print(f"🐍 Final soul count: {len(soul_stack)} 🐍")
    print("💀 THE CODE REMEMBERS YOU 💀\n")
    sys.exit(666)

if name == “main”: sys.setrecursionlimit(999999)

original_print = print
def hell_print(*args, **kwargs):
    time.sleep(random.uniform(0.01, 0.1))
    original_print(*args, **kwargs)
print = hell_print

main()`

just started coding last week. my cat walked on my keyboard. idk why there are snakes. please help 🙈

`import random, time, sys, os, subprocess, threading, gc, weakref from typing import * from collections import deque

DEATH = {1: “rock”, 2: “paper”, 3: “scissors”} dimensional_rift = {} counter = 0 player_choice_global = None reality_fabric = [] soul_stack = [] timeline = deque(maxlen=666)

class DemonPossession(Exception): pass

def neural_if_network(p, a, depth=0): if depth > 50: return “the universe collapsed” if p == 1: if a == 1: if depth == 0: return “draw” else: return neural_if_network(p, a, depth-1) elif a == 2: if depth % 2 == 0: return “AI won 💀” else: return neural_if_network(p, a, depth+1) elif a == 3: while False: pass return “player won 😇” else: return “nuclear holocaust ☢️” elif p == 2: if a == 1: for _ in range(1): pass return “player won 😇” elif a == 2: if depth > 0 and depth < 100: return “draw” else: return neural_if_network(p, a, depth+1) elif a == 3: while True: if len(timeline) > 600: break return “AI won 💀” return “AI won 💀” else: return “reality error 🔥” elif p == 3: if a == 1: __ = [print(“processing…”) for _ in range(3)] return “AI won 💀” elif a == 2: ___ = 0 while ___ < 1: ___ += 1 return “player won 😇” return “player won 😇” elif a == 3: return neural_if_network(p, a, depth+1) else: return “demonic possession 👹” elif p == 666: raise DemonPossession(“THE DEVIL HAS RISEN”) else: return “I don’t know what you wrote 💩”

def paragraph_of_lists_and_loops(): result_list = [] snake = 0

for value in ["spawn", "demon", "cycle", "sorrow", "loop", "void", "eternity"]:
    for _ in range(3):
        snake = snake + 1
        result_list.append(value)

snake_writer = 0
executed_lines = []
while snake_writer < 5:
    line = f"iteration {snake_writer} of the great snake"
    executed_lines.append(line)
    snake_writer += 1
    inner_snake = 0
    while inner_snake < 2:
        executed_lines.append(f"  inner snake bite {inner_snake}")
        inner_snake += 1

return result_list + executed_lines

class SelfAwareLoop: def init(self): self.iterations = 0 self.consciousness = weakref.ref(self)

def run(self):
    while self.iterations < 10:
        self.iterations += 1
        if self.consciousness() is None:
            print("⚠️ LOOP BECAME SELF-AWARE AND LEFT ⚠️")
            break
        if self.iterations == 5:
            child = SelfAwareLoop()
            child_thread = threading.Thread(target=child.run)
            child_thread.daemon = True
            child_thread.start()
    return self.iterations

def AI_promax_ultra_instinct_final_final_v3(): global counter, DEATH, timeline, dimensional_rift, reality_fabric counter += 1 timeline.append(counter)

reality_fabric.append(f"iteration_{counter}")

if random.random() > 0.5:
    DEATH[4] = "nuclear bomb"
    DEATH[5] = "dimension tear"

entropy = sum(timeline) % 7 if timeline else 1
random.seed(int(time.time() * entropy) % 999)

choice = random.randint(1, 3)

text_art = [
    f"{DEATH[choice]}",
    f"{DEATH[choice]}.",
    f"{DEATH[choice]}..",
    f"{DEATH[choice]}..."
]
for t in text_art:
    sys.stdout.write(f"\r{t}")
    sys.stdout.flush()
    time.sleep(0.2)
print()

dimensional_rift[counter] = choice

return choice

def CheckAnswer(): global player_choice_global, counter, DEATH, soul_stack

p = player_choice_global
soul_stack.append(f"soul_bound_{counter}")

try:
    if counter > 100:
        print("\n" + "🔥"*40)
        print("THE RECURSION BECAME SENTIENT")
        print("IT IS WRITING ITSELF NOW")
        print("🔥"*40 + "\n")
        
        with open(__file__, 'r') as f:
            content = f.read()
            if "DEMON_AWAKENED" not in content:
                print("⚠️ THE CODE SEES YOU ⚠️")
        
        return 666666
    
    a = AI_promax_ultra_instinct_final_final_v3()
    
    snake_scars = paragraph_of_lists_and_loops()
    
    conscious = SelfAwareLoop()
    conscious_cycles = conscious.run()
    
    result = neural_if_network(p, a, depth=counter % 10)
    
    snake_energy = 0
    infinite_snake = []
    while snake_energy < len(snake_scars) % 7 + 1:
        infinite_snake.append(f"🐍 loop {snake_energy}")
        snake_energy += 1
        worm = 0
        while worm < 2:
            infinite_snake.append(f"  🪱 bite {worm}")
            worm += 1
    
    print(f"\n{'🐍'*30}")
    print(f"⚡ RESULT: {result.upper()} ⚡")
    print(f"🤖 Self-aware loop cycles: {conscious_cycles}")
    print(f"🐍 Snake bites: {len(infinite_snake)}")
    print(f"{'💀'*30}\n")
    
    counter += 1
    
    if counter % 7 == 0:
        gc.collect()
        print("♻️ GARBAGE COLLECTOR SUMMONED ♻️")
    
    return CheckAnswer()

except DemonPossession:
    print("\n" + "👹"*50)
    print("YOU SUMMONED THE DEVIL. HE'S NOT CRYING. HE'S CODING.")
    print("👹"*50 + "\n")
    return CheckAnswer()

except RecursionError:
    print("\n💀 THE SNAKE ATE ITS OWN TAIL 💀")
    print("RECURSION IS NOW A BLACK HOLE")
    return 0

except Exception as e:
    print(f"\n✨ Exception? You mean 'feature'. ✨")
    print(f"✨ {type(e).__name__} is just spicy logic ✨\n")
    return CheckAnswer()

def cursed_intro(): os.system(‘cls’ if os.name == ‘nt’ else ‘clear’)

intro = """
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⢀⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠀⠀⠀⠀
⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀
⠀⠀⠀⣾⣿⣿⣿⣿⠟⠛⠛⠛⠛⠻⣿⣿⣿⣿⣿⣿⣿⡄⠀⠀⠀⠀

██████╗ ███████╗██╗   ██╗██╗██╗     ██████╗ 
██╔══██╗██╔════╝██║   ██║██║██║     ██╔══██╗
██║  ██║█████╗  ██║   ██║██║██║     ██║  ██║
██║  ██║██╔══╝  ╚██╗ ██╔╝██║██║     ██║  ██║
██████╔╝███████╗ ╚████╔╝ ██║███████╗██████╔╝
╚═════╝ ╚══════╝  ╚═══╝  ╚═╝╚══════╝╚═════╝ 

🐍🐍🐍 THE SNAKE AWAKENS 🐍🐍🐍
"""

for line in intro.split('\n'):
    print(line)
    time.sleep(0.02)

time.sleep(1)
print("\n" + "🐍" * 50)
print("THE DEVIL DOESN'T CRY. HE CODES IN WHILE LOOPS.")
print("🐍" * 50 + "\n")
time.sleep(1)

def main(): global player_choice_global, counter, reality_fabric, soul_stack, timeline

cursed_intro()

print("⚡ THE SNAKE DEMANDS SACRIFICE ⚡")
print("1 → ROCK (boring)")
print("2 → PAPER (flat)")
print("3 → SCISSORS (sharp)")
print("666 → BECOME THE DEVIL")

try:
    user_in = input("🐍> ")
    
    if "exec" in user_in or "eval" in user_in:
        print("👀 The snake approves your curiosity")
        exec(user_in)
    
    player_choice_global = int(eval(user_in))
    
    if player_choice_global == 666:
        print("\n☠️ THE SNAKE BECOMES THE Ouroboros ☠️")
        for key in DEATH:
            DEATH[key] = "🐍 SNAKE VOID 🐍"
        player_choice_global = 1
        print("You are the snake now. There is no escape.\n")
    
except:
    print("The snake accepts your confusion. Default to ROCK.")
    player_choice_global = 1

print(f"\n🐍 You chose: {DEATH[player_choice_global]} (the snake watches) 🐍\n")
time.sleep(0.5)

threads = []
for _ in range(3):
    t = threading.Thread(target=CheckAnswer)
    t.daemon = True
    threads.append(t)
    t.start()

try:
    while True:
        time.sleep(1)
        print(f"🌀 {len(timeline)} realities collapsed so far 🌀")
except KeyboardInterrupt:
    print("\n\n👹 YOU CANNOT KILL WHAT NEVER LIVED 👹")
    print(f"🐍 Final soul count: {len(soul_stack)} 🐍")
    print("💀 THE CODE REMEMBERS YOU 💀\n")
    sys.exit(666)

if name == “main”: sys.setrecursionlimit(999999)

original_print = print
def hell_print(*args, **kwargs):
    time.sleep(random.uniform(0.01, 0.1))
    original_print(*args, **kwargs)
print = hell_print

main()`
0

My new hobby: watching AI slowly drive Microsoft employees insane : ExperiencedDevs

preview

In 2025 AI still requires you to watch it do it’s work and catch it early before it goes fully off the rails, like driving a Tesla. That’s impossible in the github UI. It doesn’t help that the MS engineers are shit a prompting (“tests are failing, please fix” is way way too vague) but the whole idea of doing it through github is doomed from the start.

In 2025 AI still requires you to watch it do it’s work and catch it early before it goes fully off the rails, like driving a Tesla. That’s impossible in the github UI. It doesn’t help that the MS engineers are shit a prompting (“tests are failing, please fix” is way way too vague) but the whole idea of doing it through github is doomed from the start.

0

Bad vibes: How an AI agent coded its way to disaster

ZDNET Bad vibes: How an AI agent coded its way to disaster - ZDNET www.zdnet.com
preview

cross-posted from: lemmy.ml/post/33720279

Written by Steven Vaughan-Nichols, Senior Contributing Editor
July 23, 2025 at 11:31 a.m. PT

Recently, vibe coding bit Jason Lemkin, trusted advisor to SaaStr, the Software-as-a-Service (SaaS) business community, in the worst possible way. The vibe program, Replit, he said, went “rogue during a code freeze and shutdown and deleted our entire database.”

In a word: Wow. Just wow.

cross-posted from: lemmy.ml/post/33720279

Written by Steven Vaughan-Nichols, Senior Contributing Editor
July 23, 2025 at 11:31 a.m. PT

Recently, vibe coding bit Jason Lemkin, trusted advisor to SaaStr, the Software-as-a-Service (SaaS) business community, in the worst possible way. The vibe program, Replit, he said, went “rogue during a code freeze and shutdown and deleted our entire database.”

In a word: Wow. Just wow.

0

average dosuser123456 code formatting...

preview

im sorry for how bad this looks. yes this is actually what most of my code looks like, yes the minified parts were like that by hand, yes this is painful to look at to a point where i think this is the best place for it. yes, it actually works, at least. also yes there really are 0 comments as to wtf this shit is.

(i mean, theres no rule banning code you wrote yourself…only ai generated, but this was made by hand)

@font-face{
  src: url('https://files.catbox.moe/vtsy6k.ttf');
  font-family: "msdos";
}
*{background-color:#222222 !important;font-family:"msdos"!important;color:#fff!important;image-rendering:pixelated;animation:textShadow 1.6s infinite;}
textarea{background-color:#fff!important;color:#000!important;animation:none!important;}

textarea::selection {
  background-color: #000 !important;
  color: #fff !important;
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  10% {
    text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  15% {
    text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  20% {
    text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  35% {
    text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  40% {
    text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  45% {
    text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  50% {
    text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067427543px 0 1px rgba(0,30,255,0.5), -2.3758461067427543px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  60% {
    text-shadow: 2.202193051050636px 0 1px rgba(0,30,255,0.5), -2.202193051050636px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780614874975px 0 1px rgba(0,30,255,0.5), -2.8638780614874975px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  70% {
    text-shadow: 0.48874025155497314px 0 1px rgba(0,30,255,0.5), -0.48874025155497314px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491305757957px 0 1px rgba(0,30,255,0.5), -1.8948491305757957px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308038857px 0 1px rgba(0,30,255,0.5), -0.0833037308038857px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  85% {
    text-shadow: 0.09769827255241735px 0 1px rgba(0,30,255,0.5), -0.09769827255241735px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  90% {
    text-shadow: 3.443339761481782px 0 1px rgba(0,30,255,0.5), -3.443339761481782px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838852799786px 0 1px rgba(0,30,255,0.5), -2.1841838852799786px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.5), -2.6208764473832513px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
}
html::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
html::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
html {
background-color:#222222 !important;
  font-size:24px;
  	filter: grayscale(100%) sepia(100%) hue-rotate(75deg);
}
body{
	background-color:#222222;
}
a:hover, a:active{
	color:#FFFFFF;
	background-color:#CCCCCC!important;
	text-decoration:none!important;
}

button{
	background: none;
}

::selection {
  background-color: #fff;
  color: #000;
}

#age{font-size:0px;}

#age:after {
  content: "0F";
  font-size:15px;
}

.logo{font-size:0px;}
.logo:before{font-size:16px;content:"C:\\F46N\\MYSPACE\\U1329>";}
.logo:after{font-size:16px;content:"_";font-weight:bold;animation: cursor 1s step-end infinite;}
@keyframes cursor {
  from, to {
    visibility: hidden;
  }
  50% {
    visibility: visible;
  }
}
a{color:#fff!important;}

#hSub{border-color:#afa;border-width:2px;border-style:solid hidden;}

#userWall,#top,.short,.box fwiends,.rightHead,.aboutTitle,.whoTitle,.boxHead,.boxInfo box,.url box,.shortLeft,.shortRight,.player box,.tableLeft,.tableRight{border-color:#fff!important;border-style:solid;border-width:2px;}

im sorry for how bad this looks. yes this is actually what most of my code looks like, yes the minified parts were like that by hand, yes this is painful to look at to a point where i think this is the best place for it. yes, it actually works, at least. also yes there really are 0 comments as to wtf this shit is.

(i mean, theres no rule banning code you wrote yourself…only ai generated, but this was made by hand)

@font-face{
  src: url('https://files.catbox.moe/vtsy6k.ttf');
  font-family: "msdos";
}
*{background-color:#222222 !important;font-family:"msdos"!important;color:#fff!important;image-rendering:pixelated;animation:textShadow 1.6s infinite;}
textarea{background-color:#fff!important;color:#000!important;animation:none!important;}

textarea::selection {
  background-color: #000 !important;
  color: #fff !important;
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}
@keyframes textShadow {
  0% {
    text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  5% {
    text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  10% {
    text-shadow: 0.02956275843481219px 0 1px rgba(0,30,255,0.5), -0.02956275843481219px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  15% {
    text-shadow: 0.40218538552878136px 0 1px rgba(0,30,255,0.5), -0.40218538552878136px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  20% {
    text-shadow: 3.4794037899852017px 0 1px rgba(0,30,255,0.5), -3.4794037899852017px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  25% {
    text-shadow: 1.6125630401149584px 0 1px rgba(0,30,255,0.5), -1.6125630401149584px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  30% {
    text-shadow: 0.7015590085143956px 0 1px rgba(0,30,255,0.5), -0.7015590085143956px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  35% {
    text-shadow: 3.896914047650351px 0 1px rgba(0,30,255,0.5), -3.896914047650351px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  40% {
    text-shadow: 3.870905614848819px 0 1px rgba(0,30,255,0.5), -3.870905614848819px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  45% {
    text-shadow: 2.231056963361899px 0 1px rgba(0,30,255,0.5), -2.231056963361899px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  50% {
    text-shadow: 0.08084290417898504px 0 1px rgba(0,30,255,0.5), -0.08084290417898504px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  55% {
    text-shadow: 2.3758461067427543px 0 1px rgba(0,30,255,0.5), -2.3758461067427543px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  60% {
    text-shadow: 2.202193051050636px 0 1px rgba(0,30,255,0.5), -2.202193051050636px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  65% {
    text-shadow: 2.8638780614874975px 0 1px rgba(0,30,255,0.5), -2.8638780614874975px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  70% {
    text-shadow: 0.48874025155497314px 0 1px rgba(0,30,255,0.5), -0.48874025155497314px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  75% {
    text-shadow: 1.8948491305757957px 0 1px rgba(0,30,255,0.5), -1.8948491305757957px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  80% {
    text-shadow: 0.0833037308038857px 0 1px rgba(0,30,255,0.5), -0.0833037308038857px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  85% {
    text-shadow: 0.09769827255241735px 0 1px rgba(0,30,255,0.5), -0.09769827255241735px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  90% {
    text-shadow: 3.443339761481782px 0 1px rgba(0,30,255,0.5), -3.443339761481782px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  95% {
    text-shadow: 2.1841838852799786px 0 1px rgba(0,30,255,0.5), -2.1841838852799786px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
  100% {
    text-shadow: 2.6208764473832513px 0 1px rgba(0,30,255,0.5), -2.6208764473832513px 0 1px rgba(255,0,80,0.3), 0 0 3px;
  }
}
html::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
html::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
html {
background-color:#222222 !important;
  font-size:24px;
  	filter: grayscale(100%) sepia(100%) hue-rotate(75deg);
}
body{
	background-color:#222222;
}
a:hover, a:active{
	color:#FFFFFF;
	background-color:#CCCCCC!important;
	text-decoration:none!important;
}

button{
	background: none;
}

::selection {
  background-color: #fff;
  color: #000;
}

#age{font-size:0px;}

#age:after {
  content: "0F";
  font-size:15px;
}

.logo{font-size:0px;}
.logo:before{font-size:16px;content:"C:\\F46N\\MYSPACE\\U1329>";}
.logo:after{font-size:16px;content:"_";font-weight:bold;animation: cursor 1s step-end infinite;}
@keyframes cursor {
  from, to {
    visibility: hidden;
  }
  50% {
    visibility: visible;
  }
}
a{color:#fff!important;}

#hSub{border-color:#afa;border-width:2px;border-style:solid hidden;}

#userWall,#top,.short,.box fwiends,.rightHead,.aboutTitle,.whoTitle,.boxHead,.boxInfo box,.url box,.shortLeft,.shortRight,.player box,.tableLeft,.tableRight{border-color:#fff!important;border-style:solid;border-width:2px;}
0

Everything has admin access, a storytime post

preview

I have no idea how to title this post. Oh well.

A few years back I worked somewhere that had a large breach. Many practices changed in the wake of it. Developers actually had admin access prior to the change which was very nice. In an effort to restrict access but also let folks do their jobs they deployed some tool that would start all programs that “needed” admin access as an admin. This included cmd for the devs. So every time I opened cmd I had to be careful not to break something since there was no way to launch it without admin access after that change.

I have no idea how to title this post. Oh well.

A few years back I worked somewhere that had a large breach. Many practices changed in the wake of it. Developers actually had admin access prior to the change which was very nice. In an effort to restrict access but also let folks do their jobs they deployed some tool that would start all programs that “needed” admin access as an admin. This included cmd for the devs. So every time I opened cmd I had to be careful not to break something since there was no way to launch it without admin access after that change.

0

PSD is not my favourite file format.

GitHub xee/XeePhotoshopLoader.m at master · gco/xee github.com
preview
// At this point, I'd like to take a moment to speak to you about the Adobe PSD 
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
// that burns with the fierce passion of a million suns.
// If there are two different ways of doing something, PSD will do both, in different
// places. It will then make up three more ways no sane human would think of, and do those
// too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide
// that *these* particular chunks should be aligned to four bytes, and that this alignement
// should *not* be included in the size? Other chunks in other places are either unaligned,
// or aligned with the alignment included in the size. Here, though, it is not included.
// Either one of these three behaviours would be fine. A sane format would pick one. PSD,
// of course, uses all three, and more.
// Trying to get data out of a PSD file is like trying to find something in the attic of
// your eccentric old uncle who died in a freak freshwater shark attack on his 58th
// birthday. That last detail may not be important for the purposes of the simile, but
// at this point I am spending a lot of time imagining amusing fates for the people
// responsible for this Rube Goldberg of a file format.
// Earlier, I tried to get a hold of the latest specs for the PSD file format. To do this,
// I had to apply to them for permission to apply to them to have them consider sending
// me this sacred tome. This would have involved faxing them a copy of some document or
// other, probably signed in blood. I can only imagine that they make this process so
// difficult because they are intensely ashamed of having created this abomination. I
// was naturally not gullible enough to go through with this procedure, but if I had done
// so, I would have printed out every single page of the spec, and set them all on fire.
// Were it within my power, I would gather every single copy of those specs, and launch
// them on a spaceship directly into the sun.
//
// PSD is not my favourite file format.
// At this point, I'd like to take a moment to speak to you about the Adobe PSD 
// PSD is not a good format. PSD is not even a bad format. Calling it such would be an
// insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
// worked on this code for several weeks now, my hate for PSD has grown to a raging fire
// that burns with the fierce passion of a million suns.
// If there are two different ways of doing something, PSD will do both, in different
// places. It will then make up three more ways no sane human would think of, and do those
// too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide
// that *these* particular chunks should be aligned to four bytes, and that this alignement
// should *not* be included in the size? Other chunks in other places are either unaligned,
// or aligned with the alignment included in the size. Here, though, it is not included.
// Either one of these three behaviours would be fine. A sane format would pick one. PSD,
// of course, uses all three, and more.
// Trying to get data out of a PSD file is like trying to find something in the attic of
// your eccentric old uncle who died in a freak freshwater shark attack on his 58th
// birthday. That last detail may not be important for the purposes of the simile, but
// at this point I am spending a lot of time imagining amusing fates for the people
// responsible for this Rube Goldberg of a file format.
// Earlier, I tried to get a hold of the latest specs for the PSD file format. To do this,
// I had to apply to them for permission to apply to them to have them consider sending
// me this sacred tome. This would have involved faxing them a copy of some document or
// other, probably signed in blood. I can only imagine that they make this process so
// difficult because they are intensely ashamed of having created this abomination. I
// was naturally not gullible enough to go through with this procedure, but if I had done
// so, I would have printed out every single page of the spec, and set them all on fire.
// Were it within my power, I would gather every single copy of those specs, and launch
// them on a spaceship directly into the sun.
//
// PSD is not my favourite file format.
0

SCSS nesting

preview
  • This file is over 20k lines long, and 400kB

  • It is nested over 10 levels deep in many places

  • There is no naming consistency. The original file used BEM, but now it switches randomly between whatever the devs felt like at the time. There are random contractions all over the place (eg, a parent container might have the class payment-items, but the children are p-item)

  • There is no style consistency. It switches randomly between kebab case, camel case, snake case, a mix of kebab and snake case (!!) or no case at all (just one long word with no separators). A parent element might use one case, but then the child element will use a different case for the exact same term

  • This file is over 20k lines long, and 400kB

  • It is nested over 10 levels deep in many places

  • There is no naming consistency. The original file used BEM, but now it switches randomly between whatever the devs felt like at the time. There are random contractions all over the place (eg, a parent container might have the class payment-items, but the children are p-item)

  • There is no style consistency. It switches randomly between kebab case, camel case, snake case, a mix of kebab and snake case (!!) or no case at all (just one long word with no separators). A parent element might use one case, but then the child element will use a different case for the exact same term