Skip to content

Instantly share code, notes, and snippets.

View victoryforphil's full-sized avatar
:shipit:
Simulating stuff

Alex Carter victoryforphil

:shipit:
Simulating stuff
View GitHub Profile
@victoryforphil
victoryforphil / T0.md
Created March 1, 2016 05:17 — forked from graphitemaster/T0.md
Vulkan Tutorial

Tutorial 0

What is Vulkan

Vulkan is a low-overhead, cross-platform 3D graphics and compute API.

Vulkan targets

Vulkan targets high-performance realtime 3D graphics applications such as games and interactive media across multiple platforms providing higher performance and lower CPU usage.

var WebSocketClient = require('websocket').client;
var client = new WebSocketClient();
client.on('connectFailed', function(error) {
console.log('Connect Error: ' + error.toString());
});
client.on('connect', function(connection) {
console.log('WebSocket Client Connected');
var DisnodeBot = require("../src/Disnode.js");
var testBot = new DisnodeBot("", "./TestBotConfig.json"); /
var botCommands = {};
testBot.on("Bot_Ready", function(){
console.log('[TEST_BOT - BotReady] Bot Ready.');
testBot.loadConfig(OnLoad);
});
var OnLoad = function(){
testBot.addManager({name:"CommandHandler", options:{prefix: "!"}});
testBot.addManager({name:"MusicManager", options:{voiceEvents: true, maxVolume:2.0}});
@victoryforphil
victoryforphil / Server.js
Last active February 11, 2017 06:58
TCP Code Tests - Android
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) {
@victoryforphil
victoryforphil / TitanLogger.cs
Created February 11, 2017 08:20
Working on GUI Logger #1
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;
@victoryforphil
victoryforphil / TitanLogger.cs
Created February 12, 2017 00:02
GUI C# TCP Logger
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;
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 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")
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();
@victoryforphil
victoryforphil / CryptoBox.java
Created December 17, 2017 03:15
Dated 12/16/17 7:15PM
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;