Skip to content

Instantly share code, notes, and snippets.

View nerkarso's full-sized avatar
🔥
My passion is to solve problems using technology

Ner Karso nerkarso

🔥
My passion is to solve problems using technology
View GitHub Profile
@nerkarso
nerkarso / codeswing.json
Last active August 2, 2024 16:18
JS disable paste
{
"scripts": [],
"styles": []
}
@nerkarso
nerkarso / script.js
Last active April 14, 2025 23:34
Browser bookmark copy tab title
javascript:(function(){var textarea=document.createElement('textarea');textarea.textContent=document.title;textarea.style.position='fixed';document.body.appendChild(textarea);textarea.select();try{return document.execCommand('copy')}catch(ex){return false}finally{document.body.removeChild(textarea)}})();
@nerkarso
nerkarso / codeswing.json
Last active March 31, 2024 03:10
CSS overlapping content
{
"scripts": [],
"styles": []
}
@nerkarso
nerkarso / App.jsx
Last active March 29, 2024 00:04
React content collapsible
import { useEffect, useState } from "react";
// Inject Tailwind CSS
document.head.appendChild(
Object.assign(document.createElement("link"), {
rel: "stylesheet",
href: "https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css",
})
);
@nerkarso
nerkarso / codeswing.json
Last active August 2, 2024 15:49
CSS layouts
{
"scripts": [],
"styles": []
}
@nerkarso
nerkarso / codeswing.json
Last active March 28, 2024 01:13
JS filter out empty values
{
"scripts": [],
"showConsole": true
}
@nerkarso
nerkarso / codeswing.json
Last active March 28, 2024 01:12
JS filter out falsey values
{
"scripts": [],
"showConsole": true
}
@nerkarso
nerkarso / codeswing.json
Last active March 28, 2024 01:11
HTML CSS slideshow mover
{
"scripts": [],
"styles": []
}
@nerkarso
nerkarso / codeswing.json
Last active March 28, 2024 01:09
JS generate array
{
"scripts": [],
"showConsole": true
}
@nerkarso
nerkarso / codeswing.json
Last active March 28, 2024 01:02
HTML JS scroll-aware navigation
{
"scripts": [],
"styles": []
}