The above script marches onto mint.com logs the user in with their password and reports the user's cash balance. You'll need chromedriver for the appropriate version of Chrome -- it has been tested with version 87. However, it should work with all other versions, provided the webdriver version matches.
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
#!perl | |
use strict; | |
use warnings; | |
use diagnostics; | |
`latexmk -xelatex -pdf ~/texRepo/HouseWarmingInvitation.tex`; | |
`mv HouseWarmingInvitation.pdf ~/public_html`; | |
`pdfseparate ./public_html/HouseWarmingInvitation.pdf public_html/invitees/%d`; | |
`rm -f ~/HouseWarmingInvitation.*`; | |
open my $tex, '/home/ec2-user/texRepo/HouseWarmingInvitation.tex' or die "$!"; |
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
#include <stdio.h> | |
#include <sys/stat.h> | |
#include <time.h> | |
int main(int argc, char **argv) { | |
struct stat sb; | |
int rv; | |
rv = stat(argv[argc-1], &sb); | |
fprintf(stdout, "%ld\n", (time(NULL)-sb.st_atime)/86400); | |
return rv; |
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
import argparse | |
import os | |
import sys | |
import gnupg | |
import pyperclip | |
parser = argparse.ArgumentParser( | |
description="GPG clearsign whatever is on your clipboard and copy the signed data back" | |
) |
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
package us.d8u.balance; | |
import java.util.Map; | |
import java.util.Set; | |
import org.apache.http.HttpStatus; | |
import org.joda.time.DateTime; | |
import org.joda.time.format.ISODateTimeFormat; | |
import org.junit.Assert; | |
import org.junit.Test; |
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
package us.d8u.balance; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.Serializable; | |
import java.io.StringReader; | |
import java.math.BigDecimal; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; |
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
Rank | State/UT | Nominal GDP | Year | |
---|---|---|---|---|
1 | Maharashtra | ₹28.78 lakh crore (US$400 billion) | 2019–20[7] | |
2 | Tamil Nadu | ₹18.45 lakh crore (US$260 billion) | 2019–20 | |
3 | Uttar Pradesh | ₹17.94 lakh crore (US$250 billion) | 2019–20 | |
4 | Karnataka | ₹15.35 lakh crore (US$220 billion) | 2019–20 | |
5 | Gujarat | ₹15.05 lakh crore (US$210 billion) | 2018–19 | |
6 | West Bengal | ₹12.54 lakh crore (US$180 billion) | 2019–20 | |
7 | Rajasthan | ₹10.20 lakh crore (US$140 billion) | 2019–20 | |
8 | Andhra Pradesh | ₹9.73 lakh crore (US$140 billion) | 2019–20 | |
9 | Telangana | ₹9.69 lakh crore (US$140 billion) | 2019–20 |
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
import datetime | |
from hashlib import sha256 | |
import logging | |
import pytest | |
logging.basicConfig(level=logging.DEBUG) | |
old = '' | |
with open('app.py') as op: | |
hash_bytes = op.read() |
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
import argparse | |
import requests | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser(description="Get the next day's predicted market close and tolerance range for any US-listed equity") | |
parser.add_argument('SYMBOL', help='symbol', action='store', type=str) | |
parsed = parser.parse_args() | |
URL = 'https://hd1-units.herokuapp.com/stock' | |
params = {'sym': parsed.SYMBOL} |
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
#!.virtualenvs/data/bin/python | |
import argparse | |
import base64 | |
from datetime import date | |
from collections import Counter | |
from io import StringIO | |
import os | |
import logging | |
import string | |
import sys |
NewerOlder