This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
one_obvious = 'more than one' | |
print(f'There should be {one_obvious} way to do it.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket | |
(define (get-in h . path) | |
(foldl (λ (p h) (hash-ref h p)) h path)) | |
(define nested-dict #hash((foo . | |
#hash((bar . | |
#hash((spam . | |
#hash((eggs . 1))))))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ env NIXPKGS_ALLOW_UNFREE=1 nix-shell hiri.nix | |
these derivations will be built: | |
/nix/store/s0acr6j9hv15p41l3pmvrybh0l6mc8iy-hiri-1.4.0.5.drv | |
building '/nix/store/s0acr6j9hv15p41l3pmvrybh0l6mc8iy-hiri-1.4.0.5.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/dwrg6rn3gi8hy57ib0sjf49283mblpp1-Hiri.tar.gz | |
source root is hiri_1.4.0.5 | |
setting SOURCE_DATE_EPOCH to timestamp 1534767164 of file hiri_1.4.0.5/hirimain | |
patching sources | |
configuring |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env guile | |
!# | |
;; Toggle symlink to current directory on and off in a directory of "active" | |
;; directories. Unless otherwise specified by a $ACTIVE_DIR environment | |
;; variable, the active directory is assumed to be located in ~/Active. | |
(use-modules (ice-9 ftw)) | |
(define (symlink? path) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env -S guix environment --ad-hoc python python-pandas python-numpy -- python3 | |
import pandas as pd | |
def main(): | |
df = pd.util.testing.makeDataFrame() | |
print(df.T) | |
main() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
president,term,bio | |
William John McGee,1902–1904,"William John McGee, LL.D. (April 17, 1853 – September 4, 1912) was an American inventor, geologist, anthropologist, and ethnologist, born in Farley, Iowa. | |
== Biography == | |
While largely self-taught, McGee attended a rural one-room schoolhouse north of Farley during the four winter months from about 1858 to 1867. He devoted his early years to reading law and to surveying. He invented and patented several improvements on agricultural implements.He subsequently turned his attention to geology. In 1877–1881, he executed a topographic and geological survey of 17,000 square miles (44,030 km²) in northeastern Iowa. He then undertook an examination of the loess of the Mississippi Valley, researched the great Quaternary lakes of Nevada and California and studied a recent fault movement in the middle Atlantic slope.He was appointed geologist for the United States Geological Survey (USGS) in 1881. In 1884 McGee authored the article Map of the United States exhibiting th |