Skip to content

Instantly share code, notes, and snippets.

View SarathVakacharla's full-sized avatar
😀

Sarath Vakacharla SarathVakacharla

😀
  • Facebook
  • Texas, USA
View GitHub Profile
@SarathVakacharla
SarathVakacharla / script.js
Last active August 13, 2020 03:12
Remitly transfer history scrape
let transactions = "";
$(".transfer-info-container").each(function(i, obj) {
let dateStr = obj.children[2].innerHTML.replace("<span class=\"sent-date uppercase\">Sent on ", "").replace("</span>", "");
let amounts = obj.children[0].children[1];
let usdStr = amounts.children[0].innerHTML.replace("&nbsp;<span class=\"currency-code\">USD</span>", "");
let inrStr = "";
if (amounts.children.length > 1){
inrStr = amounts.children[1].innerHTML.replace("&nbsp;</span><span class=\"currency-code small\">INR</span>", "").replace("<span class=\"small\">", "");
}
@SarathVakacharla
SarathVakacharla / multi_process_log_test.py
Created February 29, 2020 01:18
Multiple python processes logging to same file
from multiprocessing import Process, Manager
import time
number_of_processes = 1000
# Current time in milliseconds since epoch
def getCurrentTimeInMilliSeconds():
return int(time.time() * 1000)
def produce(i):
@SarathVakacharla
SarathVakacharla / ggl-ad-style.css
Created February 14, 2020 03:57
Google ad style
.ads-ad {
background-color: rgba(147, 182, 239, 0.3);
font-style: italic;
}