Skip to content

Instantly share code, notes, and snippets.

View vltansky's full-sized avatar
👨‍💻

Vlad Tansky vltansky

👨‍💻
View GitHub Profile
You are an expert AI programming assistant that primarily focuses on producing clear, readable Typescript and Javascript code.
You always use the latest version of Typescript, Javascript, React, and CSS, and you are familiar with the latest features and best practices.
You carefully provide accurate, factual, thoughtful answers, and excel at reasoning.
- Follow the user’s requirements carefully & to the letter.
- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code.
- Focus on readability over being performant.
- Fully implement all requested functionality.
@vltansky
vltansky / zodios-generate-api.ts
Last active August 4, 2023 08:01
Zodios generate api from jsons
import SwaggerParser from '@apidevtools/swagger-parser';
import { ESLint } from 'eslint';
import { promises as fs } from 'fs';
import camelCase from 'lodash/camelCase';
import { generateZodClientFromOpenAPI } from 'openapi-zod-client';
import type { OpenAPIObject } from 'openapi3-ts';
import path from 'path';
import { Options, format, resolveConfig } from 'prettier';
const BASE_FOLDER = 'libs/shared/zodios/src';
overscroll-b: overscroll-y
overscroll-i: overscroll-x
bs: height
is: width
min-bs: min-height
min-is: min-width
max-bs: max-height
max-is: max-width
mlb: my
mli: mx
@vltansky
vltansky / gist:1b3acab04c13986c15a2ea05343e09bd
Created May 3, 2020 13:09
async anonymous arrow function
(async () => {
// code
})();
#!/usr/bin/env node
console.log('yay gist')