This concept is very much like .jar
or .war
archives in Java.
NOTE: The built
.pyz
zipapp can run on both Python 2 & 3 but you can only build.pyz
zipapps with Python 3.5 or later.
This concept is very much like .jar
or .war
archives in Java.
NOTE: The built
.pyz
zipapp can run on both Python 2 & 3 but you can only build.pyz
zipapps with Python 3.5 or later.
Johan Beyers has a great list of resources as well. http://johan.beyers.co.za/pages/resources.html
Links to various South African online stores that may be useful to anyone 'making' things.
Name | URL | Notes |
---|---|---|
Netram | http://www.netram.co.za | Electronics, Quad Copters, Robotics, CNC, 3D Printing |
Hobby Tronics | http://www.hobbytronics.co.za | CNC Parts, Aluminium Extrusion, Electronics |
#!/usr/bin/env python3 | |
import logging | |
# Colorful console | |
RESET_SEQ = "\033[0m" | |
COLOR_SEQ = "\033[1;%dm" | |
BOLD_SEQ = "\033[1m" |
#!/bin/bash | |
# | |
# IMPORTANT! | |
# At the moment this script is forged only for Debian ( tested on 8.x release ). | |
# Although my efforts were put on building this also on Arch Linux or Alpine, at the moment only Debian seems to be able to build it. | |
# Also, not sure why these instructions where nowhere on the internet, therefore I leave them here for whoever need them. | |
# | |
########### | |
# Add Backports repo support |
""" | |
Python script for batch geocoding of addresses using the Google Geocoding API. | |
This script allows for massive lists of addresses to be geocoded for free by pausing when the | |
geocoder hits the free rate limit set by Google (2500 per day). If you have an API key for paid | |
geocoding from Google, set it in the API key section. | |
Addresses for geocoding can be specified in a list of strings "addresses". In this script, addresses | |
come from a csv file with a column "Address". Adjust the code to your own requirements as needed. | |
After every 500 successul geocode operations, a temporary file with results is recorded in case of | |
script failure / loss of connection later. | |
Addresses and data are held in memory, so this script may need to be adjusted to process files line |
Print a count of the messages in the queue:
exim -bpc
How to resend frozen messages in exim4 queue
exim -bp | grep frozen | awk '{print $3}' | xargs exim -v -M
Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):
This has moved to https://github.com/bitcoin/bitcoin/blob/master/doc/reduce-memory.md
import pdb | |
""" | |
The Bellman-Ford algorithm | |
Graph API: | |
iter(graph) gives all nodes | |
iter(graph[u]) gives neighbours of u | |
graph[u][v] gives weight of edge (u, v) | |
""" |