Skip to content

Instantly share code, notes, and snippets.

View youknowone's full-sized avatar
😂
Being Lazy

Jeong, YunWon youknowone

😂
Being Lazy
View GitHub Profile
@youknowone
youknowone / bitset_iter.h
Created July 25, 2023 16:18 — forked from diegum/bitset_iter.h
Missed an iterator for C++ STL bitset? Have mine!
// bitset_iter.h v1.1.0
// Copyright 2019, Diego Dagum
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",

Keybase proof

I hereby claim:

To claim this, I am signing this object:

# generator targets shouldn't affect scopes out of comprehensions
[a for a in range(5)]
assert 'a' not in locals()
assert 'a' not in globals()
[b for a, b in [(1, 1), (2, 2)]]
assert 'b' not in locals()
assert 'b' not in globals()
{b: c for b, c in {1: 2}.items()}
#!/bin/bash
#==============================================================================
# GW-Kit
# @author : (origin) yunsang.choi(oddpoet@gmail.com)
# @author : (forked) jinkwon(master@bdyne.net)
# @src : (origin) https://gist.github.com/gists/3115022
# @src : (forked) https://github.com/Jinkwon/naver-gw-kit/
#-------
syn on
filetype off
set nocompatible
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'rust-lang/rust.vim'
Plugin 'rizzatti/dash.vim'
Plugin 'bling/vim-airline'
@youknowone
youknowone / competive.TXT
Last active January 15, 2023 00:56
Capitalism setup script
[HEADER]
Title=Competive World
Description=Let's make real-world like competition
[ENVIRONMENT]
Number of Cities=10
// Number of Cities=<1 to 10>
// You will be able to create a game with a maximum of 10 cities using a game script.
Your Start-up Capital=Very Low
// Your Start-up Capital=<Very Low, Low, Moderate, High, Very High>
>>> from korean import Noun, NumberWord, Loanword
>>> fmt = u'{subj:은} {obj:을} 먹었다.'
>>> print fmt.format(subj=Noun(u'나'), obj=Noun(u'밥'))
나는 밥을 먹었다.
>>> print fmt.format(subj=Noun(u'나'), obj=Noun(u'bob'))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "korean/morphology/substantive.py", line 38, in __format__
text = merge(self, Particle(separated_spec.pop(0)))
File "korean/morphology/__init__.py", line 77, in merge
$ cat loop.aheuis
push 1000000
loop: dup
brz halt
push 1
sub
jmp loop
halt: popnum
halt
$ python aheui.py loop.aheuis
rpaheui$ ./aheui-c snippets/bahmanghui/bahmanghui.aheui < snippets/bahmanghui/bahmanghui.in
48175
rpaheui$ cat snippets/bahmanghui/bahmanghui.aheuic
????
pushchar ; L0 밯 (0, 0) 1
popnum ; L1 망 (0, 1) 12
halt ; L2 망 (0, 1) 2
rpaheui$ ./aheui-c snippets/bahmanghui/bahmanghui.aheuic < snippets/bahmanghui/bahmanghui.in
48175