Skip to content

Instantly share code, notes, and snippets.

View Po-Jen's full-sized avatar
🐢
Learn and Produce

Po-Jen Lai Po-Jen

🐢
Learn and Produce
  • Mountain View
View GitHub Profile
@Po-Jen
Po-Jen / swe-interview-prep.md
Created May 20, 2018 04:03
軟體工程師面試資源最簡整理與技巧分享 for 柏豪

軟體工程師面試資源最簡整理與技巧分享

前言

只要是在 CS 產業,想要當軟體工程師,基本的資料結構和演算法功力是必須要時時打磨的,這次就整理一些好用的工具,而且盡量把資源最小化,讓大家在準備面試時有足夠資源,又不會被太多資料弄得暈頭轉向。

線上練習寫 code 網站

@Po-Jen
Po-Jen / english.md
Last active July 27, 2017 13:45
To know what are we learning, and where are we heading to.

學英文到底在學什麼

前言

這篇短文的目的是,探討英文的本質是什麼,是為了理解學習英文到底該把心思放在哪邊,才能真正學通英文。

英文的本質

英文的本質是精準地溝通。

@Po-Jen
Po-Jen / The Technical Interview Cheat Sheet.md
Created January 19, 2017 14:30 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
#!/usr/bin/env python
import rospy
from assignment_5.srv import CommandService
import serial
import struct
VELOCITYCHANGE = 200
ROTATIONCHANGE = 300
@Po-Jen
Po-Jen / record.txt
Created October 30, 2016 12:12
VBox error
ros@ros-K401UB:~$ sudo apt-get remove dkms virtualbox-dkms
[sudo] password for ros:
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
The following packages were automatically installed and are no longer required:
libntdb1 linux-headers-3.13.0-93 linux-headers-3.13.0-93-generic python-ntdb
Use 'apt-get autoremove' to remove them.
下列套件將會被【移除】:
dkms virtualbox-dkms
@Po-Jen
Po-Jen / 1CameraCalibrator序曲.md
Last active October 16, 2015 15:39
PTAM calibrator研究紀錄

標頭檔部份

這檔案引用了幾個之前比較不熟悉的標頭檔,列在下面

gvars3/instances.h

Gvars 3是一個可以讀設定檔的函式庫,在這邊是用來跟GUI綁定在一起,用來讀程式算出的相機參數 http://www.edwardrosten.com/cvd/gvars3.html

cvd/image.h, cvd/byte.h, cvd/rgb.h, cvd/utility.h

libcvd是一個電腦視覺的函式庫,擁有基本的影像處理功能。

/*
simpleDealer()的邏輯很簡單,既然我已經知道要發牌給四個人,那就先產生四個空牌堆。
然後,因為要發13張牌給每個人,那就用for迴圈跑13次,每次都發4張牌。
最後再把四個牌堆都塞到decks裡面,就可以回傳結果了。
*/
function simpleDealer(deck)
{
var deckOne = [];
var deckTwo = [];
var deckThree = [];
<launch>
<node pkg="image_view" type="image_view" name="image_view" respawn="false" output="log">
<remap from="/camera/image_raw" to="/ORB_SLAM/Frame" />
<param name="autosize" value="true"/>
</node>
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find ORB_SLAM)/Data/rviz.vcg" output="log">
</node>
@Po-Jen
Po-Jen / fix
Last active August 29, 2015 14:24
rplidar_ros fix
Modify the original code:
scan_msg.angle_min = M_PI - angle_min;
scan_msg.angle_max = M_PI - angle_max;
to:
scan_msg.angle_min = -1*(M_PI - angle_min);
scan_msg.angle_max = M_PI - angle_min;