This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(node OR nodejs OR "node js" OR "Node.js" OR nestjs OR expressjs) AND (remote OR remotely) NOT (ruby OR php OR go OR rust OR asp OR asp.net OR c# OR rails OR Selenium OR WebDriver OR "Java" OR "java" OR CyberCoders OR Revelo OR 10Clouds OR Manara) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// First you define a method called `oneOfSchemas` | |
yup.addMethod(yup.MixedSchema, "oneOfSchemas", function (schemas) { | |
return this.test( | |
"one-of-schemas", | |
"Not all items in ${path} match one of the allowed schemas", | |
(item) => | |
schemas.some((schema) => schema.isValidSync(item, { strict: true })) | |
); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const query = { where: {} }; | |
const queryString = encodeURIComponent(JSON.stringify(query)); | |
const finalUrl = `http://127.0.0.1:3001/trpc/user.listUsers?${queryString}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { project } from './project'; | |
const sourceFile = project.addSourceFileAtPath( | |
path.join(cwd(), 'src', './file.ts'), | |
); | |
const resolverClass = sourceFile.getClass('otherFile'); | |
for (const method of resolverClass.getMethods()) { | |
const decorators = []; | |
for (const decorator of method.getDecorators()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
superjson.registerCustom<Buffer, number[]>( | |
{ | |
isApplicable: (v): v is Buffer => v instanceof Buffer, | |
serialize: v => [...v], | |
deserialize: v => Buffer.from(v) | |
}, | |
"buffer" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { google } = require("googleapis"); | |
const cloudfunctions = google.cloudfunctions("v1"); | |
async function main() { | |
const auth = new google.auth.GoogleAuth({ | |
scopes: ["https://www.googleapis.com/auth/cloud-platform"], | |
}); | |
const authClient = await auth.getClient(); | |
google.options({ auth: authClient }); |
OlderNewer