Categories > WeAreDevs > Suggestions >

Code block bugs and Rogue Hub on scripts page

Alternate

stop take my rice

vip

Posts: 607

Threads: 105

Joined: Mar, 2022

Reputation: 36

Posted

So, first, code blocks are kinda broken lmfao, they look pretty ugly and don't really work anymore.

 

Also, Rogue Hub is still on the scripts page despite it being discontinued

 

Code block example below:

import random
import string

def generate_password(length=12):
    characters = string.ascii_letters + string.digits + string.punctuation
    password = ''.join(random.choice(characters) for i in range(length))
    return password
  • 1

we are dead

Posts: 970

Threads: 34

Joined: Dec, 2016

Reputation: 104

Replied

@tempegoreng, You were right. The feature works, but it wasn't set to accept Python; Although the editor option list made it seem so. I've just now added support for it. I've also added support for Rust.

 

import random
import string

def generate_password(length=12):
    characters = string.ascii_letters + string.digits + string.punctuation
    password = ''.join(random.choice(characters) for i in range(length))
    return password

 

// This is the main function.
fn main() {
    // Statements here are executed when the compiled binary is called.

    // Print text to the console.
    println!("Hello World!");
}
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )