Skip to content

Instantly share code, notes, and snippets.

/**
* Summernote StripTags
*
* This is a plugin for Summernote (www.summernote.org) WYSIWYG editor.
* To strip unwanted HTML tags and attributes while pasting content in editor.
*
* @author Hitesh Aggarwal, Extenzine
*
*/
@shawwwn
shawwwn / uping.py
Last active March 24, 2025 09:43
µPing: Ping library for MicroPython
# µPing (MicroPing) for MicroPython
# copyright (c) 2018 Shawwwn <[email protected]>
# License: MIT
# Internet Checksum Algorithm
# Author: Olav Morken
# https://github.com/olavmrk/python-ping/blob/master/ping.py
# @data: bytes
def checksum(data):
if len(data) & 0x1: # Odd number of bytes
@lmj0011
lmj0011 / rejson-for-ubuntu.md
Last active November 4, 2024 10:18
Building and Loading the ReJSON v1 Module on Linux Ubuntu 16.04 for Redis

make sure you have at least redis v4.0+

redis-server --version

redis-cli --version

install the build-essential package

apt-get install build-essential

@Cheaterman
Cheaterman / README.md
Last active October 27, 2024 12:52
Kivy/Flask data streaming example

Kivy/Flask data streaming example

The idea here is to send push notifications from server at anytime, by keeping a connection open.

@tshirtman
tshirtman / autofit_ti.py
Created January 10, 2021 01:20
kivy text input with automatic font size for biggest text that fits
'''
'''
from kivy.app import App
from kivy.lang import Builder
from kivy.core.text import Text
from kivy.clock import mainthread
KV = '''
TextInput:
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Last active July 6, 2025 20:19 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6. Forked from @fabianoriccardi

Comparison chips (SoCs) table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December