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
@mu-hun
mu-hun / Kirat.h
Created July 17, 2016 10:33
페이스북 "코딩과 무관합니다만," 그룹의 안진용님의 "키랏.cpp"의 소스를 참조한 헤더파일
//놀랍게도 이 헤더파일은 stdio.h만을 포함합니다 키랏★
//잘 사용해주시길 바랍니다 키랏★
#pragma once
#include <stdio.h>
#define 키랏★ ;
#define 포함하다 include
#define 정수 int
#define 받아랏 return
# coding:utf-8
import random
meals = [
'현지님!',
'곱창',
'(말없이 마감중)',
'(수면중)'
]
class Ayeong():
def __init__(self, name):
@mu-hun
mu-hun / sigon.css
Last active December 6, 2017 09:19
Heroes of the Storm memes for seogwipo.jje.hs.kr, YouTube : https://youtu.be/2AR-Z1QKcLw
/* ================================================================================================
KEYFRAMES
================================================================================================ */
@keyframes shake {
2% {
transform: translate(-0.5px, -0.5px) rotate(0.5deg);
}
4% {
transform: translate(2.5px, -1.5px) rotate(-0.5deg);
@mu-hun
mu-hun / DeleteComment.js
Last active November 14, 2019 04:02
네이버 카페 댓글 및 게시글 삭제 자동화 스크립트 //곰곰곰다리백개
const INTERVAL = 250
const x = document.getElementById('cafe_main').contentWindow.document.getElementById('innerNetwork').contentWindow
(function next(interval) {
if (x.document.querySelector('span.m-tcol-c.list-count') === null || x.document.querySelector('td.m-tcol-c').firstChild.data === "작성하신 댓글이 없습니다.") return
x.confirm = () => true
if (!x.document.getElementById('selectAll').checked)
x.document.getElementById('selectAll').click()
@mu-hun
mu-hun / map.js
Last active January 16, 2019 09:28
ES5 문법으로 함수형 구현해보기
function _map(list, fn) {
var eached = [];
for (var i = 0; i < list.length; i++) {
eached.push(fn(list[i]));
}
return eached;
}
@mu-hun
mu-hun / 32BIT.cpp
Created August 6, 2019 04:24
32비트 컴퓨터 납품하기 - 간단한 브루트포스와 순열 연습 문제
#include <iostream>
#include <numeric>
#include <cmath>
using namespace std;
#define MAX 1000
int a[MAX], MONEY;
@mu-hun
mu-hun / demo.ts
Last active October 20, 2019 11:50
Grade-Point-Average parse demo for dreamy.jejunu.ac.kr
import request from 'request'
const student_no = 2018123456
const student_pw = 'PASSWORD'
const BaseURL = 'https://dreamy.jejunu.ac.kr'
const rejectUnauthorized = false
const headers = {
'User-Agent':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0',
import React, { FormEvent } from 'react'
const App: React.FC = () => {
const [flag, setFlag] = useState<boolean>()
const onSubmit = async (event: FormEvent) => {
event.preventDefault()
// @ts-ignore
const { value } = event.target.mailid // mailid is 'any' type
setFlag(await submitID(value))
}
return (
interface FormElements extends HTMLFormElement {
mailid: HTMLInputElement
}
interface FormTarget extends FormEvent<HTMLFormElement> {
target: FormElements
}
const App: React.FC = () => {
const [flag, setFlag] = useState<boolean>()
import { FormEvent } from 'react'
export interface TypeForm extends FormEvent<HTMLFormElement> {}