Skip to content

Instantly share code, notes, and snippets.

Avatar

Adem ilter ademilter

View GitHub Profile
@ademilter
ademilter / api.js
Created Apr 25, 2022
@upstash/chatbox
View api.js
// pages/api/chatbox/[...chatbox].js
import createChatBoxAPI from "@upstash/chatbox/api";
const ChatBoxAPI = createChatBoxAPI({
webhooks: [process.env.SLACK_WEBHOOK_URL!],
});
export default ChatBoxAPI;
@ademilter
ademilter / index.tsx
Last active Mar 23, 2022
manageable component
View index.tsx
<SectionBlockContainer>
<SectionBlock>
<SectionBlockIcon>
<Drafts />
</SectionBlockIcon>
<SectionBlockTitle>Marketing Emails</SectionBlockTitle>
<SectionBlockSummary>
Receive occasional news from Upstash teams, and promotional
offers.
@ademilter
ademilter / DynamicText.jsx
Created Feb 28, 2022 — forked from thomaswang/DynamicText.jsx
Inter dynamic tracking as a React component
View DynamicText.jsx
// https://rsms.me/inter/dynmetrics
const DynamicText = ({ className, children, fontSize = 15, tag = "span" }) => {
const pxToRem = (px) => {
return Number(px * 0.0625)
}
const dynamicLeading = (z) => {
const l = 1.4
return Number(pxToRem(Math.round(z * l)))
@ademilter
ademilter / Component.js
Created Oct 4, 2021
react detecting focus of a browser window get data
View Component.js
export default function Component() {
const [isFocus, setIsFocus] = useState(true)
const { getData } = useContext(RedisDatabaseStoreContext)
useInterval(async () => {
if (!isFocus) return
await getData()
}, 5000)
useEffect(() => {
@ademilter
ademilter / create-component.js
Last active Apr 11, 2021
figma variant generator
View create-component.js
const baseComponents: ComponentNode = selection()[0];
if (!baseComponents) return alert("Not selected!");
const w = baseComponents.width;
const h = baseComponents.height;
const fixedItem = "value";
const childNames = baseComponents.children.map((c) => c.name);
const combinations: [[String]] = getCombinations(childNames);
View gist:c6ca8c7b8f769277fc5305cd05784d21
Auth0 Brand Evolution
https://auth0.design/
Great designers are strong at "product thinking."
https://twitter.com/joulee/status/1357748477548089344
Webpack Nedir?
http://devnot.com/2021/webpack-nedir-webpacke-detayli-bir-bakis/
Chalk
View gist:6a1a3f5ba0055856f4773ab5845c1acc
Modern Web Uygulamaları ve Performans
https://kommunity.com/frontend-istanbul/events/modern-web-uygulamalari-ve-performans-3c61fed8
Rıza Selçuk Saydam ile "Facebook'ta Tasarım ve İşe Alım Süreçleri
https://open.spotify.com/episode/0obHOgbbE4tRDZsJ05OZxD?si=_M9TQ9flRn6tRMXc2p8HTA&nd=1
Tüm ülkece rahatlayabiliriz. Garanti 3D secure ekrenı değişmiş.
https://twitter.com/oguzguc/status/1356127686423425026
Woke up this morning and found this new lovely interface upgrade! ✨
View gist:6699a4cd257020d8edf4b6d44edc0811
Flagpack
https://www.flagpack.xyz/
Sunucu-taraflı React Component’leri ve Stream’ler
https://hwclass.medium.com/react-server-componentleri-ve-stream-ler-c5faa803f1ee
Makefile Tutorial By Example
https://makefiletutorial.com/
Flat image → interactive layers ✨
View gist:30ac6bb946ccefea4f951a3204aac59f
Haftalık Özet #2
Telegram + MonoSay ile SPAM Engelleyen Bot Geliştirmek
https://www.youtube.com/watch?v=mcojBOUpfns&feature=youtu.be
Volta: JavaScript Tool Manager Nedir?
https://link.medium.com/aKLF1qgC2cb
Dünyanın en büyük ilaç şirketlerinden Pfizer, logosunda yenilenmeye gitti
https://twitter.com/akselceylan/status/1349735843171364864