Skip to content

Instantly share code, notes, and snippets.

View ShahiShohanur's full-sized avatar

Shahi Shohanur Hamid ShahiShohanur

View GitHub Profile
brew install --cask font-cascadia-code
brew install --cask font-cascadia-code-pl
brew install --cask font-cascadia-mono
brew install --cask font-cascadia-mono-pl
@hotdang-ca
hotdang-ca / DetectAdBlock.js
Last active March 1, 2023 09:52
Detect AdBlockers from a React Component
/**
*
* Detect Ad Blockers
*
* Copyright (c) 2017, 2019 Four And A Half Giraffes, Ltd.
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell