Skip to content

Instantly share code, notes, and snippets.

View cmastudios's full-sized avatar

Connor Monahan cmastudios

View GitHub Profile
@cmastudios
cmastudios / plot.js
Last active December 10, 2015 08:38
Zacraft-style plot boundary generator for WorldEdit craftscripts
/*
Copyright (c) 2012 Connor Monahan
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
# BEGIN Jenkins
<VirtualHost *:80>
ServerName ci.cmastudios.me
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyRequests off
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
@cmastudios
cmastudios / war.yml
Last active December 17, 2015 23:09
War Killstreak Configuration
set:
war:
killstreak:
'3':
privmsg: You have been rewarded with some health for your kills.
reward:
health: 8
'4':
reward:
xp: 3
@cmastudios
cmastudios / config.yml
Created December 11, 2013 22:39
new achievement storage
achievements:
- name: Parkour1
type: BRONZE
criteria: PARKOUR_COMPLETE
options:
course: 1
- name: Zapierdol
type: BRONZE
criteria: PLAYS_ON_CERTAIN_PARKOUR
options:
@cmastudios
cmastudios / example.c
Created October 22, 2014 17:01
dylan command process
#include "stdio.h"
#include "string.h"
#include "windows.h"
void process_command(char *line);
int main()
{
int c = 0;
int position = 0;
@cmastudios
cmastudios / stddev.cpp
Created January 24, 2015 01:53
stddev
double contour_average_distance(Mat image, Contour contour)
{
double average = 0;
for (Point pt : contour) {
average += Calculate_Real_Distance(image, pt);
}
return average / contour.size();
}
double contour_stddev(Mat image, Contour contour)
@cmastudios
cmastudios / good.py
Created April 29, 2015 22:18
Filter images from RR 2015, save them raw to a file
#!/usr/bin/python
#expectations
#sudo apt-get install python-pip
#sudo pip install Pillow
#working directory must contain a folder "Vision Images" that contains folders
#created by the RR 2015 vision system
#to run:
# coding: utf-8
import numpy as np
import random
code = (1, 2, 3, 4)
def play(code, guess):
red = 0
white = 0
@cmastudios
cmastudios / tmp75a.c
Created October 19, 2019 18:05
TMP75A reading code but entirely untested
/**
* TMP75A reading code
*/
#include <asf.h>
#include <stdint.h>
////////////// config //////////////////
@cmastudios
cmastudios / PnP(1).ipynb
Last active January 12, 2020 06:14
2020 FRC vision finding pose of high target
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.