Skip to content

Instantly share code, notes, and snippets.

View mu-hun's full-sized avatar
๐Ÿ’ก
No sliver bullet

Mu hun mu-hun

๐Ÿ’ก
No sliver bullet
View GitHub Profile
[InternetShortcut]
URL=data:text/html,<input type="color" onchange="document.bgColor=this.value">
@superLipbalm
superLipbalm / how-to-compose-functions-that-take-multiple-parameters-epic-guide.md
Last active February 17, 2025 11:34
[๋ฒˆ์—ญ] ์—ฌ๋Ÿฌ ๋งค๊ฐœ ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•(์—ญ๋Œ€๊ธ‰ ๊ฐ€์ด๋“œ)

์—ฌ๋Ÿฌ ๋งค๊ฐœ ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•(์—ญ๋Œ€๊ธ‰ ๊ฐ€์ด๋“œ)

thumbnail

์›๋ฌธ: https://jrsinclair.com/articles/2024/how-to-compose-functions-that-take-multiple-parameters-epic-guide/

๋ชฉ์ฐจ

import styled from '@emotion/styled';
import React, from 'react';
import { variant } from 'styled-system';
import { BaseButton, BaseButtonProps } from '../../../private/BaseButton';
import { textVariants } from '../../../private/BaseText';
import { skipForwardProps } from '../../../props';
const kindVariants = {
primary: {
fontWeight: '700',
@RanolP
RanolP / inverse-type.ts
Last active November 19, 2019 02:01
I'd like to introduce the `Inverse` type in TypeScript.
// For Readibility, I've separated it into type.
type Keyable = string | number | symbol;
// Get value union type.
// for `{ a: true, b: 3 }` it will give you `boolean | number` type.
// Also for array, it will give you commonest type of the array.
type GetValueUnion<T> = T[keyof T];
// This type will inverse keys and values.
// for `{ a: 'str', b: 3 }` it will give you `{ 3: 'b', str: 'a' }` type.
@kiding
kiding / 2018-2019.diff
Created May 30, 2019 01:11
(2018|2019)๋…„๋„ ๋ณ‘์—ญ์ง€์ •์—…์ฒด ์„ ์ • ๋ฐ (2019|2020)๋…„๋„ ์ธ์›๋ฐฐ์ • ๊ณ ์‹œ
1,4c1,4
< โ—‰๋ณ‘๋ฌด์ฒญ๊ณ ์‹œ์ œ2018-1ํ˜ธ
< 2018๋…„๋„ ๋ณ‘์—ญ์ง€์ •์—…์ฒด ์„ ์ • ๋ฐ 2019๋…„๋„ ์ธ์›๋ฐฐ์ • ๊ณ ์‹œ
< 2018๋…„๋„ ๋ณ‘์—ญ์ง€์ •์—…์ฒด ์„ ์ • ๋ฐ 2019๋…„๋„ ์ธ์›๋ฐฐ์ •์— ๋Œ€ํ•˜์—ฌ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ณ ์‹œํ•ฉ๋‹ˆ๋‹ค.
< 2018๋…„ 5์›” 23์ผ
---
> โ—‰๋ณ‘๋ฌด์ฒญ๊ณ ์‹œ ์ œ2019-2ํ˜ธ
> 2019๋…„๋„ ๋ณ‘์—ญ์ง€์ •์—…์ฒด ์„ ์ • ๋ฐ 2020๋…„๋„ ์ธ์›๋ฐฐ์ • ๊ณ ์‹œ
> 2019๋…„๋„ ๋ณ‘์—ญ์ง€์ •์—…์ฒด ์„ ์ • ๋ฐ 2020๋…„๋„ ์ธ์›๋ฐฐ์ •์— ๋Œ€ํ•˜์—ฌ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ณ ์‹œํ•ฉ๋‹ˆ๋‹ค.
> 2019๋…„ 5์›” 27์ผ
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
using namespace std;
int dr[] = { -1, 0, 1, 0 };
int dc[] = { 0, 1, 0, -1 };
@nzvtrk
nzvtrk / axiosInterceptor.js
Last active April 14, 2025 13:50
Axios create/recreate cookie session in node.js enviroment
/* Basic example of saving cookie using axios in node.js and session's recreation after expiration.
* We have to getting/saving cookie manually because WithCredential axios param use XHR and doesn't work in node.js
* Also, this example supports parallel request and send only one create session request.
* */
const BASE_URL = "https://google.com";
// Init instance of axios which works with BASE_URL
const axiosInstance = axios.create({ baseURL: BASE_URL });
@HelloWorld017
HelloWorld017 / KAIST_courseRegistration.md
Last active February 28, 2025 05:07
์นด์ด์ŠคํŠธ ์ˆ˜๊ฐ•์‹ ์ฒญ ๋ฝ€๊ฐœ๊ธฐ

์นด์ด์ŠคํŠธ ์ˆ˜๊ฐ•์‹ ์ฒญ

NetFunnel

  • ํŠธ๋ž˜ํ”ฝ์„ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ํ•˜๋‚˜์˜ ์†”๋ฃจ์…˜, ํ”ํžˆ ๋ณด๋Š” ์ ‘์†์ž ๋Œ€๊ธฐ๊ฐ€ ๊ทธ๊ฒƒ
  • https://traffic.kaist.ac.kr/ ์—์„œ ๋™์ž‘ ์ค‘
    • ํ˜น์‹œ ๋ชจ๋ฅด์ง€๋งŒ ์„œ๋ฒ„ ์‹œ๊ฐ„์„ ์—ฌ๊ธฐ์„œ ์ œ๊ณตํ•ด์ค€๋‹ค.

GET https://traffic.kaist.ac.kr/ts.wseq

Global Params:

  • opcode: ์‹คํ–‰ํ•  ๋ช…๋ น์–ด ์ด๋ฆ„ (Opcode Table ์ฐธ๊ณ )
@RanolP
RanolP / bypass-original.js
Last active January 2, 2022 19:49
Bypass Screen Share Restriction in Guild on Discord.
(() => {
const data = [
[],
{
run: (_ignored1, _ignored2, { c: result }) => {
for (const field of Object.getOwnPropertyNames(result)) {
const exported = result[field].exports;
if (exported && exported.isDeveloper === false) {
Object.defineProperty(exported, "isDeveloper", {
value: true,
@johngrib
johngrib / contribution.sh
Created December 31, 2018 14:58
Show github contribution graph on terminal
#! /usr/local/bin/bash
MYGITHUB=johngrib
RAW=/tmp/$MYGITHUB-github
TABLE=/tmp/$MYGITHUB-github-table
COLORS=/tmp/$MYGITHUB-github-colors
curl -s https://github.com/$MYGITHUB/ > $RAW
TITLE=`cat /tmp/johngrib-github | pcregrep -M '[0-9,]+ contributions\s*\n\s*in the last year'`