This file contains 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
;; Knuth's algorithm for lexical permutations. | |
;; For now works on numerical vectors only. | |
;; | |
;; Description of the algorithm: | |
;; http://www-cs-faculty.stanford.edu/~uno/fasc2b.ps.gz | |
;; | |
;; dprelec, 2014-05-28 | |
(defn find-j [nums] | |
(loop [j (- (count nums) 2)] |
This file contains 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
" Vim global plugin for automating response to swapfiles | |
" Maintainer: Damian Conway | |
" License: This file is placed in the public domain. | |
"############################################################# | |
"## ## | |
"## Note that this plugin only works for Vim sessions ## | |
"## running in Terminal on MacOS X. And only if your ## | |
"## Vim configuration includes: ## | |
"## ## |
This file contains 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
#!perl6 | |
# math_permutation_lexical.pl6 | |
# - simple perl6 experiments | |
# - dprelec, 2010 | |
# Algorithm for lexical permutations taken from mr. Donald Knuth's | |
# Pre-fascicle 2b of "The Art of Computer Programming" | |
# http://www-cs-faculty.stanford.edu/~uno/fasc2b.ps.gz |