Skip to content

Instantly share code, notes, and snippets.

Avatar

hinell hinell

View GitHub Profile
@hinell
hinell / Кремлеботы.txt
Last active May 19, 2022
Список аккаунтов потенциальных кремлеботов в Твиттере (не верефицирован, могут быть ложные позитивы). Источник: https://twitter.com/i/lists/1493873730543575042
View Кремлеботы.txt
@nataliiaEgorov
@Sergej08256768
@A3900606106
@Tanya34171168
@matrioshkaspain
@Bravehard1954
@4avtoK
@M1tXun4a
@DEskvajr
@GbVinter
@hinell
hinell / README.md
Last active Oct 10, 2021
List & filter workspace cache folder; use for cleanup
View README.md

VSCode Workspaces Storage Filter Script

Release date: Sat, October 09, 2021

The script is intended to taclke the issue of leaky workspaceStorage of Microsoft Visual Studio Code. See related issue on github: [VS Code#134532]

Usage

# list cache folders
@hinell
hinell / console-tab
Created Jul 22, 2021
Manage your tabs!
View console-tab
#!/usr/bin/env bash
# Title : console-tab
# Summary : Start dev environment. Supported platforms: Kubuntu 20.10
# Created-at : Wednesday, July 21, 2021
# Last-Modified : Thursday, July 22, 2021
# Repository : N/A
# Authors : Alex A. Davronov <al.neodim@gmail.com> (2021-)
# Description : TODO: Add description.
# Usage : Run $ .../console-tab usage
#
@hinell
hinell / Fix Broken EDID Guide.md
Last active Jan 8, 2022
Guide how to achieve better resolution with broken EDID. Two methods are used: xorg.conf config and kernel params.
View Fix Broken EDID Guide.md

Fix Broken EDID Guide

This guide outlines replacement of the broken EDID metadata file for the device in Linux Operating Systems.

Last-Modified: Sunday, April 11, 2021

• • •

@hinell
hinell / Spread & Apply Max Items.js
Created Jul 20, 2020
Maximum number of items that can be safely passed into .apply(...) invocation
View Spread & Apply Max Items.js
// Description: The code below fails in two major browsers due to exceeding number
// of argumnets that can be safely passed into `.apply(...)`
// invocation of the `test(...)` function.
(function(){
console.clear();
upperBound = {};
// Substruct 1 to let the magic happen
upperBound.Chrome = Math.pow(2, 16) + 55155;
upperBound.Firefx = Math.pow(2, 18) + 237857;
View SC.Tracks.js
/********************
Name : SC.Tracks snippet
Version : 0.4.4
Last-Modified : Jan 9, 2019
Description :
The programm walks over tracks:
Tracks.nodes = [
1track
2track <---- tracks.current
3track
View loadImages.js
/**!
* Description : A few snipets that help to load bunch of images or svgs using DOMParse API
* Author : <hinell@github.com>
* Last-Modified: July 13, 2019
* License : Copyright (c) 2019 Alexander Davronov
* In case of disclosure of use of this piece of software you may face prosection
* if any of the following conditions are met:
* 1. You failed to make a due mention of the aforementioned author
* 2. You failed to copy this license text next to this piece of software
*
View Sunrise Sunset Algorithm Example.txt
Source: https://edwilliams.org/sunrise_sunset_example.htm
Source:
Almanac for Computers, 1990
published by Nautical Almanac Office
United States Naval Observatory
Washington, DC 20392
Inputs:
day, month, year: date of sunrise/sunset
View Canvas.arcTo.js
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
const controlOut = document.getElementById('radious-output');
const control = document.getElementById('radious');
control.oninput = () => {
controlOut.textContent = r = control.value;
};
const mouse = { x: 0, y: 0 };
@hinell
hinell / ES2015 Var Destructuring.js
Last active Jun 8, 2019
Measures performance of the variable assignment by destructuring. See my post here: https://twitter.com/biteofpie/status/1137079144301379586
View ES2015 Var Destructuring.js
function bench (name, iterations = 500, fn) {
const t0 = performance.now();
for (let i = 0; i < iterations; i++) fn(i)
let d = performance.now() - t0;
d = Math.ceil(d);
let ops = iterations / d;