This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 |
petulapascall@gmail.com • (310) 503-1613 • seepetulacode.github.io
linkedin.com/in/petulapascall • github.com/seepetulacode
HTML/CSS, Python, Javascript, Node.js, EJS Tools: Git/Git Hub, Firebase, API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import random | |
import time | |
class Dice: | |
def __init__(self, sides): | |
self.sides = sides | |
def rollDice(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import sys | |
import os | |
#this is a comment | |
name = input("Enter name: ") | |
print("hello " + name +"!") |
NewerOlder