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
<head> | |
<title>Phone Number Cleaner</title> | |
<script | |
src="https://code.jquery.com/jquery-3.2.1.min.js" | |
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
crossorigin="anonymous"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
</head> | |
<div class='main-holder text-center'> |
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
#!/usr/bin/python3 | |
# | |
from sys import argv | |
import subprocess | |
try: | |
fileName = argv[0] | |
firstArg = argv[1] | |
secondArg = argv[2] |
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
var cheerio = require("cheerio"); | |
var request = require('request'); | |
request("https://seattle.craigslist.org/d/science-biotech/search/sci", function (error, response, html) { | |
if (!error) { | |
var $ = cheerio.load(html) | |
$("li.result-row").each(function (i, element) { | |
var obj = {} | |
var b = $(this) | |
obj["title"] = b.children().children().text() |
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
# coding: utf-8 | |
# In[5]: | |
import requests # Requesting HTML | |
import bs4 as bs # Parsing HTML | |
import json | |
import time |
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
#!/usr/bin/env python3 | |
# | |
import requests | |
import json | |
import subprocess | |
import datetime | |
currdate = datetime.datetime.now() |
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
#!/bin/bash | |
# | |
for filename in ./*.log; do | |
while read line; do | |
echo "$filename|$line" >> output.txt | |
done < ./$filename | |
done |
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 bs4 as bs | |
import requests | |
r = requests.get("https://iterm2colorschemes.com/") | |
soup = bs.BeautifulSoup(r.content, "lxml") | |
for theme in soup.find_all("a", href=True): | |
if "raw.githubusercontent" in theme['href']: | |
file_name = theme.text.replace(" ","") + ".itermcolors" |
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
def uniqIdenGen(): | |
char_options = [ | |
"A","B","C","D","E","F","G","H","I","J", | |
"K","L","M","N","O","P","Q","R","S","T", | |
"U","V","W","X","Y","Z", | |
"1","2","3","4","5","6","7","8","9","0" | |
] | |
returned_id = [] |
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 requests as r | |
import bs4 as bs | |
import json | |
# Configuration | |
input_list = "tasteOfHome.csv" | |
base_url = "https://www.tasteofhome.com/recipes/page/" | |
site = 'https://www.tasteofhome.com' | |
output_filename = "tasteOfHome.csv" # URL csv for getRecipesList() | |
final_filename = "tasteOfHomeRecipes.tsv" # Recipe tsv output for tasteOfHomeCsvMake() |
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
#!/usr/bin/env python3 | |
# | |
# Here we parse the arguments and check their validity BEFORE importing the heavy libraries, just in case. Saves CPU. | |
# Arguments parsing | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-f", help="File name") | |
parser.add_argument("-c", help="Chart type. To view list of support charts, use --charts") |
OlderNewer