Skip to content

Instantly share code, notes, and snippets.

View 0xd669's full-sized avatar
πŸ•³οΈ
digging

ν™©μ„±ν˜„ 0xd669

πŸ•³οΈ
digging
View GitHub Profile
if err != nil {
codeOwners = nil
} else {
codeOwnerText, err := file.GetContent()
if err != nil {
codeOwners = nil
} else {
codeOwners = extractCodeOwners(codeOwnerText)
}
}
@0xd669
0xd669 / bgm_battle.py
Created August 22, 2019 09:39
PyCon KR 2019 Banksalad Pythonic Adventure Sound 2
import pyxel
class BGMBattle:
def __init__(self):
mute_bar = "rrrr rrrr rrrr rrrr"
pyxel.sound(32).set(
f"""{mute_bar}
@0xd669
0xd669 / play_atk.py
Created August 22, 2019 09:28
PyCon KR 2019 Banksalad Pythonic Adventure Sound 1
import pyxel
class PlayerAttack:
def __init__(self):
pyxel.sound(3).set(
note="b4b4b4a2 c2c2c2c2 c2c2c2c2 c2c2c2c2",
tone="s",
volume="7766 5566 7766 5531",
@0xd669
0xd669 / __main__.py
Created August 22, 2019 05:50
PyCon 2019 Banksalad Pythonic Adventure draw bitmap
import pyxel as px
class App:
def draw_monster(self, monster_x, monster_y) -> None:
px.blt(
monster_x,
monster_y,
Image.MONSTER,
@0xd669
0xd669 / __main__.py
Created August 22, 2019 05:46
PyCon 2019 Banksalad Pythonic Adventure Draw function
class Game:
def draw(self):
px.cls(Color.BLACK) # Clear Screen
if self.status >= GameStatus.ACTIVE_SPELL:
self.draw_active()
elif self.status == GameStatus.INTRO:
self.draw_intro()
elif self.status == GameStatus.LOSE:
@0xd669
0xd669 / __main__.py
Last active August 22, 2019 05:36
PyCon 2019 Banksalad Pythonic Adventure/Challenge Skeleton
import pyxel as px
from .config import Configuration, init_config
class App:
def __init__(self, c: Configuration):
px.init(
Size.FRAME_WIDTH,
@0xd669
0xd669 / pycon-2018-banksalad-holdem-ghost242.py
Created September 30, 2018 06:38
파이콘 ν•œκ΅­ 2018 λ±…ν¬μƒλŸ¬λ“œ 홀덀 3μœ„ ghost242 λ‹˜μ˜ μ½”λ“œμž…λ‹ˆλ‹€.
from typing import List
from .core.cards import Card
from .core.madehands import MadeHands, evaluate
from .player import Other
def died_players(bet_players:List[Other], betting_players:List[Other]):
died = 0
for player in bet_players:
@0xd669
0xd669 / pycon-2018-banksalad-holdem-base.py
Last active September 30, 2018 06:28
파이콘 ν•œκ΅­ 2018 λ±…ν¬μƒλŸ¬λ“œ 홀덀 κΈ°λ³Έ ν† λŒ€
from typing import List
from .core.cards import Card
from .player import Other
def bet(
my_chips: int, # 남은 μΉ© 수
my_cards: List[Card], # ν”Œλ ˆμ΄μ–΄μ˜ 손 패 (2μž₯)
bet_players: List[Other], # 이번 턴에 λ² νŒ…ν•œ ν”Œλ ˆμ΄μ–΄λ“€
@0xd669
0xd669 / AWSCertifiedDeveloperUnofficialStudyGuide.md
Created January 7, 2017 04:44 — forked from serithemage/AWSCertifiedDeveloperUnofficialStudyGuide.md
비곡식 AWS 곡인 개발자 - μ–΄μ†Œμ‹œμ—μ΄νŠΈ μˆ˜ν—˜ κ°€μ΄λ“œ

비곡식 AWS 곡인 개발자 - μ–΄μ†Œμ‹œμ—μ΄νŠΈ μˆ˜ν—˜ κ°€μ΄λ“œ

이 λ¬Έμ„œλŠ” AWS 곡인 개발자 - μ–΄μ†Œμ‹œμ—μ΄νŠΈ μ‹œν—˜ μ•ˆλ‚΄μ„œμ— 적힌 λ‚΄μš©μ— κΈ°λ°˜ν•˜μ—¬ AWS의 ν™ˆνŽ˜μ΄μ§€, λΈ”λ‘œκ·Έ, Slideshare의 κ΄€λ ¨ 링크λ₯Ό ν•œκΈ€ 자료 μ€‘μ‹¬μœΌλ‘œ 정리해 놓은 것 μž…λ‹ˆλ‹€.

단좕URL: http://bit.ly/devcertguide

기본적인 μ‹œν—˜ 정보

Keybase proof

I hereby claim:

  • I am sunghyunzz on github.
  • I am sunghyunzz (https://keybase.io/sunghyunzz) on keybase.
  • I have a public key whose fingerprint is 2AEA C627 01EC 6208 7784 798B 9A35 9E6A 9ADB E699

To claim this, I am signing this object: