Skip to content

Instantly share code, notes, and snippets.

@AnAnonymousPotato
AnAnonymousPotato / tutorial+GSI+and+root_lenovo+x306x.md
Last active November 11, 2024 13:28
<Reddit Post> [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)

I just copy-pasted my reddit post in this github gist.

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

»Intro/Information

@robin-collins
robin-collins / userscript.js
Last active September 2, 2024 10:01
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
@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
"""
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')
"""
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

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"

@LakshyAAAgrawal
LakshyAAAgrawal / pytranslate.md
Last active November 8, 2024 07:21
Pytranslate - Maxima to Python Translator
@Foadsf
Foadsf / CMakeLists.txt
Last active January 6, 2021 05:50
printing the platform information in OpenCL following this SO post https://stackoverflow.com/a/50667352/4999991
cmake_minimum_required(VERSION 3.1)
project(OpenCL_Example)
find_package(OpenCL REQUIRED)
include_directories(${OpenCL_INCLUDE_DIRS})
link_directories(${OpenCL_LIBRARY})
add_executable(main main.c)
target_include_directories(main PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
@ForgottenUmbrella
ForgottenUmbrella / using_conan_cpp.md
Last active November 8, 2024 15:41
How to use Conan, a C++ package manager, for beginners

Package Management in C++ with Conan for Beginners

C++ package management can be complicated.

Below are some key tools involved:

Make

Make runs commands defined in a Makefile, for example, to build and install programs with the compiler and linker. For our purposes, we won't worry about what this looks like; you only need to understand its purpose in relation to CMake.

@mrtns
mrtns / README.md
Last active September 26, 2024 18:38
Markdown-based Literate Programming

R Ecosystem

  • R Markdown

    Use a productive notebook interface to weave together narrative text and code to produce elegantly formatted output. Use multiple languages including R, Python, and SQL.

Python Ecosystem

  • Pweave

    Pweave is a scientific report generator and a literate programming tool for Python. It can capture the results and plots from data analysis and works well with numpy, scipy and matplotlib.

  • podoc