Skip to content

Instantly share code, notes, and snippets.

View Serrin's full-sized avatar

Ferenc Czigler Serrin

  • Budapest
View GitHub Profile
@Serrin
Serrin / temporary-email-address-domains
Created January 18, 2022 17:39 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@Serrin
Serrin / loading_messages.js
Created January 7, 2022 21:21 — forked from meain/loading_messages.js
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",
@Serrin
Serrin / yuvrgb.md
Created November 28, 2021 21:13 — forked from yohhoy/yuvrgb.md
RGB <=> YCbCr(YPbPr) color space conversion
Y  = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
BT.601 BT.709 BT.2020
a 0.299 0.2126 0.2627
b 0.587 0.7152 0.6780
@Serrin
Serrin / nodejs_cheatsheet.js
Created September 22, 2021 08:07 — forked from minhtuanchannhan/nodejs_cheatsheet.js
NodeJS cheatsheet
/**
* @name SYNOPSIS
* @link http://nodejs.org/api/synopsis.html
*/
var http = require('http');
// An example of a web server written with Node which responds with 'Hello World'.
// To run the server, put the code into a file called example.js and execute it with the node program.
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
@Serrin
Serrin / youtube-hide-videos.js
Last active July 23, 2021 22:29
Youtube hide videos from the subscriptions page (https://www.youtube.com/feed/subscriptions)
[...document.querySelectorAll(".style-scope .ytd-menu-renderer")]
.filter((v) => v.className === "style-scope ytd-menu-renderer")
//.slice(0,50) // change here to hide more videos or comment this line to hide all
.forEach( (v,i,a) => {
console.log((i + 1) + " / " + a.length);
v.click();
//[...document.querySelectorAll(".style-scope .ytd-menu-service-item-renderer")]
//.filter( (v) => v.innerHTML === "Hide" )
// //.forEach((v)=>v.click());
@Serrin
Serrin / html-languages.txt
Created July 6, 2021 14:57 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@Serrin
Serrin / tips-for-golfing-in-javascript.md
Created July 5, 2021 07:00
What is Javascript Golfing? Well, Javascript golfing is the process of writing the smallest amount of javascript code to do something awesome. It tests your ability to reduce, reuse, and recycle for the purpose of achieving the tiniest footprint possible.

Based on 140byt.es

Byte-saving Techniques

This is a collection of JavaScript wizardry that can shave bytes off of your code. It's mainly intended as a reference for those creating entries for 140byt.es. Feel free to add your own or send any feedback to @140bytes.

Disclaimer

@Serrin
Serrin / javascript-query-string.js
Created June 7, 2021 11:19 — forked from DavidWells/javascript-query-string.js
JavaScript :: Regex trick: Parse a query string into an object
// http://stevenbenner.com/2010/03/javascript-regex-trick-parse-a-query-string-into-an-object/
// JavaScript regex trick: Parse a query string into an object
var queryString = {};
anchor.href.replace(
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
function($0, $1, $2, $3) { queryString[$1] = $3; }
);
// Usage
@Serrin
Serrin / visually-hidden.css
Last active May 15, 2021 17:13 — forked from luxplanjay/visually-hidden.css
Visually hidden CSS pattern
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
border: 0;
padding: 0;
outline: 0;
outline-offset: 0;
$symbols = '!@#$%^&*'.ToCharArray()
$characterList = 'a'..'z' + 'A'..'Z' + '0'..'9' + $symbols
function GeneratePassword {
param(
[Parameter(Mandatory = $false)]
[ValidateRange(12, 256)]
[int]
$length = 14
)