Skip to content

Instantly share code, notes, and snippets.

View yhs0602's full-sized avatar
🥝

Hyeonseo Yang yhs0602

🥝
View GitHub Profile
@yhs0602
yhs0602 / $file_name
Last active May 23, 2024 08:35
Updated svg
$svg_content
@yhs0602
yhs0602 / jpg2pdf.py
Created April 25, 2024 08:38
jpg2pdf.py
import sys
import os
# create tex file first
with open("tmp.tex", "w", encoding="utf8") as out:
out.write("\\documentclass{article}\n")
out.write("\\usepackage{float}\n")
out.write("\\usepackage{graphicx}\n")
out.write("\\usepackage[a4paper, total={6in, 8in}]{geometry}\n")
def foo(implicit n: 42) = { n + 1 }
implicit n = 55;
foo // 56
trait ConcurrentRunner { def run() }
class NilRunner < ConncurrentRunner;
@yhs0602
yhs0602 / I'm an early 🐤
Last active June 12, 2024 01:25
Iamanight
🌞 Morning 88 commits █▍░░░░░░░░░░░░░░░░░░░ 7.0%
🌆 Daytime 558 commits █████████▎░░░░░░░░░░░ 44.3%
🌃 Evening 504 commits ████████▍░░░░░░░░░░░░ 40.0%
🌙 Night 110 commits █▊░░░░░░░░░░░░░░░░░░░ 8.7%
@yhs0602
yhs0602 / vnotetotext.py
Created April 1, 2024 14:48
vnotetotext.py
#! /usr/bin/env python
# vim: tabstop=4 expandtab shiftwidth=4
"""
vnote2txt - converts vNote files (e.g. from Galaxy S2 Memo app) to text
Windows users - please install Python from www.python.org
Can be double-clicked or run without arguments to show a file chooser
Or can be run from the commandline, e.g. python ./vnote2txt /home/user/docs/*.vn
"""
import cv2
import io
import numpy as np
import torch
from u2net import U2Net
from yolov8 import detect_objects
from diffusion import StableDiffusionInpaintPipeline
sudo vi host-darwin.c
sudo vi aarch64.h
sudo make
@yhs0602
yhs0602 / index.html
Created August 4, 2020 06:46
Relative hover
<div class="box"> 1 </div>
<div class="box2"> 2 </div>
<div class="box"> 3 </div>
  1. install termux
  2. run ifconfig and get ip address
  3. run whoami and get uid
  4. set password
  5. run sshd
  6. connect to it using ssh client
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022