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
| " Save as $HOME/.config/nvim/init.vim | |
| " Dependencies | |
| " vim-plug: https://github.com/junegunn/vim-plug | |
| " Specify a directory for plugins | |
| " - For Neovim: ~/.local/share/nvim/plugged | |
| " - Avoid using standard Vim directory names like 'plugin' | |
| call plug#begin('~/.local/share/nvim/plugged') |
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
| /* Checks if a string is contained inside the given array of strings | |
| * If the second variable is a string, it just compares them | |
| * If the second variable is neither string or array, it returns false */ | |
| function checkIfStringInArray(str, arr) { | |
| if (typeof arr === 'string') | |
| return str === arr; | |
| if (arr.constructor && arr.constructor === Array) | |
| for (var i in arr) { | |
| if (str === arr[i]) { | |
| return true; |
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
| /(?!-,)(?!^,)(^-?\d*,?\d{0,2}$)/ //Number, positive or negative, with up to two decimals |
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
| #!/usr/bin/env python | |
| import csv | |
| import re | |
| import os | |
| topdir=r'folderToScan' | |
| output=r'outputFile.csv' | |
| exten='.extension' | |
| def parsesource(firstfolder,filepath,filename,sourcefile): |
NewerOlder