Skip to content

Instantly share code, notes, and snippets.

View strugee's full-sized avatar

AJ Jordan strugee

View GitHub Profile
@strugee
strugee / successnet_autoconfirm.js
Last active May 4, 2017 15:24
A Greasescript to autoconfirm Pearson SuccessNet, because it was pissing me off.
// ==UserScript==
// @name SuccessNet Confirm Session autoconfirm
// @description This Greasescript will automatically confirm your session whenever Pearson SuccessNet prompts you.
// @namespace strugee
// @version 0.6b
// @include http://www.pearsonsuccessnet.com/session_timeout/confirmsession.htm*
// @include https://www.pearsonsuccessnet.com/session_timeout/confirmsession.htm*
// @grant none
// ==/UserScript==
@strugee
strugee / TemplaterWindow.ui
Created April 7, 2013 13:49
WIP Glade UI paste for an Ask Ubuntu question
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires templater_window 1.0 -->
<!-- interface-local-resource-path ../media -->
<object class="TemplaterWindow" id="templater_window">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Templater</property>
<property name="resizable">False</property>
<property name="icon">../media/templater.svg</property>
@strugee
strugee / offseason-proposal.md
Last active August 29, 2015 14:16
Proposal for an FTC scouting app

Description

During the regular FTC season we've often wished that we had an app for scouting. Let us build this app. It would expose a RESTful, JSON-based API that would allow you to:

  • Input the match schedule
  • Query the match schedule
  • Input available scouters
  • Query available scouters
  • Define which teams should be scouted and the relative priority of those teams
  • Query calculated individual scouter schedules
@strugee
strugee / ftcopensource.md
Last active September 17, 2015 03:17
[FTC] Open Source, Please

Hi,

I've seen a lot of mentors making their voices heard on this thread, but I thought it'd be useful for a student to say something. So here I am.

I'm a programmer representing 2856. The fact that we cannot get access to the source code of FTC's software is a major problem that actively impedes our productivity. The fact that we can't look at the APIs available to us and can't look at how they work is a real issue, and this is compounded by the fact that documentation is scarce. Almost by definition, there is no better documentation than (commented) source code. Anything else is inherently a distillation and reproduction of what is really going on.

Here I speak for myself, and not the rest of my team (or other teams), but it also seems fairly obvious that FIRST simply lacks the resources to polish up the software, fix bugs, etc. I get it, truly - you've been experiencing a shocking amount of growth in the past couple years, and it's hard to keep up. I understand. But I just can't wrap my head around why y

@strugee
strugee / new-ftc-system-problems.org
Last active October 21, 2015 00:34
List of the problems that Redshift Robotics has encountered with the new Android-based FTC system

Android

  • Android Studio and Java installation is error-prone and takes a huge amount of time
  • Typing on phones doesn’t work
  • Gradle
  • Have to generate signed APK

FTC-specific code

  • Phones don’t detect hardware at runtime (both motor controllers and Core Power Distribution Modules)
  • Scanning sometimes doesn’t work
  • Crashes when editing configurations (i.e. in the middle)
  • If a configuration file is invalid, the app crashes when editing it
@strugee
strugee / glowbuggy.py
Last active December 16, 2015 19:24
glow buggy
# GlowScript 1.1 VPython
# Borrowed from Frank Noschese: http://www.glowscript.org/#/user/Mr._Noschese/folder/My_Programs/program/CVBuggies/edit
# objects
buggy1 = box(pos=vector(-200,9,0), size=vector(20,12,8), color=color.blue)
buggy2 = box(pos=vector(0,9,0), size=vector(20,12,8), color=color.red)
track = box(pos=vector(-100,10,-5), size=vector(620,25,2), color=color.white)
attach_trail(buggy1, type='spheres')
@strugee
strugee / index.js
Created August 14, 2016 04:46
RC interview database
#!/usr/bin/env node
/*
Copyright © 2013-2015 Alex Jordan <alex@strugee.net>
This work is free. Except where otherwise noted, you can redistribute
it and/or modify it under the terms of the Do What The Fuck You Want To
Public License, Version 2, as published by Sam Hocevar.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#!/bin/bash
# count_numbers.bash
# Written by Aditya and AJ
#
# This is a relatively simple bash script. We went through a couple
# iterations - the comments are leftover from when I was trying to
# make it work without calling out to `seq` (which outputs number
# sequences to stdout). As it turns out, `{num..num2}` expansion
@strugee
strugee / count-your-issues.json
Last active April 28, 2019 08:28
Personal config file for count-your-issues
[
{
"type": "github",
"username": "strugee"
},
{
"type": "gitlab",
"username": "strugee",
"cookie": "XXX"
},
@strugee
strugee / stratic-handle-offset_tests.log
Created November 8, 2017 20:39
Sample Perjury output from stratic-handle-offset's test suite
alex@cannot-bind ‹ master ●● › : ~/Development/pump.io
[0] % cd ../stratic-handle-offset
alex@cannot-bind ‹ master ● › : ~/Development/stratic-handle-offset
[0] % npm test
> stratic-handle-offset@1.0.0 test /home/alex/Development/stratic-handle-offset
> nyc -r lcov perjury test.js