Use Python to:
- send a plain text email
- send an email with attachment
- receive and filter emails according to some criteria
Use Python to:
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "io" | |
| "os" | |
| "os/exec" | |
| "strings" | |
| ) |
Here's a 'simple' way to get the YouTube subscriber number from Google's Youtube API v3:
This page documents the external/internal behavior of Casper.
Casper installed itself into the following directories:
| # https://stackoverflow.com/questions/3463930/how-to-round-the-minute-of-a-datetime-object-python/10854034#10854034 | |
| def roundTime(dt=None, roundTo=60): | |
| """Round a datetime object to any time laps in seconds | |
| dt : datetime.datetime object, default now. | |
| roundTo : Closest number of seconds to round to, default 1 minute. | |
| Author: Thierry Husson 2012 - Use it as you want but don't blame me. | |
| """ | |
| if dt == None : dt = datetime.datetime.now() | |
| seconds = (dt - dt.min).seconds |
| import Darwin | |
| enum Signal: Int32 { | |
| case HUP = 1 | |
| case INT = 2 | |
| case QUIT = 3 | |
| case ABRT = 6 | |
| case KILL = 9 | |
| case ALRM = 14 | |
| case TERM = 15 |
| sqlite3 $(sudo find /private/var/folders -name com.apple.dock.launchpad)/db/db "DELETE FROM apps WHERE title='APPNAME';" && killall Dock |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import requests | |
| def merge_prefixes(payload): | |
| """ | |
| Converts the AWS services JSON payload into a list of tuples. | |
| Arguments: |