I hereby claim:
- I am janbaykara on github.
- I am janbaykara (https://keybase.io/janbaykara) on keybase.
- I have a public key ASAEEjeLxsryXSDQ1n1bRHiAQOaXX3TttDrjk9_a1MJU4wo
To claim this, I am signing this object:
{} |
// function path<R>(obj: R) { | |
// function createKeyAccessor<O>(parent: O) { | |
// const accessor = <K extends keyof O>(key: K) => { | |
// const value = parent ? parent[key] : null | |
// return createKeyAccessor(value) | |
// } | |
// accessor.get = () => parent | |
// return accessor |
I hereby claim:
To claim this, I am signing this object:
(async () => { | |
const postcodeQueries = await bulk_postcode_geo(data.map(d => d.postcode).filter(Boolean)) | |
})() |
'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) => { |
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' |
license: mit | |
height: 800 | |
border: yes |
license: mit | |
height: 800 |
mkdir node
mkdir lsd
node index
cd node
for f in ./*.md; do echo $f & lsd outline $f > ../lsd/$f; done