Skip to content

Instantly share code, notes, and snippets.

View b3x206's full-sized avatar
nullptr

Barbaros b3x206

nullptr
  • B3X
  • 11:25 (UTC +03:00)
View GitHub Profile
@b3x206
b3x206 / instagram-video-volume.js
Created May 6, 2024 08:23
An userscript that shows a volume slider on videos displayed in instagram.
// ==UserScript==
// @name Instagram Video Volume Slider
// @description Adds a volume slider to any video shown.
// @author b3x
// @version 1.0
// @license MIT
// @include https://instagram.com/*
// @include https://*.instagram.com/*
// @namespace https://gist.github.com/b3x206
// @grant GM.getValue
@b3x206
b3x206 / ParticleAttractor.cs
Created February 16, 2024 16:38
A Unity Particle System particles attractor, useful for VFX/Other purposes.
// ParticleAttractor.cs
// Attracts ParticleSystem particles towards given transform
// The code can be used for anything without attribution and it's from a part of 'Flag Race'
using Unity.Collections;
using UnityEngine;
using UnityEngine.Serialization;
/// <summary>
/// Attracts unity particle system (<see cref="ParticleSystem"/>) particles to given object <see cref="targetTransform"/>.
@b3x206
b3x206 / yuzem-anket-doldur.js
Last active June 28, 2024 11:06
Yüzem Anket Doldur (Üniversite Öğretmen Anketi)
// ==UserScript==
// @name YYÜ YUZEM Anket Doldur
// @version 0.4
// @author B3X
// @description Unipa'nın yaptığı anket formu sayfasındaki cevapları rastgele olarak doldur.
// @namespace https://servis.yyu.edu.tr
// @match http://servis.yyu.edu.tr/*
// @match https://servis.yyu.edu.tr/*
// @run-at document-end
// @grant none
@b3x206
b3x206 / terrible_snake.cpp
Last active February 8, 2024 09:29
a bad snake for console
// This is snake for windows console that can be compiled using mingw
// Compile using => $ g++ ./terrible_snake.cpp -o snake.exe <optional flags>
// (msvc will probably work, didn't test though)
// Features :
// * Has color
// * Is playable (wow!!1!)
// * Has argument options
// * Runs fine (unless you make the console larger because buffering is not done by the winapi but by std::cout which sucks, but the winapi requires buffer sizing-juggling so idk)
// * Single-file (but that is indeed a stretch, AppArgument is a .h + .cpp file because the linker says no [symbol AAÆ@@@@=DFAghsdao234<<<__<<< on terrible_snake.obj not found or some thing idk])
// * Github gist editor also has a new feature called "mix tabs with spaces™", thanks.
@b3x206
b3x206 / int2roman-num.cpp
Last active May 8, 2024 18:58
Converts a integer to a roman number.
#include <iostream>
#include <array>
#include <string>
#include <map>
// This is free and unencumbered software released into the public domain.
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.