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
29.04.2023 13h25 | |
I wanted to try and install mattgodbolt's cool BBC Basic | |
Owlet Editor on my system. | |
[https://github.com/mattgodbolt/owlet-editor] | |
Here is the blurb from the repository describing it: | |
Owlet Editor |
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
# set the document modeline and spelling to english | |
snippet setenglish "" b | |
# vim: spell spelllang=en | |
`!p vim.command("set spelllang=en")` | |
endsnippet | |
# set the document modeline and spelling to french | |
snippet setfrench "" b | |
# vim: spell spelllang=fr | |
`!p vim.command("set spelllang=fr")` |
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
def overlap(): | |
import random | |
listA = random.sample(range(100), k=10) | |
listB = random.sample(range(100), k=12) | |
listC = list(set([x for x in listA if x in listB])) | |
listC.sort() | |
return listC |
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
(* | |
ToggleGrayScaleMode for MacOSX 10.9 Mavericks | |
works as of 15 april 2014 | |
This is an AppleScript UI script to toggle GrayScaleMode in System Preferences. | |
I am red-green colorblind and grayscale helps a lot... | |
Works for me. Hope it can be usefull for you. | |
Mike |
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
Getting matplotlib running with python3 | |
Here are the steps that I went through to get Matplotlib to work. | |
(as far as I know so far.....) | |
I am using a Xubuntu 12.04 (Ubuntu) system. | |
(Your mileage may vary....) |
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
""" | |
This is for use in the AutoKey text expander under Linux | |
The version of this script that came with the program does not work | |
on my system... | |
I think it's because I use python3 | |
Returns the current date. in the dd/mm/yyyy format |