Skip to content

Instantly share code, notes, and snippets.

View SilentImp's full-sized avatar
💭
ok, now it is social network

SilentImp SilentImp

💭
ok, now it is social network
View GitHub Profile
const fs = require('fs');
const lighthouse = require('lighthouse');
const puppeteer = require('puppeteer');
const cluster = require('cluster');
const numCPUs = require('os').cpus().length;
const DOMAIN = process.env.DOMAIN;
// build report for single url
@SilentImp
SilentImp / lighthouse.js
Last active May 25, 2020 04:24
Using lighthouse
const fs = require('fs');
const lighthouse = require('lighthouse');
const puppeteer = require('puppeteer');
const DOMAIN = process.env.DOMAIN;
// build report for single url
const buildReport = browser => async url => {
const data = await lighthouse(
`${DOMAIN}${url}`,
{

How to facilitate a retrospective

The role of Facilitator is fundamental for almost every meeting. The Facilitator ensures that the whole group is empowered to make decisions and that every individual has their voice heard.

During a retrospective, the Facilitator role is crucial. In a retrospective, it is ideal that everyone has at least some degree of participation, and it is the Facilitator that helps the participants with that.

Етидрёный хряп - доброе утро; хорошая погода; красивая рубаха; просто одобрительное восклицание (или наоборот - в зависимости с какой интонацией сказано); и ещё сотни три значений.
Ибьтую мэмэ - не учи меня жить; что ты себе позволяешь?; чихал я на тебя; ёлки-палки; и ещё ровно 493 значения.
Утьвлять - чёрт побери и все аналогичные значения.
Етидреть - то же самое.
Куляй - иди.
Куляй ибуты мэмэ - оставь меня в покое.
Куляй на хур - не мешай мне.
Куляймо - идём.
Уть химно етёное - ну надо же было такому случиться; и пр.
Урэмя нима - поторапливайся.
@SilentImp
SilentImp / 1-report.js
Last active September 2, 2022 07:03
lighthouse report generation
const puppeteer = require('puppeteer');
const lighthouse = require('lighthouse');
const fs = require('fs');
const LOGIN_URL = '/login';
const USER_EMAIL = process.env.USER_EMAIL;
const USER_PASSWORD = process.env.USER_PASSWORD;
const DOMAIN = process.env.DOMAIN;
// urls
const urls = [
{
"values": {
"answers": {
"79": false,
"245": {
"697": false,
"698": false,
"699": false,
"700": false,
"701": false,
import React, { PureComponent, Fragment } from 'react';
import styled, { css } from 'astroturf';
const Product = styled('li')`
color: #000;
&.discount {
background-color: green;
}
`;
import React, { PureComponent, Fragment } from 'react';
import styled, { css } from 'astroturf';
const Card = styled('form')`
width: 150px;
height: 50px;
&.large {
width: 300px;
}`;
@SilentImp
SilentImp / trashCSSLoader.js
Last active December 4, 2017 07:43
Это сверх-трешевый способ асинхронной загрузки CSS, который Google Page Speed не видит в принципе.
function trashCSSLoader(url) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = function (response) {;
applyCSS(response.target.responseText);
};
xhr.send();
}
function applyCSS(css) {
var styles = document.createElement('style');
{
"syntax": "less",
"extends": "stylelint-config-standard",
"rules": {
# Use soft tabs (2 spaces) for indentation
"indentation": 2,
# Prefer dashes over camelCasing in class names.
# Underscores and PascalCasing are okay if you are using BEM
# "selector-class-pattern": "^(_)?[a-z]+-[a-z0-9-]+((_{2}|-{2})?[a-z0-9-]+)?(-{2}[a-z0-9-]+)?[a-z0-9]$",
# Do not use ID selectors