Skip to content

Instantly share code, notes, and snippets.

View AnaisGueyte's full-sized avatar

Anaïs Gueyte AnaisGueyte

View GitHub Profile
@androidzhibinw
androidzhibinw / flask-flash-bootstrap
Created January 27, 2016 10:36 — forked from victorkristof/flask-flash-bootstrap
Flask flash messages as Bootstrap alert.
{% with messages = get_flashed_messages(with_categories=true) %}
<!-- Categories: success (green), info (blue), warning (yellow), danger (red) -->
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<!-- <strong>Title</strong> --> {{ message }}
</div>
{% endfor %}
{% endif %}
@pyguerder
pyguerder / .htaccess
Last active December 3, 2023 23:24
Installation de Flask sur un hébergement mutualisé OVH
Options +ExecCGI
AddHandler cgi-script .cgi
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ flask.cgi/$1 [QSA,L]
@aquelito
aquelito / git-command.md
Last active July 6, 2024 07:10
GIT - Ligne de commande principale
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.