Skip to content

Instantly share code, notes, and snippets.

@gkielwasser
gkielwasser / create-alias.js
Created November 3, 2021 14:09
Typesense - duplicated field in schema
client.aliases().upsert('warehouses', {
'collection_name': 'dev-warehouses-v1.0.1-d'
})
@gkielwasser
gkielwasser / private_fork.md
Created May 31, 2021 12:52 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@gkielwasser
gkielwasser / findOverflowParents.js
Created March 20, 2021 20:07 — forked from brandonjp/findOverflowParents.js
find overflow:hidden ancestors
// when you're trying to use `position:sticky` on an element
// you'll have trouble if any parent/ancestor element has
// overflow set to anything other than "visible" (such as: auto,hidden,overlay,scroll)
// & turns out if a parent is `display:flex` it might need some love
// (to remedy this you can set the `align-self` of your sticky element)
// see here for how the display & align-self properties affect: http://bit.ly/2ZaRu4o
// so, to find those troublesome parents...
// copy & paste this into Chrome Inspector/Dev Tools console
// (and be sure to change the #stickyElement below, if needed)