id | title | tags | |
---|---|---|---|
paragraph |
Paragraph structure |
|
import Embed from '../../src/Embed';
import { slackApp } from '../src/slackApp'; | |
import { generalChannelId } from '../src/slackChannels'; | |
import { config } from '../src/config'; | |
import { | |
filterBots, | |
replaceMembers, | |
} from '../src/slack/membersMapping'; | |
import { removeRepliedUsers } from '../src/commandMessage/dailyThreadCommand'; | |
import { unique } from '../src/core/unique'; | |
import { slackAllMembers } from '../src/slack/slackAllMembers'; |
import { exec as execCb } from 'child_process'; | |
import dotenvSafe from 'dotenv-safe'; | |
import fs from 'fs'; | |
import moment from 'moment'; | |
import path from 'path'; | |
import semver from 'semver'; | |
import util from 'util'; | |
// eslint-disable-next-line | |
import git from 'simple-git'; | |
// eslint-disable-next-line |
id | title | tags | |
---|---|---|---|
paragraph |
Paragraph structure |
|
import Embed from '../../src/Embed';
Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:*" | |
], | |
"Resource": [ |
module.exports = merge(rspackDevConfig, { | |
entry: { | |
main: './src/index.tsx', | |
login: '../login/src/index.tsx', | |
console: '../console/src/index.tsx', | |
}, | |
devServer: { | |
port: PORT, | |
...getOpen('/home'), | |
...getProxy(), |
import { useEffect, useState } from 'react'; | |
const value = 100; | |
const PixDynamic = () => { | |
const [giftbackValue, setGiftbackValue] = useState(null); | |
const [giftbackHash, setGiftbackHash] = useState(null); | |
const [shopperId, setShopperId] = useState(null); | |
const [modal, setModal] = useState<boolean>(true); |
import convertHrtime from 'convert-hrtime'; | |
export const timeSpan = () => { | |
const start = process.hrtime(); | |
const end = (type) => convertHrtime(process.hrtime(start))[type]; | |
const returnValue = () => end('milliseconds'); | |
returnValue.rounded = () => Math.round(end('milliseconds')); | |
returnValue.seconds = () => end('seconds'); | |
returnValue.nanoseconds = () => end('nanoseconds'); |
const run = async () => { | |
}; | |
(async () => { | |
try { | |
await run(); | |
} catch (err) { | |
// eslint-disable-next-line | |
console.log(err); |
export const monkeyPatchAggregateApm = (M: Model<any>) => { | |
const aggregate = M.aggregate; | |
M.aggregate = async (pipeline: Array<any>) => { | |
const spanName = `${M.collection.collectionName}.aggregate`; | |
const span = apm.startSpan(spanName); | |
if (span) { | |
span.setLabel('pipeline', JSON.stringify(pipeline)); | |
} |