Skip to content

Instantly share code, notes, and snippets.

View MShrimp4's full-sized avatar


View GitHub Profile
MShrimp4 /
Created April 2, 2024 07:36
Thumb Branch 명령 분석
BSD 3-Clause License
Copyright (c) 2018, the respective contributors, as shown by the AUTHORS file.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
MShrimp4 / templated_array.c
Created September 19, 2023 06:17
Templated Inline
#include <stddef.h>
#include <stdio.h>
template<size_t x, size_t y>
void doSomething2(double (&arr)[x][y])
for (int i = 0; i < x; i++)
for (int j = 0; j < y; j++)
arr[i][j] = i * x + j;
MShrimp4 / fedicheck.js
Created September 18, 2023 10:29
그래서 어느 엔진이라고?
// ==UserScript==
// @name 그래서 어느 엔진이라고?
// @namespace
// @version 0.1
// @description 우우우 이상한 권한 요구하는 플러그인이다 무섭지 우우우
// @author 갯가재
// @match
// @match
// @match
// @icon
// ==UserScript==
// @name Sogang Proxy Quick Redirector
// @namespace
// @version 0.1
// @description Detect Paper Journal Sites and Redirect to Sogang Library Proxy
// @author Y H
// @match http*://*
// @icon
// @grant none
// ==/UserScript==
MShrimp4 / everything-to-jpg.bat
Last active December 26, 2023 04:00
SGCC 사인머신 (대충짠코드)
PowerShell.exe -ExecutionPolicy Bypass -File .\everything-to-jpg.ps1
# sgwlan_secure_2.4GHz.8021x 가 아니라 이렇게 hex encoding해줘야함 (영어 무조건 소문자)
# 참고
# 나머지는 동일
MShrimp4 /
Last active February 26, 2022 03:27

Bulk Rename: Fix regex replace to replace all occurrences

  • [Difficulty: easy] [Required Skills: C, Glib]

  • [Estimate time: 20hr]

  • Bulk rename supports find-and-replace, but the behavior for plaintext replacement and RegEx behavior differs.

  • Fix RegEx find-and-replace to replace all occurences

  • Additional task: Add an option to replace only first occurence

    • [Difficulty: easy] [Additional Required Skills: Gtk]
  • [Estimated time: 40hr]

MShrimp4 /
Created November 10, 2021 09:16
Crappy impementation of Quine-McCluskey Algorithm
## Written by Yongha Hwang
import copy
import itertools
debug = False
name_list = list()
class bitvector:
def __init__(self, bit, essential):
# lab1.pdf 와
# 참고한 스크립트입니다. lab1.pdf의 1.4.2와 1.4.3 내용을 자동으로 패치합니다
# Windows Powershell (관리자 권한으로 실행) 하고 스크립트 전체를 복사해서 붙여넣기 (화면에 우클릭) 하세요
# 혹시나 몰라 여러 번 스크립트 실행하여도 백업 파일은 남아있도록 만들었습니다.
# 사용 시 일어나는 어떤 일에도 책임지지 않습니다만 제 컴퓨터로 실험해봤습니다
(define (make-itree)
(list (list) (list)))
(define (add-index! itree root-dest)
(define (add-index-rest! index)
((null? (cdr index)) (set-cdr! index (cdr root-dest)))
((< (caadr root-dest) (caadr index)) (set-cdr! index (cons (cadr root-dest) (cdr index))))
(else (add-index-rest! (cdr index)))))
(if (< (caadr root-dest) (caaar itree))