This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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