Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| FROM python:3.10 as python-base | |
| # https://python-poetry.org/docs#ci-recommendations | |
| ENV POETRY_VERSION=1.2.0 | |
| ENV POETRY_HOME=/opt/poetry | |
| ENV POETRY_VENV=/opt/poetry-venv | |
| # Tell Poetry where to place its cache and virtual environment | |
| ENV POETRY_CACHE_DIR=/opt/.cache |
| import Fastify from 'fastify'; | |
| import { App, FileInstallationStore, LogLevel } from '@slack/bolt'; | |
| import { FileStateStore } from '@slack/oauth'; | |
| import { FastifyReceiver } from 'slack-bolt-fastify'; | |
| const fastify = Fastify({ logger: true }); | |
| fastify.get('/', async (_, res) => { | |
| res.redirect('/slack/install'); | |
| }); |
| // forked from: https://github.com/chebyrash/cors | |
| addEventListener("fetch", event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) | |
| async function handleRequest(request) { | |
| try { | |
| const url = new URL(request.url); | |
| if (url.pathname === "/") { |
| import { Directive, HostListener } from '@angular/core'; | |
| @Directive({ | |
| selector: '[appNoDblClickMat]' | |
| }) | |
| export class NoDblClickDirectiveMat { | |
| constructor() { } | |
| @HostListener('click', ['$event']) |
| import React, {Component, PropTypes} from 'react'; | |
| class BadInputComponent extends Component { | |
| static propTypes = { | |
| text = PropTypes.string.isRequired, | |
| updateText = PropTypes.func.isRequired, | |
| }; | |
| render() { | |
| return ( |