abc
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
'use client' | |
import { useState } from 'react' | |
import { ChevronDown, ArrowLeftRight } from 'lucide-react' | |
import { Button } from "@/components/ui/button" | |
import { Input } from "@/components/ui/input" | |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" | |
const tokens = [ | |
{ symbol: 'ETH', name: 'Ethereum', icon: '🔷' }, |
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
/* eslint-disable @typescript-eslint/no-unused-vars */ | |
/* eslint-disable @typescript-eslint/no-shadow */ | |
// Credits to @bnjmnt4n (https://www.npmjs.com/package/postgrest-query) | |
import type { GenericSchema } from '@supabase/supabase-js/dist/module/lib/types'; | |
// https://twitter.com/mattpocockuk/status/1622730173446557697 | |
type Prettify<T> = { [K in keyof T]: T[K] } & {}; | |
type Whitespace = ' ' | '\n' | '\t'; |
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 type { MainClass } from './MainClass'; | |
export abstract class AnotherClassComponent { | |
async anotherFn( | |
this: MainClass, | |
) { | |
// is fully aware of this.someFn and other parts but generally should try | |
// to be self contained | |
} | |
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 React from 'react'; | |
import { CSSVariableContext } from './components/Context'; | |
import { useVariableContext } from './utils/useVariableContext'; | |
type Props<V> = { | |
vars: V; | |
children: React.ReactNode; | |
}; |
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
/** | |
* Types declared in this file will be globally available throughout the project. These should | |
* be used sparsely and mainly for utility types (such as $Debug) that are likely unused outside | |
* of being helper utilities. | |
* | |
* @note | |
* If needing to `import` in this file, the global types must all be wrapped in | |
* `declare global` or they will no longer be seen as global. | |
*/ |
So getting Parallels to work with Manjaro v20 (and probably v19 since parallels only says they support v18) was a pain in the butt and it took a lot of resources from a lot of places to figure it all out. I figured I would post some information here on things that I ran into and how to fix each of them.
This is from a completely fresh installation from the v20 isos but steps may be applicable in places for upgrades if you run into similar issues.
I got this all working finally:
Manjaro Version: 20.0 Desktop Environment: KDE
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 path = require('path'); | |
const { promises: fs } = require('fs'); | |
const cp = require('child_process'); | |
/* | |
Recursively iterates and finds subdirectories which have a `package.json` file and does a dependency installation based | |
on the given configuration. | |
- can be setup to use yarn or npm | |
- can be setup to determine the command to use based on lock files so that if you set it to use yarn but a directory only |
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
/* @flow */ | |
import axios from 'axios'; | |
import jose from 'node-jose'; | |
import day from 'dayjs'; | |
const AWS_REGION = '<AWS_REGION>'; | |
const AWS_POOL_ID = '<POOL_ID>'; | |
const AWS_APP_CLIENT_ID = '<APP_CLIENT_ID>'; | |
const AWS_TOKEN_PUBLIC_KEYS_URL = | |
`https://cognito-idp.${AWS_REGION}.amazonaws.com/${AWS_POOL_ID}/.well-known/jwks.json`; |
NewerOlder