Skip to content

Instantly share code, notes, and snippets.

View georgiee's full-sized avatar
👻
Ghosting github.com since a while

Georgios Kaleadis georgiee

👻
Ghosting github.com since a while
View GitHub Profile
@georgiee
georgiee / README.md
Created June 20, 2022 14:13
web component lite for react: isolate css & dom (shadow dom enhancement)

I'm building a React widget where I don't control the environment. I want to make sure that no css bleeds into my widget. Instead of delviering my component as a web component I though of the underlying shadow dom standard to render react directly into a shadow dom (together with any styles emitted from styled components).

Works pretty good. Idea is from https://www.wpeform.io/blog/render-react-app-shadow-dom-styled-components/ which I found while searching for some prior art of this approach.

@georgiee
georgiee / README.md
Last active September 15, 2023 08:28
Browser Localization Issues with input[type=numeric]

Intro

Questions to answer:

  • How does a numeric input handle locales?
  • How can I determine the output?
  • How can I change it?

Innocent questions but it's a wild ride.

Description

@georgiee
georgiee / experiment.rb
Created February 8, 2024 07:50
Diff/Challenges ActiveRecord Playground
# idea to tinker around with active records with an in memory db from here:
# https://makandracards.com/makandra/32401-activerecord-how-to-use-activerecord-standalone-within-a-ruby-script
# Run this script with `$ ruby my_script.rb`
require 'sqlite3'
require 'active_record'
require 'paper_trail'
# Use `binding.pry` anywhere in this script for easy debugging
require 'pry'
+ my line
- other line