Skip to content

Instantly share code, notes, and snippets.

@LakshyAAAgrawal
LakshyAAAgrawal / pytranslate.md
Last active November 8, 2024 07:21
Pytranslate - Maxima to Python Translator

Run OpenModelica GUI with Docker on Mac OS host

  1. First you need docker , brew , XQuartz and socat on your host.

    • docker : Install docker desktop from here
    • brew : Follow installation instruction from here
    • XQuartz : Install by : brew cask install xquartz
    • socat : Install by : brew install socat
  2. Now run this in new terminal :

socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:"$DISPLAY"

"""
More naive graph drawing
Using Processing Python mode
To run this you'll need:
https://abav.lugaralgum.com/como-instalar-o-processing-modo-python/index-EN.html
"""
nodes = []
edges = []
NODE_SIZE = 50 # Diâmetro dos nodes
"""
A bare-bones SVG SketchBook - Licensed under GPL v3.0
Alexandre B A Villares - http://abav.lugaralgum.com
in collaboration with Foad S. Farimani https://twitter.com/fsfarimani
v2020_12_19 exporting SVG now!
v2020_12_20 line mode & circle mode
"""
add_library('svg')
@mhSangar
mhSangar / install-textlive.sh
Created April 21, 2021 23:45
Latex Workshop VSCode settings for Biber and pdflatex and installation steps for textlive
#!/bin/bash
echo "Installing TextLive"
sudo apt install -y texlive-latex-extra
sudo apt install -y texlive-lang-english texlive-lang-spanish texlive-bibtex-extra
# sudo apt autoremove
@robin-collins
robin-collins / userscript.js
Last active January 12, 2025 02:04
Claude.ai-ChatDownloader - userscript to download claude.ai chats to a text file.
// ==UserScript==
// @name Claude.ai-ChatDownloader
// @namespace http://tampermonkey.net/
// @version 1.9
// @description Download all chats from Claude.ai as a single file
// @match https://claude.ai/*
// @match https://claude.ai/chats
// @match https://claude.ai/chat/*
// @grant GM_setValue
// @grant GM_getValue
@AnAnonymousPotato
AnAnonymousPotato / tutorial+GSI+and+root_lenovo+x306x.md
Last active July 16, 2026 09:45
[GUIDE] How to flash a GSI and Root the Lenovo Tab M10 HD (X306X)

image As you can see, I'm running Arrow OS 13.1 (Android 13) on Lenovo Tab M10 HD 2nd Gen (X306X)

[Complete Guide on How to Flash a GSI and Root This Device]

»Intro/Information

Warning and useful information: This guide is for this specific device only, and works best for the 4GB RAM + 64GB storage variant of this device. On lower GB RAM variants, installing a GSI may lag the device. This guide may work on most other devices too, but some steps will differ. I'm not responsible if your device gets into a bootloop, you lose any data or your device gets hard bricked. Please follow the steps carefully and use your common sense. If your device does get into a bootloop, use the Lenovo RSA to fix it (more details at the end of post). I'm not an expert (nor a developer) in this field. But feel free to ask any questions if you have doubts.