0xScourgedev's Projects
Smart Contracts for Argent Wallet
1) Import the random function and generate both a random number between 0 and 1 as well as a random number between 1 and 10. 2) Use the datetime library together with the random number to generate a random, unique value.
1) Write a normal function that accepts another function as an argument. Output the result of that other function in your “normal” function. 2) Call your “normal” function by passing a lambda function – which performs any operation of your choice – as an argument. 3) Tweak your normal function by allowing an infinite amount of arguments on which your lambda function will be executed. 4) Format the output of your “normal” function such that numbers look nice and are centered in a 20 character column.
1) Create two variables – one with your name and one with your age 2) Create a function which prints your data as one string 3) Create a function which prints ANY data (two arguments) as one string 4) Create a function which calculates and returns the number of decades you already lived (e.g. 23 = 2 decades)
1) Create a Food class with a “name” and a “kind” attribute as well as a “describe() ” method (which prints “name” and “kind” in a sentence). 2) Try turning describe() from an instance method into a class and a static method. Change it back to an instance method thereafter. 3) Create a “Meat” and a “Fruit” class – both should inherit from “Food”. Add a “cook() ” method to “Meat” and “clean() ” to “Fruit”. 4) Overwrite a “dunder” method to be able to print your “Food” class.
1) Write a short Python script which queries the user for input (infinite loop with exit possibility) and writes the input to a file. 2) Add another option to your user interface: The user should be able to output the data stored in the file in the terminal. 3) Store user input in a list (instead of directly adding it to the file) and write that list to the file – both with pickle and json. 4) Adjust the logic to load the file content to work with pickled/ json data.
1) Create a list of “person” dictionaries with a name, age and list of hobbies for each person. Fill in any data you want. 2) Use a list comprehension to convert this list of persons into a list of names (of the persons). 3) Use a list comprehension to check whether all persons are older than 20. 4) Copy the person list such that you can safely edit the name of the first person (without changing the original list). 5) Unpack the persons of the original list into different variables and output these variables.
1) Create a list of names and use a for loop to output the length of each name (len() ). 2) Add an if check inside the loop to only output names longer than 5 characters. 3) Add another if check to see whether a name includes a “n” or “N” character. 4) Use a while loop to empty the list of names (via pop() )
Score Keeper App
This repository is a demo of a ZK circuit using Circom with snarkjs trusted setup
Solution to Certora's Fuzzing Challenge
Solidity Fuzzing Library
Contract deployed on the ETH Rinkeby Test network at: 0x78a10Ae0F6AafB26156045Be86d713eB2A2d30B6
Single screen app of Taco Bell info
Udacity Networking Stage 1