Scientific Programming
153 subscribers
158 photos
30 videos
138 files
442 links
Tutorials and applications from scientific programming

https://github.com/Ziaeemehr
Download Telegram
Guess the output (no cheating):
False == False in [False]

then you can check the answer from an online Python interpreter.


if you are surprised by the answer, look at "chained comparison" in Python.

credit : svpino
Multiprocessing with progress bar:
GitHub
Using #rsync to transfer files over #ssh
(parallel)
rsync also check for the presence of file at the destination, so can prevent duplicate transfer.
Install_CUDA_UBUNTU.pdf
30.9 KB
Installing #Cuda (nvcc) on #Ubuntu machines.
@scientific_programming
Scientific Programming
Install_CUDA_UBUNTU.pdf
This one also works :

$ conda install -c anaconda cudatoolkit

for a specific version say 11.0:

$ conda install -c conda-forge cudatoolkit=11.0

conda forge is just a channel.
Screenshot from 2022-03-29 17-14-52.png
197 KB
GitHub Copilot
you just need to say what are you thinking about!
The gray part is suggested code by #Copilot.

GitHub Copilot is an AI pair programmer which suggests line completions and entire function bodies as you type. GitHub Copilot is powered by the OpenAI Codex AI system, trained on public Internet text and billions of lines of code.
https://github.com/github/copilot-docs
zc4.gif
1.6 MB
ZSH CODEX

This is a ZSH plugin that enables you to use OpenAI's powerful Codex AI in the command line. OpenAI Codex is the AI that also powers GitHub Copilot. To use this plugin you need to get access to OpenAI's.

https://github.com/tom-doerr/zsh_codex
PyScript

PyScript is a framework that allows users to create rich Python applications in the browser using HTML’s interface. PyScript aims to give users a first-class programming language that has consistent styling rules, is more expressive, and is easier to learn.

pyscript.net
script.py
530 B
For language lerners:
If you want to extract only text from subtitle files and remove the time stamps use this:

python [script.py] [folder/with/subtitles]

Credit: ajatt
160909091-70c1d70c-2850-4483-91ed-4de87efe5285.gif
3.5 MB
🍇GitHub Copilot Labs

A VS Code extention for experimental application of Copilot.
code handbook.pdf
2.5 MB
This handbook is for grad students, postdocs and PIs who do a lot of programming as part of their research. It will teach
you, in a practical manner, how to organize your code so that it is easy to understand and works reliably.
Patrick Mineault Jan 2022
PhD_job_ad.pdf
497.6 KB
PhD position (f/m/d) in Clinical Computational Neuroscience at the Dept. of Neurology, University
of Bonn
starting in September 2022 (or as agreed on)