20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
// Output the k! permutations of A in which the first k elements are permuted in all ways.
// To get all permutations of A, use k := length of A.
//
// If k > length of A, will try to access A out of bounds.
// If k <= 0 there will be no output (empty array has no permutations)
procedure permutations(k : integer, A : array of any):
if k = 1 then
output(A)
else
// permutations with last element fixed
permutations(k - 1, A)
// permutations with last element swapped out
for i := 0; i < k-1; i += 1 do
if k is even then
swap(A[i], A[k-1])
else
swap(A[0], A[k-1])
end if
permutations(k - 1, A)
end for
end if
Some of Stephen Wolfram’s “productivity hacks” to make his days and projects more productive. Daily life, desk environment, outside the office, presentation setup, filesystem organization, Wolfram Notebook systems, databases, personal analytics.
I especially like the treadmill.
PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API. The structural constraints and permissions in the database determine the API endpoints and operations.
Sounds like a way to write less code. I skimmed through the reference, looks cool. PostgREST is written in Haskell for some reason though.
Моя знакомая Ульяна рассказывает про опыт с БАР
Everyone knows micromanagement is evil, but very few understand what exactly it is and what's a better alternative.
терапевтка принимала на дому, делала записи и вышла, например, в туалет, а клиентка залезла в эти записи и получила — правильно — скандал про«нарушение границ» и чуть ли не отказ работать дальше.
Правильный терапевт, разумеется, не только знал бы, что терапия — это место, где его границы будут нарушаться (и это будет оплачиваться), но и первым делом с интересом обсудил бы мотивы и фантазии клиента, зачем он это сделал и что хотел там найти. И только потом бы с любовью и принятием говорил про нарушение границ.
Расширение, которое позволяет открыть текущее место в соответствующем сервисе карт.
Free Encyclopedia of Programming Languages.
The core idea is to canonicalize things. Both x < y and y > x mean the same, and, if you usethem with roughly equal frequency, you need to spend extra mental capacity to fold the two versionsinto the single “x tiny, y HUGE” concept in your head.
Коллекция интерактивных штуковин. Очень красивое
Сайт, где можно посмотреть, какой инстанс в федивёрсе, по какой причине и у кого был забанен
Рассказ о том, почему мат классный, но нужно держать его в узде.
Никита собирает оплошности дизайна