Skip to content

Instantly share code, notes, and snippets.

View louchenyao's full-sized avatar

Chenyao Lou louchenyao

View GitHub Profile
#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
@zrt
zrt / run.py
Created June 9, 2018 02:21
run perception
#! /usr/bin/python3
from random import *
import os,sys
run = os.system
##BEGIN 这些需要修改
dataset = '20180103_nanian_103247'
target_dir = "/home/a/Desktop/PublicCourse/perception_project/Simple"
data_dir = "/home/a/Desktop/PublicCourse/perception_project/%s"%(dataset)
@Fugoes
Fugoes / avl.hpp
Last active April 15, 2019 00:39
AVL Tree
#ifndef CPP_AVL_HPP
#define CPP_AVL_HPP
#include <cstdint>
template<typename K>
struct avl_node {
using node_t = avl_node<K>;
node_t *cs_[2]{nullptr, nullptr};