Skip to content

Instantly share code, notes, and snippets.

View SeePetulaCode's full-sized avatar
🎯
Focusing.... trying to? *lol*

Petula Pascall SeePetulaCode

🎯
Focusing.... trying to? *lol*
View GitHub Profile
<script>
var a = document.getElementById("alphasvg");
// It's important to add an load event listener to the object,
// as it will load the svg doc asynchronously
a.addEventListener("load",function(){
// get the inner DOM of alpha.svg
var svgDoc = a.contentDocument;
// get the inner element by id
@SeePetulaCode
SeePetulaCode / click-image-play-sound.markdown
Created February 17, 2021 06:54
Click Image, Play Sound
@SeePetulaCode
SeePetulaCode / freecodecamp-tribute-page.markdown
Last active August 27, 2020 09:18
freeCodeCamp Tribute Page
import os
import sys
import random
import time
class Dice:
def __init__(self, sides):
self.sides = sides
def rollDice(self):
import random
import sys
import os
def numbers(x):
for i in range(x):
if i % 2 == 0:
yield i
listNums = list(numbers(11))
print(listNums[1:])
import random
import sys
import os
#this is a comment
name = input("Enter name: ")
print("hello " + name +"!")