In this tutorial we're going to build a set of parser combinators.
We'll answer the above question in 2 steps.
- What is a parser?
- and, what is a parser combinator?
So first question: What is parser?
su | |
mkdir /mnt/root | |
# You may use fdisk -l to list the devices | |
mount /dev/mapper/fedora-root /mnt/root | |
# Mount the boot partition, maybe /dev/sda1 | |
# As the system has both Ubuntu and Fedora installed, | |
# so sda3 in my case | |
mount /dev/sda<3> /mnt/root/boot |
#!/usr/bin/env python3 | |
# See https://github.com/facebook/flipper/issues/262 | |
import os | |
import sys | |
import syslog | |
import shlex | |
import time | |
import subprocess |
Name | ShortName | ModeAndPID | Equation | Min Value | Max Value | Units | Header | startDiagnostic | stopDiagnostic | scale | minimumRefreshDelayMillis | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
[FORD]Coolant temperature(From TCM) | Coolant | 0x0105 | A-40 | 0 | 120 | °C | TCM | 1 | 0 | |||
[FORD]Engine Oil Temp | EOT | 0x221310 | (((A*256)+B)/100)-40 | 0 | 300 | °C | Auto | 1 | 0 | |||
Boost Pressure | BOOST | 0x22f470 | ((D*256+E)/32-[33])/100 | -0.5 | 1.8 | bar | 7E0 | 1 | 0 | |||
Boost Pressure Desired | BOOST DSD | 0x22f470 | ((B*256+C)/32-[33])/100 | -0.5 | 1.8 | bar | 7E0 | 1 | 0 | |||
Brake Fluid Pressure | BFP | 0x22280a | (A*256+B)*100/128 | 0 | 65535 | kPa | 7E0 | 1 | 0 | |||
Brake Switch | BRAKE SW | 0x22da05 | {A:7} | 0 | 1 | ON/OFF | 726 | 1 | 0 | |||
Charge Air Cooler Temperature | CACT | 0x22f477 | C-40 | -40 | 100 | °C | 7E0 | 1 | 0 | |||
Coupling Solenoid Duty Cycle | CUP SOL | 0x221e7a | A*100/255 | 0 | 100 | % | 761 | 1 | 0 | |||
Distance from Bumper to Target | DIST BMP TGT | 0x22d901 | B/4 | 0 | 16 | m | 793 | 1 | 0 |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
<# | |
Recursively move all files in C:\SourceDir into C:\Destination | |
Assumes C:\Destination exists already, or there could be problems | |
#> | |
Move-Item -Path "C:\SourceDir\*" -Destination "C:\Destination" |
#!/usr/bin/env bash | |
# | |
# Download a Chrome extension from the webstore. | |
# Extract it to a specified path. | |
# | |
# Author: Werner Robitza | |
set -e | |
CHROME_VERSION="101.0.4951.57" |
This is not working complete code.
This is strictly a v0.2, scrapy, proof of concept version of a personal AI Assistant working end to end in just ~726 LOC.
This is the second iteration showcasing the two-way prompt aka multi-step human in the loop. The initial, v0, assistant version is here.
It's only a frame of reference for you to consume the core ideas of how to build a POC of a personal AI Assistant.
To see the high level of how this works check out the explanation video. To follow our agentic journey check out the @IndyDevDan channel.
The privacy details that you may need to add for Apple Privacy Manifest.
This config plugin it's already available from expo >=50.0.17 (Part of this PR by aleqsio)
Tip
Read more about Privacy Manifest File from Apple docs