Skip to content

Instantly share code, notes, and snippets.

@dniku
dniku / sympy_issue_15566_s_is_positive.ipynb
Last active December 10, 2025 09:58
sympy_issue_15566_s_is_positive
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import collections
import functools
import time
import numpy as np
State = list[int]
StateImmutable = tuple[int]
Action = tuple[int, int]
#!/usr/bin/env python3
#######
# USAGE
#
# nvidia-smi | nvidia-htop.py [-l [length]]
# print GPU utilization with usernames and CPU stats for each GPU-utilizing process
#
# -l|--command-length [length] Print longer part of the commandline. If `length'
# is provided, use it as the commandline length,
@dniku
dniku / Xorg.1.log
Created March 5, 2020 08:23
Logs for Xorg crash on Manjaro Linux
[ 26946.219] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[ 26946.219] _XSERVTransMakeAllCOTSServerListeners: server already running
[ 26946.222] (--) Log file renamed from "/var/log/Xorg.pid-30396.log" to "/var/log/Xorg.1.log"
[ 26946.222] (WW) Failed to open protocol names file lib/xorg/protocol.txt
[ 26946.222]
X.Org X Server 1.20.7
X Protocol Version 11, Revision 0
[ 26946.222] Build Operating System: Linux Manjaro Linux
[ 26946.222] Current Operating System: Linux thamiel 4.19.107-1-MANJARO #1 SMP Fri Feb 28 21:14:27 UTC 2020 x86_64
[ 26946.222] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.19-x86_64 root=UUID=dd6fd6f6-37ca-4a27-94b6-6db6bb56203f rw quiet acpi_rev_override=1 cryptdevice=UUID=fbe526af-3f78-45e3-97c5-9f45bb5a8f6d:luks-fbe526af-3f78-45e3-97c5-9f45bb5a8f6d root=/dev/mapper/luks-fbe526af-3f78-45e3-97c5-9f45bb5a8f6d resume=/dev/mapper/luks-fbe526af-3f78-45e3-97c5-9f45bb5a8f6d
[
{
"id": 1,
"title": "Visualization of Time Series Deep Neural Network",
"authors": [
{
"name": "Sohee Cho",
"affiliation": "UNIST"
},
{
import datetime
from pathlib import Path
from torch.utils.tensorboard import SummaryWriter
dt = datetime.datetime.now().isoformat(sep='_', timespec='milliseconds').replace(':', '-')
tb_dir = Path('tb') / dt
with SummaryWriter(str(tb_dir)) as writer:
import argparse
import itertools
from contextlib import closing
from pathlib import Path
import baselines.run
import cv2
import numpy as np
from baselines.common.cmd_util import make_vec_env
from baselines.common.vec_env import VecFrameStack
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
unpacking sources
unpacking source archive /nix/store/k65i9rqxidgpbqgdlw1iapiikdy0mmkq-fish-3.0.0.tar.gz
source root is fish-3.0.0
setting SOURCE_DATE_EPOCH to timestamp 1546002484 of file fish-3.0.0/version
patching sources
configuring
patching script interpreter paths in ./build_tools/git_version_gen.sh
./build_tools/git_version_gen.sh: interpreter directive changed from "/usr/bin/env sh" to "/nix/store/vs6d2fjkl4kb3jb7rwibsd76k9v2n4xy-bash-4.4-p23/bin/sh"
fixing cmake files...
cmake flags: -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/rfvad85vjz26bcwb55fhaiq0k4mzh63f-fish-3.0.0/include -DCMAKE_INSTALL_LIBDIR=/nix/store/rfvad85vjz26bcwb55fhaiq0k4mzh63f-fish-3.0.0/lib -DCMAKE_INSTALL_NAME_DIR=/nix/store/rfvad85vjz26bcwb55fhaiq0k4mzh63f-fish-3.0.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_DEPLOYMENT_TARGET= -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=last -DCMAKE_STRIP=/nix/store/3xwc1ip20b0p68sxqbjjll0va4pv5hbv-binutils-2.30/bin/strip -DCMAKE_RANLIB=/ni
$ pacaur -S gatk
:: Package gatk not found in repositories, trying AUR...
:: resolving dependencies...
:: There are 4 providers available for java-environment:
0) jdk10-openjdk (extra)
1) jdk7-openjdk (extra)
2) jdk8-openjdk (extra)
3) jdk9-openjdk (extra)
Enter a number (default=0): 0