Skip to content

Instantly share code, notes, and snippets.

View pplonski's full-sized avatar
😄
Enjoy programming and writing

Piotr pplonski

😄
Enjoy programming and writing
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pplonski
pplonski / js_link.py
Created November 29, 2022 10:55 — forked from korakot/js_link.py
Calling python function from JS in Colab
@pplonski
pplonski / preprocessors.py
Created November 18, 2022 08:17 — forked from brazilbean/preprocessors.py
Custom Jupyter Notebook Pre-processors
'''Specialized Preprocessors'''
import nbconvert, nbformat, re, sys
from nbconvert.preprocessors import ExecutePreprocessor, Preprocessor
from traitlets import Dict, Unicode
from textwrap import dedent
from warnings import warn
def warn_deprecated(msg):
'''Raise a DeprecationWarning'''
@pplonski
pplonski / deploy-django.md
Created September 23, 2022 15:42 — forked from rmiyazaki6499/deploy-django.md
Deploying a Production ready Django app on AWS

Deploying a Production ready Django app on AWS

In this tutorial, I will be going over to how to deploy a Django app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app Hygge Homes (a vacation home rental app for searching and booking vacation homes based off Airbnb) and we wanted to share with other developers some of the lessons we learned along the way.

Following this tutorial, you will have an application that has:

  • An AWS EC2 server configured to host your application
  • SSL-certification with Certbot
  • A custom domain name
  • Continuous deployment with Github Actions/SSM Agent
@pplonski
pplonski / dashboard_mercury.ipynb
Created February 26, 2022 14:14
Dashboard Notebook with Mercury
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pplonski
pplonski / sf_crimes_YAML.yaml
Created February 14, 2022 15:12
The YAML header for SF crimes notebook - for dashboard creation in Mercury
---
title: SF Crime 👮
description: Dashboard of San Fransisco Crime Dataset with Mercury
show-code: False
params:
limit:
input: slider
label: Limit number of cases
value: 1000
min: 100
@pplonski
pplonski / sf_crimes_dashboard.ipynb
Created February 14, 2022 13:46
SF Crimes Dashboard
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pplonski
pplonski / Mercury_Contributor_License_Agreement.md
Last active January 24, 2022 21:43
Mercury Contributor License Agreement

Mercury Contributor License Agreement

I disavow any rights or claims to any changes submitted to the Mercury project and assign the copyright of those changes to MLJAR Sp. z o.o.

As far as the law allows, my contributions come as is, without any warranty or condition, and I will not be liable to anyone for any damages related to this software or this license, under any kind of legal claim.

@pplonski
pplonski / mljar_automl_mode.py
Last active April 1, 2021 12:49
MLJAR AutoML modes
'''
MLJAR AutoML can work in 4 modes:
- Explain
- Perform
- Compete
- Optuna
'''
# training in Explain mode, perfect for data exploration
automl = AutoML(mode="Explain")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.