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
N=100 | |
# create | |
for ((i = 1; i <= N; i++)); do | |
touch e-$i.csv | |
done | |
# rename | |
# note %04d - pad to 4 zeros | |
for ((i = 1; i <= N; i++)); do |
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
import numpy as np | |
from collections import Counter, defaultdict | |
def __f(x, i, j): | |
'''Consume a state to generate a sequence of haplotypes picked''' | |
pairs = [] | |
y = x.copy() | |
while True: |
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
;; add view mode keybindings | |
(use-package view | |
:config (setq view-read-only t) ;; C-x C-q can also toggle view-mode | |
:straight nil | |
:bind (("<f13>" . view-mode) ;; remap R-Shift to F 13 | |
:map view-mode-map | |
("n" . forward-line) | |
("p" . previous-line))) | |
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
;; animations | |
;; Requires =emacs-mac= fork | |
;; repo: https://bitbucket.org/mituharu/emacs-mac | |
;; homebrew tap: https://github.com/railwaycat/homebrew-emacsmacport | |
;; Crazy example | |
(mac-start-animation nil :type 'page-curl-with-shadow | |
:duration 1.0 :direction 'right :angle 45) | |
;; Less crazy | |
(mac-start-animation (selected-window) :type 'move-out |
OlderNewer