This file contains 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/env zsh | |
# Find the latest spawned VSCode server. Link to its node process | |
local node_process=$(echo ~/.vscode-server/cli/servers/*/server/node(*oc[1]N)) | |
if [[ -z ${node_process} ]] | |
then | |
echo "VSCode remote server process not found" | |
exit 1 | |
fi |
This file contains 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
/* | |
* Make sure to use MeepMeep 1.0.1 | |
* | |
* This is a very rough POC and not polished at all. Velocity doesn't decelerate, no clear units, etc. | |
* Also the shot in the marker should be moved to a reusable function | |
*/ | |
/**** RingEntity.java *****/ | |
package com.example.meepmeeptesting; |
This file contains 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
package com.example.meepmeeptesting; | |
import com.acmerobotics.roadrunner.geometry.Pose2d; | |
import com.acmerobotics.roadrunner.geometry.Vector2d; | |
import com.noahbres.meepmeep.MeepMeep; | |
import com.noahbres.meepmeep.core.colorscheme.scheme.ColorSchemeBlueDark; | |
import com.noahbres.meepmeep.core.colorscheme.scheme.ColorSchemeRedDark; | |
import com.noahbres.meepmeep.roadrunner.Constraints; | |
import com.noahbres.meepmeep.roadrunner.entity.RoadRunnerBotEntity; | |
import com.noahbres.meepmeep.roadrunner.trajectorysequence.TrajectorySequence; |
This file contains 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 type { NextApiRequest, NextApiResponse } from "next"; | |
import formidable from "formidable"; | |
import mail from "@sendgrid/mail"; | |
mail.setApiKey(process.env.SENDGRID_API_KEY); | |
// THIS IS IMPORTANT FOR FORMIDABLE | |
// turn off next bodyparser https://nextjs.org/docs/api-routes/api-middlewares#custom-config | |
export const config = { |
This file contains 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 { Fragment, useEffect, useRef, useState } from "react"; | |
import Link from "next/link"; | |
import { Transition } from "@headlessui/react"; | |
import { CheckCircleIcon } from "@heroicons/react/outline"; | |
import { XIcon } from "@heroicons/react/solid"; | |
import { MailIcon, PhoneIcon, MapIcon } from "@heroicons/react/outline"; | |
import { useForm } from "react-hook-form"; |
This file contains 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
public class RubaiyatPOC extends LinearOpMode { | |
public void runOpMode() { | |
telemetry = new Rubaiyat(Rubayait.getInstance(), telemetry); | |
Rubayait.Style r = new Rubaiyat.Style; | |
telemetry.clear(); | |
// Rubaiyat should convert to html display format transparently | |
telemetry | |
.addLine( |
This file contains 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
function download(url, filename) { | |
const a = document.createElement('a'); | |
a.style.diplay = 'none'; | |
document.body.appendChild(a); | |
a.href = url; | |
a.download = "playlist8.ts"; | |
a.click(); | |
// a.remove(); | |
} |
This file contains 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
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 |
This file contains 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
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: |
This file contains 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
public class StatePOC extends LinearOpMode { | |
private StateMachine autoMachine; | |
private StateMachine wobbleMachine; | |
enum WobbleState { | |
IDLE, | |
GRAB, | |
LIFT, | |
HOLD, | |
DUMP, |
NewerOlder