Skip to content

Instantly share code, notes, and snippets.

View Regentag's full-sized avatar
🛩️
when TRUE =>

Ham, Yeongtaek Regentag

🛩️
when TRUE =>
View GitHub Profile
@Regentag
Regentag / UserMediaExample.html
Created May 9, 2020 06:58
iPhone iOS에서 작동하는 getUserMedia() 예제 - iOS 13.3.1에서 테스트 됨
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>getUserMedia() example</title>
<script type="text/javascript">
function enableMedia() {
var video = document.getElementById("captureVideo");
@Regentag
Regentag / conrec.go
Created December 2, 2018 11:26
Save console output and replay.
package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"os/signal"
"strconv"
"strings"
@Regentag
Regentag / DOHServer.go
Created May 28, 2018 17:18
DNS Over HTTPS server in Golang.
// DNS Over HTTPS server in Golang.
// 2018.5.29.
package main
import (
"bytes"
"crypto/tls"
"flag"
"io/ioutil"
@Regentag
Regentag / WinConExample.c
Last active August 29, 2015 14:20
윈도 콘솔 함수 예제
#include <Windows.h>
#include <stdlib.h>
void SetConsoleSize(HANDLE hCon, short width, short height)
{
COORD c;
c.X = width;
c.Y = height;
SMALL_RECT r;
// 모 채널에서 뉴스에 내보냈던 바로 그 이름궁합.
// 2015. 4. 27.
use std::env;
use std::borrow::Borrow;
/// 초성
#[allow(dead_code)]
static CHO : [char;19] = [
'ㄱ', 'ㄲ', 'ㄴ', 'ㄷ', 'ㄸ',
@Regentag
Regentag / malbolge.rs
Last active August 29, 2015 14:16
말레볼제(MALBOLGE) 언어 인터프리터
goto https://github.com/Regentag/malbolge-interpreter
@Regentag
Regentag / hq9plus.rs
Last active January 30, 2017 05:39
HQ9+ interpreter for Rust language.
// HQ9+ Interpreter
//
// Jan. 30. 2017.
// yeongtaek.ham {at} gmail.com
//
use std::env;
use std::fs::File;
use std::io::Read;
use std::string::String;