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:
//
@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>
{
// 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'
>>> 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
#!/bin/bash
for size in 29 57 72 512; do
f=Icon_"$size"x"$size".png
cp "$1" "$f"
sips -z $size $size "$f"
done
for size in 29 50 57 60 72 76 512; do
f=Icon_"$size"x"$size"@2x.png
cp "$1" "$f"
@youknowone
youknowone / printstar.c
Created April 4, 2011 08:13
Print 4-edged star with numbering gradation
#include <stdio.h>
#define PRINT printf("%c", (i*X>j*Y&&j*X>i*Y) ? '9'-((i<j?i*X-Y*j:j*X-Y*i)*9)*X/((X-Y)*X*size) : ' ')
int main() {
int size;
int i, j;
int X, Y;
printf("input size of star> ");
scanf("%d", &size);
printf("input space by ratio type (X/Y), X and Y should be positive integer> ");