Skip to content

Instantly share code, notes, and snippets.

View fabriziospadaro's full-sized avatar
🎯
Focusing

Fabrizio Spadaro fabriziospadaro

🎯
Focusing
View GitHub Profile
const questions = [
{
text: "What's your mood today?",
followUp: [
"I'm sorry to hear that your mood is low today. Remember that it's okay to have bad days, and there's always a chance for things to improve. Take care of yourself.",
"It seems like you're not feeling great today. Try to focus on something that brings you joy or relax with a favorite activity. Better days are ahead.",
"You seem to be feeling neutral today. It's always a good idea to check in with yourself and find ways to improve your mood if needed. Keep going!",
"Glad to see you're feeling somewhat good today! Keep focusing on the positive aspects of your day, and remember to take some time for yourself.",
"It's fantastic to see that you're in a great mood today! Keep up the positive energy and remember to spread the happiness around."
]
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0xbxLlK5qPURbekKcMgOSDPDNJtZbYg8ypPC97a+uBl0r8blQ+GARIsww5sByBDRn6nIzF1696Jqtw7MbpwGoXhIKPvC1d0d5oQndIOOOy5gIrMkP3TE6kT9zi1//OqTCHSNiZP3si8AxHVMnN3xbumpikToXwNqLiaMdUu47E75Ar0yiZQWziY1tQCXckmov+TS5aW+hz/VLbRACy+OUqrXtFUNz7IqMYT/PidBjbSWpqjLkcwQpmwCxqS9lCM/NMtpqR6ohAx1BH8VuBQwh35KssMX/4nI/FrYl0MYB18vwlEAeKMpWTx4hwl2PGF7qzViSxYjfKFy10i6r45C/ fabriziospadaro@iMacdiFabrizio.homenet.telecomitalia.it
@fabriziospadaro
fabriziospadaro / overlap.cs
Created June 18, 2018 08:48
fastest way to get if 2 circles are overlapping
float dx = c2.Position.x - c1.Position.x;
float dy = c2.Position.y - c1.Position.y;
float radii = r1.Radius + r2.Radius;
if ((dx * dx) + (dy * dy) < radii * radii){
return true;
}
else{
return false;
}