Skip to content

Instantly share code, notes, and snippets.

View f's full-sized avatar
writing code

Fatih Kadir Akın f

writing code
View GitHub Profile
@f
f / customChat.js
Last active February 7, 2024 18:57
create custom chatgpt conversation
// thanks to x.com/umutbasalt
function generateUUID() {
function r() {
return Math.floor(Math.random() * 65536).toString(16).padStart(4, '0');
}
return (
r() + r() + "-" +
r() + "-" +
@f
f / resume.json
Last active January 31, 2023 08:15
{
"basics": {
"name": "Fatih Kadir Akın",
"label": "DevRel Manager at Teknasyon",
"picture": "",
"email": "fatihkadirakin@gmail.com",
"phone": "",
"website": "https://github.com/f",
"summary": "I'm a passionate software developer living in Istanbul, Turkey. Wrote a book about JavaScript. I love being part of development of web technologies. I like to organize conferences and give talks.\n\nI love open source development and I care on my GitHub profile (@f). Love JavaScript and Ruby (and RoR)",
"location": {
@f
f / content.js
Created January 22, 2023 21:28
Twitter Arc Boost
const $$ = document.querySelectorAll.bind(document);
const $ = document.querySelector.bind(document);
const watchBody = new MutationObserver(() => {
const tabs = `[href='/home'][role='tab']`;
const homeButton = `[aria-label="Home"]`;
const $tabs = $$(tabs);
if ($tabs?.length > 1) {
$tabs[1]?.click();
@f
f / p.sh
Created November 15, 2022 17:38
# add this to bashrc
p() {
if [ -f "yarn.lock" ]; then
yarn $1
fi
if [ -f "package-lock.json" ]; then
npm run $1
fi
}
[
[
"a",
"#A"
],
[
"ab",
"#AB"
],
const constraints = [
{
nums: [6, 9, 0],
hint: [1, true], // true means correct place
},
{
nums: [7, 4, 1],
hint: [1, false], // false means wrong place
},
{
@f
f / 5-harfliler.json
Created January 23, 2022 22:17
5-harfliler.json
[
"abacı",
"abadi",
"abalı",
"Abana",
"abani",
"abaşo",
"Abaza",
"Abbas",
"Abdal",
@f
f / kelimeler.json
Created January 23, 2022 22:14
kelimeler.json
This file has been truncated, but you can view the full file.
[
"a",
"ab",
"aba",
"aba",
"abacı",
"abacılık",
"abadi",
"abajur",
"abajurcu",
const MY_DOMAIN = "fka.dev"
const NOTION_MAIL = "fatihkadirakin@aof.anadolu.edu.tr"
const START_PAGE = "https://www.notion.so/fkadev/fka-dev-0606b67bc0f14660992362682d6f7eda"
const DISQUS_SHORTNAME = "fkadev"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
setInterval(()=>fetch("http://secim.aa.com.tr/Handlers/IlBelediyeBaskanligi.ashx").then(x=>x.json()).then(x=>x.AA.IlSonuclari["Il"].find(x=>x.Kod=='34').PartiSonuclari.Parti.filter(x=>['7','8'].includes(x.Kod)).map(x=>x.Oy).map(x=>parseInt(x)).reduce((x,y)=>x-y)).then(x=>console.log(Math.abs(x))),1e3);