Skip to content

Instantly share code, notes, and snippets.

View lukaszfiszer's full-sized avatar

Łukasz Fiszer lukaszfiszer

View GitHub Profile
@lukaszfiszer
lukaszfiszer / next11-trace
Last active November 22, 2021 11:25
Next.js issue #31021 build traces of app generated with create-next-app on Windows
[{"traceId":"516d75348c639ef4","parentId":"6d75343074346472","name":"generate-buildid","id":"6277756369616b77","timestamp":4181121689,"duration":350,"tags":{}},{"traceId":"516d75348c639ef4","parentId":"6d75343074346472","name":"load-custom-routes","id":"336c707133617375","timestamp":4181122406,"duration":474,"tags":{}},{"traceId":"516d75348c639ef4","parentId":"6d75343074346472","name":"verify-typescript-setup","id":"6974613072313435","timestamp":4181315404,"duration":2872,"tags":{}},{"traceId":"516d75348c639ef4","parentId":"6d75343074346472","name":"verify-and-lint","id":"336f7773626a3165","timestamp":4181318555,"duration":3619786,"tags":{}},{"traceId":"516d75348c639ef4","parentId":"6d75343074346472","name":"collect-pages","id":"70657779336b6e6f","timestamp":4184938545,"duration":783,"tags":{}},{"traceId":"516d75348c639ef4","parentId":"6d75343074346472","name":"create-pages-mapping","id":"757372366d737932","timestamp":4184939634,"duration":606,"tags":{}},{"traceId":"516d75348c639ef4","parentId":"6d75343074346
@lukaszfiszer
lukaszfiszer / react-query.d.ts
Created November 9, 2019 13:18
Typings for react-query package
declare module 'react-query' {
export type QueryKey = string | Array<string, object>;
export type QueryKeyFunction = () => QueryKey;
export type QueryFunction<TReturn> = (...args: any[]) => Promise<TReturn>;
export type QueryOptions = {
manual: boolean
pagination: boolean
@lukaszfiszer
lukaszfiszer / promts.png
Last active March 27, 2019 00:18
screenshots
promts.png
@lukaszfiszer
lukaszfiszer / deep-partial.ts
Created December 17, 2018 22:29
Useful Typescript types and patterns
/**
* Make all properties in T reccursively optional
*/
type DeepPartial<T> = {
[K in keyof T]?: DeepPartial<T[K]>
}
interface Foo {
prop: {
bar: boolean;
@lukaszfiszer
lukaszfiszer / ISO_3166-1_countries_pl.js
Last active May 21, 2024 17:31
List of all countries with their ISO 3166-1 codes, polish and english names, in javascript and json. Sorted by polish name. Source: http://pl.wikipedia.org/wiki/ISO_3166-1 Lista wszystkich państw świata wraz z ich polską i angielską nazwą oraz kodem wg. ISO 3166-1, w formatach javascript i JSON. Posortowana wg. polskiej nazwy: Zródło: http://pl.…
[
{ name_pl: "Afganistan", name_en: "Afghanistan", code: "AF" },
{ name_pl: "Albania", name_en: "Albania", code: "AL" },
{ name_pl: "Algieria", name_en: "Algeria", code: "DZ" },
{ name_pl: "Andora", name_en: "Andorra", code: "AD" },
{ name_pl: "Angola", name_en: "Angola", code: "AO" },
{ name_pl: "Anguilla", name_en: "Anguilla", code: "AI" },
{ name_pl: "Antarktyka", name_en: "Antarctica", code: "AQ" },
{ name_pl: "Antigua i Barbuda", name_en: "Antigua and Barbuda", code: "AG" },
{ name_pl: "Arabia Saudyjska", name_en: "Saudi Arabia", code: "SA" },