Skip to content

Instantly share code, notes, and snippets.

View tgaeta's full-sized avatar
🖖
Live long and prosper.

Tony Gaeta tgaeta

🖖
Live long and prosper.
View GitHub Profile
@tgaeta
tgaeta / 99bottles.rs
Last active October 13, 2023 20:27
99bottles.rs
impl Bottles {
pub fn song(&self) -> String {
self.verses(99, 0)
}
pub fn verse(&self, n: i32) -> String {
format!("{} {} of beer on the wall, {} {} of beer.\n{}",
self.start(n),
self.pluralization(n),
self.start(n).to_lowercase(),
@tgaeta
tgaeta / 99bottles.ts
Last active September 17, 2023 01:39
99bottles.ts
// TS Playground: https://www.typescriptlang.org/play?#code/MYGwhgzhAEBCD2AXRICmMDeAoa0LwDsBzACgEoAuPRAJwEtjptdcbVEBXGg6RACzoQAdADdUNCOhIBOaQBpoABjIBuHNAC+WdWImoSBKgQ4BbAEbjK1eo2Ys2nbtAAGAEgz9BQiIjA1EBmQa0O6ewgAOIFxgIHQAXmCIdISBwfAAZtAW4tCEvHyo0ADuMSAKztAA1OosLqECwj5+AQRkQojwADLwReIAwpD6QSEeDUKR0bEJSSmtaZnZNEIAOgQVldA1LGFCiwD6wHzwbIFquFo64pIQJOk08CZGphY0Ch1P5pZUPjZETFtoRDQXTXACCNBo31oDCIAG0ALrQAC80ARZxY6WOJEB0DoyOgdweKlx0AAfCiOsS6ABaalkf61XAg9DgpbhDgQPgkHbMkh0MiqLZaWoOLg8ZkQVlCABW8AYJAARKsFYLztpcBMaDF4olkgQDB8XlYfjCGfZ2GLoDwkTboABGaAAfmgAHIzEgUKgXdAqG6PWgIC70RcNfcCPAOPrDFbnl9rKa7KwLU5rbaHc6XXREN7fYQvcH1dA2CYwAwYQaY58aFZjFXoAAfeO2LaipwGaDU+30m0oxRO13h6AmY5en1Wjv2gvqJr+Cu1o1Q35mpOOHip3v9l0AOXgQ5HOat7XgAGVocRyFPcPtDiO57Hq4uE1s6JluWNi6WCOXWsjbdS7fSibmqu0AKgA4ruHT5IUPgjtAYAEAAJlkHAAJ54A8hTDmwCiyFk-roLkCyoDkeT8IUJQgCAKwEAq6LnNAqAgJIy7AZazgACpgAA1oU9ReOEYYRlGwyIT0PAIch4SQDAWbwfckaIQo-HCB+ZbnnMLhVFstRuKMAlRFqUy6rME4AfMWQkTQuQ8ORxSlDRzj0Zo6haBcwCED4+HIAG+IEKgRRwARNyCh5BD4GgQggPApDuj56DeIQpACmoWAAPRpdAYURagUUxSQcWesIvI
interface eth0
static ip_address=192.168.1.100/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1 8.8.8.8
@tgaeta
tgaeta / Targeting Key Molecular Players: A Multifaceted Therapeutic Strategy for Parkinson's Disease.md
Last active April 2, 2023 14:09
Targeting Key Molecular Players: A Multifaceted Therapeutic Strategy for Parkinson's Disease

Comprehensive Parkinson's Disease Treatment Strategies: A Multifaceted Approach to Target Key Molecular Players

Explore cutting-edge therapeutic strategies for Parkinson's disease, focusing on α-synuclein, LRRK2, Parkin, PINK1, and GBA.

a. For α-syn:

i. Small molecule inhibitors:

  • Perform high-throughput screening of chemical libraries to identify potential α-syn aggregation inhibitors.
  • Use computational methods, such as molecular docking, to predict the binding mode of candidate inhibitors.
@tgaeta
tgaeta / Developing a Hybrid Quantum-Classical Model for Hurricane Forecasting: A Comprehensive Guide.md
Last active May 19, 2023 18:51
Explore the development of a hybrid quantum-classical model for hurricane forecasting, devised by GPT-4 through an intricate question-answer chain. This comprehensive guide covers the essential steps in a technically precise yet comprehensible manner, from choosing an appropriate classical machine learning model to incorporating quantum optimiza…

Developing a Hybrid Quantum-Classical Model for Hurricane Forecasting: A Comprehensive Guide

Where should I get the data? To obtain historical hurricane data for training and evaluating your hybrid quantum-classical model, you can consider the following sources:

  1. National Oceanic and Atmospheric Administration (NOAA) - NOAA's National Hurricane Center (NHC) and the National Centers for Environmental Information (NCEI) provide extensive historical hurricane data, including track and intensity information, as well as various meteorological variables. The HURDAT2 dataset, for example, contains data for Atlantic and Eastern Pacific storms dating back to 1851:

  2. International Best Track Archive for Climate Stewardship (IBTrACS) - IBTrACS is a global dataset that co

@tgaeta
tgaeta / 99bottles.rb
Last active September 17, 2023 01:39
99bottles.rb
class Bottles
def song
verses(99, 0)
end
def verse(n)
"#{start(n)} #{pluralization(n)} of beer on the wall, "\
"#{start(n).downcase} #{pluralization(n)} of beer.\n" + beer_chore(n)
end