By Brian L. Chen
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
/* | |
Export Memrise course words to CSV. | |
1. Log into memrise.com | |
2. Navigate to course home page (e.g. https://www.memrise.com/course/335725/comprehensive-german-duolingo-vocabulary/) | |
3. Open Developer Console | |
4. Paste below script and hit enter | |
5. After all urls have been fetched, copy final word list into spreadsheet. |
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
import numpy as np | |
np.set_printoptions(suppress=True, precision=6) | |
def gram_schmidt(matrix, num_of_row, num_of_col, opt=''): | |
U = np.copy(matrix) | |
V = [] # buffer | |
# result | |
if opt == 'vector': |
A Pen by Envato Tuts+ on CodePen.
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 | |
if [[ $1 == *.m4a ]]; then | |
base="$(basename "$1" .m4a)" | |
ffmpeg -i "$1" -codec:v copy -codec:a libmp3lame -q:a 2 "$base.mp3" | |
fi |