Skip to content

Instantly share code, notes, and snippets.

View dandelionadia's full-sized avatar
👾

Nadiia Ridko dandelionadia

👾
  • Prague, Czech Republic
View GitHub Profile
@kettanaito
kettanaito / README.md
Created June 20, 2020 16:02
Working with remotes in Git

Working with multiple remotes

Adding a new remote

$ git remote add REMOTE_NAME REMOTE_URL

Verify that the new remote has been added by running git remote -v and seeing your REMOTE_NAME in the list.

@kettanaito
kettanaito / styles.scss
Created February 5, 2020 13:39
Tooltip tick via pseudo-elements
.tooltip {
position: absolute;
top: 100%;
left: 0;
width: 100%;
max-width: 350px;
padding: 0.5rem 1rem;
background-color: #fff;
border: 1px solid #000;
border-radius: 4px;
@dandelionadia
dandelionadia / FluidVideo.css
Created November 7, 2019 09:44
Fluid Width Video
```css
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
}
.videoWrapper iframe {
position: absolute;
top: 0;
class Guitar {
constructor(args) {
this.name = args.name;
this.stringsCount = args.stringsCount || 6;
}
play() {
console.log("lalala");
}
}
@kettanaito
kettanaito / heading-crossed.html
Created January 19, 2018 08:48
HTML: One-element crossed heading
<!--
One-element way of doing this kind of headings:
---------------- Text here ----------------
* One HTML tag only
* Background-independant
* Properly centered horizontally and vertically
* Same browsers support as for flexbox
@bradtraversy
bradtraversy / npmcrashcourse.txt
Last active June 26, 2024 09:49
NPM Crash Course Commands
# GET VERSION
npm -v (or --version)
# GET HELP
npm help
npm
# CREATE PACKAGE.JSON
npm init
npm init -y (or --yes)