Skip to content

Instantly share code, notes, and snippets.

View KorigamiK's full-sized avatar
🦚

KorigamiK KorigamiK

🦚
View GitHub Profile
#!/bin/bash
# Check if required tools are installed
command -v pdfimages >/dev/null 2>&1 || { echo "pdfimages is required but not installed. Install poppler-utils."; exit 1; }
command -v img2pdf >/dev/null 2>&1 || { echo "img2pdf is required but not installed. Install img2pdf."; exit 1; }
# Create output directory if it doesn't exist
mkdir -p output_pdfs
mkdir -p temp_images
#!/usr/bin/env bash
# Loop through all week* directories
for dir in week*/; do
# Extract week number from directory name
week_num=$(echo "$dir" | grep -o '[0-9]\+')
# Enter directory
cd "$dir"
@KorigamiK
KorigamiK / hci.md
Last active November 1, 2024 20:43
nptel

title: Design & Implementation of Human-Computer Interfaces papersize: a4 numbersections: false documentclass: scrartcl toc: false toc-title: 'Contents' geometry:

  • margin=0.5in colorlinks: true
@KorigamiK
KorigamiK / keybindings.json
Last active September 19, 2024 11:52
vscode vim keybinds
// Place your key bindings in this file to override the defaultsauto[]
[
{
"command": "workbench.action.nextEditor",
"key": "shift+l",
"when": "vim.mode == 'Normal' && (editorTextFocus || !inputFocus)"
},
{
"command": "workbench.action.previousEditor",
"key": "shift+h",
@KorigamiK
KorigamiK / cmd.sh
Created August 18, 2024 13:15
how to select vulkan graphic card
VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json vulkaninfo --summary
@KorigamiK
KorigamiK / claude_tex.user.js
Created August 17, 2024 19:19
Claude TeX rendering
// ==UserScript==
// @name New script github.com
// @namespace Violentmonkey Scripts
// @match https://claude.ai/*
// @grant none
// @version 1.0
// @author -
// @description 8/18/2024, 12:49:16 AM
// ==/UserScript==
@KorigamiK
KorigamiK / keybindings.json
Created July 16, 2024 06:29
vsocde config
[
{
"command": "editor.action.moveLinesDownAction",
"key": "alt+j",
"when": "editorTextFocus && !editorReadonly"
},
{
"command": "workbench.action.previousEditor",
"key": "ctrl+shift+tab"
},
@KorigamiK
KorigamiK / claude_tex.user.js
Created June 17, 2024 19:31
render tex on claude.ai
// ==UserScript==
// @name Claude MathJaX
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Render LaTeX math formulas on the page using MathJax
// @match https://claude.ai/*
// @grant none
// ==/UserScript==
// deno-lint-ignore-file no-window no-window-prefix
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[inline]{enumitem}
\usepackage[table,xcdraw]{xcolor} % for table color
\setlength\parindent{0pt}
\newcommand{\entry}[2]{\begin{tabular}{c}\\#1\\#2\\\phantom{ }\end{tabular}}
\pagenumbering{gobble}
\usepackage{geometry}
\geometry{
@KorigamiK
KorigamiK / #Calculate Sub Drop CGPA.md
Last active June 22, 2024 20:57
cgpa drop calculation

Calculate Optimal Sub Drop CGPA

To get max gains 💪