Skip to content

Instantly share code, notes, and snippets.

View Molin-L's full-sized avatar
🙃

Molin Liu Molin-L

🙃
  • Shanghai, China
View GitHub Profile
@Molin-L
Molin-L / Test.cpp
Created November 10, 2021 02:56
TestCase for ADAS
#include <gtest/gtest.h>
#include "Executor.h"
TEST(Executor, Report)
{
Initialize(0, 0, Direction::North);
EXPECT_EQ("0,0,N", Report());
}
@Molin-L
Molin-L / LC_BT_Helper.cpp
Last active August 4, 2021 10:10
Leetcode Binary Tree Generator
#include <iostream>
#include <vector>
#include <sstream>
#include <queue>
using namespace std;
/**
* @brief Definition of TreeNode
*/
struct TreeNode {
int val;
@Molin-L
Molin-L / install_homebrew_m1.sh
Last active February 24, 2024 21:28
Install Homebrew on Apple silicon device/M1.
# Install ARM Homebrew to /opt/homebrew
# 安装ARM版本的Homebrew 到 /opt/homebrew
mkdir /opt/homebrew
sudo chown -R $(whoami) /opt/homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew
# Install x86 Homebrew
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@Molin-L
Molin-L / ReverseProxy.sh
Created February 27, 2020 15:48
反向代理 Reverse Proxy #sh
ssh -p $targePort -qngfNTR 7331:localhost:9090 username@$targetIP