Skip to content

Instantly share code, notes, and snippets.

View NoahBres's full-sized avatar
🍙

Noah NoahBres

🍙
  • ¯\_(ツ)_/¯
View GitHub Profile

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:

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
@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 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",
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 {
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
@NoahBres
NoahBres / CrashOnStart
Created November 10, 2020 16:25
FTC SDK Crash on Start
2020-11-10 10:24:27.798 16813-16813/? I/zygote: Late-enabling -Xcheck:jni
2020-11-10 10:24:28.022 16813-16813/com.qualcomm.ftcrobotcontroller D/Uvc: [jni.cpp:72] JNI_OnLoad()...
2020-11-10 10:24:28.022 16813-16813/com.qualcomm.ftcrobotcontroller D/Uvc: [JniEnv.h:32] ScopedJniEnv::onJniLoad()...
2020-11-10 10:24:28.022 16813-16813/com.qualcomm.ftcrobotcontroller D/Uvc: [JniEnv.h:32] ...ScopedJniEnv::onJniLoad()
2020-11-10 10:24:28.022 16813-16813/com.qualcomm.ftcrobotcontroller D/Uvc: [jni.cpp:72] ...JNI_OnLoad()
2020-11-10 10:24:28.038 16813-16813/com.qualcomm.ftcrobotcontroller V/AppUtil: initializing: getExternalStorageDirectory()=/storage/emulated/0
2020-11-10 10:24:28.046 16813-16813/com.qualcomm.ftcrobotcontroller I/AppUtil: found usbFileSystemRoot: /dev/bus/usb
2020-11-10 10:24:28.051 16813-16842/com.qualcomm.ftcrobotcontroller V/RobotCore: saving logcat to /storage/emulated/0/robotControllerLog.txt
2020-11-10 10:24:28.051 16813-16842/com.qualcomm.ftcrobotcontroller V/RobotCore: logging command line: ex
public class StatePOC extends LinearOpMode {
private StateMachine autoMachine;
private StateMachine wobbleMachine;
enum WobbleState {
IDLE,
GRAB,
LIFT,
HOLD,
DUMP,
2021-01-06 05:07:40.999 29845-30542/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) pRunnable.run() expire 2 lines
2021-01-06 05:07:41.490 29845-30225/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) com.qualcomm.ftcrobotcontroller expire 2 lines
2021-01-06 05:07:41.497 29845-30597/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) com.qualcomm.ftcrobotcontroller expire 319 lines
2021-01-06 05:07:41.508 29845-30596/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) SoundPlayer-#0 expire 9 lines
2021-01-06 05:07:41.747 29845-30595/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) SoundPoolThread expire 12 lines
2021-01-06 05:07:41.769 29845-30602/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) com.qualcomm.ftcrobotcontroller expire 4 lines
2021-01-06 05:07:41.877 29845-29958/com.qualcomm.ftcrobotcontroller I/chatty: uid=10170(u0_a170) callback looper expire 2 lines
2021-01-06 05:07:42.073 29845-29864/com.qualcomm.ftcrobotcontroller I/chatty:
2021-01-06 09:25:34.669 32693-32693/? I/zygote: Late-enabling -Xcheck:jni
2021-01-06 09:25:34.893 32693-32693/com.qualcomm.ftcrobotcontroller D/Uvc: [jni.cpp:72] JNI_OnLoad()...
2021-01-06 09:25:34.893 32693-32693/com.qualcomm.ftcrobotcontroller D/Uvc: [JniEnv.h:32] ScopedJniEnv::onJniLoad()...
2021-01-06 09:25:34.893 32693-32693/com.qualcomm.ftcrobotcontroller D/Uvc: [JniEnv.h:32] ...ScopedJniEnv::onJniLoad()
2021-01-06 09:25:34.893 32693-32693/com.qualcomm.ftcrobotcontroller D/Uvc: [jni.cpp:72] ...JNI_OnLoad()
2021-01-06 09:25:34.897 32693-32693/com.qualcomm.ftcrobotcontroller V/AppUtil: initializing: getExternalStorageDirectory()=/storage/emulated/0
2021-01-06 09:25:34.908 32693-32716/com.qualcomm.ftcrobotcontroller V/RobotCore: saving logcat to /storage/emulated/0/robotControllerLog.txt
2021-01-06 09:25:34.908 32693-32716/com.qualcomm.ftcrobotcontroller V/RobotCore: logging command line: exec logcat -f /storage/emulated/0/robotControllerLog.txt -r4096 -n4 -v threadtime UsbRequestJNI:S UsbRequest:S art:W T