- Call 1-800-829-1040
- Press 1 for English (or other language as desired)
- Press 2 for personal tax
- Press 1 for form / tax history
- Press 3 for other
- Press 2 for other
- Ignore 2 SSN prompts till you get secret other menu
- Press 2 for personal tax
- Press 3 for other
- Wait for agent!
package transaction | |
import ( | |
"context" | |
"database/sql" | |
) | |
// Exec creates a transaction and calls f. | |
// When it is finished, it cleans up the transaction. If an error occured it | |
// attempts to rollback, if not it commits. |
This is an example of a socket-activated per-connection service (which is usually referred to as inetd-like service). A thorough explanation can be found at http://0pointer.de/blog/projects/inetd.html.
The key point here is to specify Accept=yes
, which will make the socket accept connections (behaving like inetd) and pass
only the resulting connection socket to the service handler.
import numpy as np | |
def bin_ndarray(ndarray, new_shape, operation='sum'): | |
""" | |
Bins an ndarray in all axes based on the target shape, by summing or | |
averaging. | |
Number of output dimensions must match number of input dimensions. | |
Example |
Source: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
by Sander Marechal
I've written a simple Python class for creating daemons on unix/linux systems. It was pieced together for various other examples, mostly corrections to various Python Cookbook articles and a couple of examples posted to the Python mailing lists. It has support for a pidfile to keep track of the process. I hope it's useful to someone.
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
When I first started reading The Pragmatic Programmer, I summarized every chapter after I read it. I eventually stopped summarizing and just finished reading the book, but I intend on finishing the job. Writing the summaries greatly improved my comprehension of each chapter.
- [A Pragmatic Philosophy][1]
- [A Pragmatic Approach][2]
- [The Basic Tools][3]
- [Pragmatic Paranoia][4]
import os | |
import numpy | |
from pandas import DataFrame | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn.naive_bayes import MultinomialNB | |
from sklearn.pipeline import Pipeline | |
from sklearn.cross_validation import KFold | |
from sklearn.metrics import confusion_matrix, f1_score | |
NEWLINE = '\n' |
from datetime import datetime | |
from pymongo.connection import Connection | |
import tornado.httpserver | |
import tornado.ioloop | |
import tornado.options | |
import tornado.web | |
from tornado.options import define, options |
#!/usr/bin/python2 | |
# Copyright (C) 2016 Sixten Bergman | |
# License WTFPL | |
# | |
# This program is free software. It comes without any warranty, to the extent | |
# permitted by applicable law. | |
# You can redistribute it and/or modify it under the terms of the Do What The | |
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See |