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 -li | |
PNAME="$1" | |
PVER="$2" | |
JARNAME="${3-$PNAME}" | |
mkdir -p ./EXT01/ | |
cd ./EXT01/ || exit | |
unzip ../"${PNAME}"-"${PVER}".zip | |
rm -f ../"${PNAME}"-"${PVER}".zip | |
mv ./"${PNAME}"/lib/"${JARNAME}"-"${PVER}".jar ./"${JARNAME}"-"${PVER}".zip | |
mkdir -p ./EXT02/ |
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
name: minilit | |
channels: | |
- pytorch-nightly | |
- pytorch | |
- nvidia/label/cuda-12.4.0 | |
- nvidia | |
- rapidsai | |
- conda-forge |
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/env pwsh | |
rustup update | |
rustup target add wasm32-wasi | |
git clone --recursive --recurse-submodules --shallow-submodules --depth 1 --branch "main" https://github.com/zed-industries/zed.git | |
Set-Location zed | |
cargo clean --release | |
cargo build --release | |
cargo run --release | |
cp target\release\zed.exe ..\ | |
Set-Location ..\ |
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/env python3 | |
# -*- coding: utf-8 -*- | |
# ────────────────────────────────────────────────────────────────────────────── | |
from math import sqrt | |
from typing import List | |
from typing import Optional | |
from typing import Tuple | |
import torch | |
from safe_assert import safe_assert as sassert |
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 -li | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/.local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# Exit on error | |
set -eo pipefail | |
TMUX_VERSION="3.4" |
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
from os import environ | |
from typing import Dict | |
from typing import Optional | |
from typing import Tuple | |
from httpx import Client | |
from safe_assert import safe_assert as sassert | |
def _isnn(c): |
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
<scheme name="AnysphereDark" parent_scheme="Dark" version="7"> | |
<colors> | |
<option name="CONSOLE_BACKGROUND_KEY" value="181818" /> | |
<option name="LINE_NUMBERS_COLOR" value="D6D6DD" /> | |
<option name="SELECTION_BACKGROUND" value="163761" /> | |
<option name="CARET_ROW_COLOR" value="292929" /> | |
<option name="WHITESPACES" value="737373" /> | |
<option name="CARET_COLOR" value="D6D6DD" /> | |
<option name="INDENT_GUIDE" value="737373" /> | |
<option name="SELECTED_INDENT_GUIDE" value="737373" /> |
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/env bash | |
# | |
# PRISM | |
git clone --recursive --recurse-submodules --single-branch --depth=1 --shallow-submodules --branch master https://github.com/prismplp/prism.git | |
cd prism/src/c | |
USE_NPY=1 make -f Makefile.gmake | |
USE_NPY=1 make -f Makefile.gmake install | |
cd ../prolog | |
make install | |
cd ../../tools/ |
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/env python3 | |
# -*- coding: utf-8 -*- | |
# ============================================================================== | |
# | |
# Copyright (c) 2019-* Brent Komer. All Rights Reserved. | |
# [orig. code: https://github.com/bjkomer/pytorch-legendre-memory-unit] | |
# | |
# | |
# Copyright (c) 2019-* Applied Brain Research. All Rights Reserved. | |
# [orig. work: https://papers.nips.cc/paper/2019/file/952285b9b7e7a1be5aa7849f32ffff05-Paper.pdf; |
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
\usepackage[utf8]{inputenc} % utf-8 input | |
\usepackage[british]{babel} % spellcheck in proper English | |
\usepackage[T1]{fontenc} % 8-bit T1 fonts | |
\usepackage{braket} % Dirac's Bra-Ket notation | |
\usepackage{hyperref} % hyperlinks | |
\usepackage{url} % URL typesetting | |
\usepackage{booktabs} % professional-quality tables | |
\usepackage{amsfonts} % blackboard math symbols | |
\usepackage{amsopn} % shorthand commands for operators | |
\usepackage{amsmath} % mathematical typesetting |
NewerOlder