This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mogrify -resize 180x66 -gravity center -extent 180x60 -format jpg -path resized/ ./*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
start = "!sh -c 'git checkout -b \"${0-workbranch}\" && git commit --allow-empty -m \"${1-start}\"'" | |
Usage : | |
git start | |
git start branch-name | |
git start branch-name "commit message" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Traffic lights | |
// See : (french) http://blog.loicg.net/bricolage/2016/05/27/feux-tricolores-arduino.html | |
const int roadA[3] = {7,8,9};// Pins mapping for A group (Green, Orange, Red) | |
const int roadB[3] = {10,11,12}; // Pins mapping for B group (Green, Orange, Red) | |
const int sequenceA[6] = {0,1,2,2,2,2};// Lights sequence for A (Green, Orange, Red, Red, Red, Red) | |
const int sequenceB[6] = {2,2,2,0,1,2};// Lights sequence for B (Red, Red, Red, Green, Orange, Red) | |
const int timing[3] = {10,2,1};// In seconds (time for Green, Orange, Red) | |
const int timeSequence[6] = {timing[0], timing[1],timing[2],timing[0], timing[1],timing[2]};// Green (A), Orange (A), Red (both), Green (B), Orange (B), Red (both) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -lt 3 ]; then | |
echo 1>&2 "$0: Manque d'arguments (./get.sh magazine numéro nombre de pages). Ex: ./get.sh JDPE 115 68" | |
exit 2 | |
fi | |
#NUMERO du mag, numéro de dernière page | |
MAG=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var d = document,w = window,f = `logseq://x-callback-url/quickCapture?url=${e(l.href)}&title=${e(d.title)}&content=${e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)}&x-source=bm`,l = d.location,e = encodeURIComponent,a = () => l.href = f;if (/Firefox/.test(navigator.userAgent)) setTimeout(a, 0);else {a()}void(0) |
OlderNewer