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
const START_FROM_ENTRY_IN_LIST_NO = 8 | |
const assign0VAT = () => { | |
const expense = document.querySelector(`#vat_purchases > tbody > tr:nth-child(${START_FROM_ENTRY_IN_LIST_NO}) > td:nth-child(2) > a`) | |
expense.click(); | |
setTimeout(setValues, 1500); | |
} | |
const setValues = () => { | |
const purchase = document.querySelector('#purchase_sales_tax_rate'); |
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
git status -s | cut -d " " -f2- | cut -d / -f4 | uniq - > [filename] |
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
/* global require, process, console */ | |
var fs = require('fs'); | |
for(var i=0; i<300; i++){ | |
fs.createReadStream('wahteverFile.js') | |
.pipe(fs.createWriteStream('whateverFile'+i+'.js')); | |
} |
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 fillForms(){ | |
var dataArr = ["REG_NUMBER","POST_CODE","REG_NUMBER","POST_CODE"], dataIndex = 0, i, | |
allInputs = document.getElementsByTagName("input"); | |
for(i=0; i<allInputs.length; i++){ | |
if(allInputs[i].style.display !== "none" && | |
(allInputs[i].type==="text" || allInputs[i].type==="number" || allInputs[i].type==="tel")){ | |
if(dataIndex >= dataArr.length){ | |
return; | |
} | |
allInputs[i].value=dataArr[dataIndex]; |