Skip to content

Instantly share code, notes, and snippets.

@mdorchain
mdorchain / sliding-segments.page.html
Last active December 9, 2022 21:34
Ionic 4 Sliding segments
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Demo
</ion-title>
</ion-toolbar>
</ion-header>
@mdorchain
mdorchain / appp-custom.js
Last active March 30, 2018 11:53
Apppresser Offline
var is_offline = false;
var enableOfflineScreen = true;
//When device is offline
function goOffline() {
is_offline = true;
var appBody = document.getElementsByTagName( 'body' )[0];
//Set body class
appBody.classList.add( "app-offline" );
@mdorchain
mdorchain / gist:7bef35640327f640c2f2729a42b812c1
Last active September 27, 2017 23:00
.htaccess wp rocket
# BEGIN WP Rocket v2.10.9
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset UTF-8
# Force UTF-8 for a number of file formats
<IfModule mod_mime.c>
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
</IfModule>
# FileETag None is not enough for every server.