-
Create an app using the following instructions: https://gist.github.com/nataliemarleny/78fb26ac874a013b7fce4dc0c80eee8f
-
Downloaded all JS files from "Chrome Dev-tools > Sources":
-
Count number of lines
createElement
appears in:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "npm-package-name", | |
"dependencies": { | |
"packageDependency": "file:/packageDirectory/packageName" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu -o pipefail | |
# Script expects these binaries to be present: | |
# - wget | |
# - node | |
# Tested on Mac. | |
# Example: | |
# | |
# bash sizeOfStringInUrl.sh nextjs.org "\bcreateElement\b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.renderWhitespace": "boundary", | |
"workbench.colorTheme": "Default High Contrast", | |
"workbench.editor.tabSizing": "shrink", | |
"window.zoomLevel": 1, | |
"explorer.confirmDragAndDrop": false, | |
"files.trimTrailingWhitespace": true, | |
"files.insertFinalNewline": true, | |
"files.trimFinalNewlines": true, | |
"workbench.sideBar.location": "right", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Steps to reproduce funky itemScope rendering behaviour: | |
```sh | |
npm init -y | |
npm i --save react react-dom | |
npm i --save-dev react-scripts | |
mkdir -p public | |
cat <<"EOF" > public/index.html | |
<html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn pm2 kill | |
git clean -fxd | |
yarn | |
yarn dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function crossAdd(input) { | |
let answer = []; | |
for (let i = 0; i < input.length; i += 1) { | |
let goingUp = input[i]; | |
let goingDown = input(input.length-1-i]; | |
answer.push(goingUp + goingDown); | |
} | |
return answer; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as module from 'module'; | |
jest.mock('service-making-a-http-request', () => | |
Object.assign(require.requireActual('service-making-a-http-request'), { | |
externalService: { | |
execute: jest | |
.fn() | |
// function - 'test label' data | |
.mockResolvedValueOnce({ | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = <ur-name> | |
email = <ur-email> | |
[core] | |
editor = vim -f | |
excludesfile = /Users/<name-of-mac>/.gitignore_global | |
[color] | |
ui = true | |
[alias] | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit |
> o1 = { b: 'c' }
{ b: 'c' }
> o2 = o1
{ b: 'c' }
> o3 = { ...o1 }
{ b: 'c' }
> o1 === o2
true
> o1 === o3