Skip to content

Instantly share code, notes, and snippets.

View sghall's full-sized avatar
πŸ₯Š

Steve Hall sghall

πŸ₯Š
  • San Francisco, CA
View GitHub Profile
@callumlocke
callumlocke / scale-canvas.ts
Last active April 9, 2025 20:22
How to fix a canvas so it will look good on retina/high-DPI screens.
/*
UPDATED for 2023 - Now much simpler. The old tricks are no longer needed.
The following code makes an 800Γ—600 canvas that is always as sharp as possible for the device.
You still draw on it as if it's the logical size (800Γ—600 in this case), but everything just
looks sharper on high-DPI screens. Regular non-sharp screens are not affected.
*/
const width = 800
@rxaviers
rxaviers / gist:7360908
Last active April 29, 2025 23:50
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: