Skip to content

Instantly share code, notes, and snippets.

View MedUnes's full-sized avatar
💭
I may be slow to respond.

medunes MedUnes

💭
I may be slow to respond.
View GitHub Profile
@MedUnes
MedUnes / last_tag.sh
Last active June 12, 2022 20:47
[Bash] Get the n(th) git tag
#!/bin/bash
n=$1
git for-each-ref --sort=-taggerdate | grep refs/tags/v | cut -d '/' -f 3 | head -$n | tail -1
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active June 27, 2024 14:45
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@JusteLeblanc
JusteLeblanc / materialize_form_theme.html.twig
Created February 27, 2017 21:09
Symfony2 form theme to integrate Materialize in your Symfony2 forms
{% extends 'form_div_layout.html.twig' %}
{% block form_row -%}
<div class="row{% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}">
<div class="input-field col s12">
{{- form_widget(form) -}}
{{- form_label(form) -}}
{{- form_errors(form) -}}
</div>
</div>