Install graphqurl
npm install -g graphqurl
/* Ultra lightweight Github REST Client */ | |
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const token = 'github-token-here' | |
const githubClient = generateAPI('https://api.github.com', { | |
headers: { | |
'User-Agent': 'xyz', | |
'Authorization': `bearer ${token}` | |
} | |
}) |
/* Using a JavaScript proxy for a super low code REST client */ | |
// via https://dev.to/dipsaus9/javascript-lets-create-aproxy-19hg | |
// also see https://towardsdatascience.com/why-to-use-javascript-proxy-5cdc69d943e3 | |
// also see https://github.com/fastify/manifetch | |
// also see https://github.com/flash-oss/allserver | |
// and https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const createApi = (url) => { | |
return new Proxy({}, { | |
get(target, key) { |
{ | |
"recommendations": [ | |
"aaron-bond.better-comments", | |
"adrieankhisbe.vscode-ndjson", | |
"johnsoncodehk.vscode-tsconfig-helper", | |
"rbuckton.deoptexplorer-vscode", | |
"helixquar.randomeverything", | |
"WallabyJs.quokka-vscode", | |
"bierner.comment-tagged-templates", | |
"alexcvzz.vscode-sqlite", |
// eslint-disable-next-line @typescript-eslint/no-var-requires | |
const globals = require('.nuxt/eslint-globals'); | |
// @ts-check | |
/** @type {import('eslint').Linter.Config} */ | |
module.exports = { | |
...globals, | |
//... other rules | |
}; |
class JobProcessor { | |
private assignedJobs = new Map<String, any>(); | |
private queue = new Queue<any>(); | |
private nWorkers = 5; | |
async loadOutstandingJobs() { | |
// load 'pending' or 'processing' jobs from DB | |
const jobs = await services.Job | |
.findMany({ | |
$or: [ |
<template lang="pug"> | |
.vm-gallery | |
div( | |
:style="{ transitionDuration: transitionDuration, transform: translate3DPosition }" | |
ref="galleryItems" | |
).vm-gallery-items | |
div(v-for="imageItem in imageNodes").vm-gallery-item | |
img( | |
:src="imageItem.src" | |
:key="imageItem.src" |
node_modules | |
dist | |
yarn.lock |