This is still unfinished, but hi!
I am a Roblox developer of intermediate skill, but I am learning Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), JavaScript, and much more.
My works in progress (Just Roblox for now)
My unofficial tropical cyclone season forecasts
This is the CSS used to make the code in this section look like Wikipedia <code></code> styling, although NOT MEANT TO BE EXACT.
/* PLEASE KEEP THIS AND THE FOLLOWING LINE
Script source: mekell12.neocities.org */
.code {
background-color: #EEE;
border: 1px solid #CCC;
font-family: courier;
}
This is a JavaScript function to get a random integer from a minimum bound to a maximum bound, inclusive.
/* PLEASE KEEP THIS AND THE FOLLOWING LINE
Script source: mekell12.neocities.org */
function randomIntegerInclusive(min: number, max: number) {
// The lower and upper variables are used to prevent bugs from usage of floats as the parameters.
let lower = Math.floor(min)
let upper = Math.ceil(max)
if (lower <= upper) {
return Math.floor(Math.random() * (max - min + 1)) + min
} else {
throw "the floor of value 'min' must be less than or equal to the ceil of value 'max'"
}
}
worldwideweb.py would honestly be a good name for this code.
# PLEASE KEEP THIS AND THE FOLLOWING LINE
# Script source: mekell12.neocities.org
class Website:
title = ""
link = "about:blank"
visits = 0
def __init__(self, title, link):
self.title = title
self.link = link
def visit(self):
self.visits += 1
def visit_multiple_times(self, times):
self.visits += times
def modify_title(self, new_title):
self.title = new_title
neocities = Website("Neocities", "https://neocities.org")
neocities.visit_multiple_times(10000)
I'm learning Swift as well :D
/* PLEASE KEEP THIS AND THE FOLLOWING LINE
Script source: mekell12.neocities.org */
let thisIsAConstant = !true
var thisCanBeWrittenTo = ":("
thisCanBeWrittenTo = ":)"
print(thisIsAConstant)
print(thisCanBeWrittenTo)
External additions used: