Skip to content

Instantly share code, notes, and snippets.

View KentoNishi's full-sized avatar
:octocat:
"I have experiments to run, there is research to be done" ― GLaDOS

Kento Nishi KentoNishi

:octocat:
"I have experiments to run, there is research to be done" ― GLaDOS
View GitHub Profile
@0xdevalias
0xdevalias / audio-to-midi.md
Last active May 9, 2026 13:06
Some notes on Automated Audio Transcription (AAT) / Automated Music Transcription (AMT) (aka: converting audio to midi)

Automated Audio Transcription (AAT) / Automated Music Transcription (AMT) (aka: converting audio to midi)

Some notes on Automated Audio Transcription (AAT) / Automated Music Transcription (AMT) (aka: converting audio to midi)

Table of Contents

@mattbell87
mattbell87 / remote-wsl.md
Last active May 13, 2026 14:54
VSCode Remote: Connect to WSL2 from another machine

VSCode Remote: Connect to WSL2 from another machine

Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.

Proxy jump method

  1. On the host set up OpenSSH for Windows
  2. Run wsl --update to make sure you are running the latest WSL
  3. Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
  4. Now run sudo systemctl enable --now ssh to automatically start ssh when WSL starts.
def club_similar_keywords(emb_mat, sim_score=0.9):
"""
:param emb_mat: matrix having vectors with words as index
:param sim_score: 0.9 by default
:return: returns list of unique words from index after combining words which has similarity score of more than
0.9
"""
if len(emb_mat) == 0:
return 'NA'
xx = cosine_similarity(emb_mat)
@GongXinyuu
GongXinyuu / gumbel_max_pytorch.py
Last active March 23, 2024 08:32
A temporary function to avoid nan in the pytorch gumbel_softmax function.
import torch
import torch.nn.functional as F
def gumbel_softmax(logits, tau=1, hard=False, eps=1e-10, dim=-1):
# type: (Tensor, float, bool, float, int) -> Tensor
r"""
Samples from the `Gumbel-Softmax distribution`_ and optionally discretizes.
You can use this function to replace "F.gumbel_softmax".
@font-face {
font-family: SegoeUI;
src:
local("Segoe UI Light"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff2) format("woff2"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff) format("woff"),
url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.ttf) format("truetype");
font-weight: 100;
}
@jimmywarting
jimmywarting / readme.md
Last active April 16, 2026 08:45
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active April 30, 2026 09:31
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danharper
danharper / background.js
Last active February 13, 2026 12:47
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@rxaviers
rxaviers / gist:7360908
Last active May 13, 2026 14:57
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: