This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "hanja-idiom" | |
version = "0.1.0" | |
authors = ["kiwiyou <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
reqwest = "0.9" | |
unhtml = "0.7" | |
unhtml_derive = "0.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::{stdin, BufRead}; | |
fn main() { | |
let input: u32 = stdin() | |
.lock() | |
.lines() | |
.find_map(|line| line.expect("Failed to read.").trim().parse().ok()) | |
.unwrap(); | |
println!("{}", input); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "ugen" | |
version = "0.1.0" | |
authors = ["kiwiyou <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
rand = "0.7" | |
clap = { git = "https://github.com/clap-rs/clap/" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Baeggro - BOJ Result Offender | |
// @match https://www.acmicpc.net/status* | |
// @grant none | |
// @version 4.0 | |
// @author kiwiyou <[email protected]>, RanolP <[email protected]> | |
// @downloadURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js | |
// @updateURL https://gist.githubusercontent.com/kiwiyou/ffb8beab11cbc64cb696639fd0c984c7/raw/baeggro.js | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" { fn mmap(a: *mut u8, l: usize, p: i32, f: i32, d: i32, o: i64) -> *mut u8; } | |
fn input(size: usize) -> *const u8 { unsafe { mmap(0 as *mut u8, size, 1, 2, 0, 0) } } | |
fn next(p: &mut *const u8) -> I { unsafe { let mut n = 0; while **p & 16 != 0 { n = n * 10 + (**p as I & 15); *p = p.offset(1) } *p = p.offset(1); n } } | |
type I = i32; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <curses.h> | |
int sq(int w, int h) { | |
int x, y = 1; | |
while (y <= h) { | |
x = 1; | |
while (x <= w) { | |
if ((x == 1 || x == w) && (y == 1 || y == h)) { | |
addch('o'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
class SchoolPage: | |
def __init__(self, site_id: str, return_url: str, fail_url: str, session=requests.Session()): | |
# 로그인 페이지 참조 | |
self.site_id = site_id | |
self.return_url = return_url | |
self.fail_url = fail_url | |
self.reset() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let buf = stdin(); | |
let mut token = buf.split_ascii_whitespace(); | |
use std::fmt::Write; | |
// buf.clear(); | |
let mut buf = String::new(); | |
writeln!(buf, "{}", token.next().unwrap()).unwrap(); | |
print!("{}", buf); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Naver YetHangul to Unicode | |
// @namespace Violentmonkey Scripts | |
// @match https://ko.dict.naver.com/ | |
// @grant none | |
// @version 1.0 | |
// @author kiwiyou <[email protected]> | |
// ==/UserScript== | |
new MutationObserver(e => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::mem::MaybeUninit; | |
use alloc::collections::VecDeque; | |
use basm::io; | |
const D: usize = 11; | |
pub fn main() { | |
let mut reader = io::Reader::<{ 1 << 15 }>::new(); | |
let mut writer = io::Writer::<32>::new(); | |
let mut tomato: [u8; (1_000_000 + 7) / 8] = unsafe { MaybeUninit::uninit().assume_init() }; |
OlderNewer