Skip to content

Instantly share code, notes, and snippets.

View vltansky's full-sized avatar
👨‍💻

Vlad Tansky vltansky

👨‍💻
View GitHub Profile
@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')