With great power comes great responsibility
I don’t cry when I chop onions. If I’m chopping dozens of them, everyone needs to get out of the kitchen because the air will get potent (but I won’t notice).
I always have one with me in case I enter a shop that has a sign up asking patrons to wear a mask. I used to wear them religiously, but 3 years is enough. Although I respect everyone who still keeps their masks on…
In simple English… A number is divisible by 7 if the difference between 2 times the last digit and the remaining digits is divisible by 7.
Examples:
OP, if I have misunderstood your reasoning, please correct me.
I wish my energy company had that sort of an app! I usually have to calculate everything manually using the rates included on the back of each bill I get.
Excellent point. Thanks.
Thanks, this is the answer I was looking for. I’m trying to save money because we don’t have a lot. My wife is on board with saving, but she hasn’t done the math to see where most of our money is going.
I might need to back off a bit. I like to save, but this might be a bit much.
This should get you started:
import requests
# Fetch post from Reddit API
def fetch_reddit_post():
reddit_url = "https://www.reddit.com/r/{subreddit}/comments/{post_id}.json"
subreddit = "python" # Replace with the desired subreddit
post_id = "abcdef" # Replace with the desired post ID
url = reddit_url.format(subreddit=subreddit, post_id=post_id)
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"}
response = requests.get(url, headers=headers)
if response.status_code == 200:
post_data = response.json()
return post_data
else:
print("Failed to fetch post from Reddit API")
return None
# Post to Lemmy API
def post_to_lemmy(post_data):
lemmy_url = "https://lemmy.ml/api/{version}/post"
version = "v3" # Replace with the desired Lemmy API version
url = lemmy_url.format(version=version)
headers = {"Content-Type": "application/json"}
# Extract necessary information from the Reddit post
title = post_data[0]["data"]["children"][0]["data"]["title"]
content = post_data[0]["data"]["children"][0]["data"]["selftext"]
# Create payload for Lemmy API
payload = {
"title": title,
"body": content,
"community_id": "abcdef", # Replace with the desired Lemmy community ID
"auth": "your_auth_token" # Replace with your Lemmy API authentication token
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
print("Post successfully created on Lemmy")
else:
print("Failed to post to Lemmy API")
# Fetch post from Reddit API
post_data = fetch_reddit_post()
if post_data:
# Post to Lemmy API
post_to_lemmy(post_data)
And kids
“Bilingual” is really hard to define.
I live in Taiwan (English is my native language), and have studied Chinese to be passably fluent. I can trick people into thinking I can follow advanced conversations, interjecting comments here or there (even though I’m mostly lost – just picking out the tidbits I do understand and commenting on them).
But am I bilingual? At the end of the day, it doesn’t really matter. What matters the most is whether your level is “good enough” to do what you want! In my case, I just want to be able to go to the store, buy things, and hang out with friends. I can read the newspaper, but I’ll never be able to read/write business contracts – but that’s not a goal of mine.
There are so many different shades of bilingual. Don’t worry about it… and just be as good as you need to reach your goals!