This file contains hidden or 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
/* | |
Alex Carter @ GTHS | |
12/13/2018 | |
[email protected] | |
*/ | |
// Question 1 | |
public int[] replaceHighAndLow(int[] arr){ | |
for(int i=0;i<arr.length;i++){ |
This file contains hidden or 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
package org.usfirst.frc.team4151.robot; | |
/*Team coding work to post later, look into code with basic Java FRC Drive Code | |
Will be added to GitHub, but all edits and comments should be made on here.*/ | |
//Comment like this or like I did above | |
import java.util.concurrent.TimeUnit; | |
import edu.wpi.first.wpilibj.*; | |
import edu.wpi.first.wpilibj.CounterBase.EncodingType; |
This file contains hidden or 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
Encoder Left: no reversal | |
Encoder Right: no reversal | |
Profile: | |
#pragma once | |
#pragma once | |
namespace DriveProfile { | |
const double WHEELBASE_WIDTH = 0.6; | |
const double WHEEL_CIRCUMFERENCE = 18.49; | |
const double MAX_VELOCITY = 5; |
This file contains hidden or 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
package com.disnodeteam.dogecv.detectors; | |
import com.disnodeteam.dogecv.OpenCVPipeline; | |
import org.opencv.core.Core; | |
import org.opencv.core.CvType; | |
import org.opencv.core.Mat; | |
import org.opencv.core.MatOfPoint; | |
import org.opencv.core.Point; | |
import org.opencv.core.Rect; |
This file contains hidden or 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
public Mat processFrame2(Mat frame) | |
{ | |
// if the frame is not empty, process it | |
if (!frame.empty()) | |
{ | |
// init | |
//Mat flippedImage = new Mat(); | |
Mat resizedImage = new Mat(); | |
Mat blurredImage = new Mat(); | |
Mat hsvImage = new Mat(); |
This file contains hidden or 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
#This is prototpying code used to figure out the logic nessary to find the position of CryptoBoxes | |
#in the FTC Relic Recovery Game. The logic and parameters found here will then be transfered to | |
#the FTC App running on the Java Phone. When that is finished, our code will be made avalible to all. | |
import cv2 | |
import numpy | |
#Load Test Image | |
raw = cv2.imread("row2.jpg") |
This file contains hidden or 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
const tmi = require('tmi.js'); | |
const sleep = require('system-sleep'); | |
const io = require('socket.io-client'); | |
const IRCUtils = require('./IRCUtils.js'); | |
class IRCPlugin { | |
constructor() { | |
var self = this; | |
self.DB = {}; | |
self.utils = {}; |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Net.Sockets; | |
using System.Threading; |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
using System.Net.Sockets; | |
using System.Threading; |
This file contains hidden or 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
var net = require('net') | |
var port = 7777; | |
var server = net.createServer(); | |
server.listen(port, function(err,err2){ | |
console.log(err2); | |
}); | |
server.on('connection', function(socket) { //This is a standard net.Socket | |
console.log("Conneted!"); | |
socket.on('data', function(message) { |
NewerOlder