Skip to content

Instantly share code, notes, and snippets.

View NoahBres's full-sized avatar
🍙

Noah NoahBres

🍙
  • ¯\_(ツ)_/¯
View GitHub Profile
MotorConfigurationType motorConfigurationType = myMotor.getMotorType().clone();
motorConfigurationType.setAchieveableMaxRPMFraction(1.0);
myMotor.setMotorType(motorConfigurationType);
myMotor.setMode(DcMotor.RunMode.RUN_USING_ENCODER);
// Call motor.setPower() like normal
// Velo PID is automagically set up for you
// and runs in the background
// Set velocity to 75% of max RPM
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
@Autonomous(name = "Test Opmode")
public class TestOpmode extends LinearOpMode {
package org.firstinspires.ftc.teamcode.drive;
import androidx.annotation.NonNull;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.localization.TwoTrackingWheelLocalizer;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.firstinspires.ftc.teamcode.util.Encoder;
package org.firstinspires.ftc.teamcode.drive;
import androidx.annotation.NonNull;
import com.acmerobotics.dashboard.config.Config;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.localization.ThreeTrackingWheelLocalizer;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.firstinspires.ftc.teamcode.util.Encoder;
// This file was initially generated by Windows Terminal 1.1.2021.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@NoahBres
NoahBres / RemoveChromeHistoryBySearch.js
Created January 9, 2019 11:37
Selects by items in Chrome's history checklist.
const items = document.querySelector('history-app').shadowRoot.getElementById("main-container").querySelector("iron-pages").querySelector("history-list").shadowRoot.querySelector("iron-list").querySelectorAll("history-item")
for (const item of items) { console.log(item.shadowRoot.getElementById("checkbox").shadowRoot.getElementById("checkbox").click()) }
This file has been truncated, but you can view the full file.
# Max2Obj Version 4.0 Mar 10th, 2001
#
mtllib ./Human Heart.mtl
g
# object (null) to come ...
#
v 3.188138 4.179735 0.581142
v -0.000810 3.620899 2.591067
v 3.774928 -3.722945 0.009588
v 0.533776 -3.701874 2.883751

Keybase proof

I hereby claim:

  • I am MrNoahz on github.
  • I am noahz (https://keybase.io/noahz) on keybase.
  • I have a public key whose fingerprint is 8ACF 6C1D 4554 327F 5E0D B2E2 CBF6 8EDB D645 E581

To claim this, I am signing this object: