Skip to content

Instantly share code, notes, and snippets.

View ckomop0x's full-sized avatar
:octocat:
Life developer

Pavel Klochkov ckomop0x

:octocat:
Life developer
View GitHub Profile
@ckomop0x
ckomop0x / main.js
Created June 13, 2019 14:33
Compiled for production main.js chunk
(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");
@ckomop0x
ckomop0x / App.js
Created June 13, 2019 14:35
Final App.js
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
},
@ckomop0x
ckomop0x / main.js
Created June 13, 2019 14:36
Final compiled main.js chunk
(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) {
@ckomop0x
ckomop0x / gist:7ad5205596f417554cb1632066470bec
Last active November 6, 2019 08:23
Zsh run vscode from console on mac
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
}
@ckomop0x
ckomop0x / project-feedback.md
Last active February 13, 2022 14:48
Review for Eddy (axelerod12)

General

  1. Two files from different package managers – yarn.lock & package-lock.json. You need to choose one.
  2. Readme.md should be more helpful. It should have a description. I recommend you look at other repos or use the readme-generator utility.
  3. 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.

Application

Problems

@ckomop0x
ckomop0x / setup_cypress_wsl2.md
Created August 17, 2022 15:22 — forked from pjobson/setup_cypress_wsl2.md
Setting Up Cypress on Ubuntu WSL2

Setting Up Cypress on Ubuntu WSL2

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.

Dependencies

sudo apt install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev \

libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \