Nate Bohman
|
e99f6053a1
|
Fix _has_[gs]etter in Auto KWArgs
Need to check if f[gs]et is not None.
|
пре 4 година |
Nate Bohman
|
1fb99792be
|
Add Auto KWArgs Class
Automatically set setters in class with kwargs passed to __init__
|
пре 4 година |
Nate Bohman
|
a670e7cd0b
|
Add Python Timeout Decorator Schnippet
Adding in the Timeout decorator I found in a Stackoverflow answer
that allows you to set a timeout for any other callable.
|
пре 5 година |
Nate Bohman
|
76a11e96cc
|
Adding DNS Lookup Python Schnippets
Adding IP to Hostname and Hostname to IP via the socket library.
|
пре 5 година |
Nate Bohman
|
7d6e9145bc
|
Adding Python Clamp Function
Clamp a number between a max and a min.
|
пре 5 година |
Nate Bohman
|
10205bd258
|
Adding ascii_only and dd sparse file
Creating sparse files for loopback images can be done with the dd
command. The ascii_only strips all non-ascii characters out of a
string.
|
пре 6 година |