Skip to content

Instantly share code, notes, and snippets.

View mrmercc's full-sized avatar
💭
404 - reality not found

Ömer Çelik mrmercc

💭
404 - reality not found
View GitHub Profile
@mrmercc
mrmercc / software_engineering.md
Created May 22, 2026 01:15 — forked from selcukcihan/software_engineering.md
Software engineering in a nutshell
  • NodeJS and JavaScript
    • Event loop
    • Parallel programming
    • Async
    • Libuv and the thread pool
    • Streams and backpressure
    • Worker threads vs child processes
    • Memory model (V8 heap, garbage collection, memory leaks)
    • CommonJS vs ESM modules
  • Clustering and process management (PM2, cluster module)
@mrmercc
mrmercc / conventional_commit_messages.md
Created February 17, 2023 11:37 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@mrmercc
mrmercc / gist:e510ff537f40fa92697b0b93b599f951
Created May 19, 2021 21:45 — forked from liunian/gist:9338301
Human Readable File Size with PHP
<?php
# http://jeffreysambells.com/2012/10/25/human-readable-filesize-php
function human_filesize($bytes, $decimals = 2) {
$size = array('B','kB','MB','GB','TB','PB','EB','ZB','YB');
$factor = floor((strlen($bytes) - 1) / 3);
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$size[$factor];
}
echo human_filesize(filesize('example.zip'));
@mrmercc
mrmercc / README.md
Created April 24, 2021 05:01 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@mrmercc
mrmercc / batch.bat
Created October 23, 2018 11:55 — forked from bangonkali/batch.bat
Attaching Notepad++ to git commit editor.
git config core.editor "'C:\Program Files (x86)\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
@mrmercc
mrmercc / strArrayReplace.java
Last active August 31, 2018 08:19
Array string replacement in Java
/*
[EN]
Java array string replacement example
Easy to use, single function array replacement example.
Takes search array lenght and replace it with array index.
[TR]
Java array ile toplu string karakter değiştirme
Kullanımı kolay tek fonksiyonluk bir örnektir.
Aranacak karakterleri dizi değişkene (array) alır ve döngüye sokar