- Install github.com/andreoliwa/logseq-doctor
- Load markdown files into a folder
- Then run:
mkdir node mkdir lsd node index cd node for f in ./*.md; do echo $f & lsd outline $f > ../lsd/$f; done
import fetch, { RequestInfo, RequestInit, Response } from 'node-fetch' | |
import {merge} from 'lodash' | |
import { BuilderFunc, ODataFilterBuilder } from 'ts-odata-filter' | |
import * as queryString from 'query-string' | |
import { Person, PersonSignupHelper } from '@civix/osdi-types'; | |
const crytalise = (init: RequestInit) => { | |
if (init.body) { | |
init.body = JSON.stringify(init.body) | |
} |
const inputConfig = input.config() | |
const petitionsTable = base.getTable("Organic Campaign Events") | |
const newRecord = await petitionsTable.selectRecordAsync(inputConfig.id) | |
const membersTable = base.getTable('Members & Contacts') | |
const members = await membersTable.selectRecordsAsync({ | |
fields: [ "Email address", "Phone number", "Postcode", "Name", "First name", "Second name" ] | |
}) | |
if (newRecord) { | |
output.set("petitionRecordID", `id: ${inputConfig.id}`) |
mkdir node
mkdir lsd
node index
cd node
for f in ./*.md; do echo $f & lsd outline $f > ../lsd/$f; done
license: mit | |
height: 800 |
license: mit | |
height: 800 | |
border: yes |
export const ensureConsentFor = async (slug: string, askAgain = true) => { | |
const state = await getConsentState(slug) | |
if (state === true) return true | |
if (!askAgain) return false | |
return await requestConsentFor(slug) | |
} | |
enum State { | |
CONSENTED = 'CONSENTED', | |
DECLINED = 'DECLINED' |
'use strict'; | |
import { EnvVars } from './types'; | |
// Taken from https://github.com/strapi/strapi/blob/c90e3eb67bf2c235c2fdd1b5607eda6b649d9f10/packages/strapi/lib/core/app-configuration/env-helper.js | |
const _ = require('lodash'); | |
type Translator<T = any> = (key: keyof EnvVars, defaultValue?: T) => T | |
const defaultEnv: Translator = (key, defaultValue) => { |
(async () => { | |
const postcodeQueries = await bulk_postcode_geo(data.map(d => d.postcode).filter(Boolean)) | |
})() |
I hereby claim:
To claim this, I am signing this object: