Skip to content

Instantly share code, notes, and snippets.

View boxqkrtm's full-sized avatar
💭
I may be slow to respond. extreme

boxqkrtm

💭
I may be slow to respond. extreme
  • 10:57 (UTC +09:00)
View GitHub Profile
@cognitive-glitch
cognitive-glitch / easyboj.rs
Last active December 7, 2024 13:53
Easy I/O Macros for BOJ Problem solving in Rust / 백준 러스트 고속 입출력 정상화
/// Fast I/O macros for competitive programming
/// These macros provide efficient input/output operations optimized for competitive programming
/// 백준 OJ 러스트 사용자들을 위한 간편한 빠른 입출력 매크로
/// Reads a single line from stdin
/// # Examples
/// ```
/// let line = read!(); // reads a line as String
/// let num = read!(i32); // reads and parses a single number
/// let (a, b) = read!(i32, i32); // reads two numbers into a tuple
@hmmhmmhm
hmmhmmhm / avoid-in-app.js
Created August 19, 2024 05:38 — forked from vzts/avoid-in-app.js
카카오톡 인앱 브라우저 탈출하기 코드 가장 심플하게 정리 (2023.10.27 동작 확인)
const userAgent = navigator.userAgent.toLowerCase()
if (/kakaotalk/.test(userAgent)) {
location.href =
'kakaotalk://web/openExternal?url=' + encodeURIComponent(location.href)
setTimeout(() => {
location.href = /ipad|iphone|ipod/.test(userAgent)
? 'kakaoweb://closeBrowser'
: 'kakaotalk://inappbrowser/close'
})