Skip to content

Instantly share code, notes, and snippets.

View Verssae's full-sized avatar
🐧

Hansae Ju Verssae

🐧
View GitHub Profile
@Verssae
Verssae / greetings.sh
Last active September 22, 2024 14:21
Palworld Server Auto Restart + @
#!/bin/bash
CONTAINER_NAME="palworld-server"
PLAYERS_FILE="players.txt"
if ! docker ps | grep -q $CONTAINER_NAME; then
exit 1
fi
get_current_players() {
@Verssae
Verssae / eye_test.js
Created February 28, 2023 02:51
eye test clicker
// https://game.ioxapp.com/eye-test/
let box = document.getElementById("box")
let start = Date.now()
while (Date.now() - start < 60000) {
let children = box.children
for (let i = 0; i < children.length; i++) {
children[i].click()
}
@Verssae
Verssae / open-pdf-qcopy.js
Last active December 8, 2022 09:55
Zotero Quick Copy Link (open-pdf)
{
"translatorID":"a1c456df-0eea-4fb6-8267-9bfc2c9c793b",
"translatorType":2,
"label":"Open PDF Quick Copy",
"creator": "Hansae Ju",
"target":"html",
"minVersion":"2.0",
"maxVersion":"",
"priority":200,
"inRepository":false,
@Verssae
Verssae / Utility.java
Created November 30, 2022 07:49
A Class for JUnit5 Exercise (CSE2024 SW Development Practices)
import java.util.List;
/**
* A Class for JUnit5 Exercise (CSE2024 SW Development Practices)
*
* @author juhansae
* @version 2022.2
* @// Create a JUnit test class with some test methods
* @// Then, refactor it to pass all the tests !
*/
@Verssae
Verssae / CodeReviewEx.java
Last active December 2, 2022 06:16
Code Review Exercise
public class CodeReviewEx {
public static void main(String[] args) {
System.out.println("This will be printed");
}
/* Q1 ~ Q6 (dayOfYear) */
public static int dayOfYear(int month, int dayOfMonth, int year) {
if (month == 2) {
dayOfMonth += 31;
} else if (month == 3) {
dayOfMonth += 59;
@Verssae
Verssae / modified-zotselect-link.js
Created September 20, 2022 02:32 — forked from masnick/modified-zotselect-link.js
Zotero export translator for getting zotero:// link and article information
@Verssae
Verssae / TextGenerator.java
Last active May 26, 2022 15:08
(CSE2024) Exercise 1. JUnit5 Unit Test 실습
/**
소프트웨어공학 13주차 실습 1 by Hansae Ju
1. TextGenerator의 각 메소드에 대해 유닛 테스트 코드를 작성하시오.
2. halfText() 메소드와 halfText2() 메소드가 동일한지 확인하고, 버그가 있다면 수정하시오.
3. 프로젝트 전체를 압축하여 .zip 파일로 제출하시오.
**/
public class TextGenerator {
public TextGenerator() {
@Verssae
Verssae / skip.js
Last active August 12, 2024 14:53
한양대학교 인권/폭력예방 교육시스템 스킵 스크립트
/**
[강의 영상 스킵]
1. 재생버튼을 눌러 한양대 로딩 영상이 끝나고(약 4초) 강의가 재생된 후 F12 버튼을 눌러 개발자 콘솔을 연 뒤 console 탭으로 이동한다.
2. 아래 스크립트를 붙여넣는다.
3. 사이트에서 나갈 것이냐고 묻는 창이 뜨면 '나가기'를 누른다.
4. 다시 영상이 로드되면 재생 버튼을 눌러 재생하고 영상 끝으로 컨트롤 버튼을 움직여 영상 시청을 완료한다.
**/
@Verssae
Verssae / bookmark.js
Created March 2, 2022 04:34
Add this script to bookmark bar; Click this bookmark button to check all radio buttons in COVID-19 self-check sheet of Hanyang portal
javascript: document.querySelectorAll("input[type='radio'][value='b']").forEach((x) => {x.checked = true});document.getElementById("btn_confirm").click()
@Verssae
Verssae / names.js
Last active June 22, 2023 06:54
Get student names and ids from lms student list pages
let names = Array.from(document.getElementsByClassName("roster_user_name student_context_card_trigger")).map(e => e.text.split('(', 1)[0].split('/')[0].trim())
let ids = Array.from(document.getElementsByClassName("rosterUser al-hover-container")).map(e => e.getElementsByTagName('td')[2].textContent.trim())
var arrays = [
names,
ids
]; // 출력할 문자열 배열들
var container = document.createElement("div"); // 새로운 <div> 요소 생성