Skip to content

Instantly share code, notes, and snippets.

View brahimvandenbrande's full-sized avatar

.bil(); brahimvandenbrande

View GitHub Profile
@brahimvandenbrande
brahimvandenbrande / responsive-element-hider.css
Created July 31, 2024 09:31
This CSS code uses media queries to hide elements based on screen size: .hide-mobile: Hides elements on screens up to 767px wide. .hide-tablet: Hides elements on screens between 768px and 1023px wide. .hide-desktop: Hides elements on screens 1024px and wider.
@media screen and (max-width: 767px) {
.hide-mobile {
display: none;
}
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
.hide-tablet {
display: none;
}
@brahimvandenbrande
brahimvandenbrande / brewfile.txt
Last active September 26, 2024 17:50
Brewfile for Homebrew
# Homebrew Package Manager (taps)
tap "homebrew/bundle"
tap "buo/cask-upgrade"
tap "mongodb/brew"
tap "nikolaeu/numi"
# Homebrew Formulae (packages)
brew "mas"
brew "node"
brew "rclone"
<?php
//Disable emojis in WordPress
add_action( 'init', 'smartwp_disable_emojis' );
function smartwp_disable_emojis() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
@brahimvandenbrande
brahimvandenbrande / font-smoothing.css
Last active February 12, 2025 13:14
The following CSS code snippet targets the 'body' element and applies font smoothing properties for a better text rendering experience on different browsers
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}