Skip to content

Instantly share code, notes, and snippets.

View Plasmoxy's full-sized avatar
🌃
hopefully sleeping

Sebastián Petrík Plasmoxy

🌃
hopefully sleeping
View GitHub Profile
@Plasmoxy
Plasmoxy / GLDebugMessageCallback.cc
Last active May 13, 2020 20:28
C++ OpenGL Error handling callback function (glDebugMessageCallback) with auto debugger break in Visual Studio (adaptable to gcc/clang)
// 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.
//
// In jurisdictions that recognize copyright laws, the author or authors of this
// software dedicate any and all copyright interest in the software to the
// public domain. We make this dedication for the benefit of the public at large
// and to the detriment of our heirs and successors. We intend this dedication
// ==UserScript==
// @name DARK PDF
// @namespace http://tampermonkey.net/
// @version 0.1
// @description dark theme for chrome pdf using L butotn on top
// @author Plasmoxy
// @include file:///*
// @icon https://www.google.com/s2/favicons?domain=undefined.
// @grant none
// ==/UserScript==
@Plasmoxy
Plasmoxy / polymorph.c
Last active May 19, 2021 07:26
polymorphism simulation in c
/******************************************************************************
Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.
*******************************************************************************/
#include <stdio.h>
#include <stdlib.h>
echo ""
echo "Linux root 12.6.0-8-approval-free \#1 SMP Zigo OS 6.9 (2021-08-03) x69_69"
echo ""
echo "....::-===*#%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%***=[38;5;59
# Vidmod by Plasmoxy
# - clip editor for ffmpeg
$cmd = $args[0]
$fname = $args[1]
# cut with reencoding
# vidmod cut source.mp4 0:00 0:04
if ($cmd -eq "cut") {
$from = $args[2]
@Plasmoxy
Plasmoxy / dijkstra.clj
Created March 21, 2022 15:01 — forked from loganlinn/dijkstra.clj
Dijkstra's Algorithm in Clojure
(def ^:private inf (Long/MAX_VALUE))
(defn neighbors
([g n] (get g n {}))
([g n uv] (select-keys (neighbors g n) uv)))
(defn update-costs
[g costs curr unvisited]
(let [curr-cost (costs curr)]
(reduce
// Task 6 - Generate a Bezier surface of variable density with UV coordinates.
// - Confine the Bezier data and associated methods into a reusable class.
// - Define a modelMatrix that uses position, rotation and scale.
// - Render the generated mesh with texturing applied.
// - Animate rotation.
#include <iostream>
#include <vector>
#define GLM_ENABLE_EXPERIMENTAL
@Plasmoxy
Plasmoxy / tmonkey_seb_y2matemod.js
Created November 8, 2021 09:52
Tampermonkey y2mate seb mod
// ==UserScript==
// @name Y2mate Converter Button Sebo
// @namespace https://y2mate.com/
// @version 1.5
// @date 2019-07-23
// @author A Koi
// @description Y2mate Downloader: Download Video and Audio for free
// @homepage https://y2mate.com/
// @icon https://y2mate.com/themes/images/logo.png
// @icon64 https://y2mate.com/themes/images/logo.png
@Plasmoxy
Plasmoxy / vidmod.sh
Last active February 1, 2023 21:07
VidMod 4 shell
#!/bin/sh
# VidMod 4 shell by Plasmoxy
# - clip editor for ffmpeg for shell but can also like extract subtitile and cool stuff
fname=$2
case $1 in
# cut with reencoding
# vidmod cut source.mp4 0:00 0:04
@Plasmoxy
Plasmoxy / bilingualmanga-net-stylus-dark.css
Last active July 27, 2023 21:28
userstyle for dark mode bilingual manga for image, OCR and furigana (kguj2saaxu2qidie3ytuklhlxwcy2anw42lgsbvpdqgjxtd6kofsmfid.onion)
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100&display=swap');
.ocrtext1 {
color: #ffe354;
background: #292932 !important;
padding: 15px;
border: solid 1px #aaaaaa;
border-radius: 15px;
transform: translateX(15px) translateY(-15px);
font-size: 30px;