Blog Spot!


Refactoring Guru

refactoring.guru

Refactoring.Guru makes it easy for you to discover everything you need to know about refactoring, design patterns, SOLID principles, and other smart programming topics.

Added on 30.Sep.2019
Tags: refactoring design patterns solid

Tailwind CSS - Forcing a footer to the bottom of the screen

With flex-box:

<body class="flex flex-col min-h-screen">
  <main class="flex-1">content</main>
  <footer>down</footer>
</body>

Added on 29.Sep.2019
Tags: footer positioning bottom down layout design

Tailwind CSS - Two equal panels full height

<body>
  <div class="flex">
    <!-- left  -->
    <div class="bg-blue-900 h-screen w-1/2 text-center text-gray-100 flex items-center">
      <div class="font-bold text-center w-full text-6xl">X</div>
    </div>

    <!-- right -->
    <div class="bg-indigo-300 h-screen w-1/2 text-center text-gray-900 flex items-center">
      <div class="font-bold text-center w-full text-6xl">Y</div>
    </div>
  </div>
</body>

Added on 13.Sep.2019
Tags: tailwind design css half

Checking if a browser supports ES6

var supportsES6 = function() {
  try {
    new Function("(a = 0) => a");
    return true;
  }
  catch (err) {
    return false;
  }
}();

The critical test is the a = 0. All browsers supporting default parameters have a fairly complete support of ES6 — for example, Edge 13 will be rejected by this test despite a decent ES6 coverage.

Added on 13.Sep.2019
Tags: es6 js test browser

Tailwind CSS - Responsive Navbar

Tailwind CSS - Responsive Navbar

Added on 12.Sep.2019
Tags: tailwind design css nav navigation

Search


PHP Libraries


Carbon lib / docs
Idiorm lib / docs
Image Workshop lib / docs
lorenzos/Minixed lib / docs
Parsedown lib / docs
PHP Paginator lib / docs
PHP Redis lib / docs
QrCode lib / docs
Requests lib / docs
Slim lib / docs
Spyc lib / docs
TWIG lib / docs
Upload lib / docs
Validation lib / docs
Zebra Image lib / docs

JS Libraries


AJV lib / docs
BackboneJS lib / docs
Bootstrap Notify lib / docs
C3.js lib / docs
ChartJS lib / docs
FastMD5 lib / docs
HighlightJS lib / docs
jQuery-Storage lib / docs
JS-Cookie lib / docs
Leaflet JS lib / docs
LowDB lib / docs
Marked lib / docs
NeedlyJS lib / docs
ParcelJS lib / docs
RequireJS lib / docs
Swig lib / docs
Toastr lib / docs
Underscore lib / docs
ValidateJS lib / docs
top