- Two files from different package managers –
yarn.lock
&package-lock.json
. You need to choose one. Readme.md
should be more helpful. It should have a description. I recommend you look at other repos or use the readme-generator utility.- Comments in code, in most cases, are useless and inconsistent. Now they give very junior kind of explanations (and feelings). I recommend you DELETE them all.
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
(window.webpackJsonp = window.webpackJsonp || []).push([[0], { | |
10: function(e, n, t) { | |
"use strict"; | |
t.r(n); | |
var a = t(0) | |
, r = t.n(a) | |
, c = t(2) | |
, l = t.n(c); | |
t(9); | |
var o = document.getElementById("root"); |
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 React from "react"; | |
import ReactDOM from "react-dom"; | |
import { multiply, sum, calculateSomethingSpecial } from "./utils"; | |
import "./styles.css"; | |
function App() { | |
const specialData = [ | |
{ | |
param1: 100, | |
param2: 99 | |
}, |
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
(window.webpackJsonp = window.webpackJsonp || []).push([[0], { | |
10: function(e, n, a) { | |
"use strict"; | |
a.r(n); | |
var t = a(0) | |
, r = a.n(t) | |
, l = a(2) | |
, p = a.n(l); | |
// Here is our sum | |
function c(e, n) { |
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 code { | |
if [[ $# = 0 ]] | |
then | |
open -a "Visual Studio Code" | |
else | |
local argPath="$1" | |
[[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}" | |
open -a "Visual Studio Code" "$argPath" | |
fi | |
} |
No clue why the directions for this are buried deep in WLS issues. This is how I setup my Cypress on Ubuntu WSL2 working for both on and off VPN with some corp firewall.
Before executing any command, be sure to read and understand it, I ask you to run two shell scripts which I wrote. You should review any shell script provided by anyone before blindly running it. I'm not doing anyting bad, but I advise you to check for yourself.
sudo apt install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev \
libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
OlderNewer