Skip to content

Instantly share code, notes, and snippets.

View nikhilbhatt's full-sized avatar
🎯
Focusing

Nikhil Bhatt nikhilbhatt

🎯
Focusing
View GitHub Profile
@nikhilbhatt
nikhilbhatt / bookmarks_code.txt
Last active February 2, 2025 08:08
Skip You Tube Ad script
javascript:(function(){setInterval(()=>{const skipButton = document.querySelector('.ytp-ad-skip-button'); const adOverlay= document.querySelector('.ytp-ad-overlay-close-container'); if(adOverlay !=undefined) adOverlay.click(); if(skipButton != undefined) skipButton.click();}, 2000)})();
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active June 18, 2024 11:27
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@iangreenleaf
iangreenleaf / gist:b206d09c587e8fc6399e
Last active February 24, 2025 11:16
Rails naming conventions

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.