What's new in python 3.11 -- Coming Soon!
Official Releases from 1996 - 2022
1password | |
ack | |
apt-transport-https | |
battery-stats | |
bcmwl-kernel-source | |
build-essential | |
chromium-browser | |
cmdtest | |
conky-all | |
direnv |
<h1>Grocery List</h1> | |
<form action="" method="get" id="groceries"> | |
<label for="item">Grocery Item</label> | |
<input type="text" id="item" name="item"> | |
<input type="submit" value="Add Item"> | |
</form> | |
<ul id="grocery-items"> | |
</ul> |
#!/usr/bin/env python | |
""" | |
A quick & dirty hack to list all of your Gists sorted by stars. | |
This script lists your gists, the number of stars, the number of comments, | |
a truncated description, and the url for the gist. | |
NOTE: This only returns public gists. If you want to see (your own) private gists, | |
you can provide a personal access token. |
[DEFAULT] | |
num = 42 | |
pi = 3.141312301928312039810 | |
debug = no | |
on = yes | |
sleep = 2 | |
[mqtt] | |
host = localhost | |
port = 1883 |
#!/usr/bin/env python3 | |
""" | |
Experiment to show how rq priorities might work with jobs that will complete in different amounts of time... | |
IF you run a single worker (rqworker high low), this may do what you expect, but if you run multiple workers, | |
the low-priority tasks that take less time may complete before some of the high-priority tasks. | |
$ python main.py | |
Enqueued work for 0 in HIGH |
#!/usr/bin/env python | |
""" | |
Spawn a lot of publishers. | |
""" | |
import json | |
import os | |
import random | |
import sys |
Because I forget these exist, and then I also forget how to use them.
You may or may not get these by installing the hdf5 libraries.
brew install hdf5
or to get the 1.8 version: brew install [email protected]
apt install h5utils
A lot of this info is in the docs for Tables.
Open the file for reading, and get a reference to a table:
>>> with tables.open_file(path, mode='r') as f:
... table = f.root.some_columns.table
""" | |
This example python code shows how to appropriately query the Preteckt | |
accelerometer API for data over a date range. | |
Run with: | |
$ python get_accel_data.py | |