Skip to content

Instantly share code, notes, and snippets.

acetousk / library.xml
Created November 16, 2022 07:23
Moqui Actions Concept Graphical Programming Language Block Library
View library.xml
<xml xmlns=""><block type="factory_base" id="!3HK3u3O50:YC,nt5y7F" deletable="false" movable="false" x="10" y="10">
<mutation connections="BOTH"></mutation>
<field name="NAME">parameter</field>
<field name="INLINE">INT</field>
<field name="CONNECTIONS">BOTH</field>
<statement name="INPUTS">
<block type="input_dummy" id="J{q]Mw(6!e{p2).btlid">
<field name="ALIGN">LEFT</field>
<statement name="FIELDS">
<block type="field_static" id="@c7]Y3{pCw*Kt`Hx~)5@">
View docker-compose.yaml
# A Docker Compose application with moqui, postgres, and virtual hosting through
# nginx-proxy supporting multiple moqui instances on different hosts.
# Run with something like this for detached mode:
# $ docker-compose -f moqui-ng-pg-compose.yml -p moqui up -d
# Or to copy runtime directories for mounted volumes, set default settings, etc use something like this:
# $ ./ moqui-ng-pg-compose.yml
# This sets the project/app name to 'moqui' and the network will be 'moqui_default', to be used by external moqui containers
# Test locally by adding the virtual host to /etc/hosts or with something like:
View x.groovy
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.*
import org.openqa.selenium.interactions.Actions
import spock.lang.*
import java.time.Duration
class KatalonGroovyGenerator extends Specification{
@Shared WebDriver driver = new FirefoxDriver()
@Shared Actions actions = new Actions(driver)
acetousk / chassis.cpp
Created April 21, 2020 19:00
Example of OkapiLib AsyncLinearMotionProfileController for Forward and Straight Movements
View chassis.cpp
#include "chassis.hpp"
template <typename T> double sgn(T val) {
return (T(0) < val) - (val < T(0));
void Chassis::linearProfileStraight(QLength idistance, QLength icurrentPos){
leftProfileController->generatePath ( {icurrentPos.abs(),idistance.abs()}, "straight", straightLimits );
rightProfileController->generatePath( {icurrentPos.abs(),idistance.abs()}, "straight", straightLimits );
bool backward = false;
acetousk / KinematicsLogging.cpp
Created April 21, 2020 18:48
PROS Example Code for Logging Kinematics from 2 Encoders and Position from Odom
View KinematicsLogging.cpp
pros::task_t graphing;
void loop(void* params){
auto lposFilter = std::make_shared<AverageFilter<10>>();
auto lspeedFilter = std::make_shared<AverageFilter<10>>();
auto laccelFilter = std::make_shared<AverageFilter<10>>();
auto ljerkFilter = std::make_shared<AverageFilter<10>>();
auto lsnapFilter = std::make_shared<AverageFilter<10>>();
acetousk / Graph.cpp
Created June 14, 2019 03:12 — forked from theol0403/Graph.cpp
LVGL Builder Example
View Graph.cpp
#include "Graph.hpp"
Graph::Graph(lv_obj_t* parent) : Graph(parent, lv_obj_get_style(parent)->body.main_color) {}
Graph::Graph(lv_obj_t* parent, lv_color_t mainColor) :
graph(lv_chart_create(parent, NULL))
lv_obj_set_size(graph, lv_obj_get_width(parent), lv_obj_get_height(parent));
lv_obj_align(graph, NULL, LV_ALIGN_CENTER, 0, 0);
lv_chart_set_type(graph, LV_CHART_TYPE_LINE);
acetousk / help.cpp
Created April 10, 2019 19:06
controller deadzone verify
View help.cpp
int leftJoyVerify(){
static int count;
acetousk / API.h
Last active January 27, 2019 22:10
72832S Potatehoes Directory
View API.h
// Created by jonesdav004 on 1/23/2019
/** @file APIh
acetousk / hayden1.c
Created January 25, 2019 20:01
View hayden1.c
#pragma config(Sensor, in1, progL1, sensorPotentiometer)
#pragma config(Sensor, in2, progzR1, sensorPotentiometer)
#pragma config(Sensor, dgtl1, , sensorQuadEncoder)
#pragma config(Sensor, dgtl3, , sensorQuadEncoder)
#pragma config(Sensor, dgtl5, , sensorSONAR_inch)
#pragma config(Sensor, dgtl7, , sensorSONAR_inch)
#pragma config(Motor, port1, intake1, tmotorVex393TurboSpeed_HBridge, openLoop)
#pragma config(Motor, port2, driveL1, tmotorVex393HighSpeed_MC29, openLoop)
#pragma config(Motor, port3, drive2, tmotorVex393HighSpeed_MC29, openLoop)
#pragma config(Motor, port4, drive3, tmotorVex393HighSpeed_MC29, openLoop)
acetousk / autonCodeIfElseTree.c
Created January 25, 2019 14:55
auton code that is a massive if else tree that is a pain to write so this will make it easier probabally...
View autonCodeIfElseTree.c
/** ------------------- 72832S variable definitions -----------------*/
int autonRun;