Skip to content

Instantly share code, notes, and snippets.

@toy-crane
toy-crane / toss-frontend-rules.mdc
Last active May 14, 2025 13:45
ํ† ์Šค ํ”„๋ก ํŠธ์—”๋“œ ๊ฐ€์ด๋“œ๋ผ์ธ ๊ธฐ๋ฐ˜์œผ๋กœ ๋งŒ๋“  Cursor rule
# Frontend Design Guideline
This document summarizes key frontend design principles and rules, showcasing
recommended patterns. Follow these guidelines when writing frontend code.
# Readability
Improving the clarity and ease of understanding code.
@joanna-liana
joanna-liana / afterEnv.ts
Last active October 7, 2024 14:24
Jest + TypeORM + TestContainers
import { setupTypeOrmTestConnection } from '../integrationSetup';
beforeAll(async () => {
console.log('AFTER ENV SETUP START');
global.testConn = await setupTypeOrmTestConnection(+process.env.TEST_PG_PORT);
console.log('AFTER ENV SETUP DONE');
});
afterAll(async () => {
console.log('AFTER ENV TEARDOWN START');
@azu
azu / TypeScriptใฎ่จญๅฎšใฎ่‰ฏใ—ๆ‚ชใ—.md
Last active February 14, 2025 10:38
TypeScriptใฎ่จญๅฎšใฎ่‰ฏใ—ๆ‚ชใ—

tsconfig.json ใฎ่จญๅฎšใซใคใ„ใฆใฎใƒกใƒขๆ›ธใใงใ™ใ€‚

Node.jsใฎใƒใƒผใ‚ธใƒงใƒณใ”ใจใฎ่จญๅฎš

target ใฏ ๅค‰ๆ›ๅพŒใฎใ‚ณใƒผใƒ‰ใฎECMAScriptใƒใƒผใ‚ธใƒงใƒณใ‚’ๆŒ‡ๅฎšใ™ใ‚‹ ใŸใจใˆใฐใ€Node.js 14ใฏES2020ใ‚’ใ‚ตใƒใƒผใƒˆใ—ใฆใ„ใ‚‹ใ€‚ใใฎใŸใ‚ใ€Node.js 14ๅ‘ใ‘ใฎใ‚ณใƒผใƒ‰(ใ‚ตใƒผใƒใชใฉ)ใชใ‚‰target: "ES2020"ใ‚’ๆŒ‡ๅฎšใ™ใ‚‹ใ“ใจใงใ€ไฝ™่จˆใชTranspileใŒ็œใ‹ใ‚Œใฆใฆใ‚ณใƒผใƒ‰ใ‚ตใ‚คใ‚บใ‚„ๅฎŸ่กŒๆ™‚้–“ใŒๆœ€้ฉๅŒ–ใ•ใ‚Œใ‚‹ใ€‚

@FocusThen
FocusThen / useState.js
Created February 21, 2021 20:44
React useState from scratch
import React from 'react';
import ReactDOM from 'react-dom';
let callCount = -1
let states = []
function useState(initValue) {
const id = ++callCount
if (states[id]) return states[id]
@jakub-g
jakub-g / safari-release-notes-history+stable-technical-preview-mapping.md
Last active January 17, 2025 10:21
Mapping Safari releases to Safari TP versions
@ozluy
ozluy / .eslintrc
Last active April 10, 2022 05:16
Nextjs Eslint
//.eslintrc
{
"env": {
"browser": true,
"es6": true,
"commonjs": true
},
"plugins": ["react"],
"extends": [
@swyxio
swyxio / 1.md
Last active March 23, 2025 07:07
Learn In Public - 7 opinions for your tech career

2019 update: this essay has been updated on my personal site, together with a followup on how to get started

2020 update: I'm now writing a book with updated versions of all these essays and 35 other chapters!!!!

1. Learn in public

If there's a golden rule, it's this one, so I put it first. All the other rules are more or less elaborations of this rule #1.

You already know that you will never be done learning. But most people "learn in private", and lurk. They consume content without creating any themselves. Again, that's fine, but we're here to talk about being in the top quintile. What you do here is to have a habit of creating learning exhaust. Write blogs and tutorials and cheatsheets. Speak at meetups and conferences. Ask and answer things on Stackoverflow or Reddit. (Avoid the walled gardens like Slack and Discourse, they're not public). Make Youtube videos

@bsouthga
bsouthga / weakmap_redux.md
Last active July 14, 2022 02:54
WeakMap + Redux

Combining Weakmap + Redux for fun and profit.

Scenario

Lets say we have a large Redux State object which looks like this...

interface State {
  stockMarketData: {
 [stockTicker: string]: {
@harshavardhana
harshavardhana / nginx-minio-static.md
Last active May 6, 2025 07:55 — forked from koolhead17/gist:4b8dd8d95ec86368634693cf9ad9391c
How to configure static website using Nginx with MinIO ?

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

4. Create a bucket:

$ mc mb myminio/static
Bucket created successfully โ€˜myminio/staticโ€™.
@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active January 14, 2025 02:29
AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ

AWS ํ•™์Šต ๋งํฌ์ง‘ ์‹œ๋ฆฌ์ฆˆ

  • AWS ํ•™์Šต ์ž๋ฃŒ์ง‘ http://bit.ly/aws-study-resource
  • AWS ๊ณต์ธ ์†”๋ฃจ์…˜์Šค ์•„ํ‚คํ…ํŠธ - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/sacertguide
  • AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ http://bit.ly/devcertguide
  • AWS ๋ณด์•ˆ ๊ด€๋ จ ์ปจํ…์ธ  ๋ชจ์Œ์ง‘ http://bit.ly/seccontents

AWS ๊ณต์ธ ๊ฐœ๋ฐœ์ž - ์–ด์†Œ์‹œ์—์ดํŠธ ์ˆ˜ํ—˜ ๊ฐ€์ด๋“œ(http://bit.ly/devcertguide)