Skip to content

Instantly share code, notes, and snippets.

@KorigamiK
KorigamiK / victor-mono-bolder.css
Last active January 2, 2023 19:47 — forked from pyrho/victor-mono.css
A bolder font file for Blink Shell with the Victor Mono font
@font-face {
font-family: "VictorMono Nerd Font";
font-style: normal;
font-weight: 200;
src: url(https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/VictorMono/Semi-Bold/complete/Victor%20Mono%20SemiBold%20Nerd%20Font%20Complete.ttf?raw=true);
}
@font-face {
font-family: "VictorMono Nerd Font";
font-style: normal;
font-weight: 400;
@KorigamiK
KorigamiK / metadata.py
Created December 15, 2022 09:05
Create video chapter metadata script
"""Create a Metadata file with chapters for a Video
Usage:
* Place a `chapter.txt` file in the same directory as the video file.
with the following format:
00:00:00 Chapter 1
00:00:00 Chapter 2
...
@KorigamiK
KorigamiK / SingleFileOpenGLTex.cpp
Created December 6, 2022 14:30 — forked from mortennobel/SingleFileOpenGLTex.cpp
Single file OpenGL 3.3 / WebGL (using Emscripten) example with texture (SDL2 / SDL_Image 2)
//
// Compile for emscripten using
// emcc -Iinclude SingleFileOpenGLTex.cpp \
-O2 -std=c++14 -s TOTAL_MEMORY=33554432 -s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS='["png"]' --preload-file examples/data -s USE_SDL=2 -o html/SingleFileOpenGLTex.html
// where the following images must be located in a subfolder
// - examples/data/test.png
// - examples/data/cartman.png
// - examples/data/cube-negx.png
// - examples/data/cube-negz.png
//
@KorigamiK
KorigamiK / open-course-ware.user.js
Last active December 3, 2022 15:53
MIT Open CourseWare crawler
// ==UserScript==
// @license MIT
// @name Get all downloadable content from MIT OpenCourseWare
// @match https://ocw.mit.edu/courses/*
// @description Get a button to download all the content from a course and lot to console
// ==/UserScript==
var res = [];
const mainButton = document.createElement("button");
@KorigamiK
KorigamiK / todo-list.html
Last active November 2, 2022 01:24
Vanilla todo-list
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body {
font-family: "Courier New", Courier, monospace;
@KorigamiK
KorigamiK / CMakeLists.txt
Last active October 22, 2022 19:44
Eigen3 PSP working example
cmake_minimum_required(VERSION 3.10)
project(eigen-example)
add_executable(${PROJECT_NAME} main.cpp)
IF(PLATFORM_PSP)
find_package(PkgConfig REQUIRED)
pkg_check_modules(EIGEN3 REQUIRED eigen3)
@KorigamiK
KorigamiK / 0.json
Last active October 16, 2022 20:42
web3 test
{
"test": "data"
}
@KorigamiK
KorigamiK / createCrawlJobs.ts
Last active August 11, 2022 13:32
Jdownloader CrawlJobs Schema
const fs = require("fs");
interface Job {
downloadFolder?: null | String; // null,
chunks?: number; // 0,
overwritePackagizerEnabled?: true | false; // true,
extractAfterDownload?: null | "UNSET" | "TRUE" | "FALSE"; // "UNSET",
priority?:
| null
| "HIGHEST"
@KorigamiK
KorigamiK / jee-main-answers-parser.user.js
Created August 4, 2022 18:48
JEE Mains Marks calculator
// ==UserScript==
// @name JEE Mains Answers capture
// @match https://test.cbexams.com/*
// @description This script detects parses your entered answers into a computer readable format
// ==/UserScript==
const returnData = [] // stores all the answers
const cb = document.createElement('input')