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 asyncio | |
import base64 | |
import logging | |
import os | |
import signal | |
import threading | |
import time | |
from collections import deque | |
from typing import AsyncGenerator, Optional |
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
#!/bin/bash | |
# Default values | |
FILE="" | |
QUALITY="/screen" | |
# Parse arguments | |
while [[ "$#" -gt 0 ]]; do | |
case $1 in | |
--file) FILE="$2"; shift ;; |
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 wave | |
import struct | |
import utils.logger as logger | |
logger = logger.setup(__name__) | |
def encode(inputFile, outputFile, secret): | |
try: | |
logger.info("Encoding starts...") | |
audio = wave.open(inputFile, mode="rb") |
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
<!DOCTYPE html> | |
<html lang="kr"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>플레이리스트 추천기</title> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Jua&display=swap" rel="stylesheet"> | |
<style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Using p5.js | |
function roundedBox(length, width, height, radius) { | |
// Draw walls (three orthogonal boxes) | |
box(length, width - radius, height - radius); | |
box(length - radius, width, height - radius); | |
box(length - radius, width - radius, height); | |
// Draw 8 corner spheres | |
for (let xSign = -1; xSign <= 1; xSign += 2) { | |
for (let ySign = -1; ySign <= 1; ySign += 2) { |
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 ccxt | |
import time | |
# Bitget API 키 설정 | |
api_key = 'YOUR_API_KEY' | |
api_secret = 'YOUR_API_SECRET' | |
password = 'YOUR_PASSWORD' | |
# Bitget 거래소 객체 생성 | |
exchange = ccxt.bitget({ |
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 mediapipe as mp # type: ignore | |
BaseOptions = mp.tasks.BaseOptions | |
GestureRecognizer = mp.tasks.vision.GestureRecognizer | |
GestureRecognizerOptions = mp.tasks.vision.GestureRecognizerOptions | |
VisionRunningMode = mp.tasks.vision.RunningMode | |
options =GestureRecognizerOptions( | |
base_options=BaseOptions(model_asset_path='gesture_recognizer.task'), | |
running_mode=VisionRunningMode.VIDEO) |
NewerOlder