Skip to content

Instantly share code, notes, and snippets.

Avatar
😂
Being Lazy

Jeong YunWon youknowone

😂
Being Lazy
View GitHub Profile
View rustpython vscode debugger
{
// 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",
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

View comp.py
# 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()}
View gwk.sh
#!/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/
#-------
View gist:276ddab071083cd02e0fb81466213c60
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 Dec 7, 2017
Capitalism setup script
View competive.TXT
[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>
View korean
>>> 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
View ahsembly
$ cat loop.aheuis
push 1000000
loop: dup
brz halt
push 1
sub
jmp loop
halt: popnum
halt
$ python aheui.py loop.aheuis
View bahmanghui.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
@youknowone
youknowone / sequence.swift
Last active Aug 29, 2015
How to implement custom sequence(for-in container) in Swift
View sequence.swift
class HundredContainer: Sequence {
var count = 0;
typealias GeneratorType = GeneratorOf<Int>
func generate() -> GeneratorType {
return GeneratorOf<Int>({
if self.count < 100 {
self.count += 1
return self.count
} else {