Skip to content

Instantly share code, notes, and snippets.

View casdidier's full-sized avatar
🏠
Working from home

Didier Cheung casdidier

🏠
Working from home
View GitHub Profile
@casdidier
casdidier / debug.css
Created October 15, 2022 08:43 — forked from paceaux/debug.css
A Sass/SCSS debug mixin
.isDebugging .debug {
outline: 1px solid rgba(200, 100, 50, 0.9);
}
.isDebugging .debug * {
outline: 1px solid rgba(200, 100, 50, 0.9);
}
@casdidier
casdidier / dynamic-onchange.js
Created August 9, 2020 06:55 — forked from bad6e/dynamic-onchange.js
Dynamic onChange
handleChange = (event) => {
const { target: { name, value } } = event
this.setState({ [name]: value })
}
@casdidier
casdidier / emailer.py
Created April 3, 2016 09:09 — forked from sarahholderness/emailer.py
Python scripts to read a list of customer emails and send an email with the daily weather forecast
import weather
import smtp
'''
Send a greeting email to our customer email list
with the daily weather forecast and schedule
'''
def get_emails():
# Reading emails from a file