Skip to content

Instantly share code, notes, and snippets.

View andrew-ma's full-sized avatar
💭
I may be slow to respond.

Andrew Ma andrew-ma

💭
I may be slow to respond.
View GitHub Profile
BigQuery:
https://console.cloud.google.com/bigquery?project=patents-public-data&page=dataset&d=patents&p=patents-public-data&redirect_from_classic=true&pli=1&ws=!1m9!1m3!3m2!1spatents-public-data!2spatents!1m4!4m3!1spatents-public-data!2spatents!3spublications
Google Patents Public Data (Kaggle):
https://www.kaggle.com/datasets/bigquery/patents?select=publications_201903
Google Patents
https://patents.google.com/patent/WO1999028675A9/en?oq=WO-9928675-A9
---
#%%
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
# %%
from webdriver_manager.chrome import ChromeDriverManager
export PS1="\u@\h:\w$ "
@andrew-ma
andrew-ma / linux_first_install_steps.txt
Last active January 22, 2022 22:23
First things after installing linux
## Change privacy settings in Settings app
## Update Grub Settings to Work with Brightness Slider
```
# In /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor acpi_osi=linux"
# Run this
sudo update-grub
## Links
> https://www.wime-project.net/insudo allation/
> https://kb.ettus.com/Getting_Started_with_DPDK_and_UHD
---
## Apt dependencies
sudo apt install -y git cmake g++ libboost-all-dev
@andrew-ma
andrew-ma / gist:9663afc75ed402ca446b9796353f0fc3
Last active November 16, 2021 00:55
Edge Extension File Download
var extensionName = document.title.split(" -")[0];
var extensionNameForFile = extensionName.replaceAll(" ", "_");
var extensionIDRegex = /(?:[^:]+[:][/][/])(?:.*[/])([^?]+)/;
var extensionID = window.location.href.match(extensionIDRegex)[1];
console.log("Extension ID: ", extensionID);
var extensionURL = `https://edge.microsoft.com/extensionwebstorebase/v1/crx?response=redirect&prod=chromiumcrx&prodchannel=&x=id%3D${extensionID}%26installsource%3Dondemand%26uc`
console.log("Extension File Download: ", extensionURL);
@andrew-ma
andrew-ma / Directory
Created October 27, 2021 04:15
MPV config
%appdata%\mpv\mpv.conf
%appdata%\mpv\watch_later\* files save the position of played files
@andrew-ma
andrew-ma / aseprite_compile_instructions_windows_x64
Last active October 26, 2021 08:25
Aseprite Compile Instructions
🔥🔥🔥 NEW STEPS for 2021: 🔥🔥🔥
########################### WINDOWS 64-bit Aseprite Compile Instructions ###########################
1. Open Powershell as Administrator
* Type "powershell" (without the quotes) into the Start Menu Search Bar
* There should be an app with exactly "Windows Powershell" (not ISE), and click the "Run as Administrator" button
2. Copy and Paste these commands into Powershell
### Instructions if you want to collaboratively edit the diagram
# Install Vscode
https://code.visualstudio.com/
# Install this "Live Share" extension in vscode to be able to edit together live
https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare-pack
# Install this "Draw.io Integration" extension in vscode to be able to edit draw io diagrams
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
@andrew-ma
andrew-ma / GRPC_Install_Instructions.txt
Created October 18, 2021 18:21
GRPC Install Instructions
# Can modify this to change the directory where are final outputs are installed to
export MY_INSTALL_DIR=$HOME/Desktop/GRPC_INSTALL
mkdir -p $MY_INSTALL_DIR
# Add the $MY_INSTALL_DIR/bin folder to path
# because it contains the protoc and protoc language specific plugin executables
export PATH="$MY_INSTALL_DIR/bin:$PATH"
# Install required build tools