Skip to content

Instantly share code, notes, and snippets.

View williamtoader's full-sized avatar

Wiliam Toader williamtoader

  • Deutsche Bank
  • Bucharest, Romania
  • X @WToader
View GitHub Profile
//
// macKeyboardBacklight.swift
//
// Created by Wiliam Toader on 10.09.2021.
// Solution suggested by user Alex293 on github issue https://github.com/pirate/mac-keyboard-brightness/issues/1
import Foundation
import IOKit
import AppKit
package ro.helix.wiliamtoader.lessbrokenminipid;
/*
tekdemo/MiniPID-Java is licensed under the
GNU General Public License v3.0
https://github.com/tekdemo/MiniPID-Java
This library was modified by Wiliam Toader implementing the following:
* Disabled checkSigns() as it was buggy
* Added a dropBetween() function to prevent wear stalling at low power when used with motors
@williamtoader
williamtoader / lbry_example.js
Last active May 26, 2020 10:49
nodejs lbry connection script
const lbry = require("./node_lbry_2020.js");
let promise = lbry.requestPromise("example_method", {
param: "value"
})
promise.then(
claims => console.log(claims),
error => console.error(error)
)
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <WiFiServer.h>
#include <ESP8266WebServer.h>
#define ASSID "HelixLink"
#define APSK "********"
const char *ssid = ASSID;
const char *password = APSK;
@williamtoader
williamtoader / HelixLinkService.java
Created July 31, 2019 12:40
TCP Client handling
package org.firstinspires.ftc.teamcode.apis.core_lib;
import org.firstinspires.ftc.robotcore.internal.camera.libuvc.nativeobject.VuforiaExternalProviderCameraFrame;
import java.net.ConnectException;
import java.io.*;
import java.net.*;
public class HelixLinkService {
public boolean connected = false;