Skip to content

Instantly share code, notes, and snippets.

@Haloplasm
Haloplasm / PoBs.txt
Last active June 15, 2025 15:28
Haloplasm and Seik's PoBs
----------------------------------------------
3.25 PoBs [Always re-pull PoBs right before league start to have the most updated version]
----------------------------------------------
Aurabot:
https://pobb.in/JDvQLXM_0-TW
Spark Inquitor carry:
https://pobb.in/rc2V3e82Beji
Storm Brand Inquisitor carry:
@BrunoQuaresma
BrunoQuaresma / nextapimock.ts
Last active May 12, 2025 19:59
NextApiResponse and NextApiRequest mocks
import { IncomingMessage } from 'http'
import {
NextApiRequestCookies,
NextApiRequestQuery,
} from 'next/dist/next-server/server/api-utils'
import { Socket } from 'net'
import { ServerResponse } from 'http'
import { NextApiRequest, NextApiResponse } from 'next'
import { Env } from 'next/dist/lib/load-env-config'
@aaronshaf
aaronshaf / generator.js
Last active May 13, 2022 11:00
Use async generators and async iterators with DynamoDB's scan
const { docClient } = require('../services/dynamodb')
exports.findAllItems = async function* () {
let response = {}
let ExclusiveStartKey
do {
response = await docClient.scan({
TableName: 'mytable',
Limit: 500,
ExclusiveStartKey
@jareware
jareware / package-json-engines.md
Last active October 30, 2020 18:36
Enforcing the engines property of package.json

Document your target environment with:

"engines": {
  "npm": ">=3.3.12 <4",
  "node": ">=5.5.0 <6"
},

Then install this:

"devDependencies": {