Skip to content

Instantly share code, notes, and snippets.

View foriequal0's full-sized avatar
🤓
I may be slow to respond.

SeongChan Lee foriequal0

🤓
I may be slow to respond.
  • Seoul, South Korea
  • 17:24 (UTC +09:00)
View GitHub Profile
@foriequal0
foriequal0 / 한글자소분리조합.js
Last active January 20, 2016 20:17
한글 자소 분리 조합
var hangul = (function() {
var ChoSeong = [
0x3131, 0x3132, 0x3134, 0x3137, 0x3138,
0x3139, 0x3141, 0x3142, 0x3143, 0x3145,
0x3146, 0x3147, 0x3148, 0x3149, 0x314a,
0x314b, 0x314c, 0x314d, 0x314e
];
var JungSeong = [
0x314f, 0x3150, 0x3151, 0x3152, 0x3153,
@foriequal0
foriequal0 / 야민정음.js
Last active January 24, 2017 07:14
야민정음.js
var hangul = (function() {
var ChoSeong = [
0x3131, 0x3132, 0x3134, 0x3137, 0x3138,
0x3139, 0x3141, 0x3142, 0x3143, 0x3145,
0x3146, 0x3147, 0x3148, 0x3149, 0x314a,
0x314b, 0x314c, 0x314d, 0x314e
];
var JungSeong = [
0x314f, 0x3150, 0x3151, 0x3152, 0x3153,
@foriequal0
foriequal0 / heate.rs
Last active November 10, 2016 02:33
Warm heaters for winter.
extern crate rand;
use rand::Rng;
use std::thread;
use std::sync::{Arc};
use std::sync::atomic::{AtomicIsize, Ordering};
use std::iter::FromIterator;
fn main() {
println!("Heater turned on!");
@foriequal0
foriequal0 / code_launcher.sh
Created January 10, 2017 19:47
Unity VSCode Launcher
#!/usr/bin/env bash
# Install VSCode, and add to 'PATH'
# Save this script as code_launcher or something other than 'code'
# Goto 'Unity Preference' -> 'External Tools'
# Set 'External Script Editor' as that code_launcher
# Set 'External Script Editor Args' as '$(File);$(Line);$(ProjectPath)' (without quote)
IFS=';' read -ra ARG <<< "$@"
FILE=${ARG[0]}
@foriequal0
foriequal0 / Continuation Monad.md
Created January 23, 2017 21:21
Continuation Monad

Continuation Monad

이성찬, 2017


Continuation

Continuation제어 흐름 을 구체화 해 first-class citizen으로 다룰 수 있게 한 추상 표현.

@foriequal0
foriequal0 / do-you-know-kimchi.user.js
Last active September 21, 2017 02:24
Republic of Korea, Korea, South Korea, 대한민국, 한국, 남한 을 찾아서 자동으로 선택해줍니다
// ==UserScript==
// @name Do you know Kimchi
// @namespace do-you-know-kimchi.co.kr
// @description Republic of Korea, Korea, South Korea, 대한민국, 한국 을 찾아서 자동으로 선택해줍니다
// @include *
// @exclude file://*
// @version 1
// @grant none
// @run-at document-end
// @require https://cdn.rawgit.com/hiddentao/fast-levenshtein/fd716307/levenshtein.min.js
@foriequal0
foriequal0 / yaminjeongeum.user.js
Last active May 20, 2024 05:26
브라우저의 모든 텍스트를 야민정음으로 바꿔줍니다
// 브라우저에 GreaseMonkey(Firefox) TamperMonkey(Chrome) 을 설치하고,
// https://gist.github.com/foriequal0/154e73d3289d808e8ce94603f5eff6a4/raw/yaminjeongeum.user.js
// 위 링크를 브라우저에 입력하면 자동으로 스크립트를 설치하겠느냐는 창이 뜹니다.
// ==UserScript==
// @name yaminjeongeum
// @namespace yaminjeongeum.kr
// @description 야민정음
// @include *
// @exclude file://*
@foriequal0
foriequal0 / firefox-build-options.sh
Last active November 23, 2018 02:37
firefox buildconfig
/usr/bin/gcc -std=gnu99 \
-Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code \
-Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object \
-Wformat -Wformat-security -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe
/usr/bin/g++ -std=gnu++11 \
-Wall -Wempty-body -Wignored-qualifiers -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code \
-Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object \
-Wformat -Wformat-security -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe \
-Wc++11-compat -Wc++14-compat -Woverloaded-virtual -Wwrite-strings -Wno-invalid-offsetof -fno-rtti -fno-exceptions \
@foriequal0
foriequal0 / lazy-require.lua
Last active June 27, 2020 07:08
lua lazy require
local _require = require
require = function (name)
local function singleton()
local m = _require(name)
singleton = function ()
return m
end
return m
end
@foriequal0
foriequal0 / grad_proj_crawler.py
Last active December 18, 2017 07:16
졸업프로젝트 크롤러
import requests
from bs4 import BeautifulSoup
import urllib3
urllib3.disable_warnings()
HOST=""
LOGIN_PAYLOAD = {
"mode": "login",
"userid": "",
"passwd": "",