Skip to content

Instantly share code, notes, and snippets.

View esender's full-sized avatar
🏠
Working remotely

Marat Abdulin esender

🏠
Working remotely
View GitHub Profile
function multiply(a, b) {
// add
let sum = 0;
let a_abs = Math.abs(a);
let b_abs = Math.abs(b);
let n1 = Math.min(a_abs, b_abs);
let n2 = Math.max(a_abs, b_abs);
@esender
esender / index.html
Last active February 17, 2021 20:16 — forked from RubaXa/index.html
Repaint: offsetWidth vs. getBoundingClientRect (http://jsbench.github.io/#e0ba2a23be6026711839a95385934f06) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Repaint: offsetWidth vs. getBoundingClientRect</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>

Pitch Challenge

Loading performance

Why

I've started with checking loading performance. I started with that because it is the simplest way to get a lot of useful information and proposals from the tool.

I used the DevTools' LightHouse tab for that. I checked Mobile devices because usually for the desktop browsers performance on the good level and if we could speed up mobiles then we speed up browsers as well.

Keybase proof

I hereby claim:

  • I am esender on github.
  • I am esender (https://keybase.io/esender) on keybase.
  • I have a public key ASAFLE473A_c_6X2FJpoii3OkARYyIL4wYFKmHvxzHHK4wo

To claim this, I am signing this object:

@esender
esender / deploy.js
Last active December 25, 2021 10:00
Simple deploy tasks for Gulp
'use strict';
var gulp = require('gulp');
var path = require('path');
var GulpSSH = require('gulp-ssh');
var shell = require('gulp-shell');
var moment = require('moment');
var config = {
host: '192.168.0.1',