Skip to content

Instantly share code, notes, and snippets.

View junagao's full-sized avatar

juliane nagao junagao

View GitHub Profile
@junagao
junagao / puppeteer.md
Last active March 4, 2024 10:43
Puppeteer

How to get text from an element:

const element = await page.$('.some-class');
const text = await page.evaluate(element => element.textContent, element);
// or
const text = await page.evaluate(element => element.innerText, element);
@junagao
junagao / vscode-italic-font-settings.md
Last active January 24, 2024 13:30
VSCode italic font settings

VSCode italic font settings

Add this to settings.json (cmd ,):

{
  "editor.fontFamily": "Operator Mono, Fira Code iScript, Menlo, Monaco, 'Courier New', monospace",
  "editor.fontLigatures": true,
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
@junagao
junagao / config-git-core-editor-vscode.md
Last active August 4, 2021 13:24
How to configure VScode as default editor for Git

How to configure VScode as default editor for Git

git config --global core.editor "code --wait"

The parameter --wait (-w) is to wait for window to be closed before returning.

@junagao
junagao / whatsapp-link.html
Created September 18, 2018 13:59
whatsapp-link
@junagao
junagao / git-keeping-fork-up-to-date.md
Last active June 29, 2020 14:52 — forked from CristinaSolana/gist:1885435
Git: Keeping a fork up to date

Git: Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo

2. Add remote from original repository in your forked repository:

git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git

@junagao
junagao / git-move-fork-after-cloning.md
Last active March 26, 2019 17:38 — forked from jagregory/gist:710671
Git: How to move to a fork after cloning

Git: How to move to a fork after cloning

So you've cloned somebody's repo from github, but now you want to fork it and contribute back.

Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.

  • Off the top of my head *

1. Fork their repo on Github