Skip to content

Instantly share code, notes, and snippets.

View CommanderPho's full-sized avatar

Pho Hale CommanderPho

View GitHub Profile
@CommanderPho
CommanderPho / workbench.colorCustomizations.json
Created June 5, 2024 22:16 — forked from dcts/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
Add-Type -AssemblyName System.Drawing
$refAssemblies = @(
[Drawing.Icon].Assembly.Location
if ($IsCoreCLR) {
[psobject].Assembly.Location
$pwshLocation = Split-Path -Path ([psobject].Assembly.Location) -Parent
$pwshRefAssemblyPattern = [IO.Path]::Combine($pwshLocation, 'ref', '*.dll')
(Get-Item -Path $pwshRefAssemblyPattern).FullName
@CommanderPho
CommanderPho / export_conda_env.py
Created November 4, 2022 23:48 — forked from joel-kelly/export_conda_env.py
Export all conda environments as yml files to a specified directory
import subprocess as sub
import re
import os
#modified from https://github.com/conda/conda/issues/5165
# create list of current environments
sub.check_call(" ".join(['conda','env','list','>','envs.txt']),shell=True)
# load and parse environment names
envs = {}
@CommanderPho
CommanderPho / Conda cheat sheet
Created November 2, 2022 21:08 — forked from elowy01/Conda cheat sheet
Conda cheat sheet#
//
# Deactivating the activation of the base environment in Python:
conda config --set auto_activate_base false
//
**Listing all installed packages
conda list
# If you want to list all installed packages along its channels:
conda list --show-channel-urls
//
#To install a package
@swiftui-lab
swiftui-lab / grid-trainer.swift
Last active March 29, 2024 01:46
A grid trainer for Grid views
// Author: SwiftUI-Lab (swiftui-lab.com)
// Description: this learning tool is designed to showcase the different
// Grid and GridRow view options, added in SwiftUI 2022. It is part of the
// blog article: https://swiftui-lab.com/eager-grids
//
import SwiftUI
import UniformTypeIdentifiers
// The root view of the application
struct ContentView: View {
@joel-kelly
joel-kelly / export_conda_env.py
Created July 8, 2022 18:07
Export all conda environments as yml files to a specified directory
import subprocess as sub
import re
import os
#modified from https://github.com/conda/conda/issues/5165
# create list of current environments
sub.check_call(" ".join(['conda','env','list','>','envs.txt']),shell=True)
# load and parse environment names
envs = {}
@CommanderPho
CommanderPho / DistanceAndDifferenceQuantificationConcepts
Created June 16, 2022 16:08
DistanceAndDifferenceQuantificationConcepts
Overlap - the degree two placefields overlap each other. Related to the statistical independence of the pair of placefields. Metric Type: Pairwise metric
Environment Coverage - the degree to which a set of placefields tile/span a given environment. Metric Type: Environment Map (collection of placecells) metric Larger values indicate that more of the environment has a placecell that represents it.
Specificity - the degree to which a given placefield is specific for a single or a few places, represented by few well-isolated peaks in the placemap. Metric Type: Single placecell metric A low value would indicate that the placefield is rather spatially diffuse across the environment.
Reliabilty - the degree to which a given placecell consistently responds to entering/exiting its preferred place. Metric Type: Single placecell metric A high value would indicate that the cell responds nearly every time that it enters the preferred place, and doesn't randomly respond when it's located at other non-preferred places.
Sta
@sriharijayaram5
sriharijayaram5 / spherical_3d.py
Created January 10, 2022 14:39
Spherical coordinates 3D PyQtGraph
import numpy as np
import matplotlib as mpl
from pyqtgraph.Qt import QtCore, QtGui
%gui qt5
import pyqtgraph as pg
from matplotlib import cm
pg.mkQApp()
## make a widget for displaying 3D objects
import pyqtgraph.opengl as gl
@yatharthb97
yatharthb97 / README.md
Last active March 11, 2022 06:43
PyQtGraphStack is a wrapper around the pyqtgraph API for rapid prototyping, focused around creation of multiple plots with multiple curves.
@danish17
danish17 / gist:c5c5fb6eb99d452c339e393ed637640b
Last active June 13, 2024 13:00
LogiOps MX Master 3 Configuration
// Logiops (Linux driver) configuration for Logitech MX Master 3.
// Includes gestures, smartshift, DPI.
// Tested on logid v0.2.3 - GNOME 3.38.4 on Zorin OS 16 Pro
// What's working:
// 1. Window snapping using Gesture button (Thumb)
// 2. Forward Back Buttons
// 3. Top button (Ratchet-Free wheel)
// What's not working:
// 1. Thumb scroll (H-scroll)
// 2. Scroll button