Skip to content

Instantly share code, notes, and snippets.

View Jason-Young-AI's full-sized avatar
💯
Accept!

Jason Young Jason-Young-AI

💯
Accept!
View GitHub Profile
@Jason-Young-AI
Jason-Young-AI / v2boxroute.txt
Created January 19, 2024 08:42
v2box route simple rules
v2box://routes?multi=W3sicmVtYXJrIjoi55u06L+eIiwibGlzdElQIjpbImdlb2lwOkNOIiwiZ2VvaXA6cHJpdmF0ZSJdLCJtYXRjaE1vZGUiOiJrZXl3b3JkIiwidGFnIjoiZGlyZWN0IiwidHlwZSI6IklQIiwiaXNFbmFibGUiOnRydWUsImxpc3QiOlsiZ2Vvc2l0ZTpjbiIsImdlb3NpdGU6cHJpdmF0ZSJdLCJuYW1lIjoicm91dGUuMzE4QTk2OEMtMEE0MC00OEY0LUJCNzgtOEEzRTE5RjAwOUYxIn0seyJyZW1hcmsiOiLpmLvmraIiLCJsaXN0SVAiOltdLCJtYXRjaE1vZGUiOiJrZXl3b3JkIiwidGFnIjoiYmxvY2siLCJ0eXBlIjoiRG9tYWluIiwiaXNFbmFibGUiOnRydWUsImxpc3QiOlsiZ2Vvc2l0ZTpjYXRlZ29yeS1hZHMtYWxsIl0sIm5hbWUiOiJyb3V0ZS4xQ0FDQjQwQS05QUU4LTQwOTYtQTg0Ri02NjkzNEE4NjNFMzYifV0=
@Jason-Young-AI
Jason-Young-AI / HOWTO.md
Created July 19, 2024 02:38 — forked from stramel/HOWTO.md
Installing Powerline fonts on Windows 10

Installing Powerline fonts on Windows 10

Steps

  1. Download and extract zip from here
  2. Press Windows + x
  3. Press a (Selects PowerShell (Admin))
  4. Navigate to directory where fonts were extracted to (cd ${HOME}\Downloads\fonts-master\fonts-master)
  5. Set Execution Policy Set-ExecutionPolicy RemoteSigned [1]
  6. Press y then Enter to accept
import os, argparse
import tensorflow as tf
"""
This script converts a checkpoint to a pb file without needing to know
the names of the input and output nodes. This then allows you to use the
Tensorflow tool summarize_graph to identify potential input/output nodes.
Usage:
@Jason-Young-AI
Jason-Young-AI / -public-pt2-backend-integration.ipynb
Created November 18, 2024 02:46
[Public] PT2 Backend Integration.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jason-Young-AI
Jason-Young-AI / find_all_hdbscan_subcluster_eamags_version.py
Created November 19, 2024 01:42
How to get sub-clusters or super-cluster of a cluster by using HDBSCAN?
# This is the initial version provided by https://github.com/eamag.
import numpy as np
def find_all_subclusters(clusterer, cluster_labels):
tree = clusterer.condensed_tree_
tree_df = tree.to_pandas()
def get_subclusters(node):
children = tree_df[tree_df['parent'] == node]