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 csv | |
import os | |
import random | |
from collections import Counter | |
# CSV 파일 경로 | |
CSV_FILE_PATH = "lotto_numbers.csv" | |
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
# ./ch57x-keyboard-tool upload < 3key-mapping-cvx.yaml | |
# ./ch57x-keyboard-tool --address 2:8 upload < 3key-mapping-cvx.yaml | |
orientation: normal | |
rows: 1 | |
columns: 3 | |
knobs: 1 | |
layers: | |
- buttons: |
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
local boxes = {} | |
local box_height = 23 | |
local box_alpha = 0.35 | |
local GREEN = hs.drawing.color.osx_green | |
-- 입력소스 변경 이벤트에 이벤트 리스너를 달아준다 | |
hs.keycodes.inputSourceChanged(function() | |
local inputSource = { | |
english = "com.apple.keylayout.ABC", | |
korean = "com.apple.inputmethod.Korean.2SetKorean", |
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
{ | |
"title": "한글키보드", | |
"maintainers": [ | |
"junho85" | |
], | |
"rules": [ | |
{ | |
"description": "한자키", | |
"manipulators": [ | |
{ |
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
function solution(n, arr1, arr2) { | |
var answer = []; | |
for (var i=0; i<n; i++) { | |
var result_arr = arr1[i] | arr2[i]; | |
answer.push(result_arr.toString(2).padStart(n, '0').replace(/1/g, '#').replace(/0/g, ' ')); | |
} | |
return answer; | |
} |
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
from collections import deque | |
def solution(cacheSize, cities): | |
answer = 0 | |
q = deque(maxlen=cacheSize) | |
for item in cities: | |
item = item.lower() | |
if item in q: |
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 re | |
def multiple(str): | |
if str == 'S': | |
return 1 | |
elif str == 'D': | |
return 2 | |
else: # T | |
return 3 |
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
# Python3 | |
def solution(n, arr1, arr2): | |
answer = [] | |
for idx in range(n): | |
result_arr = arr1[idx] | arr2[idx] | |
# answer.append(bin(result_arr)[2:].zfill(n).replace('1', '#').replace('0', ' ')) | |
answer.append(format(result_arr, 'b').zfill(n).replace('1', '#').replace('0', ' ')) |
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
from typing import List | |
from .core.cards import Card | |
from .player import Other | |
def bet( | |
my_chips: int, | |
my_cards: List[Card], | |
bet_players: List[Other], | |
betting_players: List[Other], |
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 <SimpleDHT.h> | |
int pinDHT11 = 2; | |
SimpleDHT11 dht11; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { |
NewerOlder