Skip to content

Instantly share code, notes, and snippets.

@tingjhenjiang
tingjhenjiang / gist:c3e85d4cb62f482cb8b51ce055724d0c
Created January 22, 2022 17:51
create a new jupyter kernel in a azure machine learning compute instance
/anaconda/bin/conda create --prefix /anaconda/envs/python39 python=3.9 pip ipykernel ipywidgets requests pandas numpy scikit-learn scipy matplotlib pydot git graphviz transformers dask pathos fsspec faiss kaggle nltk -y -c conda-forge
/anaconda/bin/conda env list
/anaconda/envs/python39/bin/python -m ipykernel install --name python39 --display-name "Python (data science default)" --prefix=/anaconda/envs/azureml_py36/
/anaconda/envs/python39/bin/pip install azureml-core tensorflow pytorch
@tingjhenjiang
tingjhenjiang / webPageAndNclJourToRIS.js
Last active December 8, 2021 19:10
網頁及國家圖書館期刊文獻網檢索結果轉RIS
javascript: (() => {
function download(filename, text) {
element = document.createElement('a');
element.setAttribute('href', 'data:text/plain.charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}
@tingjhenjiang
tingjhenjiang / webpageToRIS.js
Last active December 7, 2021 09:12
A bookmarklet to convert a webpage into a RIS file(standardized tag format developed by Research Information Systems)
javascript: (() => {
function download(filename, text) {
element = document.createElement('a');
element.setAttribute('href', 'data:text/plain.charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);
element.style.display = 'none';
document.body.appendChild(element);
element.click();
document.body.removeChild(element);
}