CTimmerman
Follow
Main: https://github.com/CTimmerman
Gists: https://gist.github.com/CTimmerman
- The Netherlands
- https://ceestimmerman.blogspot.nl/
Block or Report
Block or report CTimmerman
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
LSD radix sort in Python with speed-...
LSD radix sort in Python with speed- and doctest test. 1"""Ported from https://www.java67.com/2018/03/how-to-implement-radix-sort-in-java.html
2Sort an integer list in-place using least significant digit radix sort in Python.
3Usage:
4>>> x = [180, 50, 10, 30, 10, 29, 60, 0, 17, 24, 12]; radix_sort(x); x
5[0, 10, 10, 12, 17, 24, 29, 30, 50, 60, 180]
-
Proving that simple for loops are fa...
Proving that simple for loops are faster for both man and machine. 1""" SICP section 2.2.3, page 160.
2We can rearrange the pieces and use them in computing the product of the squares of the odd integers in a sequence:
34(define (product-of-squares-of-odd-elements sequence) (accumulate * 1 (map square (filter odd? sequence))))
5(product-of-squares-of-odd-elements (list 1 2 3 4 5))
-
Technology preferences / tech prefs.
Technology preferences / tech prefs. 1# My Technology Preferences
23## Hardware
45A PC laptop/notebook with 16+ GB RAM, Nvidia GPU for stability (hardware manufacturers seem notoriously bad at software, but Nvidia is relatively good if you ignore the Experience app that demands your data, and [training AI needs 50 GB VRAM nowadays but 80 GB is 10x the price of 24 GB](https://www.naddod.com/blog/why-isn-t-the-4090-used-for-training-large-models)), [Linux](https://www.youtube.com/watch?v=E_C3pgc1Iho) and [Wine](https://superuser.com/a/1191605/103551) and/or Windows 10 > expensive, hard-to-customize MacBook with MacOS (needs [Spectacle](https://www.spectacleapp.com/) and [HyperSwitch](https://bahoom.com/hyperswitch) to almost be as good as Windows 10), flimsy adapter wire and too many proprietary connectors. Preferably a 14+" matte Full HD (UHD is only useful at 23+" or equivalent in VR) [Super AMOLED](https://en.wikipedia.org/wiki/AMOLED) (except that [burns in](https://www.androidpit.com/how-to-fix-amoled-burn-in-on-android-displays)) [display](https://gist.github.com/CTimmerman/5c00b0d0c86043c935c53e99fbf722c5) with [Cinema 3D](http://www.lg.com/uk/press-release/what-is-cinema-3d) like the [LG D2342P](https://www.lg.com/hk_en/monitor/lg-D2342P) and [Thunderbolt 3](https://gist.github.com/CTimmerman/632df94fe038762d996dd821a82632df) ports like the [Dell XPS 13 9370](https://www.dell.com/en-us/shop/laptops/13-9370/spd/xps-13-9370-laptop) or [the superior in that role MacBook Air M1](https://www.tomsguide.com/news/macbook-air-m1-vs-dell-xps-13) (if like MacBook Pro [14"](https://www.youtube.com/watch?v=rq3Bqs3O8Bo), with excellent audio at the cost of being magnetic so potentially wrecking HDDs. [Apple hates data that isn't in their cloud.](https://www.youtube.com/watch?v=7cNg_ifibCQ)) or [customizable upgradable Framework Laptop](https://www.youtube.com/watch?v=0rkTgPt3M4k). Fingerprint scanners are nice as long as your skin is as dry as when you set them, and [adaptive brightness](https://github.com/CTimmerman/AdaptiveBrightness) using ambient light sensors like in the iPhone 12 make it nice on the eyes without manual brightness adjustment. 700 nits (cd/m2) is required for working outside on [sunny days](https://mytechdecisions.com/video/understanding-brightness-in-outdoor-displays/). 38 nits is barely visible in the shade, but too bright at night. Speaking of peace: Silence anonymous and noncontact numbers with "do not disturb" mode and only allow select groups, or set no tone as default and only assign ringtones to friends, or simply use [the silence function on an iPhone](https://www.businessinsider.com/guides/tech/silence-unknown-callers-iphone) or [do-not-disturb/priority mode on Android](https://www.androidpolice.com/android-13-do-not-disturb-priority-mode/).
-
Resume HTTP download
Resume HTTP download 1"""Download with automatic resume.
22018-06-28 v1.0 by Cees Timmerman
32018-07-09 v1.1 Added If-Unmodified-Since header for consistency."""
4import os, shutil, sys, time
5import requests # python -m pip install requests
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.