CSSWG Issue: w3c/csswg-drafts#4559
Demo: https://codepen.io/bramus/pen/oNVqZZq/546b6c9793668ad461329fb34732657f?editors=0110
@property --sibling-index {CSSWG Issue: w3c/csswg-drafts#4559
Demo: https://codepen.io/bramus/pen/oNVqZZq/546b6c9793668ad461329fb34732657f?editors=0110
@property --sibling-index {| // Credit to Michal Mocny (https://twitter.com/mmocny) | |
| // | |
| // Copy and paste this into the console and click around to see all interactions, whether they would pass INP, | |
| // and if you expand the entry you'll see the debug breakdown information. | |
| // | |
| // This is basically the same as the Core Web Vitals extension does: https://web.dev/debug-cwvs-with-web-vitals-extension/ | |
| const valueToRating = (score) => score <= 200 ? 'good' : score <= 500 ? 'needs-improvement' : 'poor'; | |
| const COLOR_GOOD = '#0CCE6A'; |
| CREATE EXTENSION IF NOT EXISTS "unaccent" | |
| CREATE OR REPLACE FUNCTION slugify("value" TEXT) | |
| RETURNS TEXT AS $$ | |
| -- removes accents (diacritic signs) from a given string -- | |
| WITH "unaccented" AS ( | |
| SELECT unaccent("value") AS "value" | |
| ), | |
| -- lowercases the string | |
| "lowercase" AS ( |
I am moving this gist to a github repo so more people can contribute to it. Also, it makes it easier for me to version control.
Please go to - https://github.com/praveenpuglia/shadow-dom-in-depth for latest version of this document. Also, if you find the document useful, please shower your love, go ⭐️ it. :)
Heads Up! It's all about the V1 Spec.
In a nutshell, Shadow DOM enables local scoping for HTML & CSS.
| <script type="text/javascript"> | |
| (function () { | |
| "use strict"; | |
| // once cached, the css file is stored on the client forever unless | |
| // the URL below is changed. Any change will invalidate the cache | |
| var css_href = './index_files/web-fonts.css'; | |
| // a simple event handler wrapper | |
| function on(el, ev, callback) { | |
| if (el.addEventListener) { | |
| el.addEventListener(ev, callback, false); |
A list of Sketch plugins hosted at GitHub, in no particular order.
| require 'csv' | |
| def memstats | |
| size = `ps -o size= #{$$}`.strip.to_i | |
| end | |
| memstats #4900 | |
| CSV.open('visitors.csv', headers: true) do |csv| | |
| visitors = csv.each # Enumerator | |
| memstats # 5164 |
| app_1: foreman start --root app_1 --port 3000 --env app_1/.env | |
| app_2: foreman start --root app_2 --port 3100 --env app_2/.env | |
| app_3: foreman start --root app_3 --port 3200 --env app_3/.env |
| require 'delegate' | |
| class Base | |
| def foo | |
| "foo" | |
| end | |
| def bar | |
| "bar" | |
| end | |
| end |
| # For context, this was inspired by the RubyRogues podcast #79 where they talked about | |
| # documentation in Ruby, and specifically grumbled quite a bit about the failings of RDoc. | |
| # | |
| # http://rubyrogues.com/079-rr-documenting-code/ | |
| # | |
| # As someone who's spent a lot of time using an IDE for programming C# and Java, I think | |
| # Ruby could do a lot better at putting documentation at our fingertips as we program. | |
| # | |
| # Maybe making the documentation part of the structure of the code would facilitate this? | |
| # |