Skip to content

Instantly share code, notes, and snippets.

@ishahak
ishahak / v-slider-rtl.md
Created November 18, 2025 07:06
Vuetify 3 v-slider with RTL (right to left) support

Vuetify-3 bug Nov-25 regarding v-slider with RTL

Description

When creating an audio-player bar under RTL direction, I encountered two problems:

  1. Thumb goes in wrong direction, from left to right.
  2. Clicking on the track to move to a new position, cause a jump to the other direction, i.e., if I click at 20%, it jumps to 80%.

Solution

@ishahak
ishahak / README.md
Created July 3, 2025 14:29
Useful settings for "Markdown PDF" VSCode extension

Gist for nice header and footer

Useful for converting md files into technical documents

I wasted so much time on this that I decided that it is worthing a gist.

The Markdown PDF VS-code extension is using the puppeteer engine to render PDF. Setting up nice header and footer is not easy and we cannot get access to the temporary html that the engine is rendering.

In this gist:

  • a CSS file that formats tables as grids, as expected by many technical documents.
@ishahak
ishahak / upython_ap_dual_serv.py
Created May 9, 2023 13:21
Micropython demo for starting access-point and listening to both connections and serial commands
import socket
import network
import time
import machine
import select
import sys
import os
local_IP = '192.168.31.10'
subnet = '255.255.255.0'
@ishahak
ishahak / conexcc.py
Created August 22, 2019 09:36
A Python class for controlling NewPort's Conex-CC motor driver
# NewPort Conex-CC class
# Author Itay Shahak 2019
# Free code for the community!
# dependant on 'clr' which is PythonNet package
import clr
from time import sleep
# We assume Newport.CONEXCC.CommandInterface.dll is copied to our folder
clr.AddReference("Newport.CONEXCC.CommandInterface")
@ishahak
ishahak / responsive-jplayer.html
Created August 3, 2019 18:20
A Responsive JPlayer implementation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="author" content="Script Tutorials" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link type="text/css" href="/skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="/js/jquery.jplayer.min.js"></script>