Skip to content

Instantly share code, notes, and snippets.

View turbo's full-sized avatar

Pierre turbo

View GitHub Profile
@turbo
turbo / std.md
Last active April 14, 2024 09:18
Git Commit Message Standard

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.
@turbo
turbo / dontdothis.ino
Created August 17, 2018 15:53
Use ESP8266 ESP-12F/E D1 Mini GPIO Pin 10
/*
* In ESP 12 modules, spec. D1 Mini mounted, GPIO9 and GPIO10 can sort of be freed up.
* GPIO9 is connected to flash HOLD
* GPIO10 is connected to flash WP
*
* In DIO mode, these pins should be free, but remain connected to the flash chip.
* Using GPIO9 will crash the module sooner or later, GPIO10 is relatively safe, but
* don't fuzz it. Might be good enough for SPI CS or similar, no data rates pl0x.
*/
; vi: ft=clojure
; THIS IS A Fennel SOURCE FILE (.fnl) !NOT! clojure!
; you need to use luajit to run this, after using fennel --compile
; install lapis and turbo from luarocks
; When running with Fennel directly, you need to --globals all used HTML tags
(local turbo (require "turbo"))
(local render_html (. (assert (require "lapis.html")) :render_html))
@turbo
turbo / brio.md
Last active January 18, 2023 16:24
Recording 4k 4:2:2 from Brio 4k In Linux using FFMpeg

Turn auto-exposure off, set absolute exposure to a low level and use gain to compensate for low light if needed. E.g.:

v4l2-ctl -d /dev/video2 -c exposure_absolute=400
v4l2-ctl -d /dev/video2 -c gain=110

# check with
v4l2-ctl -d /dev/video2 -L
[$github, $bitbucket]
| (flatten) as $all_projects
| ([$all_projects[] | select(.stats.languages != null).stats.languages | to_entries] | flatten) as $langstats
| (
[
$all_projects[]
| select(.stats.languages != null).stats.languages
| keys
]
| flatten
@turbo
turbo / nrpn.md
Last active July 13, 2022 09:47
Send coarse NRPN messages from TouchOSC

General Approach

For synths that use CC-over-NRPN (like the Circuit Tracks), assembling NRPN messages is pretty simple in a script:

function sendNRPN(ch, MSB, LSB, val)
  -- nrpn address msb
  sendMIDI({ 176 + ch - 1, 99, MSB })
  -- nrpn address lsb 
 sendMIDI({ 176 + ch - 1, 98, LSB }) 
Walmart
Exxon Mobil
Apple
Berkshire Hathaway
Adobe
Alibaba
McKesson
UnitedHealth Group
CVS Health
BBC
@turbo
turbo / app.fnl.clj
Last active June 22, 2021 09:00
Write a Fennel Web App using Lapis and Turbo
; THIS IS A Fennel SOURCE FILE (.fnl) !NOT! clojure!
; you need to use luajit to run this, after using fennel --compile
; install lapis and turbo from luarocks
(local turbo (require "turbo"))
(local render_html (. (assert (require "lapis.html")) :render_html))
(fn render [parent expr]
(parent:add_header "Content-Type" "text/html")