Skip to content

Instantly share code, notes, and snippets.

View sarsamurmu's full-sized avatar

Sarsa Murmu sarsamurmu

View GitHub Profile
@sarsamurmu
sarsamurmu / README.md
Last active June 29, 2025 13:50
New Image Occlusion with Auto Occlude server

Watch the video - https://youtu.be/3FSvEqOEAl8

Setting up server

  • First install python in your system and make sure that these commands (run in terminal) give no error. The recommended version is 3.12.7, newer versions may cause errors with the dependencies
python --version
pip --version
@sarsamurmu
sarsamurmu / 1by1.html
Last active December 31, 2023 16:32
Image Occlusion Enhanced One by One
<script>
var mask = document.querySelector('#io-overlay > img');
var svg = null
var nFill = '#FFF'
var qFill = '#FF7E7E'
var maskGroup = null
var occs = null
var currOccIdx = 0
async function swapToSvg() {
@sarsamurmu
sarsamurmu / card.html
Last active July 7, 2024 18:07
Highlight partly matched word
<script>
{
let s = `{{Reading_Sentence}}`
const targets = `{{Morph}}`
/** Mark part for highlighting later */
const hl = (s, partial = false) => partial ? `{#(${s})}` : `{(${s})}`
s = s.replace(/\s+/g, ' ')
let output = null