Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
Discover gists
import { BlurImage, YouTube } from "@dub/ui"; | |
import { nFormatter } from "@dub/utils"; | |
import { Eye, UserCheck, Video } from "lucide-react"; | |
import { Suspense } from "react"; | |
export function YoutubeChannel({ id }: { id: string }) { | |
return ( | |
<Suspense fallback={<div className="not-prose grid gap-4"></div>}> | |
<YoutubeChannelRSC id={id} /> | |
</Suspense> |
Os nomes das tabelas e colunas devem estar minúsculas e as palavras devem ser separadas por underscore, seguindo o padrão snake case. E todos os termos devem estar em inglês, exceto alguns termos que não há tradução apropriada para o inglês. Sempre prefira nomes descritivos, evitando ao máximo contrações.
Os nomes das tabelas devem estar no plural.
curl -s https://docs.aws.amazon.com/eks/latest/userguide/doc-history.rss | grep "<title>Kubernetes version"
eksctl create cluster --version=1.14 --name suhas-eks-test --region us-east-1 --zones us-east-1a,us-east-1b --node-type t2.medium --nodes 2 --ssh-access=true --ssh-public-key basarkod-test
eksctl create cluster --without-nodegroup --version=1.14 --name delete-me --vpc-public-subnets=subnet-123,subnet-456
# Install dependencies only when needed | |
FROM node:18-alpine3.15 AS deps | |
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | |
RUN apk add --no-cache libc6-compat | |
WORKDIR /app | |
COPY package.json yarn.lock ./ | |
RUN yarn install --frozen-lockfile | |
Acing a recruitment task? Get ready to be rejected!
I'm done, guys. In April, I sent an application for a Fullstack Python Developer internship at Samsung R&D.
After (allegedly) reviewing my CV, they decided to invite me to a test assessing my technical skills:
Great! I indeed got the e-mail with the invitation link soon after:
#!/usr/bin/python | |
""" | |
Example to create a Mininet topology and connect it to the internet via NAT | |
through eth0 on the host. | |
Glen Gibb, February 2011 | |
(slight modifications by BL, 5/13) | |
""" |
root = true | |
# C# files | |
[*.cs] | |
#### Core EditorConfig Options #### | |
# Indentation and spacing | |
indent_size = 4 | |
indent_style = space |
/** | |
* Returns the scroll parent of an element along a specified axis and the scroll size and client size. | |
* | |
* @param {HTMLElement} el - The element to find the scroll parent of. | |
* @param {String} [axis='y'] - The axis to find the scroll parent for. | |
* @returns {Object} An object with the following properties: | |
* @property {HTMLElement} scrollParent - The scroll parent element. | |
* @property {Number} scrollParentSize - The size of the scroll parent along the specified axis. | |
* @property {Number} clientParentSize - The size of the scroll parent's client area along the specified axis. | |
*/ |
function getScrollParent(node) { | |
const isElement = node instanceof HTMLElement; | |
const overflowY = isElement && window.getComputedStyle(node).overflowY; | |
const isScrollable = overflowY !== 'visible' && overflowY !== 'hidden'; | |
if (!node) { | |
return null; | |
} else if (isScrollable && node.scrollHeight >= node.clientHeight) { | |
return node; | |
} |