Skip to content

Instantly share code, notes, and snippets.

View aydgn's full-sized avatar
:octocat:

Aydoğan aydgn

:octocat:
View GitHub Profile
@aydgn
aydgn / claude_code_init_prompt.json
Last active August 7, 2025 09:09
Claude Code /init Prompt
{
"model": "claude-sonnet-4-20250514",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "<system-reminder>\nAs you answer the user's questions, you can use the following context:\n# claudeMd\nCodebase and user instructions are shown below. Be sure to adhere to these instructions. IMPORTANT: These instructions OVERRIDE any default behavior and you MUST follow them exactly as written.\n\nContents of /Users/aydgn/.claude/CLAUDE.md (user's private global instructions for all projects):\n\n- Prefer functional approach over OOP.\n# important-instruction-reminders\nDo what has been asked; nothing more, nothing less.\nNEVER create files unless they're absolutely necessary for achieving your goal.\nALWAYS prefer editing an existing file to creating a new one.\nNEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.\n\n \n IMPORTANT: this context may or may no
@aydgn
aydgn / open-external-links-in-new-tab.js
Created December 26, 2024 13:22
open-external-links-in-new-tab.js
@aydgn
aydgn / clean_code.md
Created November 16, 2024 22:03 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@aydgn
aydgn / cities-array
Created November 11, 2024 10:14
Şehirler (İller) Array
"Adana",
"Adıyaman",
"Afyonkarahisar",
"Ağrı",
"Aksaray",
"Amasya",
"Ankara",
"Antalya",
"Ardahan",
"Artvin",
@aydgn
aydgn / globalprotect.sh
Last active July 4, 2025 21:19
Kill GlobalProtect Process
# TO QUIT
launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*
# TO START
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*
@aydgn
aydgn / ffmpeg-web-video-guide.md
Created August 23, 2024 22:20 — forked from jaydenseric/ffmpeg-web-video-guide.md
A quick guide to using FFmpeg to create cross-device web videos.

Video conversion with FFmpeg

Install

On mac:

  1. Download the latest release.
  2. Extract the binary and place it in /usr/local/bin.

Command basics

@aydgn
aydgn / debounce.js
Created September 24, 2022 16:55
Debounce JS
const debounce = (callback, wait = 1000) => {
let timeoutId = null;
return (...args) => {
window.clearTimeout(timeoutId);
timeoutId = window.setTimeout(() => {
callback(...args);
}, wait);
};
@aydgn
aydgn / lazy-loader.js
Created September 27, 2021 08:28
Lazy Loader
/**
* lazyLoader
* Check for elements in the document to be loaded later when visible to the user.
* @see https://developers.google.com/web/fundamentals/performance/lazy-loading-guidance/images-and-video/
* @example
* <element src="" data-src="/url/" data-srcset="..." />
*/
(function (ready) {
if (document.readyState === "complete" || document.readyState === "interactive") {
@aydgn
aydgn / mq.scss
Last active June 18, 2021 19:50
Mobile first SCSS media query mixin
$breakpoints: (
"phone": 400px,
"phone-wide": 480px,
"phablet": 560px,
"tablet-small": 640px,
"tablet": 768px,
"tablet-wide": 1024px,
"desktop": 1248px,
"desktop-wide": 1440px);
@aydgn
aydgn / isimler
Last active January 28, 2021 11:39 — forked from emrekgn/isimler
Türkçe İsim Listesi
JALE
MANSUR KÜRŞAD
MİRAÇ
HAYATİ
BEDRİYE MÜGE
SERDAL
NALAN
BAHATTİN
IRAZCA
REZAN