Skip to content

Instantly share code, notes, and snippets.

View batisteo's full-sized avatar
💚
Saluton!

Řůšťý Ðěνëľőρεr batisteo

💚
Saluton!
View GitHub Profile
@batisteo
batisteo / .gitconfig
Created July 19, 2018 12:39
Gitconfig
[core]
editor = vim
excludesfile = /home/batisteo/.gitignore_global
[color]
ui = true
[alias]
co = checkout
br = branch
ci = commit
st = status
@batisteo
batisteo / django-cover.sh
Created June 12, 2018 12:34
Run coverage for a django project with watchexec
cover() {
watchexec -r -s SIGTERM -w src -e py -- 'coverage run ./src/manage.py test --keepdb '$1' && coverage xml -o cov.xml ; coverage report --skip-covered'
}
cov() {
watchexec -r -s SIGTERM -w src -e py -- 'coverage run --parallel-mode ./src/manage.py test --keepdb --parallel 2 --exclude-tag slow '$1' && coverage xml -o cov.xml && coverage report --skip-covered'
}
<body style="margin:4em 15%;font:17px/1.6em sans">
</body>
@batisteo
batisteo / django-docs-dark.css
Last active February 2, 2022 20:47
Dark theme for Django framework website djangoproject.com
@-moz-document domain("djangoproject.com") {
/* Fork or comment on: https://gist.github.com/batisteo/4f4c1552ba18ffa51a4b8bfb527c9673 */
/* License: http://www.wtfpl.net/txt/copying */
body,
[role="main"],
.mdzr-boxshadow.container.sidebar-right {
background: #222 !important;
}
@batisteo
batisteo / index.html
Created February 21, 2018 21:45 — forked from atul-github/index.html
Bouncing balls in D3.js
<!--
Author : Atul Pandit
Email : atul_pandit@yahoo.com / atul.pandit@gmail.com
-->
<!--
DEMO LINK
http://bl.ocks.org/atul-github/0019158da5d2f8499f7f
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

The state of Pipenv

Python Development Workflow for Humans™

Pipenv is meant to replace:

  • requirements.txt
  • virtualenv / virtualenvwrapper
  • pip-tools / pip-compile
<ul id="aligxintoj"></ul>
<script src="https://unpkg.com/tabletop/src/tabletop.min.js"></script>
<script>
function listigi(datumo) {
const ul = document.getElementById("aligxintoj");
datumo.forEach(function(homo) {
const li = document.createElement("li");
li.innerHTML = `${homo.Nomo} (${homo.Lando})`;
[user]
name = Baptiste Darthenay
email = baptiste@darthenay.fr
[color]
ui = auto
[alias]
co = checkout
ci = commit
st = status
br = branch
@batisteo
batisteo / new_french_regions.py
Created November 25, 2016 21:40
Nouvelles régions françaises par numéro de département (nov 2016)
# Usage: region_name = french_region[departement]
french_region = {
"01": "Auvergne-Rhône-Alpes",
"03": "Auvergne-Rhône-Alpes",
"07": "Auvergne-Rhône-Alpes",
"15": "Auvergne-Rhône-Alpes",
"26": "Auvergne-Rhône-Alpes",
"38": "Auvergne-Rhône-Alpes",
"42": "Auvergne-Rhône-Alpes",
@batisteo
batisteo / laboro_en_TEJO.md
Last active October 11, 2016 09:31
Laborĵurnalo dum mia laboro en TEJO