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 requests | |
def getTicker (company_name): | |
url = "https://s.yimg.com/aq/autoc" | |
parameters = {'query': company_name, 'lang': 'en-US'} | |
response = requests.get(url = url, params = parameters) | |
data = response.json() | |
company_code = data['ResultSet']['Result'][0]['symbol'] | |
return company_code |
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
""" | |
(c) 2021 Keyspace | |
Compares a LazySodium / LibSodium output from Keyspace Android with PyNaCl's output and checks if LazySodium's signatures match PyNaCl's signature. | |
Note: LazySodium output on Android and PyNaCl output from this script must be the same due to determinism. | |
______________________________________________________________________________________________________________________________________________________ | |
.-------> Public key -----> Verify data |
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
def similar_word(string, substring): | |
threshold=2 | |
def levenshtein_distance(s1, s2): | |
m, n = len(s1), len(s2) | |
dp = [[0] * (n + 1) for _ in range(m + 1)] | |
for i in range(m + 1): | |
for j in range(n + 1): | |
if i == 0: dp[i][j] = j |
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
# GCP gives you $300 in free credits for a few months. Use it to host Luna Server! | |
wget https://github.com/LunaMultiplayer/LunaMultiplayer/releases/download/0.29.0/LunaMultiplayer-Client-Release.zip | |
unzip LunaMultiplayer-Client-Release.zip | |
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt-get update | |
sudo apt-get install -y dotnet-sdk-5.0 |
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
#!/bin/bash | |
bloat=() | |
bloat+=("com.tcl.partnercustomizer") | |
bloat+=("com.tcl.smartalexa") # Alexa integration for tv controls | |
bloat+=("com.tcl.gallery") # Gallery app | |
bloat+=("com.tcl.notereminder") # Notes and reminders app | |
bloat+=("com.google.android.videos") # Google Play Movies and TV (Doesn't get rid of homescreen recommendations) | |
bloat+=("com.google.android.play.games") # Google Play Games |