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
class LoginRequiredMixin(object): | |
""" | |
View mixin which requires that the user is authenticated. | |
""" | |
@method_decorator(login_required) | |
def dispatch(self, request, *args, **kwargs): | |
return super(LoginRequiredMixin, self).dispatch( | |
self, request, *args, **kwargs) |
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
# Go through all files with extension .rar. | |
# create a folder with DIR_FileName | |
# Unrar each rar file and keep them in the respective directory | |
# install unrar using "brew" on mac | |
# | |
for filename in *.rar; | |
do echo "put ${filename}"; | |
mkdir RAR_${filename} | |
unrar ${filename} RAR_${filename} | |
done |
If you are a developer and use Visual Studio Code (VSCode), then I recommend that you use GistPad
Super helpful to view and work with your gists right within VSCode
Does automatic sync with your github and use VSCode interface to view, write and udpate your gists.
Build your own workflow to take notes, build knowledge base that is your own!