This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
window.jColors = ['red', 'blue', 'brown', 'orange', 'yellow', 'pink', 'lightblue', 'lightgreen', 'lightgray']; | |
window.lColors = ['white', 'black', 'purple', 'darkgray', '#009']; | |
window.lWidths = [5, 10, 20]; | |
window.jCols = parseInt(document.getElementById('info-creator').innerText.match(/(\d+)×/)[1]); | |
window.jC = 0; | |
CanvasRenderingContext2D.prototype.putImageData = function(imageData, dx, dy){ | |
const col = window.jC % window.jCols; | |
const row = Math.floor(window.jC / window.jCols); | |
this.fillStyle = window.jColors[col % window.jColors.length]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.jColors = ['red', 'blue', 'brown', 'orange', 'yellow', 'pink', 'lightblue', 'lightgreen', 'lightgray']; | |
window.lColors = ['white', 'black', 'purple', 'darkgray', '#009']; | |
window.lWidths = [5, 10, 20]; | |
window.jCols = parseInt(document.getElementById('info-creator').innerText.match(/(\d+)×/)[1]); | |
window.jC = 0; | |
CanvasRenderingContext2D.prototype.putImageData = function(imageData, dx, dy){ | |
const col = window.jC % window.jCols; | |
const row = Math.floor(window.jC / window.jCols); | |
this.fillStyle = window.jColors[col % window.jColors.length]; | |
this.fillRect(-1000,-1000,2000,2000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Usage | |
===== | |
First create a refmap of your ZODB: | |
>>> r = build_refmap('/path/to/Data.fs') | |
Now you can find out which objects reference an object you know the oid of: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# update dynamic files in /var/www/zope3.pov.lt/py3/ | |
# /opt/ztk-py3-status/ is a checkout of https://github.com/mgedmin/ztk-py3-status | |
# /opt/ztk-py3-status/*.py require python3 | |
# sponge requires moreutils | |
# convert requires imagemagick | |
# dot and neato require graphviz | |
cache_dir=/stuff/pypi-cache |