Skip to content

Instantly share code, notes, and snippets.

View iuliaL's full-sized avatar
♾️

Iulia Maria Lungu iuliaL

♾️
View GitHub Profile
@iuliaL
iuliaL / index.tsx
Last active April 13, 2022 11:44
two-way databinding with Jotai atoms
/*
* This atom, when you set its value, triggers the custom write function we provide,
* and can modify the atoms it relies on. It's basically two-way data binding.
*/
import { atom, useAtom } from 'jotai';
const priceAtom = atom(10);
const priceModifier = atom(
(get) => get(priceAtom) * 2, // this is called derived atom
@iuliaL
iuliaL / txt-to-markdown.sh
Created January 26, 2023 17:00
Recursively rename all .txt files in the current directory to .md.
find . -iname "*.txt" -exec bash -c 'mv "$0" "${0%\.txt}.md"' {} \;
@iuliaL
iuliaL / whatsapp-btn-script.html
Created January 15, 2025 14:51
Whatsapp button script to show in the down right corner of a website - redirects to whatsapp
<!-- generated from https://www.delightchat.io/whatsapp-chat-button-widget -->
<script async src="https://d2mpatx37cqexb.cloudfront.net/delightchat-whatsapp-widget/embeds/embed.min.js"></script>
<script>
var wa_btnSetting = {
btnColor: "#16BE45",
ctaText: "",
cornerRadius: 40,
marginBottom: 20,
marginLeft: 20,
marginRight: 20,