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
lsusb = `lsusb`.split("\n").reject { |x| x.include?("root") }.map do |e| | |
ar = e.scan(/Bus (\d+) Device \d+: ID [0-9a-f:]+ (.*)/).flatten | |
ar[0] = "usb#{ar[0].to_i}" | |
ar | |
end | |
sysbus = `ls -l /sys/bus/usb/devices`.split("\n").map do |e| | |
e.scan(/(usb\d+) -> .+\/([0-9a-f:\.]+)\/usb\d+/).flatten | |
end.reject { |x| x.empty? } |
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
gradle.taskGraph.whenReady { graph -> | |
new File("tasks.graph").withWriter { writer -> | |
writer.write("digraph Tasks {\n") | |
graph.allTasks.each { t -> | |
graph.getDependencies(t).each { t2 -> | |
writer.write("\t\"${t2.name}\" -> \"${t.name}\"\n") | |
} | |
} | |
writer.write("}") | |
} |
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
event | match_level | match_key | week | red_plates | blue_plates | |
---|---|---|---|---|---|---|
2018alhu | Finals | 2018alhu_f1m1 | 2 | RLR | RLR | |
2018alhu | Finals | 2018alhu_f1m2 | 2 | LRL | LRL | |
2018alhu | Finals | 2018alhu_f1m3 | 2 | LRL | LRL | |
2018alhu | Quarters | 2018alhu_qf1m1 | 2 | RLR | RLR | |
2018alhu | Quarters | 2018alhu_qf1m2 | 2 | LLL | LLL | |
2018alhu | Quarters | 2018alhu_qf2m1 | 2 | LLL | LLL | |
2018alhu | Quarters | 2018alhu_qf2m2 | 2 | RLR | RLR | |
2018alhu | Quarters | 2018alhu_qf2m3 | 2 | RLR | RLR | |
2018alhu | Quarters | 2018alhu_qf3m1 | 2 | LLL | LLL |
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
require 'json' | |
require 'open-uri' | |
require 'digest' | |
require 'fileutils' | |
KEY = "g3t_uR-0wN-K3y" | |
CACHEFILE = '_cache' | |
def query path | |
JSON.parse open("http://www.thebluealliance.com/api/v3/#{path}?X-TBA-Auth-Key=#{KEY}").read |
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
#include "Vision.h" | |
#include <iostream> | |
#include <vector> | |
using namespace cv; | |
static VisionSystem::tp_millis last_time; | |
static void _vision_thread_func() { |
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
#include "WPILib.h" | |
#include "Talon.h" | |
#include "Simulation/Model.h" | |
#include "Simulation/Mutator.h" | |
#include "Simulation/Data/PWMData.h" | |
#include <cstdio> | |
#include <cmath> |
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
// After #1 | |
model { | |
// No user-defined toolchains have been added. | |
// Default toolchain gcc(Gcc) has been created and responds to Intel 32 and 64 bit architectures by default | |
toolChains { } | |
} | |
// After #2 | |
model { | |
// User-defined toolchain is added. |
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
# config.ru | |
require 'rack' | |
$:.unshift File.dirname(__FILE__) | |
class SubdomainMiddleware | |
def initialize(app, sub, mod) | |
@app = app | |
@sub = sub | |
@mod = mod.new | |
end |
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
#include <string.h> | |
#include <stdio.h> | |
#include <openssl/bio.h> | |
#include <openssl/evp.h> | |
#include <assert.h> | |
typedef struct { | |
char *test_string; | |
} 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
======================= | |
ALL MATCHES | |
======================= | |
Match Points: | |
total: 5798594 (231.02) | |
auto: 1181982 ( 47.09) | |
teleop: 4423922 (176.25) | |
foul: 199165 ( 7.93) | |
adjust: -6475 ( -0.26) |