Jump to content

User:JPxG/That page

From Wikipedia, the free encyclopedia
user · talk · index (prefix) · Wbot · Hbot · logs (CSD · XfD · PROD) V·E

If you are a total bozo who finds yourself looking these things up on the daily, feel free to bookmark this page.

CHALLENGE MODE: Add a new entry every time you type some syntax thing into the search bar and it auto-completes to the last time you had to look it up.

JavaScript
Python
stringy = String(69420); stringy = str(69420)
strungy = parseInt(stringy); strungy = int(stringy)
console.log(strungy); print(strungy)
Strings
strangy = "Baba booey, baby!".toUpperCase(); strangy = "Baba booey, baby!".upper()
strangy = strangy.replace("Y", "A"); strangy = strangy.replace("Y", "A", 1)
strangy = strangy.replaceAll("A", "O"); strangy = strangy.replace("A", "O")
bobyFirst = strangy.indexOf("BOBY"); bobyFirst = strangy.find("BOBY")
bobyCount = (strangy.split("BOBY").length - 1); bobyCount = strangy.count("BOBY")
boby = strangy.substring(bobyFirst); boby = strangy[bobyFirst:]
longth = strangy.length; longth = len(strangy)
console.log(bobyCount + " found, first at " + bobyFirst); print(str(bobyCount) + " found, first at " + str(bobyFirst))
Arrays
pilots = ["Roger", "Clarence", "Victor"]; pilots = ["Roger", "Clarence", "Victor"]
pilots.push("Shinji"); pilots.append("Shinji");
last = pilots.length; last = len(pilots)
pilots[last - 1] = "Shinjiko"; pilots[last - 1] = "Shinjiko"
Tests
if(["Jonathan", "Joseph", "Jotaro", "Josuke", "Giorno"].includes("JoJo")){ console.log("Wow!"); } if "dog" in ["cat", "dog", "snake", "bird"]:
if("hoomba baroomba".indexOf("oomba") !== -1){ console.log("Wow!"); } if "oomba" in "hoomba baroomba":


auto

crosshair
default
e-resize
help
move
n-resize
ne-resize
nw-resize
pointer
progress
s-resize
se-resize
sw-resize
text
w-resize
wait