Omar Albeik
  • Blog
  • Snippets
  • Portfolio
  • About
  1. Home
  2. Snippets

Dark mode change detectionJS

Respond to appearance changes in system preference live in the browser in macOS 10.14+ and iOS 13+. Hint: try toggling dark mode on and off and observe this website 😉

Make trailing slash optional in DjangoDjango

Make trailing space optional in Django by overriding `SimpleRouter` in your `urls.py`

Remove trailing slash from URLNginx

Avoid duplicate content in your website analytics by removing the trailing slash from URL using Nginx

Remove all node_modules directoriesShell

Remove all node_modules directories before taking a backup of your files to make your life easier :)

LOC Per AuthorGit

Get number of lines contributed per each author in a git repository

Git Commits Per AuthorGit

Get number of commits in a git repository per author.

List of countriesJS

List of all countries - suitable for a contact page.

Encode string and replace /%20/ with +JS

Encode string and replace /%20/ with + to be used in a URL

Set navigation and tab bar titlesSwiftUI

Set navigation and tab bar titles, Similar to UINavigationItem and UITabBarItem in UIKit

  • 1
  • 2
  • 3
  • 4
  • 5
  • Blog
  • Portfolio
  • Snippets
  • RESTful API
  • About

This is a fully dockerized open-source project that uses Django and NextJS to build. Grab your copy from Github

  • github
  • twitter
  • linkedin
  • stackoverflow
Copyright © 2020 Omar Albeik. All rights reserved.