Skip to content

Instantly share code, notes, and snippets.

@juniarto-samsudin
juniarto-samsudin / gist:13ed339ff7133ed57aa7258d1bfa34cf
Created February 25, 2021 23:00
radio button get first and such
//GET FIRST VALUE OF RADIO OPTION LIST
let firstVal = $('input[type=radio][name=runOption]:first').val()
console.log("FIRSTVAL: ", firstVal)
{{ form.jobRun(class="btn btn-fill btn-primary pull-right",onclick="revertBack()") }}
function revertBack(){
alert("Hello")
@juniarto-samsudin
juniarto-samsudin / settings.json
Created February 15, 2021 09:34
vscode pylance cannot find import
{
"python.pythonPath": "/home/juniarto/anaconda3/envs/flask-blueprint/bin/python",
"python.analysis.extraPaths": ["./provisioning-server"]
}
1. remove conda environment:
conda remove --name federated-learning --all
2. create new conda environment:
conda create --name federated-learning python=3.7
conda activate federated-learning
3. conda install -c intel mkl_fft
4. conda install -c intel mkl_random
5. NB: -c = channel, can be : default, intel, conda-forge, bioconda
6. pip install -r requirements.txt
requirements.txt: