This file contains 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
export PS1="\u:\W 🔒 " | |
export SUDO_PS1="\u:\W ‼🔓 ‼ " |
This file contains 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
<html> | |
<head> | |
<script type="application/javascript"> | |
function draw() { | |
var canvas = document.getElementById('canvas'); | |
if (canvas.getContext) { | |
var ctx = canvas.getContext("2d"); | |
var canvasWidth = parseInt(canvas.getAttribute("width")); | |
var canvasHeight = parseInt(canvas.getAttribute("height")); | |
var rds = canvasWidth/4; |
This file contains 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
// now a function, also, can draw to any picture not just currentpicture | |
void drawgoban(picture pic=currentpicture, int gobansize, int gobanlines=19) { | |
int gobancounter=gobanlines + 1; | |
unitsize(pic,gobansize/(gobancounter+1)); | |
//Bounding Box and background | |
filldraw(pic,box((0,0),(gobancounter,gobancounter)),white,white); |
NewerOlder