- Download and extract zip from here
- Press
Windows + x
- Press
a
(Selects PowerShell (Admin)) - Navigate to directory where fonts were extracted to (
cd ${HOME}\Downloads\fonts-master\fonts-master
) - Set Execution Policy
Set-ExecutionPolicy RemoteSigned
[1] - Press
y
thenEnter
to accept
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
""" | |
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) |
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
import os, argparse | |
import tensorflow as tf | |
""" | |
This script converts a checkpoint to a pb file without needing to know | |
the names of the input and output nodes. This then allows you to use the | |
Tensorflow tool summarize_graph to identify potential input/output nodes. | |
Usage: |
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
1. build app1 project with prod flag | |
ng build --prod | |
2. copy files under dist folder to the server | |
scp -r dist/app1/* {username}@{ip address of server}:/var/www/app1/ | |
3. set base href of application (app1 works on /) | |
<base href="/"> | |
4. build app2 project with prod flag |
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 math import comb | |
# Implementation of DAG counter | |
def dagcount(n): | |
a = {} | |
a[0] = 1 | |
for h in range(1,n+1): | |
a[h] = 0 | |
for k in range(1,h+1): | |
a[h] += (-1)**(k+1) * comb(h,k) * 2**(k*(h-k)) * a[h-k] |