Skip to content

Instantly share code, notes, and snippets.

View eroSilva's full-sized avatar
👋
Eae

Erô eroSilva

👋
Eae
View GitHub Profile
@cobyism
cobyism / gh-pages-deploy.md
Last active July 18, 2024 05:22
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

const FutureSelect = (selector, parent = document) => {
let request = null
return new Promise((resolve) => {
const select = () => {
const elements = parent && [ ...parent.querySelectorAll(selector) ] || []
if (!elements.length) {
request = requestAnimationFrame(select)
return
@media screen and (min-width:0\0) {
}
@danielnass
danielnass / PATCH.md
Last active June 17, 2024 18:35
Flora & Stiches GAMBIARRA

O pacote Stitches que o Flora utiliza possui diversas correções e melhorias não lançadas, apenas buildadas, inclusive compatbilidade com a versão do TypeScript mais recente. As issues relacionadas ao problema do TS aqui e aqui.

Nesse passo a passo ensino como você pode aproveitar essas melhorias e também corrigir o problema do TypeScript The type of this node cannot be serialized because its property '[$$PropertyValue]' cannot be serialized, que acontece quando queremos usar o TypeScript 4.8+ e exportar um componente de um arquivo, como pode ser visto na imagem a seguir.

Captura de Tela 2023-07-18 às 17 13 14

Algumas threads já foram levantadas no Slack sobre a incopatibilidade