Skip to content

Instantly share code, notes, and snippets.

View icheft's full-sized avatar
🌴

Brian L. Chen icheft

🌴
View GitHub Profile
@icheft
icheft / convert.sh
Created December 31, 2021 09:45
macOS m4a to mp3 conversion
#!/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
@icheft
icheft / kill-localhost.md
Last active February 8, 2021 06:07
Killing a localhost port

Killing a localhost Port

To close a local server on localhost:8050, do the following:

$ lsof -i:8050
$ kill $PID 

Reference

App Landing Page

Simple Music App Landing Page

Please if you have any suggestion regarding the design or my code let me know so I can fix it.

THANK YOU:),

ZAYN

@icheft
icheft / how-to-create-an-animated-particle-background-using-css-and-javascript-the-js-approach.markdown
Created May 29, 2020 12:39
How to create an animated particle background using CSS and JavaScript - the JS approach
@icheft
icheft / md-for-every1.md
Last active May 19, 2020 07:20
A simple introduction to markdown and a basic cheatsheet for everyone
@icheft
icheft / gram-schmidt.py
Created May 7, 2020 16:28
Implementation of the Gram-Schmidt process in Python with Numpy
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':
@icheft
icheft / memrise-export.js
Last active July 16, 2019 08:41 — forked from raineorshine/memrise-export.js
Export Memrise course words to CSV
/*
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.