Skip to content

Instantly share code, notes, and snippets.

@planetbk9
planetbk9 / english-teacher.sh
Last active January 30, 2026 12:33
English teacher in Claude Code
#!/bin/bash
# .claude/hooks/english-teacher.sh
# English Teacher Hook - Analyzes user's English and provides feedback
# Triggered on UserPromptSubmit
# Debug mode - set to true to enable logging
DEBUG=true
DEBUG_LOG="/tmp/english-teacher-debug.log"
debug_log() {
[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
[번역] 여러 매개 변수를 사용하는 자바스크립트 함수를 작성하는 방법(역대급 가이드)
@foxfirecodes
foxfirecodes / search_blocks.md
Last active October 10, 2025 18:10
Search for blocks in a Minecraft world

search_blocks

a small Python script that uses amulet-core to search for specific blocks in a Minecraft world

this was created out of my need to find the exceptionally rare Osmium Ore in the Not Too Complicated 2 modpack

call it cheating if you like, but this is my 3rd playthrough of the pack and quite frankly i have much better things to do than fuck around trying to find a single goddamn vein of this shit.

if you want to use it, the general setup goes like this:

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 May 29, 2026 10:23
카이스트 수강신청 뽀개기

카이스트 수강신청

NetFunnel

  • 트래픽을 관리하기 위한 하나의 솔루션, 흔히 보는 접속자 대기가 그것
  • https://traffic.kaist.ac.kr/ 에서 동작 중
    • 혹시 모르지만 서버 시간을 여기서 제공해준다.

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

Global Params:

  • opcode: 실행할 명령어 이름 (Opcode Table 참고)