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
#! /bin/sh | |
set -e | |
# Set these appropriately. I had two, so I made a way to get either. You probably only need one. | |
case "${1}" in | |
d*) | |
user="vpsa22638" | |
password="A34ks52f" | |
;; |
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
{-# LANGUAGE UnicodeSyntax #-} | |
{-# LANGUAGE ParallelListComp #-} | |
{-# LANGUAGE BangPatterns #-} | |
-- A suffix prime is a prime number all of whose suffixes are also | |
-- prime. No zero digits allowed. Here we find all, in a given base. | |
import Prelude.Unicode | |
import Data.List (intersperse, foldl') |
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
(ns newton-raphson.core) | |
;;utility function for list manipulation | |
(defn keep-list [expr] | |
(if (and (coll? expr) (not (= 1 (count expr)))) (list expr) expr)) | |
(defn to-list [expr] | |
(cond (list? expr) expr | |
(coll? expr) (seq expr) |
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
#!/usr/bin/bash | |
# Check available version and upgrade zoom if possible. | |
set -f | |
set -u | |
set -e | |
if [ $# != 0 ]; then | |
echo "Download and install zoom package. Abort if it does not supersede currently installed version." |
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
#! /bin/bash -f | |
set -e | |
k=1 | |
s=1 | |
function usage() { | |
echo "find-gpu [K [SECS]]" | |
echo " Prints the indices of the K (default: ${k}) least-used" | |
echo " GPUs, as a comma-separated list. Symmetries broken" |