Skip to content

Instantly share code, notes, and snippets.

View 0xJchen's full-sized avatar
🀄
Focusing

Jiachen W 0xJchen

🀄
Focusing
View GitHub Profile
@0xJchen
0xJchen / test.sh
Created September 27, 2023 19:13
hw2-testcase
#!/bin/bash
# Initialize a variable to store the maximum percentage
max_percentage=0.0
# Iterate over all n.png files in the hw2img/move/ directory
for file in hw2img/*.png; do
# Extract the base filename without extension
base_name=$(basename "$file" .png)
# evosuite
/*
* This file was automatically generated by EvoSuite
* Fri Sep 22 05:18:32 GMT 2023
*/
package org.jsoup.nodes;
import org.junit.Test;
import static org.junit.Assert.*;
# human
package org.jsoup.nodes;
import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.*;
@0xJchen
0xJchen / throttledebounce.go
Created January 12, 2024 01:34 — forked from haleyrc/throttledebounce.go
Throttle and debounce implemented in Go
// This gist is a reminder to myself about the differences between throttling and debouncing, inspired by
// https://redd.one/blog/debounce-vs-throttle
//
// A runnable example is available here: https://play.golang.org/p/sADDu829fRa
package main
import (
"fmt"
"time"
)