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
function fibMemo(n, memo) { | |
if (memo[n]) return memo[n]; | |
if (n <= 1) return 1; | |
return memo[n] = fibMemo(n - 1, memo) + fibMemo(n - 2, memo); | |
} | |
function fibTab(n) { | |
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
/* | |
Takes a valid file(png/jpg) from form data, | |
creates a unique user directory to store file | |
and lastly re-size the file to passed in dimmensions | |
and copies the filebytes to the directory | |
*/ | |
// AvatarUpload handle uploading of a users profile avatar | |
func (p *Profiles) AvatarUpload(c *gin.Context) { |