This file contains hidden or 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 -eo pipefail | |
FAN_SPEED=$1 | |
DISPLAY=:1 | |
startx -- ${DISPLAY} & | |
sleep 1 | |
nvidia-settings -c ${DISPLAY} -a GPUFanControlState=1 -a GPUTargetFanSpeed=${FAN_SPEED} |
This file contains hidden or 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
diff --git a/glow_old.py b/glow_old.py | |
index 0de2375..5895300 100644 | |
--- a/glow_old.py | |
+++ b/glow_old.py | |
@@ -183,7 +183,7 @@ class WaveGlow(torch.nn.Module): | |
self.n_remaining_channels, | |
spect.size(2)).normal_() | |
else: | |
- audio = torch.cuda.FloatTensor(spect.size(0), | |
+ audio = torch.FloatTensor(spect.size(0), |
This file contains hidden or 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 sbcl --script | |
(defun atoi_itoa (input_str) | |
(write-to-string (parse-integer input_str :radix 10) :base 10) | |
) | |
(defvar erroneous_data "-$%A123") | |
This file contains hidden or 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
// compile with g++ --std=c++11 | |
// g++ --std=c++11 freqs.cpp -o freqs | |
#include <iostream> | |
#include <sstream> | |
#include <fstream> | |
#include <regex> | |
#include <algorithm> | |
#include <map> |