Skip to content

Instantly share code, notes, and snippets.

View Serrin's full-sized avatar

Ferenc Czigler Serrin

  • The Walt Disney Company
  • Budapest
  • 05:56 (UTC +02:00)
View GitHub Profile
@yidas
yidas / js-encode-decode.md
Last active November 26, 2025 21:18
JavaScript HTML Entities Encode & Decode
@yohhoy
yohhoy / yuvrgb.md
Last active March 20, 2026 17:15
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
@jiristepan
jiristepan / chickenVsEgg.js
Created October 19, 2018 09:26
Chicken egg problem solved by javascript
let question = ['🥚','🐔']
let answer = question.sort()
console.log(answer[0] + ' was first!')
@jhwheeler
jhwheeler / async-foreach.js
Created August 2, 2018 08:16 — forked from atinux/async-foreach.js
JavaScript: async/await with forEach()
const waitFor = (ms) => new Promise(r => setTimeout(r, ms))
const asyncForEach = (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}
const start = async () => {
await asyncForEach([1, 2, 3], async (num) => {
await waitFor(50)
@Edwardtonnn
Edwardtonnn / webdev_online_resources.md
Created July 23, 2018 18:17 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active June 27, 2026 11:13
Online Resources For Web Developers (No Downloading)
@Rootzpower
Rootzpower / µTorrent_Disable_Ads.txt
Last active November 2, 2018 15:36
Turn off Ads/Featured Content/Bundle for µTorrent
### Working for 3.5.3 [44396] ###
Turn off Ads/Featured Content/Bundle for µTorrent
Compilation of all settings i find in Internet for disable ads on µTorrent
Options -> Preferences -> Advanced
bt.enable_pulse
distributed_share.enable
@MohannadNaj
MohannadNaj / alias.bat.md
Created February 18, 2018 01:26
My windows aliases list.

My windows aliases list.

Installation

1- Attaching Aliases to the native command line:

Steps in this stackoverflow answer.Quoting:

you may make the alias(es) persistent with the following steps,

@davidpiesse
davidpiesse / tailwind_md_all_colours.js
Last active February 25, 2025 16:31
A colour set for Tailwind CSS that include all Material Design Colours, shades, accents and contrast colours
// https://davidpiesse.github.io/tailwind-md-colours/
//
//Notes
//
//All colours are generated from Material Design Docs
//Colours have a base, a set of shades (50-900) accent colours
//In addition a companion set of contrast colours are included for colouring text / icons
// Example usage
// class="w-full bg-red-600 text-red-600-constrast"
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active July 22, 2026 19:53
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).