Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"strconv"
"time"
)
type Worker[I any, O any] struct {
out chan<- O
@Tuanm
Tuanm / CSV.java
Last active November 3, 2022 17:16
Simple CSV parser with Java 8.
package dev.tuanm.demo.utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Function;
@Tuanm
Tuanm / index.html
Created March 4, 2022 15:19
My Homepage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" integrity="sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>Do Tuan</title>
<style>
body {
@Tuanm
Tuanm / student-marks-script.js
Last active September 11, 2021 02:53
Script to calculate CPA, GPA on SIS of HUST
/**
* Script to calculate CPA, GPA on SIS of HUST.
*
* Usage:
* 0. Copy the script below
* 1. Go to website for Student Marks of HUST:
* https://ctt-sis.hust.edu.vn/Students/StudentCourseMarks.aspx
* 2. Open DevTools by pressing F12 (Right-Click -> Inspect)
* 3. Choose tab Console then paste the script into it -> Enter
*
@Tuanm
Tuanm / CSV.java
Last active August 15, 2021 15:28
Simple CSV Parser for Java
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;

Hi there 👋

This is the place for storing or sharing a few stuff of mine.

Maybe the messy can make you annoyed, but, who cares?