이성찬, 2017
Continuation 은 제어 흐름 을 구체화 해 first-class citizen으로 다룰 수 있게 한 추상 표현.
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, |
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, |
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!"); |
#!/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]} |
// ==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 |
// 브라우저에 GreaseMonkey(Firefox) TamperMonkey(Chrome) 을 설치하고, | |
// https://gist.github.com/foriequal0/154e73d3289d808e8ce94603f5eff6a4/raw/yaminjeongeum.user.js | |
// 위 링크를 브라우저에 입력하면 자동으로 스크립트를 설치하겠느냐는 창이 뜹니다. | |
// ==UserScript== | |
// @name yaminjeongeum | |
// @namespace yaminjeongeum.kr | |
// @description 야민정음 | |
// @include * | |
// @exclude file://* |
/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 \ |
local _require = require | |
require = function (name) | |
local function singleton() | |
local m = _require(name) | |
singleton = function () | |
return m | |
end | |
return m | |
end |
import requests | |
from bs4 import BeautifulSoup | |
import urllib3 | |
urllib3.disable_warnings() | |
HOST="" | |
LOGIN_PAYLOAD = { | |
"mode": "login", | |
"userid": "", | |
"passwd": "", |