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
| alias orm='omx resume --madmax' | |
| alias tl='tmux ls' |
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
| ta() { | |
| local n="${1:-1}" | |
| local target | |
| target=$(tmux list-sessions -F '#{session_id}' | sed -n "${n}p") | |
| if [ -z "$target" ]; then | |
| echo "No tmux session #$n" | |
| tmux ls | |
| return 1 |
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
| const WebSocket = require('ws'); | |
| const fs = require('fs'); | |
| const sampleData = JSON.parse(fs.readFileSync('sample-data.json', 'utf8')); | |
| let currentIndex = 0; | |
| const wss = new WebSocket.Server({ port: 8080 }); | |
| console.log('run in 8080'); | |
| wss.on('connection', ws => { |
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 cv2 | |
| import zmq | |
| # from djitellopy import Tello | |
| # tello gogo | |
| import time | |
| SERVER_IP = "cam.uhmcv.kro.kr" | |
| PORT = 5000 |
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
| .editor-group-watermark > .letterpress { | |
| background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important; | |
| opacity: .80; | |
| } | |
| .mtk6 { | |
| color: #f92aad; | |
| text-shadow: 0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3; | |
| } |
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 | |
| from bs4 import BeautifulSoup as bs | |
| import urllib.request | |
| import re | |
| url = 'https://www.leagueoflegends.com/en-us/champions/' | |
| r = requests.get(url) | |
| soup = bs(r.text, "html.parser") |
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 <stdio.h> | |
| #define MAX_SIZE 5 | |
| // global variables | |
| int queue[MAX_SIZE]; | |
| int front = 0; | |
| int rear = 0; | |
| // check if queue is full | |
| int queue_full() |
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
| str = """9.794, 3.025, 0.500, 0.201, 1.931 | |
| 9.524, 2.955, 0.458, 0.173, 1.797 | |
| 8.850, 2.980, 0.500, 0.194, 1.820 | |
| 9.324, 2.547, 0.542, 0.348, 2.634 | |
| 9.596, 2.553, 0.583, 0.335, 2.599 | |
| 9.890, 2.548, 0.583, 0.375, 2.797 | |
| 10.082, 1.997, 0.625, 0.497, 3.199 | |
| 9.166, 2.212, 0.667, 0.410, 2.749 | |
| 9.454, 1.874, 0.667, 0.472, 2.931 | |
| 10.972, 3.324, 0.417, 0.202, 2.135 |
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 java.util.Random | |
| /** | |
| * @author kinetic | |
| */ | |
| fun main() { | |
| val board = Array(9) { " " } | |
| var turn = 0 // 0 is human's turn, 1 is computer's turn | |
| println("Tic Tak Toe") |
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
| π Morning 19 commits βββββββββββββββββββββ 5.2% | |
| π Daytime 92 commits βββββββββββββββββββββ 25.0% | |
| π Evening 139 commits βββββββββββββββββββββ 37.8% | |
| π Night 118 commits βββββββββββββββββββββ 32.1% |
NewerOlder