Skip to content

Instantly share code, notes, and snippets.

View MShrimp4's full-sized avatar

MShrimp4

View GitHub Profile
@MShrimp4
MShrimp4 / autolet.clj
Created November 3, 2018 00:34
Automatic Let -Clojure macro
(defn _autolet [exp]
(cond
(empty? exp) exp
(= (ffirst exp) :=) (let [app (into (vector) (rest (first exp)))
rexp (_autolet (rest exp))]
`((let ~app ~@rexp)))
:else (cons (first exp) (_autolet (rest exp)))))
(defmacro autolet [& exp]
`(do ~@(_autolet exp)))
@MShrimp4
MShrimp4 / sort.c
Created November 8, 2018 01:02
simple sort
#include <stdio.h>
#include <stdbool.h>
bool swap(int * a, int * b){
int temp;
temp = *a;
*a = *b;
*b = temp;
}
(define (make-itree)
(list (list) (list)))
(define (add-index! itree root-dest)
(define (add-index-rest! index)
(cond
((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))
<##
# lab1.pdf 와 https://www.eevblog.com/forum/fpga/guide-getting-xilinx-ise-to-work-with-windows-8-64-bit/?PHPSESSID=5dhfhd60inlobp02ln9t0h8f30
# 참고한 스크립트입니다. lab1.pdf의 1.4.2와 1.4.3 내용을 자동으로 패치합니다
# Windows Powershell (관리자 권한으로 실행) 하고 스크립트 전체를 복사해서 붙여넣기 (화면에 우클릭) 하세요
# 혹시나 몰라 여러 번 스크립트 실행하여도 백업 파일은 남아있도록 만들었습니다.
#
# 사용 시 일어나는 어떤 일에도 책임지지 않습니다만 제 컴퓨터로 실험해봤습니다
#
##>
@MShrimp4
MShrimp4 / qm.py
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):
@MShrimp4
MShrimp4 / issue.md
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]

# sgwlan_secure_2.4GHz.8021x 가 아니라 이렇게 hex encoding해줘야함 (영어 무조건 소문자)
# https://man.archlinux.org/man/community/iwd/iwd.network.5.en 참고
# 나머지는 동일
[Security]
EAP-Method=PEAP
EAP-Identity=2020xxxx
EAP-PEAP-Phase2-Method=MSCHAPV2
EAP-PEAP-Phase2-Identity=2020xxxx
EAP-PEAP-Phase2-Password=pass1234!
@MShrimp4
MShrimp4 / everything-to-jpg.bat
Last active December 26, 2023 04:00
SGCC 사인머신 (대충짠코드)
PowerShell.exe -ExecutionPolicy Bypass -File .\everything-to-jpg.ps1
// ==UserScript==
// @name Sogang Proxy Quick Redirector
// @namespace https://github.com/MShrimp4/
// @version 0.1
// @description Detect Paper Journal Sites and Redirect to Sogang Library Proxy
// @author Y H
// @match http*://ieeexplore.ieee.org/document/*
// @icon https://library.sogang.ac.kr/image/ko/favicon.ico
// @grant none
// ==/UserScript==
@MShrimp4
MShrimp4 / fedicheck.js
Created September 18, 2023 10:29
그래서 어느 엔진이라고?
// ==UserScript==
// @name 그래서 어느 엔진이라고?
// @namespace http://buttersc.one/
// @version 0.1
// @description 우우우 이상한 권한 요구하는 플러그인이다 무섭지 우우우
// @author 갯가재
// @match https://buttersc.one/
// @match https://stella.place/
// @match https://k.lapy.link/
// @icon https://www.google.com/s2/favicons?sz=64&domain=buttersc.one