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 / CompleteDiscordQuest.md
Created April 29, 2024 15:40 — forked from aamiaa/CompleteDiscordQuest.md
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@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