Skip to content

Instantly share code, notes, and snippets.

View sarsamurmu's full-sized avatar

Sarsa Murmu sarsamurmu

View GitHub Profile
@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
@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 / README.md
Last active January 28, 2025 09:03
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 / index.html
Created November 5, 2020 10:00
Lit CSS Plugin Snippet for Reboost JS
<html>
<head>
<script type="module" src="./build.js"></script>
</head>
<body>
<my-element></my-element>
</body>
</html>
[
{
"name": "City Sight",
"author": "Marvin Ronsdorf",
"collections": "Random",
"url": "https://raw.githubusercontent.com/sarsamurmu/minmax/Wallpapers/city-sight-marvin-ronsdorf.webp",
"thumb": "https://raw.githubusercontent.com/sarsamurmu/minmax/Wallpapers/t/city-sight-marvin-ronsdorf.png",
"downloadable": true
},
{
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
// For testing
@sarsamurmu
sarsamurmu / hamburger-menu-animations.markdown
Created April 15, 2019 15:36
Hamburger Menu Animations
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<version>1 </version>
<category title="System" />
<item drawable="audio_fx" />
<item drawable="browser" />
<item drawable="browser_2" />
<item drawable="calculator" />
<item drawable="calculator_2" />
<item drawable="camera_los" />
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Dynamic Clock -->
<dynamic-clock drawable="my_clock"
hourLayerIndex="0"
minuteLayerIndex="1"
secondLayerIndex="2"
defaultHour="10"
defaultMinute="10"
defaultSecond="30"/>
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon
xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/clock_background"/>
<foreground>
<layer-list>
<item>
<rotate android:drawable="@drawable/clock_hour" android:fromDegrees="300.0" android:toDegrees="5300.0" android:pivotX="50.0%" android:pivotY="50.0%"/>
</item>
<item>