Skip to content

Instantly share code, notes, and snippets.

View mortezae's full-sized avatar

Morteza E mortezae

View GitHub Profile
@bitsnaps
bitsnaps / bootstrap5.md
Last active August 28, 2026 14:56
A cheat sheet for Bootstrap 5

Bootstrap v5 Cheat Sheet:

This cheat sheet provides a comprehensive overview of the Bootstrap v5 CSS framework, including its layout system, typography, colors, components, utilities, JavaScript plugins, customization options, accessibility considerations, responsive utilities, and RTL support.

It also demonstrates with some code usage examples how to use various features in your HTML and CSS code.

1. Layout

  • Container: .container, .container-fluid, .container-{breakpoint}
  • Grid system: .row, .col, .col-{breakpoint}-{size}
  • Responsive breakpoints: sm, md, lg, xl, xxl
@romainl
romainl / grep.md
Last active June 29, 2026 09:08
Instant grep + quickfix

FOREWORDS

I don't mean the snippet at the bottom of this gist to be a generic plug-n-play solution to your search needs. It is very likely to not work for you or even break things, and it certainly is not as extensively tested and genericised as your regular third-party plugin.

My goal, here and in most of my posts, is to show how Vim's features can be leveraged to build your own high-level, low-maintenance, workflows without systematically jumping on the plugins bandwagon or twisting Vim's arm.


Instant grep + quickfix

@rg3915
rg3915 / _xmacroplay.md
Last active June 29, 2022 07:41
xmacroplay usage example.

#xmacroplay

Exemplo de uso do xmacroplay.

Usage:

sudo apt-get install xmacro
sudo apt-get install vim
wget --output-document=xmacroexample.sh https://goo.gl/Xt9KkU
@joshnuss
joshnuss / app.js
Last active September 28, 2026 19:33
Express.js role-based permissions middleware
// the main app file
import express from "express";
import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db)
import authenticate from "./authentication"; // middleware for doing authentication
import permit from "./authorization"; // middleware for checking if user's role is permitted to make request
const app = express(),
api = express.Router();
// first middleware will setup db connection