Skip to content

Instantly share code, notes, and snippets.

View pascalduboin's full-sized avatar
🏠
Working from home

Pascal DUBOIN pascalduboin

🏠
Working from home
View GitHub Profile
@lukecav
lukecav / functions.php
Last active August 17, 2023 11:13
Disable the global styles in WordPress
remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' );
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );
@lukecav
lukecav / functions.php
Created January 11, 2022 18:48
Disable WordPress core update notifications
add_filter( 'auto_core_update_send_email', '__return_false' );
@lukecav
lukecav / functions.php
Created January 10, 2022 20:13
Enable HTML content in site emails in WordPress
function filter_wp_mail_content_type() {
return "text/html";
}
add_filter( 'wp_mail_content_type', 'filter_wp_mail_content_type', 10, 0 );
@lukecav
lukecav / functions.php
Created December 23, 2021 18:45
Disable Emoji DNS prefetch in WordPress
add_filter('emoji_svg_url', '__return_false');
* Disassembly of @deater object tweet https://twitter.com/deater78/status/1368790980237791232
* by @65816guy / digarok/ Dagen Brock
00/00E7: 20 D8 F3 JSR F3D8 ; HGR2 -- set hi-res, page2, full graphics
00/00EA: 8A TXA
00/00EB: 20 11 F4 JSR F411 ; HPOS2 - positions hi-res cursor without plotting
; (A) = Y-coordinate, (Y,X) = X-coordinate
00/00EE: A2 01 LDX #01
00/00F0: A0 F0 LDY #F0
00/00F2: 20 5D F6 JSR F65D ; XDRAW - Draws a shape inverting dots (eor/xor) on screen.
; (A) = rotation, (Y,X) = address of the shape table
@skttl
skttl / slide.js
Last active February 24, 2023 07:47
Vanilla JS slideup slidedown slidetoggle
let fadeOut = (target, duration=500) => {
target.style.transitionProperty = 'opacity';
target.style.transitionDuration = duration + 'ms';
target.style.opacity = 0;
window.setTimeout( () => {
target.style.display = 'none';
target.style.removeProperty('opacity');
target.style.removeProperty('transition-duration');
target.style.removeProperty('transition-property');
@lukecav
lukecav / wp-config.php
Created July 12, 2017 16:32
Use wp-config.php to CHMOD file and folders
define( ‘FS_CHMOD_DIR’, ( 0755 & ~ umask() ) );
define( ‘FS_CHMOD_FILE’, ( 0644 & ~ umask() ) );