Skip to content

Instantly share code, notes, and snippets.

View sachith-gunasekara's full-sized avatar

Sachith Gunasekara sachith-gunasekara

View GitHub Profile
@sachith-gunasekara
sachith-gunasekara / GetPhiAreas.gs
Created January 29, 2023 18:42
A Google Script function that can be used to populate dependent dropdowns
function onEdit(e) {
var ss = SpreadsheetApp.getActive();
var sampleDataSheet = ss.getSheetByName("sample_data");
var mohPhiDataSheet = ss.getSheetByName("moh_phi_data");
// Check if the active sheet is "sample_data" and the active cell is in the first column (MOH area)
if (ss.getActiveSheet().getName() == "sample_data" && e.range.getColumn() == 1) {
// Notify user of populating process
SpreadsheetApp.getActiveSpreadsheet().toast("Populating PHI Values")
@sachith-gunasekara
sachith-gunasekara / ML - Linear Regression.ipynb
Last active March 9, 2023 15:51
Introduction to Linear Regression.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sachith-gunasekara
sachith-gunasekara / ML - Classification.ipynb
Last active March 9, 2023 15:51
02 com.towardsdatascience ML with Python - Classification.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sachith-gunasekara
sachith-gunasekara / ngrok.py
Last active November 16, 2023 06:30
VS Code(code-server) setup script on Colab via an ngrok tunnel
import fire
from pyngrok import ngrok
def set_ngrok_auth_token(ngrok_auth_token):
ngrok.set_auth_token(ngrok_auth_token)
if __name__ == "__main__":
fire.Fire(set_ngrok_auth_token)