-
Connect your Jetson / Raspberry PI to your laptop computer via ethernet cable.
-
Find your Jetson / Raspberry Pi's internal IP address by typing the command
arp -a
on Windows. For example, the highlighted IP in the image below is the connected Raspberry Pi. It usually comes with the typedynamic
. -
Install the extension
Remote - SSH
on your computer. You are also recommended to install the following extensions. -
Follow the instruction on https://code.visualstudio.com/docs/remote/ssh#_connect-to-a-remote-host, step 2 to step 6. The SSH Host should be the user name + the IP address, like:
[email protected]
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
// | |
// Copyright (c) 2018 by CMASS Robotics team. All Rights Reserved. | |
// | |
#include "main.h" | |
#include <string> | |
#include <cstdarg> | |
#include <memory> | |
short _auto_selected_id = 1; |
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 "robot-config.h" | |
void make_button(int x, int y, int tx, int ty, char *title, vex::color c, int w = 80, int h = 40) { | |
Brain.Screen.drawRectangle(x,y,w,h,c); | |
Brain.Screen.setFillColor(c); | |
Brain.Screen.printAt(x+tx,y+ty,title); | |
} | |
bool is_clicked(int bx, int by, int w = 80, int h = 40) { | |
int x = Brain.Screen.xPosition(); |
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 "main.h" | |
void drawBmp(lv_obj_t* canvas, const char* filename){ | |
printf("Start: %d\n",pros::millis()); | |
FILE* f = fopen(filename, "rb"); | |
unsigned char info[54]; | |
fread(info, sizeof(unsigned char), 54, f); // read the 54-byte header | |
// extract image height and width from header |
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
'use strict'; | |
function getTargetUrl() { | |
return window.location.origin; | |
} | |
function to(url) { | |
window.location.href = url; | |
} |
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
'use strict'; | |
var RESET = '[0m'; | |
var SAFE = '[32m[1m'; | |
var WARN = '[33m[1m'; | |
var ERROR = '[31m[1m'; | |
var VERBOSE = '[34m[1m'; | |
const join = function(source, to) { | |
for (const [key, value] of Object.entries(source)) |
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
#!/usr/bin/bash | |
# Usage: | |
# curious [--sudo | -s | --terminal | -t] <command> | |
# | |
# For example: | |
# curious notify-send "hello world" | |
# curious -t notify-send "hello world" | |
# curious -s -t notify-send "hello world" |
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
FROM ubuntu:20.10 | |
MAINTAINER Jerry Lum<serverofjerry (at) gmail (dot) com> | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update --fix-missing | |
# curl is needed to download the xampp installer, net-tools provides netstat command for xampp | |
RUN apt-get -y install curl net-tools | |
RUN curl -o xampp-linux-installer.run "https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/7.2.33/xampp-linux-x64-7.2.33-0-installer.run?from_af=true" |
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
#define TIMETEST(name, content) struct timeval tval_before_##name, tval_after_##name, tval_result_##name; \ | |
gettimeofday(&tval_before_##name, NULL); \ | |
content \ | |
gettimeofday(&tval_after_##name, NULL); \ | |
timersub(&tval_after_##name, &tval_before_##name, &tval_result_##name); \ | |
printf(#name " %ld.%06ld\n", (long int)tval_result_##name.tv_sec, (long int)tval_result_##name.tv_usec); |
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 json | |
import random | |
from typing import Dict, Tuple | |
from xmlrpc.client import ProtocolError | |
import requests | |
from twisted.python import failure | |
from twisted.internet import reactor | |
from quarry.types.uuid import UUID | |
from quarry.net.proxy import UpstreamFactory, Upstream, DownstreamFactory, Downstream, Bridge |
OlderNewer