Skip to content

Instantly share code, notes, and snippets.

View dracco1993's full-sized avatar
🤖
Building robots

Jordan Miller dracco1993

🤖
Building robots
View GitHub Profile
@dracco1993
dracco1993 / MyClass.java
Last active March 6, 2021 19:01
Test Swerve Drive Code
// Use this to test:
// https://www.jdoodle.com/online-java-compiler-ide/
public class MyClass {
public static void main(String args[]) {
// Manual test cases that we found to be problematic
printTest(0.0f, 0.0f, 0.0f);
printTest(90.0f, 270.0f, 90.0f);
@dracco1993
dracco1993 / clone_all_repos.sh
Last active April 15, 2019 15:26
Close all repos using a personal access token
#!/bin/bash
ORG=organization;
ACCESS_KEY=0000000000000000000000000000;
for i in $(curl "https://api.github.com/orgs/$ORG/repos?access_token=$ACCESS_KEY&per_page=1000" | sed '/[ ]*"clone_url":/!d;s/[^:]*: "//;s/",$//'); do
echo git clone $i
done
URLs:
Answers: (called after a correct answer)
https://api.preguntados.com/api/users/XXXX/games/XXXX/answers
Games: (called after end of game, and possibly on initial load?)
https://api.preguntados.com/api/users/XXXX/games
https://api.preguntados.com/api/users/XXXX/games/XXXX
Answer JSON key:
spins_data.spins["0"].questions["0"].question.correct_answer