← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 10
  1. Vibe coding lost my database

    So today I was awoken to the fact that my database had mysteriously lost data after putting out a new feature.

  2. https://github.com/facebook/react-native/issues/29614#issuecomment-3069870022 this worked best for me: const [behaviour, setBehaviour] = useState(‘height’); useEffect(() => { const showListener = Keyboard.addListener(‘keyboardDidShow’, () => { setBehaviou…

  3. Non legacy rate-limit-mongo

    'use strict'; const MongoClient = require('mongodb').MongoClient; const _ = require('lodash'); /** * @typedef IMongoStoreDocument * @extends import('mongodb').Document * @property {import('mongodb').ObjectId} _id * @property {number} counter * @pro…

  4. https://addyosmani.com/blog/script-priorities/

  5. Using this https://bojnansky.com/running-angular-tests-with-github-actions/ as a guide I made GitHub actions for angular testing, I used this action: name: Run Tests on: push: branches: - beta - main jobs: build: runs-on: ubuntu-la…

  6. function handler(event) { const request = event.request; const response = event.response; const headers = response.headers; let original_uri = ''; if (request.headers.hasOwnProperty('x-original-uri')) { original_uri = requ…

  7. NodejS unit testing

    A good env: https://jestjs.io/ https://jestjs.io/docs/mongodb https://www.npmjs.com/package/@mswjs/interceptors A good env setup: jest.config.js module.exports = { preset: '@shelf/jest-mongodb', transform: { "^.+\\.

  8. ng test –include=’**/sign-in.component.spec.ts’

  9. This is because NACL is used for internal routing as well so you need to add the ephemeral ports, i.e. https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html#nacl-ephemeral-ports most commonly 1024-65535, all AWS services use these ports to

  10. You can do this with response-time plugin but I wanted something a bit more flexible and can easily be used on select routes as middleware, so I made: import onHeaders from 'on-headers'; import net from "net"; import moment from "moment/moment"; import Ap…