Harry Parkinson
@HarryParkinson2
Public Repls
Community
0
Reversing numbers/* Assume the input is a 32-bit signed integer, meaning it can represent values in the range from -2^31 to 2^31 - 1.
Overflow: If reversing the integer causes it to go outside the signed 32-bit integer range, then return 0.
Your task is to implement the reverse function in TypeScript, which takes an integer as an argument and returns the reversed integer. If the reversed integer overflows the 32-bit signed integer range, return 0. */
0
0
0
Check website vulnerabilitiesTo use this script, you would need to run it from the command line and pass in the HTTPS address of the website you want to check. For example:
python check_vulnerabilities.py https://www.example.com
0
0
0
Shortest distance between Mars and EarthThis function takes in the orbital parameters for a planet (semi-major axis, eccentricity, and true anomaly), and uses them to calculate the planet's opposition distance using the formula given above. The code then uses this function to calculate the opposition distance for the Earth and Mars and determines the shortest distance between the two planets by taking the minimum of these two distances.
0
0
0
Send emails using pythonEnter your Gmail and password and send messages using SMTP and python
0
0
0
Fibonacci NumbersPrints out the Fibonacci sequence to a given range.
0
0
0
Generators RangeA closer look at how the range function works under the hood.
0
0
0
Generators 3An example of how generators work in python.
0
0
0
Generators HelperA help sheet I made for working with generators in python.
0
0
0
Error HandlingA simple program designed to handle errors.
0
0
0
Errors In PythonSome examples of errors in python.
0
0
0
Function Performance Speed TesterThis is a function I created to help test function speeds and improve code speed. Enjoy!
0
0
0
DecoratorsAn example of how decorators work in python
0
0
0
Set and Dictionary ComprehensionExamples of set and dictionary comprehension for help practicing python.
0
0
0
Lambda HelperI created this to help understand the concept of lambda expressions.
0
0
0
Functional exerciseExercise to help with python programming. Enjoy!
0
0
0
zip()Example of zip
0
0
0
filter()Some examples of the built-in filter method.
0
0
0
map()An example of map built-in function.
0
0
0
MRO FunShowing the MRO process in more detail.
0
0
0
Method Resolution OrderShows the built in MRO that python uses to decide what order to run code.
0
0