Skip to content

Instantly share code, notes, and snippets.

View Aldhanekaa's full-sized avatar
🎏
Make Indonesia great again!

Al∂haneka、アルダネカ Aldhanekaa

🎏
Make Indonesia great again!
View GitHub Profile
figure = plt.figure(figsize=(12,12))
cols, rows = 4,8
for batchSize, (X, y) in enumerate(train_dataloader):
# X = X.transpose()
batch = y.shape[0]
for i in range(batch):
img, label = X[i], y[i]
# print(img.shape)
img.to(device)
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v107/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1n-q_4MrImHCIJIZrDCvHOejbd5zrDAt.woff2)
format('woff2');
}
.material-symbols-outlined {
#define NAME "TechOnTheNet.com"
#define AGE 10
#define then {
#define end }
#define equals ==
#define less <
#define lessEqualTo <=
#define greaterEqualTo >=
export CPPFLAGS=-I/usr/include/opencv4
python3 -m pip install robotpy-cscore===2022.0.3
package frc.robot.subsystems;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.CommandBase;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class JetsonNanoSubsystem extends SubsystemBase {
private double angleToObj = 0;
private String objClassId = "";
import numpy as np
import cv2
import time
import torch
model = torch.hub.load('ultralytics/yolov5', 'custom', 'enson.engine',force_reload=True)
model1 = torch.hub.load('ultralytics/yolov5', 'custom', 'char.engine',force_reload=True)
cap = cv2.VideoCapture(0)
prev_frame_time = 0
new_frame_time = 0
gst-launch-1.0 -vvv v4l2src device=/dev/video0 num-buffers=1 \! "video/x-bayer,width=1920,height=1080,framerate=(fraction)25/1,format=(string)bggr" \! bayer2rgb ! pngenc ! filesink location=test.png
@Aldhanekaa
Aldhanekaa / dd
Created February 15, 2023 09:54
e
d
package frc.robot;
import java.util.List;
import com.pathplanner.lib.PathConstraints;
import com.pathplanner.lib.PathPlanner;
import com.pathplanner.lib.PathPlannerTrajectory;
import com.pathplanner.lib.commands.PPSwerveControllerCommand;
import edu.wpi.first.math.controller.PIDController;
@Aldhanekaa
Aldhanekaa / .block
Created December 26, 2022 13:30 — forked from mbostock/.block
Brush & Zoom
license: gpl-3.0
redirect: https://observablehq.com/@d3/focus-context