Skip to content

Instantly share code, notes, and snippets.

View cbdyzj's full-sized avatar
🐱

阿尔贝鲁 cbdyzj

🐱
View GitHub Profile
@cbdyzj
cbdyzj / InsertionSortAndSelectionSort.java
Last active November 19, 2020 13:32
Insertion sort and selection sort benchmark
import java.util.concurrent.ThreadLocalRandom;
import java.util.stream.IntStream;
public class InsertionSortAndSelectionSort {
public static void main(String[] args) {
runBenchmarkN(1000);
runBenchmarkN(10000);
runBenchmarkN(100000);
}
@cbdyzj
cbdyzj / static_dev.js
Created September 12, 2020 05:32
This is a small piece of code that allows you to easily complete the experiment
const { readFile } = require('fs')
const { join: joinPath } = require('path')
const { createServer } = require('http')
const { render: renderLess } = require('less')
const { startService } = require('esbuild')
const express = require('express')
const staticPath = joinPath(__dirname, 'static')
const resolveFilePath = (path) => joinPath(staticPath, path)