This script subscribes to the live HTTP feed of public activity on my Mastodon instance and writes the results into SQLite database tables.
It needs sqlite-utils
and httpx
:
pip install sqlite-utils httpx
Then run:
Listed Tasks Type | |
-Coding skills | |
-Proxeus | |
-Certification Issue |
#!/usr/bin/python3 | |
import csv | |
import getpass | |
import numpy as np | |
import optparse | |
import smtplib | |
import sys | |
from email.mime.multipart import MIMEMultipart |
Tested on a standard $5/mo DigitalOcean VPS running Ubuntu 16.04.
//---------------------------------------------------------------------- paper script -> javascript | |
// Define a point to start with | |
var point1 = new Point(10, 20); | |
debugger; | |
// Create a second point that is 4 times the first one. | |
// This is the same as creating a new point with x and y | |
// of point1 multiplied by 4: | |
var point2 = point1 * 4; |
// warning you probably want `ssh-keygen -t ed25519` for most use cases. this method lacks secure prng and uses weak rsa | |
var keypair = require('keypair') | |
var forge = require('node-forge') | |
// generates new keypair (slow) | |
var pair = keypair() | |
// creates intermediate forge key object | |
var publicKey = forge.pki.publicKeyFromPem(pair.public) |
Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes. | |
It's an ever-growing list. | |
------------------------------ | |
Relevant links: | |
http://en.wikipedia.org/wiki/Types_of_mesh | |
http://en.wikipedia.org/wiki/Tetrahedron | |
http://en.wikipedia.org/wiki/Simplicial_complex |
function condalist -d 'List conda environments.' | |
for dir in (ls $HOME/miniconda3/envs) | |
echo $dir | |
end | |
end | |
function condactivate -d 'Activate a conda environment' -a cenv | |
if test -z $cenv | |
echo 'Usage: condactivate <env name>' | |
return 1 |