start new:
tmux
start new with session name:
tmux new -s myname
# curl not smart enough for ipv6, so force ipv4 | |
# on my mac I started to get localhost connect failure | |
# | |
# curl: (7) Failed to connect to localhost port 9031: Connection refused | |
echo '--ipv4' >> ~/.curlrc |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
#include <opencv2/opencv.hpp> | |
#include <random> | |
using namespace std; | |
using namespace cv; | |
void make_samples(int num, double xlb, double xub, Mat param, | |
vector<Vec2d>& samples) { | |
random_device rd; | |
mt19937 mt(rd()); |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
/* | |
Copyright (c) 2017 Pavel Perina | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |