Skip to content

Instantly share code, notes, and snippets.

View Vanawy's full-sized avatar
🌐
Backend Web Developer

Ilya Sakharchuk Vanawy

🌐
Backend Web Developer
View GitHub Profile
@Vanawy
Vanawy / index.html
Created March 16, 2020 20:18
TicTacToe
<div id="app">
<game></game>
</div>

PS4 Controller Map for Unity

Buttons
    Square  = joystick button 0
    X       = joystick button 1
    Circle  = joystick button 2
    Triangle= joystick button 3
    L1      = joystick button 4
    R1      = joystick button 5
 L2 = joystick button 6
@Vanawy
Vanawy / xbox_unity_map
Created November 27, 2021 14:15
xbox_unity_map
Button/Axis Name | Positive Button/Axis | Type
___________________________________|____________________________________________________|____________________
A Button | Joystick Button 0 | Key or Mouse Button
B Button | Joystick Button 1 | Key or Mouse Button
X Button | Joystick Button 2 | Key or Mouse Button
Y Button | Joystick Button 3 | Key or Mouse Button
Left Bumper | Joystick Button 4 | Key or Mouse Button
Right Bumper | Joystick Button 5 | Key or Mouse Button
View Button | Joystick Button 6 (PC) | Key or Mouse Button
Menu Button | Joystick But
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Users;
// add this into built-in button you can create from menu: UI/Button
public class InputDeviceChangeHandler : MonoBehaviour {
// refs to Button's components
private Image buttonImage;
// ==UserScript==
// @name Image preview
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Vanawy Firo <vanawy.dev>
// @grant none
// @match https://*/*
// @match http://*/*
// @require http://code.jquery.com/jquery-latest.js
// ==UserScript==
// @name Belarus Flag Replacer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Vanawy
// @match https://trackmania.io/
// @icon https://www.google.com/s2/favicons?sz=64&domain=trackmania.io
// @grant none
// @source https://gist.githubusercontent.com/Vanawy/c106668695a96e37769e1ddf80bf6ca8/raw/7c85fc6663a71072c519e9063c3f91d51c421f0e/BLR%2520flag%2520replacer%2520%255BTrackmania.io%255D.js
@Vanawy
Vanawy / script.js
Created May 31, 2022 08:27
Youtube title changer (match video chapter) | Custom script
// ==UserScript==
// @name Title Changer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@Vanawy
Vanawy / wb.js
Last active November 16, 2023 12:22
Wildberries.by 404 fix
// ==UserScript==
// @name Wildberries 404 Fix
// @namespace http://tampermonkey.net/
// @version 0.2.1
// @description try to take over the world!
// @author You
// @match https://www.wildberries.by/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wildberries.by
// @grant none
// @homepage https://gist.github.com/Vanawy/