This file contains hidden or 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 os | |
| import re | |
| import math | |
| import subprocess | |
| import matplotlib.pyplot as plt | |
| from collections import defaultdict | |
| import numpy as np | |
| import logging | |
| logging.basicConfig(level=logging.INFO) |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netinet/in.h> | |
| #include <arpa/inet.h> | |
| #include <unistd.h> | |
| #include <ctype.h> | |
| #include <strings.h> | |
| #include <string.h> | |
| #include <sys/stat.h> |
This file contains hidden or 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
| #include <zmq.hpp> | |
| #include <string> | |
| #include <iostream> | |
| #include "json.hpp" | |
| int main() { | |
| zmq::context_t context; | |
| zmq::socket_t socket(context, ZMQ_REQ); | |
| socket.connect("tcp://localhost:5555"); | |
| for (int i = 0; i < 10; ++i) { |
This file contains hidden or 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
| # Get the most common letter | |
| text = text.lower() | |
| return max(string.ascii_lowercase, key=text.count) |
This file contains hidden or 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
| # Get key from a dictionary with max value | |
| max(a, key=a.get) |
This file contains hidden or 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
| \usepackage{hyperref} | |
| \hypersetup{ | |
| colorlinks=true, | |
| linkcolor=blue, | |
| filecolor=magenta, | |
| urlcolor=cyan, | |
| } | |
| \href{https://youtu.be/m5nglcCH6Yo}{Video link: Car control with camera pose estimation} |
This file contains hidden or 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
| metadata_ = std::make_shared<rapidjson::Document>(); // false | |
| metadata_ = std::make_shared<rapidjson::Document>(rapidjson::kObjectType); // corret |
This file contains hidden or 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
| rapidjson::StringBuffer sb; | |
| rapidjson::Writer<rapidjson::StringBuffer> writer(sb); | |
| metadata->Accept(writer); | |
| std::string s = sb.GetString(); |
This file contains hidden or 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
| \usepackage{algorithm} | |
| \usepackage{algorithmic} | |
| \begin{algorithm} | |
| \caption{Calculate $y = x^n$} | |
| \begin{algorithmic} | |
| \REQUIRE $n \geq 0 \vee x \neq 0$ | |
| \ENSURE $y = x^n$ | |
| \STATE $y \leftarrow 1$ | |
| \IF{$n < 0$} |
This file contains hidden or 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
| \NeedsTeXFormat{LaTeX2e} | |
| \ProvidesPackage{pythonhighlight}[2011/09/19 python code highlighting; provided by Olivier Verdier <olivier.verdier@gmail.com>] | |
| \RequirePackage{listings} | |
| \RequirePackage{xcolor} | |
| \renewcommand*{\lstlistlistingname}{Code Listings} | |
| \renewcommand*{\lstlistingname}{Code Listing} | |
| \definecolor{gray}{gray}{0.5} |
NewerOlder