type | name | label::en | calculation | appearance | instance::db-doc | instance::db-doc-ref | relevant |
---|---|---|---|---|---|---|---|
begin_group | inputs | NO_LABEL | field-list | false() | |||
begin_group | contact | NO_LABEL | |||||
hidden | _id | ||||||
end_group | contact | ||||||
begin_group | user | NO_LABEL | |||||
hidden | facility_id | ||||||
hidden | name |
This file contains hidden or 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
% Map | |
fun({Doc}) -> | |
case proplists:get_value(<<"type">>, Doc, nil) of | |
<<"telemetry">> -> | |
{Metadata} = proplists:get_value(<<"metadata">>, Doc, {nil}), | |
User = proplists:get_value(<<"user">>, Metadata, nil), | |
Year = proplists:get_value(<<"year">>, Metadata, 0), | |
Month = proplists:get_value(<<"month">>, Metadata, 0), | |
Day = proplists:get_value(<<"day">>, Metadata, 0), | |
GregorianDays = calendar:date_to_gregorian_days(Year, Month + 1, Day + 1), |
This file contains hidden or 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
Listening on port 5008 | |
2024-04-04T19:29:24.064413574Z networks: | |
2024-04-04T19:29:24.064466999Z cht-net: | |
2024-04-04T19:29:24.064473288Z name: four_oh-cht-net | |
2024-04-04T19:29:24.064496142Z services: | |
2024-04-04T19:29:24.064500160Z api: | |
2024-04-04T19:29:24.064503871Z depends_on: | |
2024-04-04T19:29:24.064507670Z haproxy: | |
2024-04-04T19:29:24.064511465Z condition: service_started | |
2024-04-04T19:29:24.064515645Z environment: |
Most helpful documentation:
- ⭐ Pico Python SDK Docs PDF
- ⭐ Def Con 32 Badge Headers - Useful for understanding pin layout
Additional Links:
- Base Badge Firmware Repo: https://github.com/jaku/DEFCON-32-BadgeFirmware
This file contains hidden or 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
import { faker } from '@faker-js/faker'; | |
const YES_NO = [ 'yes', 'no' ]; | |
const getPlace = (context, type, nameSuffix) => { | |
return { | |
type, | |
name: `${faker.location.city()}'s ${nameSuffix}`, | |
external_id: faker.string.alphanumeric(5), | |
notes: faker.lorem.lines(2), |
This file contains hidden or 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
# .bashrc | |
###################################################################### | |
# Setup bash prompt with the following features: | |
# | |
# container_id:short/directory (git_branch) | |
# ❱ | |
# | |
# - Set the color of the prompt prefix "❱" based on the success/failure of the last command | |
# - Display git repo details (when you are in a directory that is a git repo) |
This file contains hidden or 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
<?xml version="1.0"?> | |
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms"> | |
<h:head> | |
<h:title>Ongeza Kaya</h:title> | |
<model> | |
<itext> | |
<translation lang="en"> | |
<text id="/data/clinic/geolocation:label"> | |
<value>Location</value> | |
</text> |
This is a record of my experiences uplifiting CHToolbox from CommonJS to ES Modules. Some things are specific to TypeScript.
- Updage esLint configuration. While on CJS, I was stuck on esLint
8.x
. So, I was still using the old.eslintrc.js
file format. To prepare for being able to upgrade to esLint9.x
(where support has been removed for the old config format), I preemptively updated my esLint config to the new flat format (in aneslint.config.mjs
file).- This was a headache of its own since the migration path between config formats was not super clear (and the automated tools did not work for me).
- The new flat config works with both esLint
8.x
and9.x
.
- Update project configuration to target ESM:
- Set
"type": "module",
inpackage.json
- Update
compilerOptions
intsconfig.json
to have:
- Set
OlderNewer