Author: Konrad Fedorczyk

  • How to do something between exact two dates in PHP?

    How to do something between exact two dates in PHP?

    Sometimes you need to show something on your website in timeframe. This snippet will show you how to do it precisely: File: between_dates.php ———————– <?php $showDate = "2019-07-16 20:00:00.0"; $hideDate = "2019-07-22 20:00:00.0"; $timezone = new DateTimeZone('Europe/Warsaw'); $now = new DateTime(); $now->setTimezone($timezone); // If in timeframe if( $now > new DateTime($showDate, $timezone) && $now < […]

  • Easiest way to create a shortcut for running headless VirtualBox machine

    Easiest way to create a shortcut for running headless VirtualBox machine

    This short tutorial will show you how to create a shortcut to run machine in headless mode (on Windows).

  • Flamingo plugin with proper polish csv export

    Flamingo plugin with proper polish csv export

    In case anyone searching I’ve created a modified version of Flamingo plugin for WordPress. Now it exports proper polish csv files out of box (encoded in Windows-1250 and delimited with semicolons). Download here: http://realhe.ro/pub/flamingo-polish-export.zip Install using zip upload ability in WordPress or by FTP.

  • Full page regulations/terms

    Full page regulations/terms

    This is my approach for displaying full page regulations on your website. User won’t be able to do anything until scrolling to the bottom of license. Acceptance button will be enabled only after that.

  • Best (really) free stock resources

    Best (really) free stock resources

    Here are few image resource pages that I use in my everyday design tasks: StockSnap.io pxhere Gratisography Unsplash Negative Space freestocks.org lifeofpix.com New Old Stock FREE REFE REAL LIFE PHOTOS kaboompics Free to use original photography by Daria PikWizzard

  • Non aggressive shake animation for important buttons

    Non aggressive shake animation for important buttons

    You should not torture your visitors with floating messages about your awesome free newsletter. Maybe try this instead: You’re welcome! 🙂

  • Sass background gallery

    Sass background gallery

    Want some automatic slides in a background? You don’t want to use Javascript for that? You’re home bro!

  • How to access language var from PHP in Grav CMS?

    How to access language var from PHP in Grav CMS?

    Gravs documentation is a little bit harsh on PHP developers that want to write plugins. What can you do in this situation? Look trough source code, check other plugins or var_dump $this object 🙂 I’ve spent some time searching for an answer how to access language var in plugins class. And this is it: Have […]

  • Turn Google fonts offline automatically!

    Turn Google fonts offline automatically!

    If you’ve ever created an intranet HTML application that must be protected from external world, then you’ll probably know that Google Fonts are hard to convert for offline use… Someone created awesome app to change this: https://google-webfonts-helper.herokuapp.com Glory to the Mario Ranftl! You’re awesome dude!

  • Show a popup message on remote computer

    Show a popup message on remote computer

    Use this method to show message to logged user on remote computer: Message from shared text file will be outputted on remote computer.