Skip to content

Instantly share code, notes, and snippets.

View ItsMichal's full-sized avatar
👋
Hi! Currently working on school, job, and hobbies!

Michal ItsMichal

👋
Hi! Currently working on school, job, and hobbies!
View GitHub Profile
@ItsMichal
ItsMichal / vector
Created April 12, 2018 20:20
CPP Vector source file - Michal
// -*- C++ -*-
//===------------------------------ vector --------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
@ItsMichal
ItsMichal / MGWNDSOR.ps1
Created January 17, 2019 22:25
Metal Gear WNDSOR
#Metal Gear WNDSOR by Michal Bodzianowski
#DEFINED
$services_exempt = "AppMgmt", "AppXSvc", "camsvc", "ClipSVC", "defragsvc", "DoSvc", "DsSvc", "InstallService", "PhoneSvc", "smphost", "TrustedInstaller", "LSM", "NetSetupSVC"
#resource
#SETUP
$host.UI.RawUI.ForegroundColor = "Gray"
@ItsMichal
ItsMichal / secpol
Created January 17, 2019 23:51
ref
[Unicode]
Unicode=yes
[System Access]
MinimumPasswordAge = 0
MaximumPasswordAge = 42
MinimumPasswordLength = 0
PasswordComplexity = 0
PasswordHistorySize = 0
LockoutBadCount = 0
RequireLogonToChangePassword = 0
@ItsMichal
ItsMichal / IKPYGuide.md
Created April 28, 2021 18:55
The ultimate guide to IKPY/Webots

So, IKPY is surprisingly not as robust a library as I would have imagined, and its quite poorly documented. After struggling for a few days trying to get it to work with TIAGO Steel, here are some things that helped.

  • So, IKPY is actually a bit outdated. Optionally, I'd recommend installing a fork of IKPY by user Alters-Mit which fixes some issues with prismatic joints, which the TIAGO Steel contains. More info here. Phylliade/ikpy#96
    • To install this fork of ikpy, run pip install git+https://github.com/alters-mit/ikpy.git#egg=ikpy in your console.
    • I'm not sure if this helped, but it seemed to. If you don't have problems, do this optionally.
    • Finally, put the following at the top of your controller file-
    • from ikpy.chain import Chain
      from ikpy.link import OriginLink, URDFLink
@ItsMichal
ItsMichal / README.md
Last active September 24, 2021 07:51
Police LEDs Arduino Nano 33 IoT

Police LED Demo

Hi- this is a quick script to control 2 LEDs with 2 Momentary Switches. It's a very simple script that switches between 4 unique states.

Schematic

Schematic

@ItsMichal
ItsMichal / LEDPong.ino
Created September 25, 2021 05:12
LED Pong
// LED Pong
// Michal Bodzianowski (c) 2021
#include <Adafruit_NeoPixel.h>
// Fix for dropping inputs. Every tick, inputRatio
// number of inputs will be listend for. In this case,
// max delay is at 30ms. If you can click the button
// and release it faster than that... god bless you.
const int inputRatio = 10;
int counter = 0;
@ItsMichal
ItsMichal / MEDPuckv0.1.ino
Last active October 4, 2021 20:53
MEDPuck - Medicine Timer - .ino, Gerber, and Schematic
//Medpuck Code v0.1
//Michal Bodzianowski (c) 2021
//NOTE: EEPROM implementation not fully functioning
//Upcoming changes include:
//- EEPROM fix
//- change lighting scheme
//Libraries required
#include <Adafruit_NeoPixel.h>
#include <EEPROM.h>
@ItsMichal
ItsMichal / LaneDefense.js
Created November 19, 2021 00:24
Lane Defense - Serial Arduino Nano Game
const conWidth = 800;
const conHeight = 450;
let serial;
let latestData = "waiting for data";
class Drawable {
constructor(){
}
@ItsMichal
ItsMichal / BoxingProto.ino
Created November 20, 2021 01:28
Prototype Boxing Bag Code
/*
This example reads the acceleration values as relative direction and degrees,
from the LSM6DS3 sensor and prints them to the Serial Monitor or Serial Plotter.
The circuit: Arduino Nano 33 IoT only, no additional circuitry
*/
#include <Arduino_LSM6DS3.h>
#include <Adafruit_NeoPixel.h>
@ItsMichal
ItsMichal / PressurePuncher.ino
Created December 14, 2021 20:37
Pressure Puncher Code!
/*
* PressurePuncher Code v1
* by Michal Bodzianowski - 2021
*/
//Library Imports
#include <Arduino_LSM6DS3.h>
#include <Adafruit_NeoPixel.h>
#include <map>
#include <MadgwickAHRS.h>