Skip to content

Instantly share code, notes, and snippets.

@juanfal
juanfal / 55.chessboard.py
Last active March 14, 2023 12:03
Drawing a chessboard with python turtle
# chessboard.py
# juanfc 2023-03-14
#
from turtle import *
ancho = 50
speed(0)
color("black", "black")
@erik-megarad
erik-megarad / type_clipboard.applescript
Created June 2, 2020 21:02
Applescript to type from clipboard
on numberAsKeycode(theString)
tell application "System Events"
repeat with currentChar in (every character of theString)
set cID to id of currentChar
if ((cID 48) and (cID 57)) then
key code {item (cID - 47) of {29, 18, 19, 20, 21, 23, 22, 26, 28, 25}}
else
keystroke currentChar
end if
delay 0.03