Adapted from: https://medium.com/google-cloud/containerized-jupyter-notebooks-on-gpu-on-google-cloud-8e86ef7f31e9
- Request an increase in GPUs in us-east1-d from https://console.cloud.google.com/compute/quotas
#include "FastLED.h" | |
#define NUM_LEDS 150 | |
#define DATA_PIN 24 | |
#define LED_PIN 6 | |
CRGB leds[NUM_LEDS]; | |
CRGB prevLeds[NUM_LEDS]; | |
uint8_t ledFrac[NUM_LEDS]; |
#include <FastLED.h> | |
#include <SPI.h> | |
// Rings | |
// 48, 43, 40, 32, 29, 24, 20. 12, 6, 1 | |
#define NUM_PIXELS 255 | |
#define NUM_RINGS 10 | |
#define DATAPIN 22 | |
#define CLOCKPIN 21 |
# scm theming | |
SCM_THEME_PROMPT_PREFIX="" | |
SCM_THEME_PROMPT_SUFFIX="" | |
SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗${normal}" | |
SCM_THEME_PROMPT_CLEAN=" ${green}✓${normal}" | |
SCM_GIT_CHAR="${green}±${normal}" | |
SCM_SVN_CHAR="${bold_cyan}⑆${normal}" | |
SCM_HG_CHAR="${bold_red}☿${normal}" |
#!/bin/bash | |
if lspci | grep -i 'nvidia' | |
then | |
echo "\nNVIDIA GPU is likely present." | |
else | |
echo "\nNo NVIDIA GPU was detected. Exiting ...\n" | |
exit 1 | |
fi |
Adapted from: https://medium.com/google-cloud/containerized-jupyter-notebooks-on-gpu-on-google-cloud-8e86ef7f31e9
I hereby claim:
To claim this, I am signing this object:
<meta charset="utf-8"> | |
<script src="js/jquery.js"></script> | |
<script src="js/jqconsole.js"></script> | |
<script src="js/sugar.js"></script> | |
<script src="js/peg-0.9.0.js"></script> | |
<script src="js/plt.js"></script> | |
<script type="text/javascript"> | |
// uncomment next line to enable refresh |
import re | |
import random | |
import sys | |
def read_poem_lines(filename): | |
f = open(filename, 'r') | |
poem = f.read().split('\n') | |
f.close() | |
lines = [] |