Skip to content

Instantly share code, notes, and snippets.

View skywodd's full-sized avatar

Fabien Batteix skywodd

View GitHub Profile
@skywodd
skywodd / bulma.min.css
Created April 9, 2020 23:24
Générateur d'attestations en pure HTML/CSS/JS
/*! bulma.io v0.8.0 | MIT License | github.com/jgthms/bulma */@-webkit-keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes spinAround{from{transform:rotate(0)}to{transform:rotate(359deg)}}.breadcrumb,.button,.delete,.file,.is-unselectable,.modal-close,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.tabs{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.navbar-link:not(.is-arrowless)::after,.select:not(.is-multiple):not(.is-loading)::after{border:3px solid transparent;border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:.625em;margin-top:-.4375em;pointer-events:none;position:absolute;top:50%;transform:rotate(-45deg);transform-origin:center;width:.625em}.block:not(:last-child),.box:not(:last-child),.breadcrumb:not(:last-child),.content:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.list:not(:last-child),.message:not(:last-child),.notificat
@skywodd
skywodd / attestation.html
Created April 7, 2020 13:35
Template HTML pour Attestation de déplacement dérogatoire
<!DOCTYPE html>
<html>
<head>
<title>ATTESTATION DE DÉPLACEMENT DÉROGATOIRE</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<style>
@font-face {
font-family: 'Marianne';
@skywodd
skywodd / README.md
Last active January 29, 2019 21:29
DigiSpark + Nunchuck controller for Estlcam 11 (using default keyboard shortcuts)
@skywodd
skywodd / semantictext.md
Created May 28, 2018 16:32
SemanticText syntax proposal

SemanticText

SemanticText is a proposal for a new text-based writing syntax for the web (and much more).

Status: Draft - Request for comments

Revision: 2.0.0

Context of creation

@skywodd
skywodd / userdata.py
Created April 18, 2018 15:54
[Django 2.0 management command] Export all data related to the given user.
"""
Export all data related to the given user.
"""
from django.contrib.auth.models import User
from django.core.serializers import serialize
from django.core.management.base import BaseCommand, CommandError
class Command(BaseCommand):
@skywodd
skywodd / dmm4.py
Last active February 15, 2023 10:52
Serial protocol decoder for UNI-T UT61C (GS)
"""
Serial protocol decoder for UNI-T UT61C (GS).
"""
import serial
BV = lambda x: 1 << x
FLAGS = {
BV(0): 'BPN', # Bargraph rule
@skywodd
skywodd / resize_gif.py
Created November 3, 2017 12:48
Resize GIF image using Python Pillow library
from PIL import Image, ImageSequence
# Output (max) size
size = 320, 240
# Open source
im = Image.open("in.gif")
# Get sequence iterator
frames = ImageSequence.Iterator(im)
@skywodd
skywodd / updatedb.py
Last active September 25, 2017 19:45
Incremential backup script for NGINX logs files. Store log entries in a SQlite3 database. Ignore existing entries using SHA256.
"""
Incremential backup script for NGINX logs files.
"""
import re
import sqlite3
import argparse
from hashlib import sha256
import pdb
@skywodd
skywodd / Configuration.h
Last active April 18, 2022 22:31
Marlin 1.1.x configuration files for the Prusa i3 rework 1.5 (eMotion) [TESTED WORKING]
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@skywodd
skywodd / unicoder.py
Created July 26, 2017 19:53
Unicoder - The unicode nightmare for developers.
"""
Unicoder - The unicode nightmare for developers.
"""
import os
import sys
import random
import codecs
import argparse
import unicodedata