Skip to content

Instantly share code, notes, and snippets.

View sedoyjan's full-sized avatar
:octocat:
I may be slow to respond.

Sergei Grigorev sedoyjan

:octocat:
I may be slow to respond.
View GitHub Profile
@sedoyjan
sedoyjan / Pdf.jsx
Created August 1, 2018 21:42 — forked from webshared/Pdf.jsx
React-Pdf workaround: renders PDF as Blob in browser and display at page + show download link
import React from 'react';
import {
Page, Text, Image, View, Document, StyleSheet,
createElement, pdf, PDFRenderer,
} from '@react-pdf/core';
import blobStream from 'blob-stream';
const Doc = () => (
<Document>
<Page wrap={true}>
@sedoyjan
sedoyjan / media-query.css
Created August 25, 2018 09:51 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@sedoyjan
sedoyjan / httpsExpressApp.js
Created December 5, 2018 09:07 — forked from ryanhanwu/httpsExpressApp.js
Express JS HTTP + HTTPs server (including auto redirect)
var express = require('express'),
routes = require('./routes'),
upload = require('./routes/upload'),
http = require('http'),
https = require('https'),
fs = require('fs'),
path = require('path'),
httpApp = express(),
app = express(),
certPath = "cert";
@sedoyjan
sedoyjan / meta-tags.md
Created January 9, 2019 18:32 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@sedoyjan
sedoyjan / hex-opacity-values.txt
Created January 31, 2019 21:28 — forked from frankyonnetti/CSS--hex-opacity-values.css
#css Hex Opacity Values
Hex Opacity Values
100% — FF
95% — F2
90% — E6
85% — D9
80% — CC
75% — BF
70% — B3
65% — A6
@sedoyjan
sedoyjan / LICENSE
Created October 29, 2019 11:54 — forked from ourmaninamsterdam/LICENSE
Arrayzing - The JavaScript array cheatsheet
The MIT License (MIT)
Copyright (c) 2015 Justin Perry
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@sedoyjan
sedoyjan / event-listeners.js
Created November 8, 2019 07:12 — forked from danburzo/README.md
Get all event listeners on the page in Google Chrome
var items = Array.prototype.slice.call(
document.querySelectorAll('*')
).map(function(element) {
var listeners = getEventListeners(element);
return {
element: element,
listeners: Object.keys(listeners).map(function(k) {
return { event: k, listeners: listeners[k] };
})
};
@sedoyjan
sedoyjan / install-postgres-10-ubuntu.md
Created November 9, 2019 15:52 — forked from alistairewj/install-postgres-10-ubuntu.md
Install PostgreSQL 10 on Ubuntu

Install PostgreSQL 10 on Ubuntu

This is a quick guide to install PostgreSQL 10 - tested on Ubuntu 16.04 but likely can be used for Ubuntu 14.04 and 17.04 as well, with one minor modification detailed below.

(Optional) Uninstall other versions of postgres

To make life simple, remove all other versions of Postgres. Obviously not required, but again, makes life simple.

dpkg -l | grep postgres
@sedoyjan
sedoyjan / react-virtualized.d.ts
Created April 19, 2020 12:53 — forked from bertrandk/react-virtualized.d.ts
Typescript React Virtualized
/// <reference path="../react/react.d.ts" />
declare namespace ReactVirtualized {
import React = __React
interface CellGroupRendererConfig {
cellSizeAndPositionGetter: Function;
indices: Array<number>;
cellRenderer: Function;
}
@sedoyjan
sedoyjan / autoru_qa_assits.json
Created July 20, 2020 08:57 — forked from fanruten/autoru_qa_assits.json
AutoRu QA Assits App
{
"title": "Auto.Ru",
"suitName": "group.mainAppSettings",
"groups": [
{
"title": "Общие настройки",
"subtitle": "При изменении любой настройки нужно перезапустить приложение Auto.ru — убить его в списке запущеных приложений iOS",
"parameters": [
{
"path": "requiresCustomSSLChain",