Skip to content

Instantly share code, notes, and snippets.

View stared's full-sized avatar

Piotr Migdał stared

View GitHub Profile
@stared
stared / software_for_scientists.md
Last active September 12, 2025 13:22
Software for scientists: community-edited list of general-purpose software for scientists.

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

@stared
stared / matrix_product_state_obc_tikz.tex
Created April 22, 2014 16:12
TikZ code drawing Matrix Product State in tensor diagram notation (i.e. Penrose graphical notation). Get pdf, ps or svg.
\documentclass{standalone}
%% for compilation with htlatex (to produce svg image),
%% uncomment the line below:
% \def\pgfsysdriver{pgfsys-tex4ht.def}
\usepackage{tikz}
\tikzstyle{tensor}=[rectangle,draw=blue!50,fill=blue!20,thick]
@stared
stared / dating_ HCMST_2017_approximate.csv
Created July 24, 2025 12:42
Rough data for HCMST 2017
Year Online Bar Friends Coworkers Family School College Neighbors Church
1940 0.0 12.0 28.0 6.0 30.0 26.0 6.0 14.0 10.0
1950 0.0 15.0 32.0 9.0 24.0 23.0 7.0 12.0 9.0
1960 0.0 17.0 33.5 12.0 20.0 18.0 8.0 10.0 8.0
1970 0.0 18.5 34.0 16.0 17.0 16.0 8.0 9.0 7.0
1980 0.5 19.0 34.0 18.0 15.0 13.0 8.3 8.0 6.5
1990 3.0 18.5 33.5 19.0 13.0 11.0 8.0 7.0 6.0
2000 12.0 18.5 33.0 16.0 11.0 9.0 8.0 6.0 6.0
2010 23.0 18.0 29.0 12.0 8.0 7.0 7.0 5.0 5.0
2017 38.0 27.0 20.0 10.0 5.0 6.0 5.0 4.0 4.0
@stared
stared / live_loss_plot_keras.ipynb
Last active July 17, 2025 17:36
Live loss plot for training models in Keras (see: https://github.com/stared/livelossplot/ for a library)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stared
stared / claude-4-opus.txt
Created July 16, 2025 12:37
AI translations of Pocałuj Noc by Kasia Stankiewicz and Varius Manx (GPT 4.5 wins!)
## Kiss the Night
Through fingers of ordinary days
You watch the world slip by
In rushing haste, you lose your dreams
Your laughter makes you shy
So you would rather never laugh
Than risk a moment's fool
Try just once
Unveil your face
@stared
stared / My Clippings.txt
Last active May 27, 2025 07:52
Convert Kindle highlights and notes into Markdown - to be used in Obsidian or Static Site Generator
The Design of Everyday Things: Revised and Expanded Edition (Norman, Don)
- Your Highlight on page 101 | location 2210-2212 | Added on Wednesday, 11 May 2016 21:05:40
It is a profoundly erroneous truism, repeated by all copy-books and by eminent people when they are making speeches, that we should cultivate the habit of thinking of what we are doing. The precise opposite is the case. Civilization advances by extending the number of important operations which we can perform without thinking about them. (Alfred North Whitehead, 1911.)
==========
The Design of Everyday Things: Revised and Expanded Edition (Norman, Don)
- Your Highlight on page 111 | location 2395-2396 | Added on Saturday, 18 June 2016 19:33:53
unless it is triggered by some external event or unless we deliberately keep it in mind through constant repetition (which then prevents us from having other conscious thoughts).
==========
@stared
stared / metal_bands_happiness.Rmd
Last active January 7, 2023 16:45
Metal bands bring happiness (as chocolate brings Nobel Prizes) - ggplot2 code
---
title: "Metal bands bring happiness"
output: html_notebook
author: "Piotr Migdał"
---
```{r}
library(ggplot2)
library(ggrepel)
```
@stared
stared / brewing_your_mac.sh
Last active December 20, 2022 11:44
Brewing your Mac: install all stuff easily on Macbook Pro 2021 (M1 Pro / Max)
# Homebrew - the package manager
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
# Rosetta - for running apps not native to M1 arm64
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
# Terminal improvement
brew install fish
sudo sh -c 'echo /opt/homebrew/bin/fish >> /etc/shells'

New scientific markup language

  • I am for open and collaborative culture, but disgusted by edits a few immature vandals (i takes only 2 among crowds of great contributors and discussants).

(It's collaborative! Feel invited to edit, comment, etc.)

Voting:

If you want to support (or contest) a thing already stated here, just:

@stared
stared / aspie_traits.md
Last active January 29, 2022 08:16
Interpersonal Traits of Aspies Placed in Context

Interpersonal Traits of Aspies Placed in Context

a chapter from A Mind-Body Look at the Concept of Asperger's Syndrome (pdf) by Michael Samsel, LMHC

A Hacker News discussion (2021) on this list

Uncommunicative Eye Contact

In humans, eye contact is the center of the attachment system. In Asperger's Syndrome there is either an avoidance of eye contact (most common) or an unvarying, relative unblinking, staring, constant eye contact (less common). Avoidant eye contact gives an impression of 'having something to hide', and also eliminates a big channel of communication and trust. Staring eye contact, because of its unchanging nature, is also uncommunicative, and is generally experienced as disturbing on the receiving end.