As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
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
| # Created by https://www.gitignore.io/api/xilinxise | |
| ### XilinxISE ### | |
| # intermediate build files | |
| *.bgn | |
| *.bit | |
| *.bld | |
| *.cmd_log | |
| *.drc |
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 android.text.SpannableStringBuilder; | |
| import android.text.Spanned; | |
| import android.text.TextPaint; | |
| import android.text.method.LinkMovementMethod; | |
| import android.text.style.ClickableSpan; | |
| import android.view.View; | |
| import android.widget.TextView; | |
| import java.util.ArrayList; | |
| import java.util.regex.Matcher; |
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 os | |
| from os.path import splitext | |
| listOfFiles = os.listdir() | |
| for name in listOfFiles: | |
| file_name,extension = splitext(name) | |
| if(extension != ".mkv"): | |
| continue | |
| os.system("ffmpeg -i " + name + " -an -vn -c:s:1 srt "+ file_name+".srt") | |
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
| source : http://www.tianxiangxiong.com/2016/02/05/split-pdf-file-by-bookmarks.html | |
| My custimized version: | |
| sejda-console splitbybookmarks -f <input-pdf> -o <output-folder> -l 1 -p "[BOOKMARK_NAME]" |
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
| # How to use flake8 as linter: | |
| pip install flake8 | |
| "ctrl + shift + p" then "select linter" |
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
| https://stackoverflow.com/a/33294727/4146943 | |
| https://stackoverflow.com/a/19800058/4146943 |
Show all unread messages: in:inbox is:unread
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
| sudo vim /etc/default/grub | |
| GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rcutree.rcu_idle_gp_delay=1 acpi_osi=! acpi_osi='Windows 2009'" | |
| sudo update-grub |
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
| Follow https://askubuntu.com/a/1066810 to install qt5 version. | |
| To fix the sound problem follow | |
| # apt install pyqt5-dev-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly python3-pyqt5.qtmultimedia python3-pyqt5.qtwebkit libqt5multimedia5-plugins | |
| and: | |
| # pip3 install whoosh==2.5.7 | |
| (copied from https://github.com/ciscorn/ldoce5viewer/issues/47#issuecomment-478391492) |