curl -s https://gist.githubusercontent.com/tueda/aa0f10331289e4a294eb6fa242f1a5ee/raw/setup.sh | bash -s -- 20.04 mpich
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 | |
# | |
# @file shachk | |
# | |
# Check SHA sums for the files in the current directory. | |
# | |
set -eu | |
set -o pipefail | |
algorithm=512 |
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 | |
# | |
# List branches sorted by commit dates. | |
# | |
# Usage: | |
# git latest [--all|--tags] | |
# | |
set -eu | |
set -o pipefail |
code = """
for i in range(100):print(i%3//2*"Fizz"+i%5//4*"Buzz"or-~i)
"""
quote = '"'
import base64
import sys
import zlib
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
import time | |
import ray | |
delay = 0.01 | |
context = ray.init() | |
num_cpus = ray.available_resources()["CPU"] | |
def busy_wait(duration): |
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 | |
set -eu | |
set -o pipefail | |
show_containers() { | |
local RED='\033[0;31m' | |
local GREEN='\033[0;32m' | |
local YELLOW='\033[1;33m' | |
local NOCOLOR='\033[0m' |
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
=LAMBDA(answerCell, correctAnswerCell, scoreCell, | |
IF(answerCell = "", | |
"", | |
IF(OR(scoreCell = "", scoreCell = "&"), | |
"", | |
LET(Z, LAMBDA(f, LET(g, LAMBDA(x, f(LAMBDA(v, LET(xx, x(x), xx(v))))), g(g))), | |
countRightAmpersands, Z(LAMBDA(countRightAmpersands, LAMBDA(cell, | |
LET(right, Offset(cell, 0, 1), | |
IF(right = "&", | |
countRightAmpersands(right) + 1, |
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
./configure --prefix=$HOME/opt/vim --enable-python3interp --enable-cscope | |
make | |
make test | |
make install |
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
#define SIZE "5" | |
*#include- include/color.h | |
#define RANK "6" | |
* | |
* The file with all the declarations for running color traces. | |
* The variable RANK tells how many Adjoint invariants of how many | |
* non-adjoint invariants can occur simultaneously. For 14 vertices | |
* this number is maximally 4 (4 loops in a non-adjoint representation) | |
* | |
* Note: One needs version 3 of FORM to run this. |
NewerOlder