This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 as cv | |
import time | |
# Python 版本: 3.11 | |
# NumPy 版本: 1.24.1 | |
# 日期: 2023-3-9 | |
# 作者: Lin Kao-Yuan 林高遠 | |
# 知乎: www.zhihu.com/people/lin-kao-yuan | |
# 網站: web.ntnu.edu.tw/~60132057A | |
# Github: github.com/mosdeo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 as cv | |
import time | |
# Python 版本: 3.11 | |
# NumPy 版本: 1.24.1 | |
# 日期: 2023-3-8 | |
# 作者: Lin Kao-Yuan 林高遠 | |
# 知乎: www.zhihu.com/people/lin-kao-yuan | |
# 網站: web.ntnu.edu.tw/~60132057A | |
# Github: github.com/mosdeo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import time | |
# Python 版本: 3.11 | |
# NumPy 版本: 1.24.1 | |
# 日期: 2023-3-8 | |
# 作者: Lin Kao-Yuan 林高遠 | |
# 知乎: www.zhihu.com/people/lin-kao-yuan | |
# 網站: web.ntnu.edu.tw/~60132057A | |
# Github: github.com/mosdeo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import time | |
# Python 版本: 3.11 | |
# NumPy 版本: 1.24.1 | |
# 日期: 2023-3-5 | |
# 作者: Lin Kao-Yuan 林高遠 | |
# 知乎: www.zhihu.com/people/lin-kao-yuan | |
# 網站: web.ntnu.edu.tw/~60132057A | |
# Github: github.com/mosdeo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
v1 = np.array([100, 50, 20]) | |
p1 = np.array([30, 78, 21]) | |
p2 = np.array([-67, 98, 12]) | |
p1p2 = p2-p1 | |
# 求 v1 與 p1p2 夾角 | |
v1_p1p2_angle = np.arccos(np.dot(v1, p1p2)/(np.linalg.norm(v1)*np.linalg.norm(p1p2))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.apple.com/hk/iphone-13/specs/ | |
# https://www.apple.com/mo/iphone-13/specs/ | |
A2628_hk = \ | |
"5G NR (頻段 n1、n2、n3、n5、n7、n8、n12、n20、n25、n28、n30、n38、n40、n41、n48、n66、n77、n78、n79)\ | |
FDD‑LTE (頻段 1、2、3、4、5、7、8、12、13、17、18、19、20、25、26、28、30、32、66)\ | |
TD‑LTE (頻段 34、38、39、40、41、42、46、48)\ | |
UMTS/HSPA+/DC-HSDPA (850、900、1700/2100、1900、2100 MHz)\ | |
GSM/EDGE (850、900、1800、1900 MHz)" | |
A2628_mo = \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func q(x float64) float64 { | |
return 1 / (x * math.Pow(1+Ln(x), 0.5)) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Definition for singly-linked list. | |
* type ListNode struct { | |
* Val int | |
* Next *ListNode | |
* } | |
*/ | |
func addTwoNumbers(l1 *ListNode, l2 *ListNode) *ListNode { | |
var firstNode *ListNode = new(ListNode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Definition for singly-linked list. | |
* type ListNode struct { | |
* Val int | |
* Next *ListNode | |
* } | |
*/ | |
func addTwoNumbers(l1 *ListNode, l2 *ListNode) *ListNode { | |
// Convert ListNodes to Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DataTable rightDt = | |
dataTable.AsEnumerable() | |
.GroupBy(row => | |
{// 相同經緯度歸納為一組 | |
return new Tuple<double, double>(Convert.ToDouble(row["lat"]), Convert.ToDouble(row["lon"])); | |
}) | |
.Select(item => | |
{ | |
DataRow row = dataTable.NewRow(); | |
row["lat"] = item.Key.Item1; |
NewerOlder