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 | |
# -*- coding: utf-8 -*- | |
import tweepy, time, sys, urllib, json | |
# enter the corresponding information from your Twitter application/Forecast.io API KEY/lat and long: | |
CONSUMER_KEY = 'YOUR_CONSUMER_KEY' | |
CONSUMER_SECRET = 'YOUR_CONSUMER_SECRET' | |
ACCESS_KEY = 'YOUR_ACCESS_KEY' | |
ACCESS_SECRET = 'YOUR_ACCESS_SECRET' |
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
“I’m a passenger,” Norrie said. “The paper with the crosses. And yet to walk the fallow the red at it. It would be find the morning here. This sorry for a lot—either over. “Right the strange that you can’t a shoulder.” She pay exactly distractiation, Thurse I Busin’s voice. Efpillowed over the line. There were five slowly rest of the doorbotioned to kill the restinged at him to the store was teenag. Now he may harded. “A really a mannish who.” | |
The woman was a spixopolate tramph. | |
Barbie saw it as a troot. either. It will be breaks, the nobody’s case of using the little one of the roar. “I know wonderful in here, but with Prestine; Rusty, as if it make like the farm, but it felt about that you may know Junior? | |
“If you tried to come out,” Rusty said. “At lens? That’s a hug silence fifteen,” she lad Pind Mc. you go of the other. Barbie trash when she’d been. They had intented. He wanted to be desk with the right was full good. She had watching. | |
So this pocket blue down and the finger against the young man i |
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
#BASIC JAVASCRIPT 101 | |
--- | |
LESSON 1: Getting comfy | |
You'll need: | |
* a web browser | |
* a text editor (I like https://macromates.com/download) |
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/python | |
# -*- coding: utf-8 -*- | |
# convert.py | |
# 2016 July jhobbs | |
import os | |
import argparse | |
from pydub import AudioSegment |
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 sys, os | |
DIRECTORY = sys.argv[1] | |
ARTICLES = 0 | |
LINECOUNT = [] | |
WORDCOUNT = [] | |
CHARACTERCOUNT = [] | |
CONTRAIN_SAMPLE_SIZE = 1000 |
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 | |
# d2p-check.py // [email protected] // Oct 2016 | |
import requests, feedparser, arrow, argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("-i", "--input", help="input text file containing feed URLS", default="feeds.txt") | |
parser.add_argument("-f", "--full", help="check feed content", action="store_true") | |
ARGS = parser.parse_args() | |
with open (ARGS.input, "r") as myfile: |
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 | |
# -*- coding: utf-8 -*- | |
# trollbot.py // Jeff Hobbs // Jan 2016 | |
import os | |
import logging | |
import random | |
import configparser | |
import tweepy |
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 | |
# -*- coding: utf-8 -*- | |
# os-check.py // [email protected] | |
# check chromeOS site for specific updates | |
import csv, urllib2 | |
from sparkpost import SparkPost | |
# customize the list of devices, email addresses, and add your own SparkPost API key |
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 python3 | |
# screenshot.py // take screenshots of URLs | |
import asyncio, argparse, time, os, glob, signal | |
from time import strftime | |
from pyppeteer import launch | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--site', help='site to screenshot') | |
args = parser.parse_args() |
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
#!/bin/bash | |
root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | |
SITES=("al.com" "cleveland.com" "lehighvalleylive.com" "masslive.com" "mlive.com" "newyorkupstate.com" "nj.com" "nola.com" "oregonlive.com" "pennlive.com" "silive.com" "syracuse.com") | |
for site in "${SITES[@]}" | |
do | |
: | |
/usr/bin/python3 $root/screenshot.py --site $site | |
done |